/* ProApps Solutions — Careers & Role pages
   Shared design system, built on the homepage tokens (proapps.webflow.min.css). */

:root {
  --c-ink: var(--_theme---base-dark--1, #0e0e16);
  --c-muted: var(--_theme---base-dark--8, #54547e);
  --c-faint: var(--_theme---base-dark--9, #8383ad);
  --c-line: var(--_theme---base-light--3, #c8c8dc);
  --c-line-soft: var(--_theme---base-light--2, #e0e0eb);
  --c-surface: var(--_theme---base-light--1, #f4f4f9);
  --c-base: var(--_theme---base, #fff);
  --c-ink-rev: var(--_theme---opposite, #0b0b12);
  --c-ease: cubic-bezier(0.625, 0.05, 0, 1);
  --c-radius: 1.25rem;
  --c-blue: #5b6cff;
  --c-green: #1e9e57;
  --c-peach: #ff9a6c;
  --c-hero-scroll: 0;
  --c-hero-scroll-y: 0px;
  --c-hero-bg-y: 0px;
  --c-hero-opacity: 1;
  --c-shadow: 0 1.25rem 3rem -2.25rem rgba(14, 14, 22, 0.45);
  --c-shadow-strong: 0 2rem 4rem -2.2rem rgba(14, 14, 22, 0.55);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c-line-soft) 44%, transparent) 1px, transparent 1px) 50% 0 / min(7.5rem, 18vw) 100%,
    linear-gradient(180deg, #ffffff 0%, #f7f7fb 42%, #ffffff 100%);
  color: var(--c-ink);
  font-family: "DM Sans", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.c-page { overflow-x: clip; position: relative; }
.c-page::before,
.c-page::after {
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--c-line) 72%, transparent) 7rem, color-mix(in srgb, var(--c-line) 72%, transparent) calc(100% - 7rem), transparent);
  content: "";
  display: none;
  inset: 0 auto 0 max(1rem, calc((100vw - 75rem) / 2));
  pointer-events: none;
  position: absolute;
  width: 1px;
  z-index: 0;
}
.c-page::after { left: auto; right: max(1rem, calc((100vw - 75rem) / 2)); }
.c-page > * { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.c-eyebrow {
  align-items: center;
  color: var(--c-muted);
  display: inline-flex;
  font-family: "IBM Plex Mono", Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  gap: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}
.c-eyebrow::before { background: currentColor; content: ""; height: 1px; opacity: 0.45; width: 1.75rem; }
.c-eyebrow.is-plain::before { display: none; }

.c-display { font-size: clamp(2.75rem, 6.6vw, 4.5rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.c-h2 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.07; margin: 0; }
.c-h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.c-lead { color: var(--c-muted); font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.55; margin: 1.5rem 0 0; max-width: 34rem; }

/* ---------- Buttons ---------- */
.c-btn {
  align-items: center;
  background: var(--c-ink);
  border: 0;
  border-radius: 0.95rem;
  box-shadow: 0 0 0 0.25rem var(--c-line-soft), 0 0.125rem 0.125rem 0.5px var(--_theme---base-light--4, #bcbcd2);
  color: var(--c-base);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  gap: 0.55rem;
  height: 3rem;
  justify-content: center;
  line-height: 1;
  padding: 0 1.375rem;
  text-decoration: none;
  transition: transform 0.35s var(--c-ease), box-shadow 0.35s var(--c-ease);
  white-space: nowrap;
}
.c-btn:hover { box-shadow: 0 0 0 0.25rem var(--c-line-soft), 0 0.75rem 1.5rem -0.5rem #1a1a3340; transform: translateY(-2px); }
.c-btn:active { transform: translateY(0); }
.c-btn:disabled { cursor: not-allowed; opacity: 0.45; transform: none; box-shadow: none; }
.c-btn svg { flex: none; }
.c-btn.is-secondary { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); }
.c-btn.is-secondary:hover { background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.c-btn.is-light { background: var(--c-base); box-shadow: 0 0.125rem 0.75rem -0.25rem #00000033; color: var(--c-ink); }
.c-btn.is-light:hover { box-shadow: 0 0.75rem 1.5rem -0.4rem #00000040; }
.c-btn.is-ghost-light { background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff33; color: #fff; }
.c-btn.is-ghost-light:hover { background: #ffffff24; box-shadow: inset 0 0 0 1px #ffffff4d; }
.c-btn.is-small { height: 2.625rem; font-size: 0.9375rem; padding: 0 1.1rem; }
.c-btn.is-block { width: 100%; }

/* ---------- Nav ---------- */
.c-nav {
  align-items: center;
  backdrop-filter: blur(1.25rem);
  background: color-mix(in srgb, #ffffff 86%, transparent);
  border: 1px solid var(--c-line);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem -1rem #1a1a3333;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 1rem auto 0;
  max-width: 75rem;
  padding: 0.5rem 0.625rem 0.5rem 0.875rem;
  position: sticky;
  top: 1rem;
  z-index: 50;
}
.c-brand { align-items: center; color: inherit; display: inline-flex; gap: 0.7rem; text-decoration: none; }
.c-brand svg { height: 1.4rem; width: 1.25rem; }
.c-brand span { font-size: 0.95rem; font-weight: 500; }
.c-nav-links { align-items: center; display: flex; gap: 1.75rem; }
.c-nav-link { color: var(--c-muted); font-size: 0.9375rem; text-decoration: none; transition: color 0.25s var(--c-ease); }
.c-nav-link:hover { color: var(--c-ink); }
.c-nav-auth { align-items: center; display: flex; gap: 0.5rem; }
.c-nav-auth [data-auth-signed-out] { align-items: center; display: flex; gap: 0.5rem; }

/* ---------- Sections ---------- */
.c-section { padding: clamp(3rem, 6vw, 5.5rem) 0; position: relative; z-index: 1; }
.c-section-head { display: grid; gap: 1.25rem 2.5rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; margin-bottom: 2.75rem; }
.c-section-head .c-lead { margin-top: 0; }
.c-head-titlewrap { align-items: center; display: flex; gap: 0.75rem; }

/* ---------- Hero ---------- */
.c-hero {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: clamp(39rem, 92svh, 50rem);
  padding: clamp(7rem, 11vw, 9.25rem) 0 clamp(6.75rem, 10vw, 8.75rem);
  position: relative;
  z-index: 1;
}
/* .c-hero is a flex container, so its padding-global child shrink-wraps;
   force it to span the row or the hero sits left of center on wide screens. */
.c-hero > .padding-global { width: 100%; }
.c-hero-shell { margin: 0 auto; max-width: 62rem; text-align: center; }
.c-hero-copy { margin: 0 auto; min-width: 0; }
.c-hero .c-display { font-size: clamp(3.1rem, 7.6vw, 6rem); letter-spacing: -0.055em; line-height: 0.98; margin-inline: auto; max-width: 13ch; }
.c-hero .c-lead { color: var(--c-muted); font-size: clamp(1.08rem, 1.65vw, 1.35rem); line-height: 1.55; margin: 1.35rem auto 0; max-width: 48rem; }
.c-hero .c-hero-actions { justify-content: center; margin-top: 2rem; }
#roles { padding-top: clamp(0.35rem, 0.8vw, 0.75rem); }
#roles .c-section-head { margin-bottom: 1.35rem; }
.c-section--roles { border-top: 0; }
.c-section--about { padding-bottom: clamp(3.5rem, 7vw, 6.5rem); padding-top: clamp(1rem, 2vw, 2rem); }
.c-about-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr); }
.c-about-past,
.c-about-next { border-radius: 1.25rem; padding: clamp(1.6rem, 3vw, 2.5rem); }
.c-about-past { background: linear-gradient(180deg, #fff 0%, #fbfbff 100%); border: 1px solid var(--c-line); box-shadow: var(--c-shadow); }
.c-about-next { background: var(--c-ink); color: #fff; overflow: hidden; position: relative; }
.c-about-next::before { background: radial-gradient(circle, rgba(91, 108, 255, 0.42), transparent 68%); content: ""; height: 20rem; pointer-events: none; position: absolute; right: -8rem; top: -8rem; width: 20rem; }
.c-about-past > *, .c-about-next > * { position: relative; z-index: 1; }
.c-about-kicker { color: var(--c-faint); font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; margin: 0 0 1rem; text-transform: uppercase; }
.c-about-next .c-about-kicker { color: #bfc5ff; }
.c-about-past h3,
.c-about-next h3 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; margin: 0 0 1.25rem; }
.c-about-next h3 { color: #fff; }
.c-about-past p:not(.c-about-kicker),
.c-about-next p:not(.c-about-kicker) { font-size: 1rem; line-height: 1.65; margin: 0; }
.c-about-past p:not(.c-about-kicker) { color: var(--c-muted); }
.c-about-next p:not(.c-about-kicker) { color: #d6d6e8; }
.c-about-past p + p,
.c-about-next p + p { margin-top: 1rem !important; }
.c-about-capabilities { border-top: 1px solid var(--c-line-soft); display: grid; gap: 0.65rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.6rem; padding-top: 1.4rem; }
.c-about-capabilities span { align-items: flex-start; color: var(--c-ink); display: flex; font-size: 0.9rem; gap: 0.55rem; line-height: 1.4; }
.c-about-capabilities span::before { color: var(--c-blue); content: "✓"; flex: none; font-weight: 700; }
.c-about-next-mark { color: rgba(255, 255, 255, 0.08); font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 7rem; font-weight: 600; line-height: 1; position: absolute; right: 1rem; top: 0.5rem; }
.c-hero-bg {
  position: absolute;
  inset: -8rem 0 auto 0;
  height: 28rem;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--c-blue) 8%, transparent), transparent 48%),
    linear-gradient(270deg, color-mix(in srgb, var(--c-peach) 8%, transparent), transparent 42%);
  filter: saturate(1.02);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.c-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.c-hero-note {
  align-items: center;
  color: var(--c-muted);
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 0.96rem;
  gap: 0.65rem 1rem;
  justify-content: center;
  line-height: 1.4;
  margin-top: 1.55rem;
}
.c-hero-note span { align-items: center; display: inline-flex; gap: 0.65rem; }
.c-hero-note span + span::before { background: var(--c-line); content: ""; height: 1px; width: 2rem; }
.c-hero-panel {
  align-self: stretch;
  background: color-mix(in srgb, var(--c-base) 82%, transparent);
  border: 1px solid var(--c-line);
  border-radius: 1.25rem;
  box-shadow: var(--c-shadow);
  align-content: start;
  display: grid;
  gap: 0.85rem 1rem;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  position: relative;
}
.c-hero-panel::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c-line-soft) 70%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--c-line-soft) 70%, transparent) 1px, transparent 1px);
  background-size: 2.25rem 2.25rem;
  content: "";
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
}
.c-hero-panel > * { position: relative; z-index: 1; }
.c-hero-panel-copy,
.c-hero-stats,
.c-hero-people { align-self: start; }
.c-hero-mark { align-items: center; background: var(--c-ink); border-radius: 1rem; color: var(--c-base); display: flex; height: 3.1rem; justify-content: center; width: 3.1rem; }
.c-hero-mark svg { height: 1.7rem; width: 1.5rem; }
.c-hero-panel-copy { align-self: center; min-width: 0; }
.c-hero-panel-copy p { color: var(--c-muted); font-size: 0.98rem; line-height: 1.5; margin: 0; }
.c-hero-panel-kicker { color: var(--c-ink) !important; font-size: 1.2rem !important; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 0.35rem !important; }
.c-hero-stats { display: grid; gap: 0.5rem; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-hero-stats span { background: #fff; border: 1px solid var(--c-line-soft); border-radius: 0.8rem; display: grid; gap: 0.08rem; min-width: 0; padding: 0.5rem 0.6rem; }
.c-hero-stats strong { color: var(--c-ink); font-size: 1.12rem; font-weight: 600; line-height: 1; }
.c-hero-stats small { color: var(--c-muted); font-size: 0.68rem; line-height: 1.2; }
.c-hero-people { align-items: center; border-top: 1px solid var(--c-line-soft); display: flex; gap: 0; grid-column: 1 / -1; padding-top: 0.65rem; }
.c-hero-people img { border: 2px solid #fff; border-radius: 50%; height: 2.25rem; margin-right: -0.55rem; object-fit: cover; width: 2.25rem; }
.c-hero-people span { color: var(--c-muted); font-size: 0.86rem; line-height: 1.35; margin-left: 1.1rem; white-space: nowrap; }

/* ---------- Role cards ---------- */
.c-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-card {
  --c-card-bracket-inset: 0.7rem;
  --c-card-bracket-radius: 0.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  border: 1px solid #dfdfea;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(16, 16, 30, 0.04), 0 1.5rem 3rem -2.35rem rgba(16, 16, 30, 0.55);
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.4s var(--c-ease), box-shadow 0.4s var(--c-ease), border-color 0.4s var(--c-ease);
}
.c-card::before,
.c-card::after {
  border-color: color-mix(in srgb, var(--c-ink) 24%, transparent);
  content: "";
  height: 1rem;
  pointer-events: none;
  position: absolute;
  width: 1rem;
}
.c-card::before { border-left: 1px solid; border-top: 1px solid; border-top-left-radius: var(--c-card-bracket-radius); left: var(--c-card-bracket-inset); top: var(--c-card-bracket-inset); }
.c-card::after { border-bottom: 1px solid; border-bottom-right-radius: var(--c-card-bracket-radius); border-right: 1px solid; bottom: var(--c-card-bracket-inset); right: var(--c-card-bracket-inset); }
.c-card:hover { border-color: #c8c8dc; box-shadow: var(--c-shadow-strong); transform: translateY(-4px); }
#roles-grid .c-card:not(.c-skeleton) {
  opacity: 0;
  transform: translateY(16px);
}
#roles-grid.has-animated .c-card:not(.c-skeleton),
#roles-grid .c-card.is-in {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--card-i, 0) * 70ms);
}
#roles-grid .c-card:not(.c-skeleton):hover {
  transform: translateY(-4px);
  transition-delay: 0ms;
}
.c-card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.c-chip {
  background: var(--c-base);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-muted);
  font-family: "IBM Plex Mono", Arial, sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem;
  text-transform: uppercase;
}
.c-chip.is-accent { background: color-mix(in srgb, var(--c-ink) 92%, #2b2bff); border-color: transparent; color: #fff; }
/* Colour-coded role type */
.c-chip--fulltime { background: #e8edff; border-color: #d8dfff; color: #2f49c7; }
.c-chip--intern { background: #e4f6ea; border-color: #ccead6; color: #157a42; }

/* ---------- Segmented filter ---------- */
.c-segment { position: relative; display: inline-flex; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; box-shadow: inset 0 1px 0 #fff; padding: 0.3rem; }
.c-segment-btn { position: relative; z-index: 1; background: none; border: 0; border-radius: 999px; color: var(--c-muted); cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 500; padding: 0.5rem 1.2rem; transition: color 0.3s var(--c-ease); white-space: nowrap; }
.c-segment-btn:hover { color: var(--c-ink); }
.c-segment-btn.is-active { color: var(--c-base); }
.c-segment-thumb { position: absolute; top: 0.3rem; bottom: 0.3rem; left: 0; width: 0; background: var(--c-ink-rev); border-radius: 999px; z-index: 0; transform: translateX(0); transition: transform 0.38s var(--c-ease), width 0.38s var(--c-ease); }
@media (prefers-reduced-motion: reduce) { .c-segment-thumb { transition: none; } }

/* ---------- Why-work-here benefits card ---------- */
.c-apply-side { display: grid; gap: 1rem; position: sticky; top: 6rem; }
.c-benefits { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 1.25rem; box-shadow: inset 0 1px 0 #fff; padding: clamp(1.75rem, 3vw, 2.25rem); }
.c-benefits h2 { margin: 0 0 1.75rem; }
.c-benefit-list { display: grid; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.c-benefit { align-items: flex-start; display: flex; gap: 1rem; }
.c-benefit-ic { align-items: center; background: var(--c-base); border: 1px solid var(--c-line); border-radius: 0.85rem; color: var(--c-ink); display: flex; flex: none; height: 2.75rem; justify-content: center; width: 2.75rem; }
.c-benefit-title { color: var(--c-ink); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.c-benefit-desc { color: var(--c-muted); font-size: 0.95rem; line-height: 1.5; }
.c-contact-card { align-items: flex-start; background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%); border: 1px solid #dfdfea; border-radius: 1rem; box-shadow: var(--c-shadow); display: flex; gap: 1rem; padding: 1.25rem; }
.c-contact-icon { align-items: center; background: #f1f3fb; border: 1px solid #e1e5f3; border-radius: 0.85rem; color: #53609a; display: flex; flex: none; height: 2.75rem; justify-content: center; width: 2.75rem; }
.c-contact-body { min-width: 0; }
.c-contact-eyebrow { color: var(--c-faint); font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.03em; line-height: 1.2; margin: 0 0 0.45rem; text-transform: uppercase; }
.c-contact-title { color: var(--c-ink); font-size: 1.15rem; font-weight: 500; letter-spacing: 0; line-height: 1.2; margin: 0 0 0.45rem; }
.c-contact-text { color: var(--c-muted); font-size: 0.95rem; line-height: 1.5; margin: 0; }
.c-contact-text a { color: var(--c-ink); font-weight: 500; overflow-wrap: anywhere; text-decoration-color: color-mix(in srgb, var(--c-ink) 35%, transparent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.c-contact-text a:hover { text-decoration-color: currentColor; }
.c-card h3 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 1.4rem 0 0.55rem; }
.c-card p { color: var(--c-muted); font-size: 0.975rem; line-height: 1.5; margin: 0 0 1.25rem; }
.c-card-info { border-top: 1px solid #e5e5ef; display: grid; gap: 0.75rem; margin-top: auto; padding-top: 1.1rem; }
.c-card-info-item { align-items: center; color: var(--c-muted); display: flex; font-size: 0.875rem; gap: 0.7rem; min-width: 0; }
.c-card-info-icon { align-items: center; background: #f1f3fb; border: 1px solid #e1e5f3; border-radius: 0.65rem; color: #53609a; display: flex; flex: none; height: 2rem; justify-content: center; width: 2rem; }
.c-card-info-item svg { display: block; flex: none; }
.c-card-info-body { min-width: 0; }
.c-card-info-label { color: var(--c-faint); display: block; font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.67rem; letter-spacing: 0.03em; line-height: 1.2; text-transform: uppercase; }
.c-card-info-item strong { color: var(--c-ink); display: block; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.c-card-cta { margin-top: 1.1rem; align-self: flex-start; }
.c-card-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.c-card-cta { position: relative; z-index: 2; }

/* ---------- Culture ---------- */
.c-section--culture {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c-line-soft) 52%, transparent) 1px, transparent 1px) 50% 0 / min(7.5rem, 18vw) 100%,
    linear-gradient(180deg, #ffffff 0%, #f8f8fc 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--c-line) 70%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--c-line) 70%, transparent);
}
.c-culture-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-culture-card {
  background: color-mix(in srgb, var(--c-base) 86%, transparent);
  border: 1px solid var(--c-line);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(16, 16, 30, 0.04), 0 1.4rem 3rem -2.4rem rgba(16, 16, 30, 0.45);
  min-height: 15rem;
  padding: 1.35rem;
  position: relative;
}
.c-culture-card::before {
  background: var(--c-ink);
  content: "";
  height: 1px;
  left: 1.35rem;
  position: absolute;
  right: 1.35rem;
  top: 3.2rem;
}
.c-culture-num {
  color: var(--c-faint);
  display: block;
  font-family: "IBM Plex Mono", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-bottom: 2.4rem;
}
.c-culture-card h3 {
  color: var(--c-ink);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.c-culture-card p { color: var(--c-muted); font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* skeleton */
.c-skeleton { pointer-events: none; }
.c-sk { background: linear-gradient(90deg, var(--c-line) 25%, var(--c-surface) 50%, var(--c-line) 75%); background-size: 200% 100%; border-radius: 0.6rem; animation: c-shimmer 1.4s infinite; }
.c-sk-1 { height: 1rem; width: 38%; }
.c-sk-2 { height: 1.7rem; width: 72%; margin-top: 1.6rem; }
.c-sk-3 { height: 3.2rem; width: 100%; margin-top: 1rem; }
.c-sk-4 { height: 2.6rem; width: 6.5rem; margin-top: auto; border-radius: 1rem; }
@keyframes c-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Apply layout ---------- */
.c-apply { display: grid; gap: 1rem; grid-template-columns: 0.9fr 1.1fr; align-items: start; }

/* ---------- Form ---------- */
.c-form { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 1.25rem; box-shadow: inset 0 1px 0 #fff; display: grid; gap: 1.15rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.c-field { display: grid; gap: 0.5rem; }
.c-field label { color: var(--c-muted); font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; }
.c-input {
  background: var(--c-base); border: 1px solid var(--c-line); border-radius: 0.8rem; color: var(--c-ink);
  font-family: inherit; font-size: 1rem; font-weight: 450; min-height: 3rem; padding: 0.7rem 0.9rem; width: 100%;
  transition: border-color 0.25s var(--c-ease), box-shadow 0.25s var(--c-ease);
}
.c-input::placeholder { color: var(--c-faint); font-weight: 400; }
.c-input:focus { border-color: var(--c-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-ink) 12%, transparent); outline: none; }
.c-input.is-prefilled { color: var(--c-ink); font-weight: 500; }
.c-form-foot { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.25rem; }
.c-capacity-message { background: #fff4e5; border: 1px solid #f3d59f; border-radius: 0.9rem; color: #704700; flex: 1 1 100%; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; margin: 0; padding: 0.9rem 1rem; }
.c-hint { color: var(--c-muted); font-size: 0.875rem; margin: 0; }

/* ---------- Custom select ---------- */
.c-cselect { position: relative; }
.c-cselect-btn {
  align-items: center; background: var(--c-base); border: 1px solid var(--c-line); border-radius: 0.8rem;
  color: var(--c-ink); cursor: pointer; display: flex; font-family: inherit; font-size: 1rem; font-weight: 500;
  gap: 0.5rem; justify-content: space-between; min-height: 3rem; padding: 0.7rem 0.9rem; text-align: left; width: 100%;
  transition: border-color 0.25s var(--c-ease), box-shadow 0.25s var(--c-ease);
}
.c-cselect-btn:focus-visible { border-color: var(--c-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-ink) 12%, transparent); outline: none; }
.c-cselect.is-open .c-cselect-btn { border-color: var(--c-ink); }
.c-cselect-btn[data-placeholder="true"] { color: var(--c-faint); font-weight: 400; }
.c-cselect-chev { flex: none; transition: transform 0.3s var(--c-ease); color: var(--c-muted); }
.c-cselect.is-open .c-cselect-chev { transform: rotate(180deg); }
.c-cselect-panel {
  background: var(--c-base); border: 1px solid var(--c-line); border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem -1rem #1a1a3340; left: 0; right: 0; margin-top: 0.4rem; max-height: 19rem;
  opacity: 0; overflow-y: auto; padding: 0.4rem; position: absolute; top: 100%; transform: translateY(-6px) scale(0.99);
  transform-origin: top; transition: opacity 0.2s var(--c-ease), transform 0.2s var(--c-ease); visibility: hidden; z-index: 30;
}
.c-cselect.is-open .c-cselect-panel { opacity: 1; transform: none; visibility: visible; }
.c-cselect-group { color: var(--c-faint); font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.68rem; letter-spacing: 0.04em; padding: 0.6rem 0.7rem 0.35rem; text-transform: uppercase; }
.c-cselect-opt { align-items: center; border-radius: 0.65rem; color: var(--c-ink); cursor: pointer; display: flex; font-size: 0.975rem; gap: 0.6rem; justify-content: space-between; padding: 0.6rem 0.7rem; }
.c-cselect-opt:hover, .c-cselect-opt.is-active { background: var(--c-surface); }
.c-cselect-opt[aria-selected="true"] { color: var(--c-ink); font-weight: 600; }
.c-cselect-opt-tag { color: var(--c-muted); font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.68rem; text-transform: uppercase; }
.c-cselect-opt .c-cselect-check { color: var(--c-ink); opacity: 0; }
.c-cselect-opt[aria-selected="true"] .c-cselect-check { opacity: 1; }

/* ---------- Dropzone ---------- */
.c-drop {
  align-items: center; background: var(--c-base); border: 1.5px dashed var(--c-line); border-radius: 0.9rem;
  cursor: pointer; display: flex; gap: 0.9rem; padding: 1.1rem; text-align: left;
  transition: border-color 0.25s var(--c-ease), background 0.25s var(--c-ease);
}
.c-drop:hover { border-color: var(--c-muted); }
.c-drop.is-drag { background: color-mix(in srgb, var(--c-ink) 4%, var(--c-base)); border-color: var(--c-ink); border-style: solid; }
.c-drop.has-file { border-style: solid; border-color: color-mix(in srgb, var(--c-ink) 22%, var(--c-line)); }
.c-drop-icon { align-items: center; background: var(--c-surface); border-radius: 0.75rem; color: var(--c-muted); display: flex; flex: none; height: 2.75rem; justify-content: center; width: 2.75rem; }
.c-drop.has-file .c-drop-icon { background: color-mix(in srgb, #1e9e57 14%, var(--c-base)); color: #167a45; }
.c-drop-body { min-width: 0; }
.c-drop-title { color: var(--c-ink); font-size: 0.975rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-drop.has-file .c-drop-title {
  display: -webkit-box;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.c-drop-sub { color: var(--c-muted); font-size: 0.85rem; }
.c-drop-clear { background: none; border: 0; color: var(--c-muted); cursor: pointer; flex: none; font-family: inherit; font-size: 0.85rem; margin-left: auto; padding: 0.3rem 0.4rem; text-decoration: underline; }
.c-drop-clear:hover { color: var(--c-ink); }

/* ---------- Form note + on-site confirmation ---------- */
.c-formnote {
  align-items: flex-start; background: var(--c-base); border: 1px solid var(--c-line-soft);
  border-radius: 0.85rem; box-shadow: inset 0 1px 0 #fff; display: flex; gap: 0.85rem; padding: 0.95rem 1rem;
}
.c-formnote-ic { align-items: center; background: #f1f3fb; border: 1px solid #e1e5f3; border-radius: 0.65rem; color: #53609a; display: flex; flex: none; height: 2rem; justify-content: center; width: 2rem; }
.c-formnote-ic svg { display: block; }
.c-formnote-text { color: var(--c-muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }
.c-formnote-text strong { color: var(--c-ink); font-weight: 600; }

.c-checkfield {
  align-items: flex-start; background: var(--c-base); border: 1px solid var(--c-line); border-radius: 0.85rem;
  box-shadow: inset 0 1px 0 #fff; cursor: pointer; display: flex; gap: 0.85rem; padding: 0.95rem 1rem; position: relative;
  transition: border-color 0.25s var(--c-ease), background 0.25s var(--c-ease);
}
.c-checkfield:hover { border-color: var(--c-muted); }
.c-checkfield:has(.c-checkfield-input:checked) { border-color: color-mix(in srgb, var(--c-ink) 22%, var(--c-line)); }
.c-checkfield-input { height: 1px; margin: 0; opacity: 0; position: absolute; width: 1px; }
.c-checkfield-box {
  align-items: center; background: var(--c-base); border: 1.5px solid var(--c-line); border-radius: 0.45rem;
  color: #fff; display: flex; flex: none; height: 1.35rem; justify-content: center; margin-top: 0.1rem; width: 1.35rem;
  transition: background 0.22s var(--c-ease), border-color 0.22s var(--c-ease), box-shadow 0.22s var(--c-ease);
}
.c-checkfield-box svg { display: block; opacity: 0; transform: scale(0.4); transition: opacity 0.2s var(--c-ease), transform 0.24s var(--c-ease); }
.c-checkfield-input:checked + .c-checkfield-box { background: var(--c-ink); border-color: var(--c-ink); }
.c-checkfield-input:checked + .c-checkfield-box svg { opacity: 1; transform: scale(1); }
.c-checkfield-input:focus-visible + .c-checkfield-box { border-color: var(--c-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-ink) 12%, transparent); }
.c-checkfield-text { color: var(--c-muted); font-size: 0.9rem; line-height: 1.55; }
.c-checkfield-text strong { color: var(--c-ink); font-weight: 600; }
.c-checkfield-link { background: none; border: 0; color: var(--c-ink); cursor: pointer; font: inherit; font-weight: 600; padding: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 0.2s var(--c-ease); }
.c-checkfield-link:hover { color: var(--c-blue); }
.c-checkfield-link:focus-visible { border-radius: 3px; outline: 2px solid var(--c-blue); outline-offset: 2px; }
.c-checkfield.is-error { background: #fdf3f2; border-color: #d23b30; }
.c-checkfield.is-error .c-checkfield-box { border-color: #d23b30; }
@media (prefers-reduced-motion: reduce) { .c-checkfield, .c-checkfield-box, .c-checkfield-box svg { transition: none; } }

/* ---------- Notices ---------- */
.c-notice { border-radius: 0.9rem; font-size: 0.9375rem; line-height: 1.45; margin: 0; padding: 0; }
.c-notice[data-kind] { padding: 0.85rem 1rem; }
.c-notice[data-kind="info"] { background: #eef1ff; color: #3a3a8c; }
.c-notice[data-kind="warn"] { background: #fff4e5; color: #8a5a00; }
.c-notice[data-kind="error"] { background: #fde8e6; color: #b3261e; }
.c-notice[data-kind="success"] { background: #e6f6ec; color: #176c3c; }

/* ---------- My applications ---------- */
.c-apps { display: grid; gap: 0.75rem; }
.c-app {
  align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between; padding: 1.25rem 1.5rem;
  transition: border-color 0.3s var(--c-ease);
}
.c-app:hover { border-color: color-mix(in srgb, var(--c-ink) 14%, var(--c-line)); }
.c-app-main h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 0.2rem; }
.c-app-meta { color: var(--c-faint); font-size: 0.875rem; margin: 0; }
.c-app-side { align-items: center; display: flex; gap: 0.85rem; position: relative; }

/* "Read message" subtext link on rejected applications */
.c-app-readmsg {
  align-items: center; background: none; border: 0; color: var(--c-ink); cursor: pointer;
  display: inline-flex; font: inherit; font-size: 0.875rem; font-weight: 600; gap: 0.25rem;
  margin: 0.55rem 0 0; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.c-app-readmsg svg { transition: transform 0.2s var(--c-ease); }
.c-app-readmsg:hover svg { transform: translateX(2px); }

/* privacy note shown after the applicant deletes their resume */
.c-app-note { align-items: center; color: var(--c-faint); display: flex; font-size: 0.8125rem; gap: 0.4rem; margin: 0.55rem 0 0; }
.c-app-note svg { flex: none; }

/* feedback panel inside the rejection-message popup (mirrors the email) */
.c-msgpanel { background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: 0.9rem; margin: 0 0 1rem; padding: 0.9rem 1.1rem; }
.c-msgpanel-eyebrow { color: var(--c-faint); font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.6875rem; letter-spacing: 0.08em; margin-bottom: 0.5rem; text-transform: uppercase; }
.c-msgpanel-body { color: var(--c-muted); font-size: 0.9375rem; line-height: 1.55; }
.c-msgpanel-body p, .c-msgpanel-body ul, .c-msgpanel-body ol, .c-msgpanel-body pre, .c-msgpanel-body blockquote, .c-msgpanel-body h4 { margin: 0 0 0.6rem; }
.c-msgpanel-body > :last-child { margin-bottom: 0 !important; }
.c-msgpanel-body ul, .c-msgpanel-body ol { padding-left: 1.25rem; }
.c-msgpanel-body h4 { color: var(--c-ink); font-size: 1em; }
.c-msgpanel-body strong { color: var(--c-ink); }
.c-msgpanel-body a { color: inherit; }
.c-msgpanel-body code { background: color-mix(in srgb, var(--c-line-soft) 60%, transparent); border-radius: 0.35rem; font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.92em; padding: 0.1em 0.35em; }
.c-msgpanel-body pre { background: color-mix(in srgb, var(--c-line-soft) 60%, transparent); border-radius: 0.6rem; font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.85em; line-height: 1.55; overflow-x: auto; padding: 0.75rem 0.9rem; white-space: pre-wrap; word-break: break-word; }
.c-msgpanel-body blockquote { border-left: 3px solid var(--c-line); padding: 0.1rem 0 0.1rem 0.75rem; }

.c-status { align-items: center; border-radius: 999px; display: inline-flex; font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.7rem; gap: 0.4rem; letter-spacing: 0.03em; padding: 0.4rem 0.7rem; text-transform: uppercase; white-space: nowrap; }
.c-status::before { border-radius: 999px; content: ""; height: 0.45rem; width: 0.45rem; }
.c-status--pending { background: #ececf3; color: #545478; } .c-status--pending::before { background: #8a8ab0; }
.c-status--in_review { background: #e6efff; color: #1f5fd1; } .c-status--in_review::before { background: #1f5fd1; }
.c-status--shortlisted { background: #e3f6ea; color: #167a45; } .c-status--shortlisted::before { background: #1e9e57; }
.c-status--rejected { background: #fde8e6; color: #b3261e; } .c-status--rejected::before { background: #d23b30; }
.c-status--withdrawn { background: #f3f0eb; color: #7a6a48; } .c-status--withdrawn::before { background: #b59a66; }

/* kebab + popover menu */
.c-iconbtn { align-items: center; background: var(--c-base); border: 1px solid var(--c-line); border-radius: 0.7rem; color: var(--c-muted); cursor: pointer; display: inline-flex; height: 2.4rem; justify-content: center; transition: border-color 0.2s var(--c-ease), color 0.2s var(--c-ease), background 0.2s var(--c-ease); width: 2.4rem; }
.c-iconbtn:hover { border-color: var(--c-muted); color: var(--c-ink); }
.c-iconbtn.is-open { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.c-menu {
  background: var(--c-base); border: 1px solid var(--c-line); border-radius: 0.9rem; box-shadow: 0 1.25rem 2.5rem -0.75rem #1a1a3340;
  min-width: 12rem; opacity: 0; padding: 0.4rem; position: absolute; right: 0; top: calc(100% + 0.45rem);
  transform: translateY(-6px) scale(0.98); transform-origin: top right; transition: opacity 0.18s var(--c-ease), transform 0.18s var(--c-ease);
  visibility: hidden; z-index: 40;
}
.c-menu.is-open { opacity: 1; transform: none; visibility: visible; }
.c-menu-item { align-items: center; background: none; border: 0; border-radius: 0.6rem; color: var(--c-ink); cursor: pointer; display: flex; font-family: inherit; font-size: 0.9375rem; gap: 0.65rem; padding: 0.6rem 0.65rem; text-align: left; width: 100%; }
.c-menu-item:hover { background: var(--c-surface); }
.c-menu-item svg { color: var(--c-muted); flex: none; }
.c-menu-item.is-danger { color: #b3261e; }
.c-menu-item.is-danger svg { color: #b3261e; }
.c-menu-sep { background: var(--c-line); border: 0; height: 1px; margin: 0.3rem 0.2rem; }

/* ---------- Modal (custom, replaces native dialogs) ---------- */
.c-modal-overlay {
  align-items: center; background: #0b0b1266; backdrop-filter: blur(3px); display: flex; inset: 0; justify-content: center;
  opacity: 0; overflow-y: auto; padding: 1.25rem; position: fixed; transition: opacity 0.25s var(--c-ease); z-index: 1000;
}
.c-modal-overlay.is-open { opacity: 1; }
.c-modal {
  background: var(--c-base); border: 1px solid var(--c-line); border-radius: 1.25rem; box-shadow: 0 2rem 4rem -1rem #0b0b1259;
  box-sizing: border-box; max-height: calc(100dvh - 2.5rem); max-width: 32rem; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.5rem, 3vw, 2rem); position: relative;
  transform: translateY(12px) scale(0.98); transition: transform 0.28s var(--c-ease); width: 100%;
}
.c-modal-overlay.is-open .c-modal { transform: none; }
.c-modal-close { align-items: center; background: var(--c-surface); border: 0; border-radius: 0.7rem; color: var(--c-muted); cursor: pointer; display: flex; height: 2.25rem; justify-content: center; position: absolute; right: 1.1rem; top: 1.1rem; touch-action: manipulation; width: 2.25rem; z-index: 5; }
.c-modal-close:hover { color: var(--c-ink); }
.c-modal-icon { align-items: center; border-radius: 1rem; display: flex; height: 3rem; justify-content: center; margin-bottom: 1rem; width: 3rem; }
.c-modal-icon.is-warn { background: #fff4e5; color: #b3261e; }
.c-modal h3 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 0.6rem; padding-right: 2rem; }
.c-modal p { color: var(--c-muted); font-size: 1rem; line-height: 1.55; margin: 0 0 1rem; }
.c-modal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

/* status legend list inside modal — single grid so every capsule column
   shares the widest capsule's width and all the text lines up. */
/* Workplace guidelines popup — stacks above the apply popup */
.c-modal-overlay--stack { z-index: 1100; }
.c-guidelines .c-eyebrow.is-plain { margin: 0 0 0.6rem; }
.c-guidelines h3 { margin-bottom: 0.4rem; }
.c-guidelines-list { margin-top: 1.1rem; }

.c-legend { display: grid; grid-template-columns: max-content 1fr; gap: 1.1rem 1rem; margin: 0.75rem 0 0; align-items: start; }
.c-legend > .c-status { margin-top: 0.1rem; justify-content: center; min-width: 6.5rem; }
.c-legend-text { min-width: 0; }
.c-legend-name { color: var(--c-ink); font-size: 0.975rem; font-weight: 600; margin-bottom: 0.1rem; }
.c-legend-desc { color: var(--c-muted); font-size: 0.9rem; line-height: 1.45; }

/* ---------- Apply popup (role-detail page) ---------- */
.c-apply-head { margin-bottom: 1.35rem; padding-right: 2.25rem; }
.c-apply-head .c-eyebrow { margin: 0 0 0.5rem; }
.c-apply-head-title { font-size: 1.55rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.4rem; }
.c-apply-head-sub { color: var(--c-faint); font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.72rem; letter-spacing: 0.03em; margin: 0; text-transform: uppercase; }

/* In the popup the modal itself is the card, so the form drops its surface. */
.c-form--modal { background: transparent; border: 0; border-radius: 0; gap: 1rem; padding: 0; }
.c-form, .c-form *, .c-modal, .c-modal * { box-sizing: border-box; }
.c-form, .c-field, .c-cselect, .c-drop, .c-drop-body, .c-form-foot { max-width: 100%; min-width: 0; }
.c-cselect-panel { box-sizing: border-box; max-width: 100%; }
.c-drop { flex-wrap: wrap; width: 100%; }
.c-drop-body { flex: 1 1 12rem; }
.c-drop-title, .c-drop-sub { overflow-wrap: anywhere; }
.c-drop-clear { margin-left: 0; max-width: 100%; }
.c-drop.has-file .c-drop-clear { margin-left: auto; }
.c-apply-gate { display: grid; gap: 1.1rem; }

/* ---------- Success screen (shared: inline + popup) ---------- */
.c-success-wrap { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 1.75rem; padding: clamp(1.75rem, 3vw, 2.5rem); }
.c-success { display: grid; gap: 0.35rem; justify-items: center; text-align: center; }
.c-success-badge { align-items: center; display: flex; height: 4rem; justify-content: center; margin-bottom: 0.65rem; width: 4rem; animation: c-badge-pop 0.45s var(--c-ease) both; }
.c-success-title { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; margin: 0.1rem 0 0.55rem; }
.c-success-body { display: grid; gap: 0.7rem; margin: 0 auto; max-width: 30rem; }
.c-success-body p { color: var(--c-muted); font-size: 1rem; line-height: 1.55; margin: 0; }
.c-success-actions { margin-top: 1.4rem; max-width: 20rem; width: 100%; }

/* Animated checkmark — ring draws, then the tick. */
.c-success-mark { display: block; overflow: visible; }
.c-success-mark-ring { stroke: #1e9e57; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: c-mark-draw 0.6s var(--c-ease) forwards; }
.c-success-mark-check { stroke: #1e9e57; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: c-mark-draw 0.34s var(--c-ease) 0.5s forwards; }
@keyframes c-mark-draw { to { stroke-dashoffset: 0; } }
@keyframes c-badge-pop { 0% { opacity: 0; transform: scale(0.5); } 60% { transform: scale(1.07); } 100% { opacity: 1; transform: scale(1); } }

/* Full-screen confetti canvas, above the modal overlay (z 1000). */
.c-confetti-canvas { height: 100%; inset: 0; pointer-events: none; position: fixed; width: 100%; z-index: 2000; }

@media (prefers-reduced-motion: reduce) {
  .c-success-badge, .c-success-mark-ring, .c-success-mark-check { animation: none; }
  .c-success-mark-ring, .c-success-mark-check { stroke-dashoffset: 0; }
}

@media screen and (max-height: 700px) {
  .c-modal-overlay { align-items: flex-start; padding: 0.5rem; }
  .c-modal { margin: 0.5rem 0; max-height: calc(100dvh - 1rem); padding: 1.1rem; }
  .c-apply-head { margin-bottom: 0.85rem; padding-right: 2.5rem; }
  .c-apply-head-title { font-size: 1.25rem; }
  .c-form--modal { gap: 0.75rem; }
  .c-input, .c-cselect-btn { min-height: 2.75rem; padding-block: 0.6rem; }
  .c-drop { padding: 0.85rem; }
}

/* ---------- Process steps ---------- */
.c-steps { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-step { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 1.5rem; padding: 1.5rem; }
.c-step-num { align-items: center; border: 1px solid var(--c-line); border-radius: 0.75rem; color: var(--c-muted); display: inline-flex; font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.875rem; height: 2.25rem; justify-content: center; width: 2.25rem; }
.c-step h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; margin: 1.25rem 0 0.5rem; }
.c-step p { color: var(--c-muted); font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--c-ease), transform 0.7s var(--c-ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .c-hero-bg {
    transform: translate3d(0, var(--c-hero-bg-y), 0);
    transition: transform 0.12s linear;
  }
  .c-hero-shell {
    opacity: var(--c-hero-opacity);
    transform: translate3d(0, var(--c-hero-scroll-y), 0);
    transition: opacity 0.12s linear, transform 0.12s linear;
    will-change: opacity, transform;
  }
  .c-culture-grid.is-in .c-culture-card,
  .c-steps.is-in .c-step {
    animation: c-card-rise 0.72s var(--c-ease) both;
    animation-delay: calc(var(--card-i, 0) * 70ms);
  }
  .c-culture-grid.is-in .c-culture-card:nth-child(1),
  .c-steps.is-in .c-step:nth-child(1) { --card-i: 0; }
  .c-culture-grid.is-in .c-culture-card:nth-child(2),
  .c-steps.is-in .c-step:nth-child(2) { --card-i: 1; }
  .c-culture-grid.is-in .c-culture-card:nth-child(3),
  .c-steps.is-in .c-step:nth-child(3) { --card-i: 2; }
  .c-culture-grid.is-in .c-culture-card:nth-child(4) { --card-i: 3; }
  @keyframes c-card-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .c-btn, .c-card, .c-app, .c-cselect-panel, .c-menu, .c-modal { transition: none; }
  .c-hero-bg, .c-hero-shell { transform: none; }
}

[hidden] { display: none !important; }

/* ---------- Role detail page ---------- */
.c-role-hero { border-bottom: 0; padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1.75rem, 4vw, 3.25rem); position: relative; z-index: 1; }
.c-back { align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 999px; box-shadow: 0 0.5rem 1.25rem -1rem rgba(16, 16, 30, 0.35); color: var(--c-muted); display: flex; font-size: 0.9375rem; gap: 0.45rem; line-height: 1; margin-bottom: 1.5rem; max-width: 100%; min-height: 2.5rem; padding: 0.55rem 0.85rem 0.55rem 0.7rem; text-decoration: none; transition: border-color 0.25s var(--c-ease), box-shadow 0.25s var(--c-ease), color 0.25s var(--c-ease), transform 0.25s var(--c-ease); vertical-align: top; width: fit-content; }
.c-back svg { display: block; flex: none; height: 1rem; width: 1rem; }
.c-back span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-back:hover { border-color: color-mix(in srgb, var(--c-ink) 18%, var(--c-line)); box-shadow: 0 0.85rem 1.5rem -1rem rgba(16, 16, 30, 0.42); color: var(--c-ink); transform: translateX(-2px); }
.c-role-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.c-role-hero-copy { max-width: 52rem; min-width: 0; }
.c-role-hero .c-display { font-size: clamp(2.55rem, 6vw, 4.5rem); letter-spacing: -0.045em; }
.c-role-hero-panel { background: #fff; border: 1px solid var(--c-line); border-radius: 1.1rem; box-shadow: var(--c-shadow); padding: 1.25rem; }
.c-role-panel-copy { color: var(--c-muted); font-size: 0.98rem; line-height: 1.5; margin: 0 0 1.1rem; }
.c-role-hero-facts { display: grid; gap: 0.95rem; }
.c-role-detail-section { padding-top: clamp(2rem, 4vw, 3.5rem); }
.c-role-layout { display: grid; gap: 2.5rem 3rem; grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem); align-items: start; }
.c-role-body { display: grid; gap: 2rem; max-width: 46rem; min-width: 0; }
.c-role-block { border-top: 1px solid var(--c-line-soft); padding-top: 1.5rem; }
.c-role-body > .c-role-block:first-child { border-top: 0; padding-top: 0; }
.c-role-section h2 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 0.85rem; }
.c-role-section p { color: var(--c-muted); font-size: 1.0625rem; line-height: 1.6; margin: 0; }
.c-role-list { display: grid; gap: 0.7rem; list-style: none; margin: 0; padding: 0; }
.c-role-list li { align-items: flex-start; color: var(--c-muted); display: flex; font-size: 1.0625rem; gap: 0.75rem; line-height: 1.55; }
.c-role-list li svg { color: var(--c-ink); flex: none; margin-top: 0.35rem; }
.c-role-eoo { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 1rem; padding: 1.5rem; }
.c-role-eoo p { font-size: 0.975rem; }

/* Emphasis card (e.g. the internship "real customers" callout) */
.c-role-highlight {
  align-items: flex-start; background: linear-gradient(180deg, color-mix(in srgb, var(--c-blue) 9%, #fff) 0%, color-mix(in srgb, var(--c-blue) 4%, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--c-blue) 26%, var(--c-line)); border-radius: 1rem; display: flex; gap: 1rem; padding: 1.35rem 1.5rem;
}
.c-role-highlight-ic { align-items: center; background: #fff; border: 1px solid color-mix(in srgb, var(--c-blue) 24%, var(--c-line)); border-radius: 0.7rem; color: var(--c-blue); display: flex; flex: none; height: 2.6rem; justify-content: center; width: 2.6rem; }
.c-role-highlight-ic svg { display: block; }
.c-role-highlight-copy { min-width: 0; }
.c-role-highlight-copy strong { color: var(--c-ink); display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.3rem; }
.c-role-highlight-copy p { color: var(--c-muted); font-size: 1.0625rem; line-height: 1.55; margin: 0; }

.c-role-aside { position: sticky; top: 6rem; display: grid; gap: 1rem; }
.c-role-card { background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%); border: 1px solid #dfdfea; border-radius: 1rem; box-shadow: var(--c-shadow); padding: 1.5rem; }
.c-role-card h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 0.75rem; }
.c-role-card .c-card-meta { margin-bottom: 1.1rem; }
.c-mobile-apply { display: none; }
.c-facts { border-top: 1px solid #e5e5ef; display: grid; gap: 0.85rem; padding-top: 1.1rem; }
.c-fact { display: grid; gap: 0.15rem; }
.c-role-fact { align-items: center; display: flex; gap: 0.7rem; min-width: 0; }
.c-role-fact-icon { align-items: center; background: #f1f3fb; border: 1px solid #e1e5f3; border-radius: 0.65rem; color: #53609a; display: flex; flex: none; height: 2rem; justify-content: center; width: 2rem; }
.c-role-fact-icon svg { display: block; flex: none; }
.c-role-fact-body { min-width: 0; }
.c-fact-label { color: var(--c-faint); font-family: "IBM Plex Mono", Arial, sans-serif; font-size: 0.68rem; letter-spacing: 0.03em; text-transform: uppercase; }
.c-fact-value { color: var(--c-ink); display: block; font-size: 1rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.c-fact-value.is-pay { font-size: 1.15rem; }
.c-role-closed { background: #fff4e5; border-radius: 0.8rem; color: #8a5a00; font-size: 0.9rem; line-height: 1.4; margin-top: 1rem; padding: 0.75rem 0.85rem; }

/* Shared card surface: close to the homepage's precise, line-led UI language. */
:is(.c-card, .c-benefits, .c-contact-card, .c-culture-card, .c-step, .c-app, .c-success-wrap, .c-role-card, .c-role-hero-panel, .c-role-eoo, .c-modal),
.c-form:not(.c-form--modal) {
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 94%, transparent) 0%, #fbfbff 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--c-line-soft) 46%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--c-line-soft) 46%, transparent) 1px, transparent 1px);
  background-size: auto, 2.8rem 2.8rem, 2.8rem 2.8rem;
  border: 1px solid #dfdfea;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(16, 16, 30, 0.04), 0 1.4rem 3rem -2.4rem rgba(16, 16, 30, 0.45);
}
:is(.c-card, .c-benefits, .c-contact-card, .c-culture-card, .c-step, .c-app, .c-success-wrap, .c-role-card, .c-role-hero-panel, .c-role-eoo, .c-modal) > *,
.c-form:not(.c-form--modal) > * {
  position: relative;
}
/* The rule above would otherwise pull the modal close button into the flow. */
.c-modal > .c-modal-close { position: absolute; z-index: 5; }
.c-input,
.c-cselect-btn,
.c-drop {
  border-radius: 0.75rem;
  box-shadow: inset 0 1px 0 #fff;
}
.c-benefit-ic,
.c-contact-icon,
.c-card-info-icon,
.c-role-fact-icon,
.c-step-num {
  border-radius: 0.7rem;
}

/* Footer wordmark on the Webflow footer is intentionally huge; constrain it on
   careers pages so the text does not clip at the viewport edges. */
.c-page .footer_logo_wrap { overflow: clip; }
.c-page .footer_logo-inner { width: 100%; }
.c-page .footer_wordmark { font-size: clamp(2.4rem, 11vw, 10rem); letter-spacing: -0.045em; line-height: 0.9; margin: 0 auto; max-width: calc(100vw - 2rem); padding-inline: 0.25rem; text-align: center; width: max-content; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .c-nav-links { display: none; }
  .c-section-head, .c-apply, .c-role-layout, .c-hero-shell, .c-role-hero-grid { grid-template-columns: 1fr; }
  .c-grid, .c-steps { grid-template-columns: 1fr; }
  .c-about-grid { grid-template-columns: 1fr; }
  .c-culture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-apply-side, .c-benefits, .c-panel, .c-role-aside { position: static; }
  .c-role-aside { order: -1; }
  .c-hero-panel { min-height: 0; }
  .c-role-hero-panel { max-width: 34rem; }
}
@media screen and (min-width: 600px) and (max-width: 991px) {
  .c-grid, .c-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 600px) {
  .c-nav { gap: 0.5rem; padding: 0.45rem 0.5rem 0.45rem 0.625rem; }
  .c-nav-auth [data-auth-signed-out] [data-clerk-open-sign-up] { display: none; }
  .c-hero { min-height: clamp(36rem, 88svh, 42rem); padding-top: clamp(5rem, 16vw, 6rem); padding-bottom: clamp(4.75rem, 14vw, 5.75rem); }
  .c-hero .c-display, .c-role-hero .c-display { font-size: clamp(2.25rem, 13vw, 3.2rem); }
  .c-hero-note { align-items: center; display: grid; justify-items: center; }
  .c-hero-note span + span::before { display: none; }
  .c-culture-grid { grid-template-columns: 1fr; }
  .c-about-capabilities { grid-template-columns: 1fr; }
  .c-culture-card { min-height: 0; }
  .c-hero-stats { grid-template-columns: 1fr; }
  .c-hero-people { align-items: flex-start; flex-wrap: wrap; row-gap: 0.6rem; }
  .c-hero-people span { flex-basis: 100%; margin-left: 0; }
  .c-hero-actions .c-btn { padding-left: 1rem; padding-right: 1rem; }
  .c-lead { max-width: 100%; }
  .c-page .footer_wordmark { font-size: clamp(2rem, 11vw, 3.2rem); max-width: calc(100vw - 2.5rem); }
  .c-brand span { display: none; }
  .c-app { align-items: flex-start; flex-direction: column; }
  .c-app-side { width: 100%; }
  .c-modal-overlay { padding: 0.6rem; }
  .c-modal { max-height: calc(100dvh - 1.2rem); padding: 1rem; }
  .c-mobile-apply {
    align-items: center;
    backdrop-filter: blur(1.25rem);
    background: color-mix(in srgb, #ffffff 88%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--c-line) 78%, transparent);
    bottom: 0;
    display: flex;
    left: 0;
    opacity: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    pointer-events: none;
    position: fixed;
    right: 0;
    transform: translateY(100%);
    transition: opacity 0.28s var(--c-ease), transform 0.38s var(--c-ease);
    z-index: 80;
  }
  .c-mobile-apply.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
}
