/* Careers: photo header + animated "why work here" cards */
.careers-hero .about-hero-img{object-position:70% 40%}
.careers-hero{min-height:80vh}
.careers-hero .btn-row{margin-top:32px}

.cr-card{position:relative;overflow:hidden;transition:transform .5s var(--ease-out),box-shadow .5s,border-color .4s}
.cr-card::after{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--c);transform:scaleX(0);transform-origin:left;transition:transform .8s var(--ease-out) .2s}
.cr-card.in::after{transform:scaleX(1)}
.cr-card:hover{transform:translateY(-6px);box-shadow:0 40px 70px -45px rgba(14,13,20,.5);border-color:color-mix(in srgb,var(--c) 50%,transparent)}
.cr-art{height:104px;margin:-4px 0 18px;display:flex;align-items:center;justify-content:center;border-radius:16px;background:color-mix(in srgb,var(--c) 14%,#fff);padding:0 14px}
.cr-ic{height:84px;width:auto;overflow:visible}

/* 01: bars grow, then the tick lands */
.cr-bar{transform-box:fill-box;transform-origin:50% 100%;transform:scaleY(0)}
.cr-tick{transform-box:fill-box;transform-origin:center;transform:scale(0)}
.in .cr-bar{animation:cr-grow 3.6s var(--ease-out) infinite}
.in .cr-bar.b2{animation-delay:.15s}.in .cr-bar.b3{animation-delay:.3s}
.in .cr-tick{animation:cr-pop 3.6s cubic-bezier(.3,1.6,.5,1) .7s infinite}
@keyframes cr-grow{0%{transform:scaleY(0)}20%,85%{transform:scaleY(var(--h,1))}100%{transform:scaleY(0)}}
.cr-bar.b1{--h:.55}.cr-bar.b2{--h:.8}.cr-bar.b3{--h:1}
@keyframes cr-pop{0%{transform:scale(0)}12%,80%{transform:scale(1)}92%,100%{transform:scale(0)}}

/* 02: question, then a reply typing back */
.cr-b1,.cr-b2{transform-box:fill-box;opacity:0}
.cr-b1{transform-origin:0 100%}.cr-b2{transform-origin:100% 100%}
.in .cr-b1{animation:cr-msg 4s var(--ease-out) infinite}
.in .cr-b2{animation:cr-msg 4s var(--ease-out) .8s infinite}
@keyframes cr-msg{0%{opacity:0;transform:scale(.6) translateY(6px)}12%,80%{opacity:1;transform:none}95%,100%{opacity:0;transform:none}}
.in .cr-dot{animation:cr-type 1s ease-in-out infinite}
.cr-dot.d2{animation-delay:.15s!important}.cr-dot.d3{animation-delay:.3s!important}
@keyframes cr-type{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}

/* 03: the platforms swap places */
.cr-t{transform-box:fill-box}
.in .cr-t.t1{animation:cr-s1 6s ease-in-out infinite}
.in .cr-t.t2{animation:cr-s2 6s ease-in-out infinite}
.in .cr-t.t3{animation:cr-s3 6s ease-in-out infinite}
@keyframes cr-s1{0%,25%{transform:none}33%,58%{transform:translateX(29px)}66%,91%{transform:translateX(58px)}100%{transform:none}}
@keyframes cr-s2{0%,25%{transform:none}33%,58%{transform:translateX(29px)}66%,91%{transform:translateX(-29px)}100%{transform:none}}
@keyframes cr-s3{0%,25%{transform:none}33%,58%{transform:translateX(-58px)}66%,91%{transform:translateX(-29px)}100%{transform:none}}
.cr-link{opacity:.35}

/* 04: the idea lights up */
.cr-rays{opacity:0}
.in .cr-bulb{animation:cr-light 3s ease-in-out infinite}
.in .cr-rays{animation:cr-rays 3s ease-in-out infinite}
.in .cr-heads{animation:cr-nod 3s ease-in-out infinite}
@keyframes cr-light{0%,30%{fill:#FFF0B0}45%,85%{fill:#FCD73F}100%{fill:#FFF0B0}}
@keyframes cr-rays{0%,35%{opacity:0;transform:scale(.8)}50%,85%{opacity:1;transform:none}100%{opacity:0}}
.cr-rays{transform-box:fill-box;transform-origin:50% 100%}
@keyframes cr-nod{0%,40%,100%{transform:none}50%{transform:translateY(-3px)}60%{transform:none}}

/* hover: everything speeds up a little */
.cr-card:hover .cr-ic *{animation-duration:1.6s}
.cr-card:hover .cr-dot{animation-duration:.6s}

@media (prefers-reduced-motion:reduce){
  .cr-ic *{animation:none!important}
  .cr-bar{transform:scaleY(var(--h,1))}.cr-tick,.cr-b1,.cr-b2{transform:none;opacity:1}.cr-rays{opacity:1}
}

/* Cards fly in one after another as the row scrolls into view */
.js .cr-card.rv{opacity:0;transform:translateY(70px) scale(.94) rotate(-1.5deg);transition:opacity .7s var(--ease-out),transform 1s cubic-bezier(.2,.9,.25,1.1),box-shadow .5s,border-color .4s}
.js .cr-card.rv:nth-child(2){transform:translateY(90px) scale(.94) rotate(1deg);transition-delay:.12s}
.js .cr-card.rv:nth-child(3){transform:translateY(70px) scale(.94) rotate(-1deg);transition-delay:.24s}
.js .cr-card.rv:nth-child(4){transform:translateY(90px) scale(.94) rotate(1.5deg);transition-delay:.36s}
.js .cr-card.rv.in{opacity:1;transform:none}
.js .cr-card.rv.in:hover{transform:translateY(-6px);transition-delay:0s}
.cr-art .cr-ic{transform:scale(.6);opacity:0;transition:transform .8s cubic-bezier(.3,1.5,.5,1),opacity .4s}
.cr-card:nth-child(1) .cr-ic{transition-delay:.45s}.cr-card:nth-child(2) .cr-ic{transition-delay:.57s}.cr-card:nth-child(3) .cr-ic{transition-delay:.69s}.cr-card:nth-child(4) .cr-ic{transition-delay:.81s}
.cr-card.in .cr-ic{transform:none;opacity:1}
html:not(.js) .cr-art .cr-ic{transform:none;opacity:1}
@media (prefers-reduced-motion:reduce){.js .cr-card.rv,.cr-art .cr-ic{opacity:1!important;transform:none!important;transition:none}}

/* ---------- How hiring works: icon timeline + live application tracker ---------- */
.hp-stages>li{padding-bottom:64px}
.hp-stages>li::before{display:none}
.hp-stages>li::after{background:rgba(14,13,20,.12);left:22px;top:52px;bottom:6px}
.hp-node{position:absolute;left:0;top:0;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--muted);border:2px solid rgba(14,13,20,.14);z-index:1;transition:background-color .5s,color .4s,border-color .4s,transform .6s cubic-bezier(.3,1.6,.5,1),box-shadow .5s}
.hp-node svg{width:20px;height:20px}
.hp-node b{position:absolute;right:-8px;top:-8px;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--ink);color:#fff;font-family:var(--mono);font-size:12px;font-weight:700;display:grid;place-items:center;letter-spacing:0}
.hp-fill{position:absolute;left:22px;top:52px;bottom:6px;width:2px;background:var(--c);transform:scaleY(0);transform-origin:top;transition:transform .8s var(--ease-out)}
.hp-st:last-child .hp-fill{display:none}
.hp-st h3,.hp-st p{transition:opacity .5s,color .4s}
.js .hp-st:not(.reached) h3,.js .hp-st:not(.reached) p{opacity:.45}
.hp-st.reached .hp-node{background:var(--c);border-color:var(--c);color:#fff;transform:scale(1.08)}
.hp-st[data-st="3"].reached .hp-node{color:var(--ink)}
.hp-st.now .hp-node{box-shadow:0 0 0 7px color-mix(in srgb,var(--c) 22%,transparent)}
.hp-st.done .hp-fill{transform:scaleY(1)}
.hp-st.now .hp-node svg{animation:hp-wiggle 1.8s ease-in-out infinite}
@keyframes hp-wiggle{0%,60%,100%{transform:none}70%{transform:rotate(-12deg)}80%{transform:rotate(10deg)}90%{transform:rotate(-6deg)}}

/* tracker card */
.hp-tracker{position:relative;margin-top:36px;max-width:440px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 40px 80px -55px rgba(14,13,20,.45);overflow:hidden}
.hp-top{display:flex;align-items:center;gap:12px}
.hp-av{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#FFB3C1,#FF8FB1);color:var(--ink);font-weight:700;font-size:13px}
.hp-t{margin:0;font-weight:700;font-size:16px}
.hp-s{margin:0;font-family:var(--mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.hp-stat{margin-left:auto;font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.hp-stat i{font-style:normal;padding:5px 10px;border-radius:999px;background:var(--violet-soft);color:var(--violet-ink)}
.hp-stat-b{display:none;background:#DDF4DE!important;color:#0B6B0E!important}
.hp-offer .hp-stat-a{display:none}.hp-offer .hp-stat-b{display:inline-block}
.hp-prog{height:6px;border-radius:6px;background:var(--paper-2);margin:18px 0 8px;overflow:hidden}
.hp-prog span{display:block;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,#4E4EE9,#00C9B8,#FCD73F,#00B206);background-size:440px 100%;transition:width .8s var(--ease-out)}
.hp-rows{list-style:none;margin:0;padding:0}
.hp-row{display:flex;align-items:center;gap:12px;padding:11px 4px;border-bottom:1px solid var(--line)}
.hp-row:last-child{border-bottom:0}
.hp-ri{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--paper);color:var(--muted);transition:background-color .4s,color .4s}
.hp-ri svg{width:16px;height:16px}
.hp-rn{font-weight:650;font-size:14.5px;color:var(--muted);transition:color .4s}
.hp-pill{margin-left:auto;font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.hp-pill i{font-style:normal;padding:4px 9px;border-radius:999px;display:none}
.p-next{background:var(--paper);color:var(--muted)}
.p-now{background:color-mix(in srgb,var(--c) 22%,#fff);color:var(--ink)}
.p-done{background:#DDF4DE;color:#0B6B0E}
.hp-row .p-next{display:inline-block}
.hp-row.now .p-next,.hp-row.done .p-next{display:none}
.hp-row.now .p-now{display:inline-block;animation:hp-blink 1.6s ease-in-out infinite}
.hp-row.done .p-done{display:inline-block}
@keyframes hp-blink{50%{opacity:.55}}
.hp-row.now .hp-ri,.hp-row.done .hp-ri{background:var(--c);color:#fff}
.hp-row[data-st="3"].now .hp-ri,.hp-row[data-st="3"].done .hp-ri{color:var(--ink)}
.hp-row.now .hp-rn,.hp-row.done .hp-rn{color:var(--ink)}
.hp-row.now{background:linear-gradient(90deg,color-mix(in srgb,var(--c) 10%,transparent),transparent);border-radius:12px}
/* confetti when the offer goes out */
.hp-confetti{position:absolute;inset:0;pointer-events:none}
.hp-confetti i{position:absolute;top:-10px;width:7px;height:11px;border-radius:2px;opacity:0}
.hp-confetti i:nth-child(4n+1){background:#4E4EE9}.hp-confetti i:nth-child(4n+2){background:#00C9B8}.hp-confetti i:nth-child(4n+3){background:#FCD73F}.hp-confetti i:nth-child(4n){background:#FE5E54}
.hp-offer .hp-confetti i{animation:hp-fall 1.8s cubic-bezier(.2,.6,.4,1) forwards}
@keyframes hp-fall{0%{opacity:1;transform:translateY(0) rotate(0)}100%{opacity:0;transform:translateY(340px) rotate(540deg)}}

@media (max-width:980px){.hp-tracker{display:none}}
@media (prefers-reduced-motion:reduce){.hp-st.now .hp-node svg,.hp-row.now .p-now,.hp-offer .hp-confetti i{animation:none}}

.hp-confetti i:nth-child(1){left:34%;animation-delay:0.30s!important}
.hp-confetti i:nth-child(2){left:20%;animation-delay:0.18s!important}
.hp-confetti i:nth-child(3){left:81%;animation-delay:0.24s!important}
.hp-confetti i:nth-child(4){left:78%;animation-delay:0.03s!important}
.hp-confetti i:nth-child(5){left:5%;animation-delay:0.45s!important}
.hp-confetti i:nth-child(6){left:64%;animation-delay:0.13s!important}
.hp-confetti i:nth-child(7){left:33%;animation-delay:0.10s!important}
.hp-confetti i:nth-child(8){left:64%;animation-delay:0.27s!important}
.hp-confetti i:nth-child(9){left:74%;animation-delay:0.24s!important}
.hp-confetti i:nth-child(10){left:85%;animation-delay:0.43s!important}
.hp-confetti i:nth-child(11){left:33%;animation-delay:0.32s!important}
.hp-confetti i:nth-child(12){left:70%;animation-delay:0.19s!important}
.hp-confetti i:nth-child(13){left:5%;animation-delay:0.34s!important}
.hp-confetti i:nth-child(14){left:12%;animation-delay:0.08s!important}

/* keep heading, intro and tracker together in one view */
.hp-col{top:calc(var(--header-h) + 24px)}
.hp-col .head-row{margin-bottom:18px!important;display:block}
.hp-col .head-row .h2{font-size:clamp(34px,3.6vw,56px)}
.hp-col .body-l{margin:0;max-width:46ch}
.hp-col .hp-tracker{margin-top:24px;padding:16px 18px}
.hp-col .hp-prog{margin:14px 0 4px}
.hp-col .hp-row{padding:8px 4px}

/* Pinned: the section holds still while scrolling steps through the four stages */
.hp-pinned.hp-pin{height:calc(100vh + 220vh);padding:0}
.hp-pinned.hp-pin>.wrap{position:sticky;top:0;height:100vh;height:100svh;padding-top:calc(var(--header-h) + 8px);padding-bottom:24px;align-items:center;align-content:center}
.hp-pinned .hp-col{position:static}
.hp-pinned .hp-stages>li{padding-bottom:40px}
.hp-pinned .hp-stages>li:last-child{padding-bottom:0}
.hp-dots{display:none}
.hp-pinned .hp-dots{display:flex;gap:6px;margin-top:16px}
.hp-dots i{width:22px;height:4px;border-radius:4px;background:rgba(14,13,20,.15);transition:background-color .3s,width .3s}
.hp-dots i.on{background:var(--ink);width:34px}

/* Life at mutherboard (QA refinement): culture explained, a moment to reflect, then one Joining chapter */
.cw-p{margin:12px 0 0;font-size:16px;line-height:1.55;color:var(--ink-2)}
.lf-fit{text-align:center;padding:var(--sp-related) 0 var(--sp-chapter)}
.lf-fit .h2{margin:0 auto 20px;max-width:18ch}
.lf-fit .lede{margin:0 auto;max-width:56ch}
.lf-join{background:var(--violet-soft)}
.lf-join-in{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(28px,5vw,72px);align-items:start}
.lf-join .lede{margin-top:20px}
.lf-roles{background:#fff;border-radius:24px;padding:clamp(24px,3vw,36px);box-shadow:0 30px 60px -44px rgba(22,16,79,.45)}
.lf-roles-h{font-family:var(--sans);font-weight:700;font-size:20px;margin:0 0 8px}
.lf-roles p{margin:0 0 20px;color:var(--ink-2)}
@media (max-width:860px){.lf-join-in{grid-template-columns:1fr}}
