/* ============================================
   Careers page
   ============================================ */

.careers {
  --cr-card-bg: var(--bg-elev);
  --cr-card-border: var(--border-subtle);
  --cr-card-radius: var(--radius-2xl);
}

/* ---------- Hero ---------- */
.cr-hero {
  padding: clamp(72px, 11vw, 140px) 0 clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.cr-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(60% 60% at 70% 30%, var(--halo), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.cr-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 1040px;
}
.cr-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--fg);
}
.cr-hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 760px;
  margin: 0;
}
.cr-hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.cr-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  background: var(--c-700);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.cr-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cr-orb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--fg);
  display: grid;
  place-items: center;
}
.cr-orb svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cr-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border-strong);
}
.cr-text-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.cr-text-link:hover svg {
  transform: translateX(3px);
}
.cr-hero-meta {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
}
.cr-hero-meta li {
  display: grid;
  gap: 4px;
}
.cr-hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.cr-hero-meta strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ---------- Filters ---------- */
.cr-filters {
  padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 36px);
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.cr-filters-shell {
  display: grid;
  gap: 16px;
}
.cr-filter-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.cr-filter-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  white-space: nowrap;
}
.cr-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-elev);
  color: var(--fg);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.cr-pill em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-subtle);
  padding-left: 4px;
}
.cr-pill:hover {
  border-color: var(--border-strong);
}
.cr-pill.is-active {
  background: var(--c-700);
  color: #fff;
  border-color: var(--c-700);
}
.cr-pill.is-active em {
  color: color-mix(in oklab, var(--bg-elev) 70%, transparent);
}
.cr-filter-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
  margin: 4px 0 0;
}

/* ---------- Roles ---------- */
.cr-roles {
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}
.cr-roles-shell {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
}
.cr-fn-group {
  display: grid;
  gap: 28px;
}
.cr-fn-group.is-hidden {
  display: none;
}
.cr-fn-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.cr-fn-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.04em;
  padding-top: 8px;
}
.cr-fn-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
.cr-fn-head p {
  margin: 8px 0 0;
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.55;
}

.cr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

/* ---------- Job card ---------- */
.cr-job {
  background: var(--cr-card-bg);
  border: 1px solid var(--cr-card-border);
  border-radius: var(--cr-card-radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.cr-job:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}
.cr-job.is-hidden {
  display: none;
}
.cr-job-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.cr-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}
.cr-tag.fn {
  background: var(--brand-subtle);
  color: var(--brand);
}
.cr-tag.loc.us {
  background: color-mix(in oklab, var(--color-success) 14%, var(--bg-elev));
  color: color-mix(in oklab, var(--color-success) 92%, var(--fg));
}
.cr-tag.loc.global {
  background: color-mix(in oklab, var(--color-warning) 14%, var(--bg-elev));
  color: color-mix(in oklab, var(--color-warning) 80%, var(--fg));
}
.cr-job h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 4px 0 0;
  line-height: 1.25;
}
.cr-comp {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin: 0;
  letter-spacing: 0.02em;
}
.cr-blurb {
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 4px 0 0;
}
.cr-musts {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.cr-musts li {
  position: relative;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--fg);
  line-height: 1.5;
}
.cr-musts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.cr-apply {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-spring);
}
.cr-apply svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.cr-apply:hover {
  background: var(--c-700);
  color: #fff;
  border-color: var(--c-700);
  transform: translateY(-1px);
}
.cr-apply:hover svg {
  transform: translateX(3px);
}

/* ---------- Empty state ---------- */
.cr-empty {
  text-align: center;
  font-size: 0.95rem;
  color: var(--fg-muted);
  padding: 32px 0;
}
.cr-reset {
  background: none;
  border: none;
  color: var(--brand);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: inherit;
  padding: 0;
}

/* ---------- How we hire ---------- */
.cr-hire {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg-sunken);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cr-section-head {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.cr-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--fg);
}
.cr-hire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.cr-hire-step {
  background: var(--bg-elev);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out);
}
.cr-hire-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.cr-step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand);
  letter-spacing: 0.06em;
}
.cr-hire-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 2px 0 0;
  color: var(--fg);
}
.cr-hire-step p {
  margin: 4px 0 0;
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Why work here ---------- */
.cr-why {
  padding: clamp(64px, 9vw, 112px) 0;
}
.cr-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.cr-why-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 28px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out);
}
.cr-why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.cr-why-card > span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.cr-why-card strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.cr-why-card p {
  margin: 4px 0 0;
  color: var(--fg-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .cr-filter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cr-filters {
    position: relative;
    top: auto;
  }
  .cr-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dark mode tuning ---------- */


/* ---------- Apply / careers application form ---------- */
.apply-section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--border-subtle);
}
.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.apply-intro {
  display: grid;
  gap: 18px;
}
.apply-intro h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 500;
  color: var(--fg);
  max-width: 18ch;
}
.apply-intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 42ch;
}
.apply-bullets {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.apply-bullets li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
}
.apply-bullets li strong {
  color: color-mix(in oklab, var(--fg) 55%, transparent);
  font-weight: 500;
}
.apply-card {
  position: relative;
}

@media (min-width: 1024px) {
  .apply-intro {
    position: sticky;
    top: clamp(96px, 8vw, 124px);
    align-self: start;
  }
}

@media (max-width: 880px) {
  .apply-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---------- Per-job detail page ---------- */
.career-detail { padding-top: 0; }

/* Hero */
.jr-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border-subtle);
}
.jr-hero-grid {
  display: grid;
  gap: 22px;
}
.jr-hero-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
}
.jr-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  font-size: 14px;
  text-decoration: none;
  width: max-content;
}
.jr-breadcrumb svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jr-breadcrumb:hover { color: var(--fg); }
.jr-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jr-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 500;
  color: var(--fg);
  max-width: 22ch;
}
.jr-comp {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}
.jr-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* Description */
.jr-desc {
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.jr-desc-grid {
  display: grid;
  grid-template-columns: minmax(0, .35fr) minmax(0, .65fr);
  gap: clamp(28px, 4vw, 64px);
}
.jr-desc h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--fg);
}
.jr-desc-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  max-width: 64ch;
}
.jr-desc-body p { margin: 0 0 18px; }
.jr-desc-body p:last-child { margin-bottom: 0; }
.jr-desc-body ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.jr-desc-body ul li {
  position: relative;
  padding-left: 22px;
  color: var(--fg);
}
.jr-desc-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

@media (max-width: 880px) {
  .jr-desc-grid { grid-template-columns: minmax(0, 1fr); }
}
