/* =====================================================================
   CAREERS PAGE
   Hero → Talent Network (carousel on mobile) → Why Join Us → Work Your Way
   → CTA. Reuses the site shell + footer.
   ===================================================================== */

.cr-page { overflow-x: hidden; }

.cr-section { padding: clamp(50px, 6vw, 96px) clamp(20px, 4vw, 60px); }
.cr-wrap { max-width: var(--maxw); margin: 0 auto; }

.grad-blue {
  background: linear-gradient(100deg, #5b8def 0%, #2f6bd8 55%, #6aa0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cr-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2f6bd8;
  background: rgba(91, 141, 239, 0.08);
  border: 1px solid rgba(91, 141, 239, 0.3);
}

/* ===================== 1. HERO ===================== */
.cr-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(120px, 14vh, 175px);
}
/* background image — a full-strength band on the LEFT only, fading to white before the text */
.cr-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 34%;
  background: url("../careers/careers-hero.jpg") center left / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  /* fade the right edge AND the top/bottom so there is no hard cut anywhere */
  -webkit-mask-image:
    linear-gradient(to right, #000 28%, transparent 96%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 28%, transparent 96%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.cr-hero .cr-wrap { position: relative; z-index: 1; }
.cr-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.cr-h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #16202f;
}
.cr-lead {
  margin-top: 22px;
  max-width: 460px;
  font-weight: 300;
  line-height: 1.7;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  color: #5a6478;
}
.cr-link {
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  padding: 14px 34px;
  border-radius: 999px;
  background: linear-gradient(120deg, #5b9bf5, #2f6bd8);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(47, 107, 216, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.cr-link:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 20px 40px rgba(47, 107, 216, 0.45); }
.cr-link:active { transform: scale(0.99); }

.cr-hero-media {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(40, 60, 110, 0.18);
}
.cr-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }

/* ===================== 2. TALENT NETWORK ===================== */
.cr-talent { background: #ffffff; }
.cr-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.cr-h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #16202f;
}
.cr-sub {
  margin-top: 14px;
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  color: #6b7689;
}

.cr-talent-carousel { position: relative; max-width: 1180px; margin: 0 auto; }
.cr-ttrack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 1.8vw, 26px);
}
.cr-arrow, .cr-mnav { display: none; }   /* desktop hides carousel controls */

.cr-tcard {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2vw, 32px);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(90, 120, 180, 0.12);
  box-shadow: 0 22px 50px rgba(40, 60, 110, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.cr-tcard:hover { transform: translateY(-6px); box-shadow: 0 32px 66px rgba(40, 60, 110, 0.16); }
.cr-tcard-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #2f6bd8;
  background: rgba(91, 141, 239, 0.12);
  margin-bottom: 26px;
}
.cr-tcard-ic svg { width: 24px; height: 24px; }
.cr-tcard h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  color: #16202f;
  margin-bottom: 14px;
}
.cr-tcard p {
  font-weight: 300;
  line-height: 1.62;
  font-size: 0.98rem;
  color: #5a6478;
}

/* ===================== 3. WHY JOIN US ===================== */
.cr-why-head { text-align: center; max-width: 880px; margin: 0 auto clamp(44px, 5vw, 70px); }
.cr-why-head .cr-h2 { margin-top: 18px; }
.cr-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 56px) clamp(34px, 4vw, 70px);
  max-width: 1120px;
  margin: 0 auto;
}
.cr-benefit { display: flex; gap: 16px; }
.cr-benefit-ic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #2f6bd8;
  background: rgba(91, 141, 239, 0.12);
}
.cr-benefit-ic svg { width: 22px; height: 22px; }
.cr-benefit h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: #16202f;
  margin-bottom: 8px;
}
.cr-benefit p {
  font-weight: 300;
  line-height: 1.6;
  font-size: 0.98rem;
  color: #5a6478;
}

/* ===================== 4. WORK YOUR WAY (dark card) ===================== */
.cr-work-card {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 34px;
  padding: clamp(34px, 4.5vw, 72px);
  background: radial-gradient(120% 120% at 100% 0%, #16234a 0%, #0b1224 60%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  overflow: hidden;
}
.cr-eyebrow-dark {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fc2ff;
  background: rgba(91, 155, 245, 0.14);
  border: 1px solid rgba(91, 155, 245, 0.3);
}
.cr-work-title {
  margin-top: 22px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.cr-work-p {
  margin-top: 20px;
  max-width: 480px;
  font-weight: 300;
  line-height: 1.7;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: rgba(255, 255, 255, 0.82);
}
.cr-work-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(120deg, #5b9bf5, #2f6bd8);
  color: #fff;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  box-shadow: 0 16px 34px rgba(47, 107, 216, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.cr-work-btn svg { width: 19px; height: 19px; }
.cr-work-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 22px 44px rgba(47, 107, 216, 0.55); }

.cr-work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cr-work-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.cr-work-links a svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cr-work-links a:hover {
  background: rgba(91, 155, 245, 0.18);
  border-color: rgba(91, 155, 245, 0.55);
  color: #fff;
  transform: translateY(-2px);
}

.cr-work-media { position: relative; display: grid; place-items: center; }
.cr-work-media img {
  width: clamp(260px, 32vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.cr-work-badge {
  position: absolute;
  left: 6%;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(13, 19, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.cr-work-badge .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #34d399;
  background: rgba(52, 211, 153, 0.16);
}
.cr-work-badge .ic svg { width: 20px; height: 20px; }
.cr-work-badge small { display: block; font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }
.cr-work-badge strong { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.2rem; color: #fff; }

/* ===================== 5. CTA ===================== */
.cr-cta-card {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 30px;
  padding: clamp(44px, 6vw, 90px) clamp(24px, 4vw, 60px);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(120deg, #fff6ec 0%, #f3f4ff 55%, #eef4ff 100%);
  border: 1px solid rgba(120, 150, 210, 0.16);
}
.cr-cta-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #16202f;
}
.cr-cta-p {
  margin: 20px auto 0;
  max-width: 660px;
  font-weight: 300;
  line-height: 1.7;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: #5a6478;
}
.cr-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 16px 36px;
  border-radius: 999px;
  background: linear-gradient(120deg, #5b9bf5, #2f6bd8);
  color: #fff;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  box-shadow: 0 16px 34px rgba(47, 107, 216, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.cr-cta-btn svg { width: 19px; height: 19px; }
.cr-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 22px 44px rgba(47, 107, 216, 0.5); }
/* floating shapes */
.cr-shape { position: absolute; pointer-events: none; opacity: 0.85; }
.cr-shape.s1 { top: 14%; left: 9%; width: 22px; height: 22px; border-radius: 6px; background: #fbbf3c; transform: rotate(20deg); }
.cr-shape.s2 { top: 40%; right: 8%; width: 22px; height: 22px; border-radius: 6px; background: #f472a6; transform: rotate(45deg); }
.cr-shape.s3 { bottom: 22%; right: 16%; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #8b9bf5; }

/* ===================== REVEAL ===================== */
.cr-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cr-reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .cr-reveal { transition: opacity 0.3s ease; transform: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1000px) {
  .cr-benefits { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Careers hero on phones: hide the blue illustration, show the photo full ---- */
@media (max-width: 700px) {
  .cr-hero-media { display: none; }

  .cr-hero {
    min-height: clamp(520px, 86vh, 760px);
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
  }
  .cr-hero-inner { justify-items: center; }
  .cr-hero-text { display: flex; flex-direction: column; align-items: center; }
  .cr-lead { max-width: 92%; }

  /* the background photo fills the whole hero and is clearly visible */
  .cr-hero::before {
    width: 100%;
    background: url("../careers/careers-hero.jpg") center / cover no-repeat;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-over;
            mask-composite: add;
  }
}
@media (max-width: 900px) {
  .cr-hero-inner { grid-template-columns: 1fr; }
  .cr-hero { padding-top: clamp(110px, 16vh, 150px); }
  .cr-work-card { grid-template-columns: 1fr; }
  .cr-work-media { order: -1; }
  .cr-work-badge { left: 4%; bottom: 6%; }

  /* talent network → swipe carousel */
  .cr-ttrack {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 16px 6% 14px;
  }
  .cr-ttrack::-webkit-scrollbar { display: none; }
  .cr-tcard {
    flex: 0 0 84%;
    margin: 0 6px;
    scroll-snap-align: center;
    will-change: transform;
    transition: none;
  }
  .cr-arrow {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #2f6bd8;
    box-shadow: 0 10px 26px rgba(40, 60, 110, 0.22);
    cursor: pointer;
    z-index: 6;
    transform: translateY(-50%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  .cr-arrow.next { right: 2px; }
  .cr-arrow.prev { left: 2px; }
  .cr-arrow svg { width: 24px; height: 24px; }
  .cr-arrow:active { transform: translateY(-50%) scale(0.9); }
  .cr-arrow.is-hidden { opacity: 0; pointer-events: none; }
  .cr-arrow.next.is-hidden { transform: translateY(-50%) translateX(14px) scale(0.8); }
  .cr-arrow.prev.is-hidden { transform: translateY(-50%) translateX(-14px) scale(0.8); }
  .cr-mnav { display: flex; justify-content: center; margin-top: 22px; }
  .cr-dots { display: flex; gap: 8px; }
  .cr-dot {
    width: 9px; height: 9px;
    border-radius: 999px;
    border: none; padding: 0;
    background: #c3cce0;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
  }
  .cr-dot.active { width: 26px; background: #2f6bd8; }
}
@media (max-width: 600px) {
  .cr-benefits { grid-template-columns: 1fr; }
}

/* ===================== DARK THEME ===================== */
[data-theme="dark"] .cr-eyebrow {
  color: var(--accent-deep);
  background: rgba(91, 155, 245, 0.12);
  border-color: rgba(91, 155, 245, 0.3);
}
[data-theme="dark"] .cr-h1,
[data-theme="dark"] .cr-h2,
[data-theme="dark"] .cr-tcard h3,
[data-theme="dark"] .cr-benefit h4,
[data-theme="dark"] .cr-cta-title { color: var(--d-t1); }
[data-theme="dark"] .cr-lead,
[data-theme="dark"] .cr-sub,
[data-theme="dark"] .cr-tcard p,
[data-theme="dark"] .cr-benefit p,
[data-theme="dark"] .cr-cta-p { color: var(--d-t2); }
[data-theme="dark"] .cr-hero-media { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .cr-hero::before { opacity: 0.28; }
[data-theme="dark"] .cr-talent { background: var(--d-base); }
[data-theme="dark"] .cr-tcard {
  background: var(--d-surface);
  border-color: var(--d-line);
  box-shadow: var(--d-shadow);
}
[data-theme="dark"] .cr-tcard-ic,
[data-theme="dark"] .cr-benefit-ic { background: rgba(91, 155, 245, 0.16); color: var(--accent-deep); }
[data-theme="dark"] .cr-work-card { background: radial-gradient(120% 120% at 100% 0%, #18244c 0%, #080d18 60%); }
[data-theme="dark"] .cr-cta-card {
  background: linear-gradient(120deg, #141a2c 0%, #121a2e 55%, #101830 100%);
  border-color: var(--d-line);
}
[data-theme="dark"] .cr-arrow { background: var(--d-surface-2); color: var(--accent-deep); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .cr-dot { background: rgba(255, 255, 255, 0.22); }
[data-theme="dark"] .cr-dot.active { background: var(--accent); }

