/* Nov 9: the jobs-first candidates page. A photoreal hero loop (blue hour, a site leader on the top deck) behind the
   approved hero copy, the open searches straight under it, a card into The Ascent (/journey), then how we help and
   the testimonials. Brand navy #0F1E2E for the shade; the page below is the site's near-black. */
.candidate-jobs{--cj-navy:15,30,46;--cj-bg:#050b0f;background:var(--cj-bg)}
.candidate-jobs .top{background:linear-gradient(180deg,rgba(var(--cj-navy),.55),rgba(var(--cj-navy),0))}

/* Hero: full-bleed loop, navy shade, copy on the dark left. The poster paints first; the height never changes. */
.cj-hero{position:relative;min-height:100svh;min-height:max(100svh,720px);display:flex;align-items:flex-end;overflow:hidden;isolation:isolate;background:#0f1e2e url(/assets/site/video/jj-candidates-hero-poster.webp?v=2) 70% center/cover no-repeat}
.cj-media{position:absolute;inset:0;z-index:-2}
.cj-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% center;display:block}
.cj-shade{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(var(--cj-navy),0) 52%,rgba(var(--cj-navy),.55) 78%,var(--cj-bg) 100%),
             linear-gradient(90deg,rgba(var(--cj-navy),.9) 0%,rgba(var(--cj-navy),.7) 38%,rgba(var(--cj-navy),.18) 65%,rgba(var(--cj-navy),0) 100%)}
.cj-hero-in{position:relative;width:min(640px,100%);padding:150px var(--gutter) 96px}
.cj-hero h1{font:500 clamp(60px,7.2vw,132px)/.94 var(--sans);letter-spacing:-.075em;margin:0 0 6px;color:#eef2f0;text-shadow:0 2px 30px rgba(var(--cj-navy),.55)}
.cj-hero h1>span{display:block;padding-bottom:.08em}
.cj-hero h1 em{font-weight:400;font-family:var(--serif);letter-spacing:-.07em;color:#d6b785}
.cj-hero .service-lead{color:#dfe7ea}
.cj-hero .explore{margin-top:34px;color:#dfe7ea;text-decoration:none}
.cj-hero .explore small{color:#a9bcc5}
.cj-motion{position:absolute;right:var(--gutter);bottom:26px;z-index:2;cursor:pointer}
.cj-motion[hidden]{display:none}
/* Reduced motion: no video, the full-quality still instead. */
@media (prefers-reduced-motion: reduce){.cj-video{display:none}.cj-hero{background-image:url(/assets/site/video/jj-candidates-hero-still.webp?v=2)}}
.cj-still .cj-video{display:none}.cj-still .cj-hero{background-image:url(/assets/site/video/jj-candidates-hero-still.webp?v=2)}
/* Data Saver: the poster only. */
[data-lightweight=true] .cj-video{display:none}

/* Shared section bits */
.cj-eyebrow{display:block;margin:0 0 20px;color:#d6b785;font-size:10px;letter-spacing:.19em;text-transform:uppercase}
.cj-searches h2,.cj-help h2{font:500 clamp(40px,4.6vw,84px)/1.05 var(--sans);letter-spacing:-.06em;margin:0 0 22px;text-wrap:balance}
.cj-searches h2 em,.cj-help h2 em,.cj-journey-title em{font:italic 400 1.03em/1.1 var(--serif);color:#b2e2ed;letter-spacing:-.04em}
.cj-lead{font:400 17px/1.7 var(--sans);color:#bbc9cf;max-width:52ch;margin:0 0 30px}

/* Open searches: the reason a candidate came. */
.cj-searches{position:relative;z-index:1;padding:90px var(--gutter) 70px;margin:0;outline:0}
.cj-search-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px}
.cj-search{display:grid;gap:8px;padding:24px 24px 22px;min-height:150px;border:1px solid rgba(214,183,133,.35);border-radius:4px;background:linear-gradient(160deg,rgba(var(--cj-navy),.9),rgba(var(--cj-navy),.55));color:#eef2f0;text-decoration:none;transition:border-color .25s,transform .25s}
.cj-search:hover,.cj-search:focus-visible{border-color:#d6b785;transform:translateY(-2px)}
.cj-search:focus-visible{outline:2px solid #d98e1c;outline-offset:3px}
.cj-search-title{font:500 24px/1.2 var(--sans);letter-spacing:-.03em}
.cj-search-where{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#a9bcc5}
.cj-search-go{margin-top:auto;font-size:14px;color:#e6c99c}
.cj-search-empty{border:1px dashed rgba(178,226,237,.3);border-radius:4px;padding:26px;max-width:640px;color:#bbc9cf;font-size:15px;line-height:1.7}
.cj-search-empty p{margin:0}
.cj-search-more{display:flex;flex-wrap:wrap;gap:12px 28px;margin:26px 0 0;font-size:14px}
.cj-search-more a{color:#e6c99c;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}

/* The way into The Ascent: a wide picture card that moves a little on hover. */
.cj-journey{padding:20px var(--gutter) 40px;margin:0}
.cj-journey-card{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:0;overflow:hidden;border:1px solid rgba(178,226,237,.22);border-radius:4px;background:#071015;color:#eef2f0;text-decoration:none}
.cj-journey-art{position:relative;display:block;height:100%;min-height:300px;overflow:hidden}
.cj-journey-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.cj-journey-art::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,16,21,0) 55%,#071015)}
.cj-journey-card:hover .cj-journey-art img,.cj-journey-card:focus-visible .cj-journey-art img{transform:scale(1.05)}
.cj-journey-card:focus-visible{outline:2px solid #d98e1c;outline-offset:3px}
.cj-journey-text{display:grid;gap:14px;padding:44px 44px 44px 20px}
.cj-journey-title{display:block;font:500 clamp(32px,3.4vw,58px)/1.06 var(--sans);letter-spacing:-.055em}
.cj-journey-copy{font-size:15px;line-height:1.75;color:#bbc9cf;max-width:44ch}
.cj-journey-go{justify-self:start;margin-top:6px;padding:13px 20px;background:var(--service-gold,#d6b785);color:#08111b;font:600 15px/1.4 var(--sans)}
.cj-journey-card:hover .cj-journey-go{background:#e5cca5}
@media (prefers-reduced-motion: reduce){.cj-journey-art img,.cj-search{transition:none}.cj-journey-card:hover .cj-journey-art img{transform:none}}

/* How we help */
.cj-help{padding:70px var(--gutter) 40px;margin:0;outline:0}
.cj-help .duo{margin-bottom:28px}
.cj-help .ctas{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0 22px}
.cj-ghost{display:inline-flex;align-items:center;min-height:52px;padding:14px 22px;border:1px solid rgba(214,183,133,.55);color:#eef2f0;font:500 15px/1.4 var(--sans);text-decoration:none}
.cj-ghost:hover{border-color:#d6b785}

/* Tablet and phone: the tower and the figure stay in frame; the copy sits on the darker lower half. */
@media (max-width:1000px){.cj-journey-card{grid-template-columns:1fr}.cj-journey-art{min-height:220px;aspect-ratio:16/7}.cj-journey-art::after{background:linear-gradient(180deg,rgba(7,16,21,0) 50%,#071015)}.cj-journey-text{padding:6px 26px 30px}}
@media (max-width:767px){
  .cj-video{object-position:78% center}.cj-hero{background-position:78% center}
  /* Nov 10, hero v2: the crane floodlights sit behind the headline and the vest behind the lead on phones, so the band from
     the headline to the buttons is darker (WCAG AA over every frame of the loop). */
  .cj-shade{background:linear-gradient(180deg,rgba(var(--cj-navy),.35) 0%,rgba(var(--cj-navy),.5) 14%,rgba(var(--cj-navy),.76) 34%,rgba(var(--cj-navy),.86) 55%,rgba(var(--cj-navy),.92) 78%,var(--cj-bg) 100%)}
  .cj-hero-in{padding:120px var(--gutter) 84px}
  .cj-hero h1{font-size:clamp(52px,13vw,88px)}
  .cj-motion{bottom:18px}
  .cj-searches{padding-top:64px}
}
/* Portrait tablets frame the site leader the same way as phones. */
@media (max-width:1100px) and (orientation:portrait){.cj-video{object-position:78% center}.cj-hero{background-position:78% center}}
/* Nov 10, hero v2: portrait tablets keep the desktop shade plus a darker lower band, where the lead sits over the bright water. */
@media (min-width:768px) and (max-width:1100px) and (orientation:portrait){.cj-shade{background:linear-gradient(180deg,rgba(var(--cj-navy),0) 38%,rgba(var(--cj-navy),.55) 52%,rgba(var(--cj-navy),.78) 66%,rgba(var(--cj-navy),.9) 82%,var(--cj-bg) 100%),linear-gradient(90deg,rgba(var(--cj-navy),.9) 0%,rgba(var(--cj-navy),.7) 38%,rgba(var(--cj-navy),.18) 65%,rgba(var(--cj-navy),0) 100%)}}
/* Juan, Nov 9: after the hero, everything reads left to right from the hero's own left edge, not a centered column. */
.cj-searches,.cj-journey,.cj-help{max-width:none;margin:0}
.candidate-jobs .closing{max-width:none;margin-left:0;margin-right:0}
