/* Careers page (/careers.html). Loaded after styles.css and pages.css. */

/* ---------- Hero with soft tone-on-tone pill pattern ---------- */
.ca-hero { position: relative; overflow: hidden; }
.ca-hero > *:not(.ca-hero-pattern) { position: relative; z-index: 1; }
.ca-hero-pattern { position: absolute; inset: auto 0 0 0; height: 100%; pointer-events: none; }
.ca-hero-pattern span { position: absolute; width: 56px; border-radius: 999px; background: var(--lavender); opacity: .55; animation: caFloat 9s ease-in-out infinite; }
.ca-hero-pattern span:nth-child(1) { left: 6%; top: 34%; height: 180px; }
.ca-hero-pattern span:nth-child(2) { left: 11%; top: 52%; height: 120px; background: #F9D9EA; animation-delay: -2s; }
.ca-hero-pattern span:nth-child(3) { right: 6%; top: 30%; height: 200px; animation-delay: -4s; }
.ca-hero-pattern span:nth-child(4) { right: 11%; top: 50%; height: 130px; background: #DCE4FB; animation-delay: -6s; }
.ca-hero-pattern span:nth-child(5) { right: 16%; top: 40%; height: 80px; background: #D4F0EB; animation-delay: -3s; }
@keyframes caFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Mission ---------- */
.ca-mission { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.ca-mission .eyebrow { display: inline-block; margin-bottom: 14px; }
.ca-mission-body .lead + .lead { margin-top: 16px; }
.ca-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.ca-stats div { background: var(--grey); border-radius: 20px; padding: 20px; }
.ca-stats strong { display: block; font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--purple); }
.ca-stats span { display: block; margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--body); }

/* ---------- How we work ---------- */
.ca-how { background: var(--grey); border-radius: var(--r-panel); margin: 0 16px; }
.ca-how h3, .ca-benefits h3 { font-size: 19px; line-height: 25px; font-weight: 800; letter-spacing: -0.01em; }
.ca-how p, .ca-benefits p { margin-top: 8px; color: var(--body); font-size: 15px; line-height: 23px; }

/* ---------- Values: purple brand stage ---------- */
.ca-values { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 64px; border-radius: var(--r-panel); background: var(--grad-primary); color: var(--white); }
.ca-values .eyebrow { color: var(--white); opacity: .85; display: inline-block; margin-bottom: 14px; }
.ca-values-list { list-style: none; display: grid; gap: 4px; }
.ca-values-list li { display: flex; gap: 20px; padding: 20px 24px; border-radius: 20px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .25s; }
.ca-values-list li:hover { background: rgba(255, 255, 255, .2); }
.ca-values-list li > span { font-size: 14px; font-weight: 700; opacity: .7; padding-top: 3px; font-variant-numeric: tabular-nums; }
.ca-values-list h3 { font-size: 18px; font-weight: 800; }
.ca-values-list p { margin-top: 4px; font-size: 15px; line-height: 22px; opacity: .9; }

/* ---------- Roles ---------- */
.ca-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.ca-filter button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 15px; font-weight: 600; color: var(--body); background: var(--white); transition: background-color .2s, border-color .2s, color .2s; }
.ca-filter button:hover { background: var(--grey); }
.ca-filter button[aria-pressed="true"] { background: var(--lavender); border-color: var(--lavender); color: var(--purple); }
.ca-filter button span { font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--grey); color: var(--label); }
.ca-filter button[aria-pressed="true"] span { background: var(--white); color: var(--purple); }
.ca-filter button:focus-visible, .ca-role summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.ca-roles { display: flex; flex-direction: column; gap: 10px; }
.ca-role { background: var(--grey); border-radius: 20px; transition: background-color .25s; }
.ca-role.in { animation: caIn .35s var(--ease); }
@keyframes caIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ca-role[open] { background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 20px 40px -24px rgba(27, 27, 27, .18); }
.ca-role summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; border-radius: 20px; }
.ca-role summary::-webkit-details-marker { display: none; }
.ca-role-title strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.ca-role-title span { display: block; margin-top: 4px; font-size: 14px; color: var(--label); }
.ca-role-chev { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--white); transition: transform .3s var(--ease), background-color .2s; }
.ca-role-chev svg { width: 18px; height: 18px; }
.ca-role[open] .ca-role-chev { transform: rotate(180deg); background: var(--lavender); color: var(--purple); }
.ca-role-body { padding: 0 24px 24px; animation: caIn .35s var(--ease); }
.ca-role-sum { font-size: 16px; line-height: 25px; color: var(--black); }
.ca-role-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.ca-role-cols h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.ca-role-cols ul { list-style: none; display: grid; gap: 8px; }
.ca-role-cols li { position: relative; padding-left: 18px; font-size: 15px; line-height: 22px; color: var(--body); }
.ca-role-cols li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.ca-role-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.ca-mail { font-size: 14px; font-weight: 600; color: var(--purple); }
.ca-mail:hover { text-decoration: underline; text-underline-offset: 3px; }

.ca-empty { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: 20px; border: 1px dashed var(--border); }
.ca-empty[hidden] { display: none; }
.ca-empty p { font-size: 15px; line-height: 22px; color: var(--body); }
.ca-empty strong { display: block; color: var(--black); }

.ca-interest { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 28px 32px; border-radius: var(--r-card); background: var(--grad-secondary); }
.ca-interest h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.ca-interest p { margin-top: 6px; font-size: 15px; color: var(--body); }

/* ---------- Hiring process ---------- */
.ca-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.ca-steps li { position: relative; padding: 28px; border-radius: var(--r-card); background: var(--grey); }
.ca-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--purple); color: var(--white); font-weight: 800; }
.ca-steps h3 { margin-top: 20px; font-size: 18px; font-weight: 800; }
.ca-steps p { margin-top: 8px; font-size: 15px; line-height: 23px; color: var(--body); }

/* ---------- Modal ---------- */
body.ca-lock { overflow: hidden; }
.ca-modal { border: 0; padding: 16px; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; display: none; place-items: center; }
.ca-modal[open] { display: grid; }
.ca-modal::backdrop { background: rgba(27, 27, 27, .45); backdrop-filter: blur(4px); animation: caFade .25s ease; }
.ca-modal[open] .ca-modal-box { animation: caPop .3s var(--ease); }
.ca-modal.closing .ca-modal-box { animation: caOut .2s ease forwards; }
.ca-modal.closing::backdrop { opacity: 0; transition: opacity .2s; }
@keyframes caFade { from { opacity: 0; } }
@keyframes caPop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes caOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.ca-modal-box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: var(--r-card); padding: 32px; box-shadow: var(--shadow-ui); }
.ca-modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; color: var(--label); }
.ca-modal-close:hover { background: var(--grey); color: var(--black); }
.ca-modal h2 { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.ca-modal-sub { margin-top: 6px; font-size: 14px; color: var(--label); }
.ca-field { margin-top: 16px; }
.ca-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ca-field input, .ca-field textarea { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--border); padding: 11px 14px; font: inherit; font-size: 15px; background: var(--white); color: var(--black); resize: vertical; }
.ca-field input:focus, .ca-field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--lavender); }
.ca-field.bad input { border-color: #D64545; }
.ca-err { display: block; font-size: 13px; color: #C23B3B; margin-top: 4px; min-height: 0; }
.ca-submit { width: 100%; margin-top: 24px; }
.ca-thanks { text-align: center; padding: 16px 0 4px; }
.ca-thanks-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--success); color: var(--white); }
.ca-thanks-ico svg { width: 28px; height: 28px; }
.ca-thanks h2 { margin-top: 16px; }
.ca-thanks p { margin: 8px auto 24px; max-width: 360px; color: var(--body); font-size: 15px; line-height: 23px; }
.ca-thanks a { color: var(--purple); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ca-hero-pattern { display: none; }
  .ca-mission { grid-template-columns: 1fr; gap: 24px; }
  .ca-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .ca-stats div { padding: 14px; }
  .ca-stats strong { font-size: 26px; line-height: 30px; }
  .ca-stats span { font-size: 12px; line-height: 16px; }
  .ca-how { margin: 0 8px; }
  .ca-values { grid-template-columns: 1fr; padding: 32px 20px; gap: 24px; }
  .ca-values-list li { padding: 16px 18px; gap: 14px; }
  .ca-role summary { padding: 18px 18px; }
  .ca-role-body { padding: 0 18px 20px; }
  .ca-role-cols { grid-template-columns: 1fr; }
  .ca-role-actions .btn { width: 100%; }
  .ca-interest { flex-direction: column; align-items: flex-start; padding: 24px; }
  .ca-interest .btn { width: 100%; }
  .ca-steps { grid-template-columns: 1fr 1fr; }
  .ca-modal-box { padding: 24px 20px; }
}
@media (max-width: 520px) { .ca-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .ca-hero-pattern span, .ca-role.in, .ca-role-body, .ca-modal[open] .ca-modal-box, .ca-modal::backdrop { animation: none; }
}

/* ---------- Polish ---------- */
h1, h2, h3, .h2 { text-wrap: balance; }
.ca-cta-band { padding-top: 48px; }
.ca-interest { background: rgba(223, 217, 246, .45); }
@media (max-width: 960px) {
  .ca-stats { grid-template-columns: 1fr; }
  .ca-stats div { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
  .ca-stats strong { min-width: 72px; }
  .ca-stats span { margin-top: 0; font-size: 15px; line-height: 21px; }
}

/* ---------- QA polish pass (Oct 2026) ---------- */
p { text-wrap: pretty; }
.lead { text-wrap: balance; }
.ca-filter button[hidden], .ca-role[hidden] { display: none; }
/* Card copy only: the old ".ca-benefits p" rule also shrank the section lead to 15px */
.ca-benefits .shead .lead { font-size: 18px; line-height: 26px; margin-top: 16px; }
/* Values stage: solid brand purple with soft glows so the white heading and items stay readable everywhere
   (the shared --grad-primary is near-white in the top-left corner, right behind the heading) */
.ca-values { background: radial-gradient(70% 90% at 100% 0%, rgba(223, 217, 246, .32), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(79, 115, 232, .35), transparent 60%), var(--purple); }
.ca-values-head { position: sticky; top: 120px; align-self: start; }
@media (max-width: 960px) {
  .ca-values-head { position: static; }
  .ca-filter { flex-wrap: nowrap; gap: 6px; }
  .ca-filter button { padding: 0 12px; font-size: 14px; gap: 6px; flex: none; }
}
/* Narrow phones: the three filters stay on one line inside the 16px gutter, counts drop off */
@media (max-width: 440px) { .ca-filter button span { display: none; } .ca-filter button { padding: 0 14px; } }

/* ---------- Redesign (2026-10-15) ---------- */
/* Hero: photo strip of the team under the copy, staggered heights, middle frame tallest */
.ca-hero { padding-bottom: 0; }
.ca-strip { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr 1.1fr 1fr; align-items: end; gap: 16px; max-width: 1180px; margin: 56px auto 0; padding: 0 16px; }
.ca-strip img { width: 100%; object-fit: cover; object-position: 50% 25%; border-radius: 22px; }
.ca-strip img:nth-child(1), .ca-strip img:nth-child(5) { height: 220px; }
.ca-strip img:nth-child(2), .ca-strip img:nth-child(4) { height: 280px; }
.ca-strip img:nth-child(3) { height: 340px; }
/* How we work: one photo beside the four principles, no boxes */
.ca-how { background: none; margin: 0; }
.ca-how-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ca-how-img { margin: 0; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 4.4; }
.ca-how-img img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }
.ca-how-head { text-align: left; margin-bottom: 32px; }
.ca-how-head .h2 { text-wrap: balance; }
.ca-points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.ca-point { border-top: 1px solid var(--border); padding-top: 18px; }
.ca-point h3 { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.ca-point p { margin-top: 6px; font-size: 15px; line-height: 23px; color: var(--body); }
@media (max-width: 960px) {
  .ca-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 40px; }
  .ca-strip img:nth-child(4), .ca-strip img:nth-child(5) { display: none; }
  .ca-strip img:nth-child(1) { height: 140px; } .ca-strip img:nth-child(2) { height: 180px; } .ca-strip img:nth-child(3) { height: 150px; }
  .ca-strip img { border-radius: 14px; }
  .ca-how-split { grid-template-columns: 1fr; gap: 32px; }
  .ca-how-img { aspect-ratio: 4 / 3; border-radius: 24px; }
  .ca-points { grid-template-columns: 1fr; gap: 20px; }
}
/* Each strip photo framed on its people (subjects sit right of centre in most library shots) */
.ca-strip img:nth-child(1) { object-position: 92% 30%; }
.ca-strip img:nth-child(2) { object-position: 60% 50%; }
.ca-strip img:nth-child(3) { object-position: 50% 60%; }
.ca-strip img:nth-child(4) { object-position: 45% 35%; }
.ca-strip img:nth-child(5) { object-position: 72% 75%; }
.ca-how-img img { object-position: 66% 40%; }
/* Values: soft lavender gradient (as on the platform panels) with dark text and white rows, instead of full brand purple */
.ca-values { background: linear-gradient(135deg, #F1EEFB 0%, #E2DCF7 45%, #DCD5F5 70%, #EAE6FA 100%); color: var(--black); }
.ca-values .eyebrow { color: var(--label); opacity: 1; }
.ca-values-list li { background: rgba(255, 255, 255, .78); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ca-values-list li:hover { background: var(--white); }
.ca-values-list li > span { color: var(--purple); opacity: 1; }
.ca-values-list h3 { font-weight: 700; color: var(--black); }
.ca-values-list p { color: var(--body); opacity: 1; }
/* Benefits: icon + title + line, no boxes, thin rule above each, three across */
.ca-ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.ca-ben { border-top: 1px solid var(--border); padding-top: 24px; }
.ca-ben .ico { margin-bottom: 16px; }
.ca-ben h3 { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.ca-ben p { margin-top: 6px; font-size: 15px; line-height: 23px; color: var(--body); max-width: 340px; }
@media (max-width: 960px) { .ca-ben-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
@media (max-width: 560px) { .ca-ben-grid { grid-template-columns: 1fr; } }
/* Values rows: every row the same height (two-line description box), text wraps at the same width */
.ca-values-list { grid-auto-rows: 1fr; }
.ca-values-list li { align-items: flex-start; }
.ca-values-list p { max-width: 460px; min-height: 44px; }
/* Mission stats: no boxes, black figures, thin rule above each */
.ca-stats { gap: 24px; }
.ca-stats div, .ca-stats div:nth-child(n) { background: none; border-radius: 0; padding: 18px 0 0; border-top: 1px solid var(--border); }
.ca-stats strong { color: var(--black); }
@media (max-width: 560px) { .ca-stats div, .ca-stats div:nth-child(n) { padding: 14px 0 0; } }
