/* ============================================================
   AltxDesign — the Careers page (careers.html), from the careers/services handover (20 Nov 2026,
   section 3): we are not hiring; we keep a list of freelancers we call first. Loaded after
   css/style.css (tokens, nav, buttons, the FAQ and .faqs--tone, the scroll-in helper, the
   gradient phrase, the night footer) and css/sentence-form.css (the portfolio as one sentence,
   the same module as the Contact page's brief). Behaviour: js/page-careers.js,
   js/sentence-form.js and js/parts.js. Every part has a reduced-motion fallback.
   ============================================================ */

@keyframes rise{to{transform:none}}

/* ---------- OPENING ---------- */
.jhero{padding:clamp(140px,19vh,200px) var(--edge) clamp(72px,9vw,128px)}
.jhero__in{max-width:var(--wrap);margin-inline:auto}
.jhero__title{font-size:clamp(34px,7.1vw,116px);font-weight:800;letter-spacing:-.05em;line-height:.96}   /* .9 let the p of "purpose" touch the line below */
/* the masks keep .22em under the line, enough for g, p, q and y tails (20 Nov 2026: .1–.14em cut them) */
.jhero__title span{display:block;overflow:hidden;padding-bottom:.22em;margin-bottom:-.22em}
@media(min-width:760px){.jhero__title span{white-space:nowrap}}
.jhero__title span > i{display:inline-block;font-style:normal;transform:translateY(105%);animation:rise 1s var(--ease-out) forwards}
.jhero__title span:nth-child(2) > i{animation-delay:.12s}
.jhero__title em{font-style:normal}
.jhero__row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(32px,6vw,120px);align-items:end;margin-top:clamp(36px,4.6vw,64px);opacity:0;animation:in .9s var(--ease-out) .6s forwards}
.jhero__lead{font-size:clamp(20px,1.9vw,28px);font-weight:500;letter-spacing:-.012em;line-height:1.3;text-wrap:pretty}
/* the line that keeps changing its mind about who it wants to meet (js/page-careers.js) */
.jhero__now{font-size:clamp(17px,1.4vw,20px);line-height:1.4;color:var(--muted)}
.jhero__now b{display:block;min-height:1.15em;margin-top:6px;font-size:clamp(28px,3.2vw,50px);font-weight:800;letter-spacing:-.035em;line-height:1.05;color:var(--near)}
.jhero__now b span{display:inline-block}
.jhero__now b.is-out span{opacity:0;transform:translateY(-.35em);transition:opacity .3s ease,transform .3s ease}
.jhero__now b.is-in span{animation:rise .7s var(--ease-out) both}

/* ---------- WHO (dark): one row per kind of person; pointing at a row lights it, clicking it
   fills the role into the form (js/sentence-form.js, [data-fill-pick]) ---------- */
.who{background:var(--near);color:var(--cream);padding:clamp(96px,12vw,170px) var(--edge)}
.who__in{max-width:var(--wrap);margin-inline:auto}
.who__top{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:clamp(32px,6vw,112px);align-items:end}
.who__title{font-size:clamp(40px,5.6vw,88px);font-weight:700;letter-spacing:-.04em;line-height:.96;text-wrap:balance}
.who__lead{font-size:clamp(17px,1.4vw,20px);line-height:1.5;color:rgba(245,241,231,.74);text-wrap:pretty;padding-bottom:.35em}
.roles{list-style:none;margin-top:clamp(48px,6vw,96px)}
.role{border-top:1px solid rgba(245,241,231,.16)}
.role:last-child{border-bottom:1px solid rgba(245,241,231,.16)}
.role__btn{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr) auto;column-gap:clamp(20px,3vw,48px);align-items:center;width:100%;padding:clamp(16px,1.9vw,28px) 0;border:0;background:transparent;color:inherit;font-family:inherit;text-align:left;cursor:pointer}
/* the padding takes the hover gradient down past the g and y tails; the margin gives it back */
.role__name{font-size:clamp(30px,4.6vw,76px);font-weight:800;letter-spacing:-.045em;line-height:1;padding-bottom:.16em;margin-bottom:-.16em;color:rgba(245,241,231,.5);transition:color .3s ease,transform .6s var(--ease-out)}
.role__line{font-size:clamp(16px,1.35vw,20px);line-height:1.4;color:rgba(245,241,231,.6);transition:color .3s ease}
/* the marker is the logo X turned into a plus, like the FAQ toggle */
.role__go{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(245,241,231,.3);transition:background .3s ease,box-shadow .3s ease,transform .6s var(--ease-out)}
.role__go svg{width:16px;height:16px;transform:rotate(45deg)}
.role__go path{fill:var(--cream);transition:fill .3s ease}
.role__btn:focus-visible .role__name{color:transparent;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(100deg,var(--gold),var(--orange) 40%,var(--seal));transform:translateX(.18em)}
.role__btn:focus-visible .role__line{color:var(--cream)}
.role__btn:focus-visible .role__go{background:var(--orange);box-shadow:none;transform:rotate(90deg)}
.role__btn:focus-visible .role__go path{fill:var(--near)}
.role__btn:focus-visible{outline:2px solid var(--ring);outline-offset:4px;border-radius:8px}
@media(hover:hover){
  .role__btn:hover .role__name{color:transparent;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(100deg,var(--gold),var(--orange) 40%,var(--seal));transform:translateX(.18em)}
  .role__btn:hover .role__line{color:var(--cream)}
  .role__btn:hover .role__go{background:var(--orange);box-shadow:none;transform:rotate(90deg)}
  .role__btn:hover .role__go path{fill:var(--near)}
}

/* ---------- HOW IT WORKS (.callon): the picture as tall as the text beside it; the points
   deliberately close together (Navin) ---------- */
.callon{padding:clamp(96px,12vw,170px) var(--edge) 0}
.callon__in{max-width:var(--wrap);margin-inline:auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(32px,6vw,112px);align-items:stretch}
.callon__pic{position:relative;height:100%;min-height:340px;border-radius:var(--r-lg);overflow:hidden;background:#1a1a1d}
.callon__pic img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:42% 50%;transition:transform 1.8s var(--ease-out)}
@media(prefers-reduced-motion:no-preference){.fx-js:not(.fx-safe) .callon__pic:not(.is-in) img{transform:scale(1.1)}}
.callon__title{font-size:clamp(40px,5.6vw,88px);font-weight:700;letter-spacing:-.04em;line-height:.96;text-wrap:balance}
.callon__list{list-style:none;display:grid;grid-template-columns:1fr;row-gap:clamp(18px,2vw,28px);margin-top:clamp(24px,2.8vw,40px)}
.callon__list li{position:relative;display:flex;flex-direction:column;gap:6px;padding-top:clamp(16px,1.6vw,22px)}
.callon__list li::before,.callon__list li::after{content:"";position:absolute;left:0;top:0;height:2px}
.callon__list li::before{width:100%;background:rgba(11,11,13,.14)}
.callon__list li::after{width:100%;background:linear-gradient(90deg,var(--gold),var(--orange) 45%,var(--seal));transition:width 1.4s var(--ease-io) .2s}
@media(prefers-reduced-motion:no-preference){.fx-js:not(.fx-safe) .callon__list li:not(.is-in)::after{width:0}}
.callon__list li:nth-child(2),.callon__list li:nth-child(2)::after{transition-delay:.2s}
.callon__list li:nth-child(3),.callon__list li:nth-child(3)::after{transition-delay:.4s}
.callon__list b{font-size:clamp(24px,2.5vw,38px);font-weight:700;letter-spacing:-.03em;line-height:1.05;text-wrap:balance}
.callon__list span{font-size:clamp(16px,1.3vw,19px);line-height:1.4;color:rgba(11,11,13,.8);text-wrap:pretty}

/* ---------- SHOW US YOUR WORK: the sentence form (css/sentence-form.css), its heading hidden
   once sent ---------- */
.brief--join{padding-top:clamp(72px,9vw,128px)}
.brief--join .brief__in{opacity:1;animation:none}
.join__title{font-size:clamp(40px,5.6vw,88px);font-weight:700;letter-spacing:-.04em;line-height:.96;margin-bottom:clamp(36px,4.6vw,64px)}
.join__title[hidden]{display:none}

@media(max-width:900px){
  .jhero__row,.who__top{grid-template-columns:1fr;row-gap:24px}
  .role__btn{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}
  .role__line{grid-column:1;grid-row:2}
  .role__go{grid-row:1 / 3;grid-column:2;width:44px;height:44px}
  .callon__in{grid-template-columns:1fr;row-gap:36px}
  .callon__pic{height:auto;min-height:0;aspect-ratio:1}
}
@media(prefers-reduced-motion:reduce){
  .jhero__title span > i,.jhero__row{animation:none;opacity:1;transform:none}
  .jhero__now b.is-in span{animation:none}
  .callon__list li::after,.callon__pic img,.role__name{transition:none}
}
