/* Careers — page-scoped */

.cr-page {
  --cr-navy: #071a2d;
  --cr-blue: #0b66c3;
  --cr-purple: #7c3aed;
  --cr-muted: #5a7086;
  --cr-line: #e3ebf3;
  --cr-soft: #f4f7fb;
  --cr-max: 1200px;
  background: #fff;
  color: var(--cr-navy);
  font-family: "Outfit", "Outfit Placeholder", sans-serif;
}

.cr-page main,
.cr-page main * {
  font-family: "Outfit", "Outfit Placeholder", sans-serif !important;
}

.cr-page :focus-visible {
  outline: 3px solid #63a9ff;
  outline-offset: 3px;
}

.cr-wrap {
  width: min(calc(100% - 48px), var(--cr-max));
  margin-inline: auto;
}

.cr-kicker {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cr-btn {
  min-height: 48px;
  padding: 12px 24px !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  border: 0 !important;
}

.cr-btn-light {
  background: #fff !important;
  color: var(--cr-navy) !important;
}

.cr-section-intro {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.cr-section-intro h2,
.cr-enquire h2 {
  margin: 0 0 14px;
  color: var(--cr-navy);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700 !important;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.cr-section-intro p,
.cr-lead {
  margin: 0;
  color: var(--cr-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Hero */
.cr-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 450px;
  padding: 132px 0 56px;
  overflow: hidden;
  background: #061b2c;
  color: #fff;
}

.cr-hero-bg {
  position: absolute;
  inset: 0;
}

.cr-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cr-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 32, .84) 0%, rgba(4, 18, 32, .62) 50%, rgba(4, 18, 32, .42) 100%),
    linear-gradient(180deg, rgba(4, 18, 32, .28) 0%, rgba(4, 18, 32, .55) 100%);
}

.cr-hero .cr-wrap {
  position: relative;
  z-index: 1;
}

.cr-hero-copy {
  max-width: 640px;
}

.cr-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.6vw, 2.65rem);
  font-weight: 700 !important;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.cr-hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Culture / experience */
.cr-why {
  padding: 96px 0;
  background: #fff;
}

.cr-why-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 36px 56px;
  align-items: end;
  margin-bottom: 48px;
}

.cr-why-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--cr-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cr-why-intro-copy h2 {
  margin: 0;
  color: var(--cr-navy);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 700 !important;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.cr-why-intro-text {
  margin: 0;
  max-width: 38ch;
  color: var(--cr-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.cr-why-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 520px;
}

.cr-why-stage.is-panel-only {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-inline: auto;
}

.cr-why-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  min-height: 520px;
  background: #0a1f33;
}

.cr-why-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.cr-why-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: min(100%, 320px);
  margin: 0;
  padding: 12px 16px;
  background: rgba(4, 20, 33, .82);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
}

.cr-why-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin-left: -32px;
  margin-block: 28px;
  padding: 32px 28px 28px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(124, 58, 237, .18), transparent 55%),
    linear-gradient(165deg, #041421 0%, #071a2d 55%, #0a2340 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(4, 20, 33, .28);
}

.cr-why-panel-accent {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cr-blue), var(--cr-purple));
}

.cr-why-panel h3 {
  margin: 0 0 10px;
  padding-left: 14px;
  font-size: 1.35rem;
  font-weight: 700 !important;
  letter-spacing: -.02em;
}

.cr-why-panel-lead {
  margin: 0 0 18px;
  padding-left: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: .98rem;
  line-height: 1.6;
}

.cr-why-commitments {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.cr-why-commitments li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 14px 0 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.cr-why-commitments li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.cr-why-num {
  color: #9bc7ff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
}

.cr-why-commitments h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}

.cr-why-commitments p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
  line-height: 1.55;
}

.cr-why-line {
  position: absolute;
  left: 14px;
  right: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--cr-blue), var(--cr-purple));
  transition: width .55s ease;
}

.cr-why-commitments li.is-in .cr-why-line {
  width: calc(100% - 14px);
}

.cr-why-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-left: 14px;
  min-height: 44px;
  color: #9bc7ff;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.cr-why-link span {
  display: inline-block;
  transition: transform .25s ease;
}

.cr-why-link:hover {
  color: #fff;
}

.cr-why-link:hover span {
  transform: translateX(4px);
}

/* Reveal — visible by default; motion when .cr-motion */
.cr-page.cr-motion .cr-why-photo[data-cr-reveal] {
  clip-path: inset(0 12% 0 0);
  opacity: .55;
  transition: clip-path .85s cubic-bezier(.22, 1, .36, 1), opacity .85s ease;
}

.cr-page.cr-motion .cr-why-photo[data-cr-reveal].is-in {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.cr-page.cr-motion .cr-why-commitments li[data-cr-reveal] {
  opacity: .55;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}

.cr-page.cr-motion .cr-why-commitments li[data-cr-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .cr-page.cr-motion .cr-why-photo[data-cr-reveal],
  .cr-page.cr-motion .cr-why-commitments li[data-cr-reveal],
  .cr-why-line,
  .cr-why-link span {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* Benefits */
.cr-benefits {
  padding: 80px 0;
  background: var(--cr-soft);
}

.cr-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-benefit-grid li {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
}

.cr-benefit-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--cr-blue);
}

.cr-benefit-icon svg {
  width: 28px;
  height: 28px;
}

.cr-benefit-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700 !important;
}

.cr-benefit-grid p {
  margin: 0;
  color: var(--cr-muted);
  font-size: .98rem;
  line-height: 1.6;
}

/* Jobs */
.cr-jobs {
  padding: 80px 0;
  background: #fff;
  scroll-margin-top: 96px;
}

.cr-job-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.cr-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 32px;
  align-items: start;
  padding: 28px 28px;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  background: #fff;
}

.cr-job-dept {
  margin: 0 0 8px;
  color: var(--cr-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cr-job h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700 !important;
  letter-spacing: -.02em;
}

.cr-job-summary {
  margin: 0;
  max-width: 58ch;
  color: var(--cr-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.cr-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  color: #7a8fa3;
  font-size: .92rem;
  font-weight: 600;
}

.cr-job-details {
  margin-top: 18px;
}

.cr-job-details summary {
  cursor: pointer;
  color: var(--cr-blue);
  font-size: .95rem;
  font-weight: 700;
  list-style: none;
}

.cr-job-details summary::-webkit-details-marker {
  display: none;
}

.cr-job-details summary::after {
  content: " →";
}

.cr-job-details[open] summary::after {
  content: "";
}

.cr-job-details-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cr-line);
}

.cr-job-details-body h4 {
  margin: 0 0 8px;
  font-size: .92rem;
  font-weight: 800 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cr-job-details-body ul {
  margin: 0 0 16px;
  padding-left: 1.15rem;
  color: var(--cr-muted);
  font-size: .98rem;
  line-height: 1.6;
}

.cr-job-details-body li + li {
  margin-top: 6px;
}

.cr-job-note {
  margin: 0;
  color: #7a8fa3;
  font-size: .9rem;
  line-height: 1.5;
}

.cr-job-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 180px;
}

.cr-job-unavailable,
.cr-empty {
  margin: 0;
  color: var(--cr-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Enquire + footer continuous navy band */
.cr-bottom-band {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(0, 119, 200, 0.28), transparent 55%),
    linear-gradient(160deg, #041421 0%, #071a2d 40%, #001F2B 75%, #001018 100%);
}

.cr-enquire {
  padding: 64px 0 48px;
  background: transparent;
  color: #fff;
}

.cr-bottom-band .cl-footer {
  margin: 0 !important;
  padding-top: 28px !important;
  border-top: 0 !important;
  background: transparent !important;
}

.cr-bottom-band .cl-footer::before {
  display: none !important;
}

.cr-enquire-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 28px 48px;
  align-items: center;
}

.cr-enquire h2 {
  color: #fff;
}

.cr-enquire p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, .82);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cr-privacy {
  margin-top: 14px !important;
}

.cr-privacy a {
  color: #9bc7ff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cr-enquire-action {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.cr-email-text {
  color: #cfe0f5;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.cr-email-text:hover {
  color: #fff;
  text-decoration: underline;
}

.cr-enquire-note {
  font-size: .88rem !important;
  color: rgba(255, 255, 255, .55) !important;
}

@media (max-width: 960px) {
  .cr-why-intro,
  .cr-why-stage,
  .cr-job,
  .cr-enquire-inner {
    grid-template-columns: 1fr;
  }

  .cr-why-stage {
    min-height: 0;
  }

  .cr-why-panel {
    margin-left: 0;
    margin-block: 0;
    margin-top: -12px;
  }

  .cr-why-photo,
  .cr-why-photo img {
    min-height: 320px;
  }

  .cr-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cr-job-action {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .cr-why {
    padding: 60px 0;
  }

  .cr-why-intro {
    gap: 18px;
    margin-bottom: 28px;
    align-items: start;
  }

  .cr-why-intro-text {
    max-width: none;
    font-size: 1.05rem;
  }

  .cr-why-panel {
    margin-top: 0;
    padding: 24px 20px;
  }

  .cr-why-photo,
  .cr-why-photo img {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .cr-wrap {
    width: min(calc(100% - 40px), var(--cr-max));
  }

  .cr-hero {
    min-height: 0;
    padding: 118px 0 44px;
  }

  .cr-why {
    padding: 56px 0;
  }

  .cr-benefits,
  .cr-jobs {
    padding: 56px 0;
  }

  .cr-enquire {
    padding: 48px 0;
  }

  .cr-benefit-grid {
    grid-template-columns: 1fr;
  }

  .cr-why-photo,
  .cr-why-photo img {
    min-height: 260px;
  }

  .cr-job {
    padding: 22px 18px;
  }

  .cr-hero .cr-btn,
  .cr-job-action .cr-btn,
  .cr-enquire-action .cr-btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
