/* Careers (client 2026-11-18). Built on about.css: the same bar, intro,
   sticky stage, reveal timing, contact block and footer, so the two pages
   read as one site. Only what is new to this page lives here. */

.careers-intro { background: #1f1712; }
.careers-intro h1 { max-width: 7ch; }
.careers-kicker { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; margin-bottom: 22px !important; }

/* A gold band between the intro and the roles */
.careers-trust { background: var(--gold); color: #17110a; padding: clamp(80px, 10vw, 150px) var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: end; }
.careers-trust h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 7vw, 120px); line-height: .95; max-width: 9ch; }
.careers-trust > p { font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; line-height: 1.4; max-width: 34ch; }
.careers-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid rgba(23,17,10,.25); margin-top: clamp(10px, 2vw, 30px); }
.careers-facts li { padding: 28px 0 0; display: flex; flex-direction: column; gap: 6px; }
.careers-facts li + li { padding-left: clamp(18px, 3vw, 44px); border-left: 2px solid rgba(23,17,10,.25); }
.careers-facts b { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 6vw, 96px); line-height: 1; }
.careers-facts span { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }

/* The sticky stage shows a drawn illustration for the role in view. Each
   one is built from that role's scroll progress --p (0 to 1, set by
   careers.js), with slow idle motion so it never sits dead still. */
.careers-stage { background: radial-gradient(120% 80% at 30% 20%, #2a1c12 0%, #120f0c 60%); }
.careers-stage .team-stage-photo { aspect-ratio: auto; left: 20px; right: 20px; max-width: none; background: transparent; display: flex; align-items: center; justify-content: center; transform: translateY(var(--stage-shift, 0px)) rotate(var(--stage-rotate, 0deg)) scale(var(--stage-scale, 1)); }
.careers-stage .team-stage-photo::before, .careers-stage .team-stage-photo::after { transform: none; }
.careers-art svg { width: min(100%, 520px); height: 100%; max-height: 640px; overflow: visible; clip-path: inset(0 var(--stage-cover-right, 0%) 0 var(--stage-cover-left, 0%)); }
.careers-stage-count { position: absolute; z-index: 2; left: 36px; top: 30px; margin: 0; font-family: var(--display); font-size: clamp(90px, 10vw, 170px); line-height: .85; color: var(--ink); text-shadow: 0 6px 30px rgba(0,0,0,.45); }
.careers-stage-count small { font-size: .32em; color: var(--gold); margin-left: 6px; }
.careers-stage-count span { display: inline-block; transition: transform .45s var(--ease), opacity .3s ease; }
.careers-stage-count.is-changing span { transform: translateY(18px); opacity: 0; }
.careers-role-art { display: none; }

.art { font-family: var(--text); }
.art * { transform-box: fill-box; }
.art-tags, .art-tags text { fill: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-anchor: middle; }
.spin-slow { transform-origin: center; animation: art-spin 60s linear infinite; }
.spin-rev { transform-origin: center; animation: art-spin 45s linear infinite reverse; }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-float { 50% { transform: translateY(-10px); } }
@keyframes art-blink { 50% { opacity: 0; } }

/* Data Protection Officer: the shield draws itself and the lock clicks shut */
.art-grid path { stroke: #2c2620; stroke-width: 1; fill: none; }
.ring { fill: none; stroke-width: 1.5; }
.ring-dash { stroke: rgba(232,184,75,.35); stroke-dasharray: 6 12; }
.ring-dot { stroke: rgba(255,90,31,.4); stroke-dasharray: 1 9; stroke-linecap: round; stroke-width: 3; }
.shield-fill { fill: var(--heat); fill-opacity: calc(.04 + var(--p, 0) * .16); }
.shield-line { fill: none; stroke: var(--heat); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: max(0, calc(1 - var(--p, 0) * 1.7)); filter: drop-shadow(0 0 12px rgba(255,90,31,.55)); }
.scan rect { fill: rgba(232,184,75,.7); }
.scan { animation: art-scan 3.4s var(--ease) infinite; }
@keyframes art-scan { 0% { transform: translateY(130px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(370px); opacity: 0; } }
.lock { transform-origin: center; transform: scale(calc(.85 + min(1, var(--p, 0) * 1.6) * .15)); }
.lock-body { fill: var(--gold); }
.lock-hole { fill: #120f0c; }
.lock-shackle { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; transform: translateY(calc((1 - min(1, var(--p, 0) * 1.9)) * -16px)); }
.packet { fill: var(--gold); opacity: 0; animation: art-packet 3.5s ease-in infinite; animation-delay: var(--d); }
@keyframes art-packet { 0% { transform: translate(var(--x), var(--y)); opacity: 0; } 20% { opacity: 1; } 80% { opacity: .9; } 100% { transform: translate(0, 0) scale(.4); opacity: 0; } }

/* Customer Experience: messages pop in as you read */
.phone { fill: #17130f; stroke: #3a3128; stroke-width: 3; }
.phone-notch, .phone-bar { fill: #2c2620; }
.msg { --show: clamp(0, calc((var(--p, 0) - var(--i) * .14) * 7), 1); transform-origin: center; opacity: var(--show); transform: translateY(calc((1 - var(--show)) * 14px)) scale(calc(.9 + var(--show) * .1)); }
.msg-in { fill: #2c2620; }
.msg-out { fill: var(--heat); }
.msg-line { fill: #5b5249; }
.msg-line.light { fill: rgba(255,255,255,.75); }
.typing { fill: var(--soft); animation: art-float 1s ease-in-out infinite; animation-delay: var(--d); }
.floaty { animation: art-float 4s ease-in-out infinite; animation-delay: var(--d); }
.bubble-ring { fill: rgba(255,90,31,.12); stroke: rgba(255,90,31,.5); stroke-width: 1.5; }
.heart { fill: var(--hot); }
.star { fill: var(--gold); }
.at { fill: var(--heat); font-size: 22px; font-weight: 700; text-anchor: middle; }

/* Engineer: the code types itself, gears turn with the scroll */
.window { fill: #15110e; stroke: #3a3128; stroke-width: 2; }
.window-bar { fill: #221c16; }
.code-line { transform-origin: left center; transform: scaleX(clamp(0, calc((var(--p, 0) - var(--i) * .1) * 5), 1)); }
.cursor { fill: var(--ink); animation: art-blink 1s steps(1) infinite; }
.brackets { fill: var(--gold); font-family: var(--display); font-size: 64px; text-anchor: middle; opacity: calc(.35 + var(--p, 0) * .65); }
.gear-body { fill: #2c2620; stroke: var(--heat); stroke-width: 3; }
.gear-hole { fill: #120f0c; }
.gear-teeth { stroke: var(--heat); stroke-width: 6; stroke-linecap: round; }
.spin-scroll { transform-origin: center; transform: rotate(calc(var(--p, 0) * 360deg * var(--speed))); }
.device { fill: #1d1914; stroke: #3a3128; stroke-width: 2; }
.device-lines { stroke: #3a3128; stroke-width: 3; stroke-linecap: round; }
.pipe { fill: none; stroke: rgba(255,90,31,.6); stroke-width: 2.5; stroke-dasharray: 6 8; animation: art-flow 1.2s linear infinite; }
@keyframes art-flow { to { stroke-dashoffset: -28; } }
.pipe-dot { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(232,184,75,.8)); }

/* Field Operations: the route draws town by town, venues count up */
.contours ellipse { fill: none; stroke: #2c2620; stroke-width: 1.2; stroke-dasharray: 2 6; }
.route-ghost { fill: none; stroke: #3a3128; stroke-width: 3; stroke-dasharray: 4 8; }
.route-path { fill: none; stroke: var(--heat); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); filter: drop-shadow(0 0 8px rgba(255,90,31,.5)); }
.pin { opacity: clamp(.25, calc((var(--p, 0) - var(--at)) * 12 + .25), 1); }
.pin circle { fill: var(--gold); stroke: #120f0c; stroke-width: 3; }
.pin text { fill: var(--ink); font-size: 12px; font-weight: 700; }
.car-glow { fill: rgba(255,90,31,.25); animation: art-pulse 1.4s ease-in-out infinite; transform-origin: center; }
.car-dot { fill: var(--heat); stroke: #fff; stroke-width: 2; }
@keyframes art-pulse { 50% { transform: scale(1.6); opacity: .4; } }
.count-num { fill: var(--gold); font-family: var(--display); font-size: 40px; text-anchor: middle; }
.count-label { fill: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-anchor: middle; }

/* With ?still the drawings show finished and stay still */
.calm .careers-art, .calm .careers-role { --p: 1 !important; }
.calm .art, .calm .art * { animation: none !important; }

.careers-role { min-height: 100svh; padding: clamp(70px, 8vw, 120px) clamp(32px, 5vw, 78px); display: flex; flex-direction: column; justify-content: center; background: #171411; }
.careers-role:nth-of-type(2) { background: #221912; }
.careers-role:nth-of-type(3) { background: #1a1510; }
.careers-role:nth-of-type(4) { background: #251b13; }
.careers-role-tag { color: var(--heat); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.careers-role h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(46px, 4.4vw, 78px); line-height: 1; margin-top: 18px !important; max-width: 16ch; text-wrap: balance; }
.careers-role-line { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; max-width: 40ch; margin-top: 24px !important; color: var(--ink); }
.careers-role-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(34px, 4vw, 54px); }
.careers-role h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.careers-role ul { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.careers-role li { position: relative; padding-left: 22px; color: var(--soft); line-height: 1.5; font-size: 16px; }
.careers-role li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--heat-grad); }
.careers-apply { align-self: flex-start; display: inline-flex; align-items: center; gap: 18px; margin-top: clamp(34px, 4vw, 50px); padding: 15px 26px; border-radius: 999px; background: var(--heat-grad); color: #fff; font-weight: 700; transition: transform .35s var(--ease), gap .25s var(--ease), filter .25s; }
.careers-apply:hover { transform: translateY(-3px); gap: 26px; filter: brightness(1.1); }

.careers-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; width: 100%; }
.careers-steps li { display: flex; gap: 18px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.careers-steps b { font-family: var(--display); font-weight: 400; color: var(--heat); font-size: 30px; line-height: 1; min-width: 44px; }
.careers-steps span { font-weight: 500; line-height: 1.45; }
.team-contact-copy > p.careers-note { color: var(--soft); font-size: 15px; font-weight: 500; margin-top: 16px; }
.careers-contact .team-contact-image img { object-position: center 35%; }

@media (max-width: 1000px) {
  .careers-role-cols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .careers-trust { grid-template-columns: 1fr; padding: 90px 22px; }
  .careers-facts b { font-size: clamp(40px, 11vw, 64px); }
  .careers-facts span { font-size: 12px; }
  .careers-stage { display: none; }
  .careers-role { min-height: auto; padding: 0 22px 80px; }
  .careers-role-art { display: block; margin: 0 -22px 40px; height: min(100vw, 440px); padding: 20px 0; background: radial-gradient(120% 80% at 30% 20%, #2a1c12 0%, #120f0c 70%); }
  .careers-role-art svg { width: 100%; height: 100%; }
  .careers-role h2 { font-size: clamp(40px, 10vw, 60px); }
  .careers-apply { align-self: stretch; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .careers-art, .careers-role { --p: 1 !important; }
  .art, .art * { animation: none !important; }
  .careers-stage-count span { transition: none; }
  .careers-stage .team-stage-photo { transform: none !important; }
}
