/* Careers (/careers), modelled on anam.ai/api: a full-bleed colour hero with
   floating planes at an angle, dashed-outline boxes, dot-matrix figures, a
   numbered "how it works" beside a fan of cards, three ticked columns, two
   boxes with app windows, and a black footer with a giant wordmark. Anam's
   orange is Getsal green throughout. */

.careers-page { --g-text: #00a556; --dash: rgba(0, 191, 99, .55); --wrapw: 1240px; }
.c-body > .scrolly { margin-top: 0; }
.c-wrap { max-width: var(--wrapw); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.g { color: var(--g-text); }

/* The nav sits clear over the green hero, then takes its usual bar once you scroll */
.careers-page .nav { transition: background .3s, backdrop-filter .3s; }
.careers-page .nav.clear { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Hero */
.c-hero { position: relative; overflow: hidden; background: var(--green); color: var(--ink); min-height: min(820px, 100vh); }
.c-hero-in {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  min-height: min(820px, 100vh); padding-top: calc(var(--nav) + clamp(40px, 8vh, 96px)); padding-bottom: clamp(36px, 6vh, 64px);
}
.c-hero-copy { align-self: center; display: grid; justify-items: start; gap: 30px; z-index: 1; }
.c-h1 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.06; }
.c-h1 span { display: block; }
.c-h1 span + span { color: rgba(10, 10, 10, .58); }
.c-points { list-style: none; display: grid; gap: 10px; grid-column: 1; align-self: end; z-index: 1; margin-top: 40px; }
.c-points li { padding-left: 12px; border-left: 2px solid rgba(10, 10, 10, .35); font-size: 15px; color: rgba(10, 10, 10, .62); }
.c-points b { color: var(--ink); }
.ray { position: absolute; left: -10%; width: 130%; height: 1px; background: rgba(255, 255, 255, .35); transform: rotate(-24deg); }
.ray.r1 { top: 18%; }
.ray.r2 { top: 86%; transform: rotate(-24deg) translateY(40px); background: rgba(255, 255, 255, .22); }

.iso-wrap { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; min-height: 420px; }
.iso { position: relative; width: 300px; height: 210px; transform: rotateX(56deg) rotateZ(-40deg) scale(1.3); transform-style: preserve-3d; }
.hatch, .plane { position: absolute; inset: 0; border-radius: 16px; }
.hatch {
  transform: translate3d(70px, 60px, -30px) scale(1.25);
  background: repeating-linear-gradient(90deg, rgba(10, 10, 10, .09) 0 2px, transparent 2px 9px);
}
.plane {
  border: 1.5px dashed rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .16);
  display: grid; place-items: center; padding: 18px; transform: translateZ(var(--z));
  animation: float 6s ease-in-out infinite; animation-delay: var(--d);
}
.plane.p1 { --z: 0px; --d: 0s; }
.plane.p2 { --z: 80px; --d: -2s; background: rgba(255, 255, 255, .22); }
.plane.p3 { --z: 160px; --d: -4s; background: rgba(255, 255, 255, .1); }
@keyframes float { 50% { transform: translateZ(calc(var(--z) + 16px)); } }
.plane svg { width: 100%; height: 100%; }
.plane .bars rect { fill: rgba(255, 255, 255, .92); transform-box: fill-box; transform-origin: center; animation: talk 1.4s ease-in-out infinite; }
.plane .bars rect:nth-child(3n) { animation-delay: -.4s; }
.plane .bars rect:nth-child(3n+1) { animation-delay: -.9s; }
@keyframes talk { 50% { transform: scaleY(.45); } }
.plane .dot { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0.1 28; }
.pl-row { display: grid; grid-template-columns: 22px 1fr 12px; align-items: center; gap: 12px; width: 100%; padding: 7px 0; }
.pl-av { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.pl-bar { height: 7px; border-radius: 9px; background: rgba(255, 255, 255, .7); }
.pl-tick { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .8); }
.pl-tick.on { background: var(--ink); border-color: var(--ink); }

/* Body boxes: dashed outlines, square corners */
.c-body { display: grid; gap: clamp(40px, 6vh, 64px); padding-top: clamp(56px, 9vh, 96px); }
.box { border: 1px dashed var(--dash); padding: clamp(24px, 3.4vw, 44px); background: rgba(255, 255, 255, .25); }
.box h2, .box h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.12; }
.box h2 { color: #8e8f88; }
.box > p, .split-copy > p, .how-copy > p { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 440px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.split-copy { display: grid; justify-items: start; gap: 18px; }
.leds { display: flex; flex-wrap: wrap; gap: 26px 34px; margin-top: 18px; }
.led { display: grid; gap: 10px; }
.led-num { height: 36px; width: auto; overflow: visible; }
.led-num circle { fill: var(--green); opacity: 0; transition: opacity .35s ease; transition-delay: var(--t); }
.in .led-num circle { opacity: 1; }
.led span { font-size: 13px; color: var(--ink-2); max-width: 120px; line-height: 1.35; }
.rise { width: 100%; height: clamp(260px, 30vw, 360px); display: block; }

.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; padding: 0; }
.how-copy { padding: clamp(24px, 3.4vw, 44px); padding-bottom: 0; display: grid; gap: 14px; align-content: start; border-right: 1px dashed var(--dash); }
.steps { list-style: none; margin: 12px calc(-1 * clamp(24px, 3.4vw, 44px)) 0; border-top: 1px dashed var(--dash); }
.step { position: relative; border-bottom: 1px solid #e3e4de; transition: background .35s; }
/* The open step's rule fills green as you scroll through it */
.step::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
}
.step.on::after { transform: scaleX(var(--sp, 1)); }
.step:last-child { border-bottom-color: transparent; }
/* Not pinned (phones, short screens): every step shows open, the line stays plain */
html:not(.pin-ok) .step.on { background: none; }
html:not(.pin-ok) .step::after { display: none; }
.step-h { display: flex; align-items: center; gap: 14px; padding: 16px clamp(24px, 3.4vw, 44px); color: var(--ink); }
.step .num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  font-size: 13px; font-weight: 700; color: var(--g-text); background: rgba(0, 191, 99, .1);
}
.step b { font-size: 17px; letter-spacing: -0.01em; }
.step p {
  max-height: 0; overflow: hidden; opacity: 0; color: var(--ink-2); font-size: 15px;
  padding: 0 clamp(24px, 3.4vw, 44px) 0 calc(clamp(24px, 3.4vw, 44px) + 40px);
  transition: max-height .45s ease, opacity .45s ease, padding .45s ease;
}
.step.on { background: rgba(0, 191, 99, .08); }
.step.on .num { background: var(--green); color: var(--ink); }
.step.on p { max-height: 5em; opacity: 1; padding-bottom: 18px; margin-top: -6px; }

.fan-wrap { position: relative; display: grid; place-items: center; min-height: 460px; perspective: 1400px; overflow: hidden; }
.fan { position: relative; width: 170px; height: 230px; transform: rotateX(14deg) rotateY(-34deg) translateX(-160px); transform-style: preserve-3d; }
.fcard {
  position: absolute; inset: 0; border-radius: 18px; border: 1.5px dashed #c6c7c0; background: rgba(255, 255, 255, .78);
  display: grid; align-content: start; gap: 10px; padding: 22px 18px;
  transform: translate3d(calc(var(--i) * 64px), calc(var(--i) * -18px), calc(var(--i) * -70px));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .4s, background .4s, box-shadow .4s;
}
.fcard.on {
  border: 2px solid var(--green); background: var(--white); box-shadow: 0 24px 50px -24px rgba(0, 120, 60, .45);
  transform: translate3d(calc(var(--i) * 64px), calc(var(--i) * -18px - 18px), calc(var(--i) * -70px + 30px));
}
.ficon { width: 56px; height: 56px; margin-bottom: 14px; }
.ficon .s { fill: none; stroke: #b7b8b1; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ficon .d { stroke-dasharray: 3 4; }
.ficon .f { fill: #e2e3dd; }
.fcard.on .ficon .s { stroke: var(--green); }
.fcard.on .ficon .f { fill: rgba(0, 191, 99, .2); }
.fbar { display: block; height: 7px; border-radius: 9px; background: #e6e7e1; }
.fbar.w70 { width: 70%; } .fbar.w45 { width: 45%; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.col { display: grid; grid-template-rows: auto auto 1fr; gap: 20px; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid #e3e4de; font-size: 15px; color: var(--ink-2); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%2300bf63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.col-art { align-self: end; }
.col-art svg { width: 100%; height: auto; display: block; }
.col-art .s { fill: none; stroke: var(--green); stroke-width: 1.5; }
.col-art .d { stroke-dasharray: 3 4; }
.col-art .f { fill: var(--green); }
.col-art .solid { stroke-dasharray: 4 3; stroke-width: 2; }
.col-art .tint { fill: rgba(0, 191, 99, .12); }
.col-art .tintp { fill: rgba(0, 191, 99, .14); }
.col-art .hl { stroke-opacity: .5; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.duo-box { display: grid; justify-items: start; gap: 16px; align-content: start; }
.duo-box h2 { max-width: 420px; }
.win { width: 100%; margin-top: 20px; background: var(--white); border: 1px solid #e3e4de; border-radius: 12px; overflow: hidden; }
.win-top { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #efefea; }
.win-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.win-body { padding: 18px; display: grid; gap: 10px; min-height: 180px; }
.fld { display: block; height: 30px; border-radius: 8px; background: #f2f2ee; }
.fld.tall { height: 64px; }
.fld.go { width: 110px; height: 32px; border-radius: 999px; background: var(--green); justify-self: end; animation: nudge 3s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 191, 99, .8); } }
.chat-mock { align-content: start; }
.msg { display: flex; align-items: center; gap: 4px; height: 30px; border-radius: 14px; background: #f2f2ee; padding: 0 12px; }
.msg.out { justify-self: end; background: rgba(0, 191, 99, .16); }
.msg.w60 { width: 60%; } .msg.w45 { width: 45%; } .msg.w70 { width: 70%; } .msg.w35 { width: 64px; }
.typing b { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: typing 1.2s ease-in-out infinite; }
.typing b:nth-child(2) { animation-delay: .15s; } .typing b:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: .5; } }

/* Security: how the site protects applicants, with a dot-drawn padlock */
.sec { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.sec-copy { display: grid; justify-items: start; gap: 18px; }
.sec-copy > p { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 460px; }
.sec .led { margin-top: 6px; }
.sec .led span { max-width: 240px; }
.sec-list { list-style: none; width: 100%; margin-top: 10px; }
.sec-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid #e3e4de; }
.sec-list svg { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sec-list b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.sec-list p { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.sec-art { display: grid; place-items: center; align-self: stretch; }
.lock { width: min(100%, 300px); height: auto; overflow: visible; }
.lock circle { fill: var(--green); opacity: .3; animation: lockscan 3.4s ease-in-out infinite; animation-delay: calc(var(--r) * 110ms); }
.lock circle.hole { fill: #d6d7d0; opacity: .7; animation: none; }
@keyframes lockscan { 0%, 60%, 100% { opacity: .3; } 18% { opacity: 1; } }

/* Questions about the role: always open, two ruled columns */
.faq .qa-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 56px); margin-top: 22px; }
.faq .qa { padding: 18px 0; border-top: 1px solid #e3e4de; }
.faq .qa h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.faq .qa p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Footer: black panel, link columns, the wordmark across the bottom */
.c-foot { margin: clamp(80px, 12vh, 140px) 12px 12px; padding: clamp(40px, 6vw, 72px) clamp(24px, 7vw, 100px) 28px; border-radius: 28px; background: var(--ink); color: var(--white); }
.c-foot-cols { display: flex; flex-wrap: wrap; gap: 32px clamp(48px, 9vw, 140px); }
.c-foot-cols div { display: grid; gap: 10px; align-content: start; }
.c-foot-cols p { font-size: 14px; color: #8b8c86; }
.c-foot-cols a, .c-foot-cols span { font-size: 15px; color: #e8e9e3; text-decoration: none; }
.c-foot-cols a:hover { color: var(--green); }
.c-foot-base { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 8vw, 96px); }
.c-foot-mark { width: clamp(96px, 9vw, 132px); height: auto; }
.c-foot-copy { font-size: 13px; color: #8b8c86; }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .c-hero-in { grid-template-columns: 1fr; grid-template-rows: auto; }
  .iso-wrap { grid-column: 1; grid-row: auto; min-height: 340px; }
  .iso { transform: rotateX(56deg) rotateZ(-40deg) scale(.82); }
  .c-points { grid-row: auto; margin-top: 0; }
  .split, .how, .duo, .sec { grid-template-columns: 1fr; }
  .faq .qa-list { grid-template-columns: 1fr; }
  .sec-art { order: -1; }
  .lock { width: 180px; }
  .how-copy { border-right: 0; border-bottom: 1px dashed var(--dash); padding-bottom: 0; }
  .fan-wrap { min-height: 380px; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .iso-wrap { min-height: 280px; }
  .iso { transform: rotateX(56deg) rotateZ(-40deg) scale(.66); }
  .fan { transform: rotateX(14deg) rotateY(-34deg) translateX(-90px) scale(.85); }
  .c-foot { margin-left: 8px; margin-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .plane, .plane .bars rect, .fld.go, .typing b, .lock circle { animation: none; }
  .lock circle { opacity: 1; }
  .rv { opacity: 1; transform: none; transition: none; }
  .led-num circle { opacity: 1; transition: none; }
}
