/* ============================================================
   careers.css — DocsDocs careers page
   Loads AFTER styles.css; only careers-specific rules live here.
   ============================================================ */

/* ---------- hero (blurred people mosaic, centered) ---------- */
.cr-hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(82vh, 760px); display: grid; place-items: center;
  text-align: center; background: #0b1020;
  padding: clamp(148px, 15vw, 200px) 0 clamp(56px, 7vw, 84px);
}
.hero-mosaic {
  position: absolute; inset: -60px; z-index: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  grid-auto-rows: 118px; gap: 0;
  filter: blur(10px) saturate(1.12) brightness(1.02);
  transform: scale(1.08); opacity: .9;
}
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(700px 400px at 50% 48%, rgba(11,16,32,.64), transparent 72%),
    radial-gradient(1200px 680px at 50% 26%, rgba(59,79,224,.24), transparent 60%),
    linear-gradient(180deg, rgba(11,16,32,.44) 0%, rgba(11,16,32,.4) 42%, rgba(11,16,32,.58) 100%);
}
.cr-hero .wrap { position: relative; z-index: 2; max-width: 960px; }

.cr-hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; letter-spacing: .01em; color: #d3d9ff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 15px 7px 12px; border-radius: var(--r-pill); margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.cr-hero-badge .live {
  width: 7px; height: 7px; border-radius: 50%; background: #6ee7a8;
  box-shadow: 0 0 0 4px rgba(110,231,168,.2); flex: none;
}
.cr-hero h1 {
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.02;
  font-size: clamp(46px, 6.2vw, 92px); margin: 0 auto; color: #fff; max-width: 16ch;
  text-shadow: 0 2px 40px rgba(11,16,32,.5);
}
.cr-hero h1 .accent { color: #aeb8ff; }
.cr-hero .lead {
  color: #c3caea; font-size: clamp(16px, 1.4vw, 20px);
  max-width: 56ch; margin: 24px auto 0; line-height: 1.6;
}

/* ---------- search + chips, centered in hero ---------- */
.hero-tools { margin: clamp(32px, 4vw, 46px) auto 0; max-width: 640px; }
.hs-field {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border-radius: var(--r-pill);
  padding: 6px 8px 6px 20px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8);
  text-align: left;
}
.hs-field svg { color: var(--ink-40); flex: none; }
.hs-field input {
  border: 0; outline: 0; width: 100%; font: inherit; font-size: 16.5px;
  color: var(--ink); background: transparent; padding: 15px 0;
}
.hs-field input::placeholder { color: var(--ink-40); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.hero-chips .rf-chip {
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
  color: #d0d6f2; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); padding: 8px 15px;
  border-radius: var(--r-pill); transition: color .15s, background .15s, border-color .15s;
  backdrop-filter: blur(4px);
}
.hero-chips .rf-chip:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-chips .rf-chip.on { color: var(--ink); background: #fff; border-color: #fff; }

/* ---------- roles ---------- */
.roles-section { padding-top: clamp(52px, 6vw, 80px); }
.roles-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.roles-head h2 {
  margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600;
  letter-spacing: -.025em; color: var(--ink);
}
.rf-count { font-size: 14px; font-weight: 600; color: var(--ink-40); white-space: nowrap; }

.roles-list { position: relative; }
.role-row {
  display: flex; align-items: center; gap: 20px; width: 100%;
  text-align: left; font: inherit; cursor: pointer; background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 26px clamp(4px, 1.4vw, 16px);
  transition: padding-left .2s ease, background .16s;
}
.role-row:hover { background: var(--paper); padding-left: clamp(12px, 2vw, 24px); }
.role-row .rr-main { min-width: 0; flex: 1; }
.role-row .rr-title {
  font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.18;
}
.role-row:hover .rr-title { color: var(--indigo); }
.role-row .rr-blurb {
  font-size: 14px; color: var(--ink-40); margin-top: 7px; line-height: 1.5;
  max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.role-row .rr-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: none; margin-left: auto;
}
.rr-pill {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-60); background: var(--paper); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: var(--r-pill); white-space: nowrap;
}
.rr-pill.dept { color: var(--indigo); background: var(--periwinkle); border-color: transparent; }
.role-row .rr-go {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink-40); transition: all .18s; margin-left: 4px;
}
.role-row:hover .rr-go { background: var(--indigo); color: #fff; border-color: var(--indigo); transform: translateX(2px); }
.roles-empty { padding: 44px 8px; text-align: center; color: var(--ink-40); font-size: 15px; }

/* ---------- avatars (shared by quotes) ---------- */
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; font-weight: 600; font-size: 15px; color: #fff;
  background: linear-gradient(150deg, var(--indigo), var(--indigo-700));
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-avatar.g2 { background: linear-gradient(150deg, #5b8c6e, #34503f); }
.review-avatar.g3 { background: linear-gradient(150deg, #b07cc6, #6d4b86); }

/* ============================================================
   Life at DocsDocs — one integrated, borderless section
   (values · quotes · alumni marquee)
   ============================================================ */

/* squeeze the life section into a tighter frame */
.life-narrow { max-width: 1080px; }

/* values: clean borderless columns */
.life-values {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px); margin-top: clamp(22px, 3vw, 36px);
}
.lv { display: flex; flex-direction: column; }
.lv-ic {
  width: 48px; height: 48px; border-radius: 14px; background: var(--periwinkle);
  color: var(--indigo); display: grid; place-items: center; font-size: 21px; margin-bottom: 18px;
}
.lv h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; color: var(--ink); }
.lv p { font-size: 15px; line-height: 1.62; color: var(--ink-60); margin: 0; }

/* quotes: borderless testimonials with a hairline divider above */
.life-quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 60px);
  margin-top: clamp(52px, 6vw, 84px); padding-top: clamp(44px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.lq { margin: 0; display: flex; flex-direction: column; }
.lq .lq-mark {
  font-family: Georgia, "Times New Roman", serif; font-size: 54px; line-height: .1;
  color: var(--indigo-300); height: 24px; margin-bottom: 8px; user-select: none;
}
.lq blockquote { font-size: 17px; line-height: 1.62; color: var(--ink); font-weight: 450; margin: 0 0 22px; flex: 1; }
.lq figcaption { display: flex; align-items: center; gap: 13px; }
.lq .review-name { font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.25; }
.lq .review-role { font-size: 12.8px; color: var(--ink-40); margin-top: 3px; }
.life-note { font-size: 12px; color: var(--ink-40); margin-top: 22px; }

/* alumni carousel strip (sits just below open roles) */
.alumni-strip { padding-block: clamp(40px, 4.5vw, 66px); background: var(--paper); border-block: 1px solid var(--line); overflow: hidden; }
.la-label { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 28px; }
.la-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.la-marquee + .la-marquee { margin-top: 20px; }
.la-track { display: flex; gap: 46px; width: max-content; animation: la-scroll 68s linear infinite; }
.la-track.rev { animation-direction: reverse; }
.la-marquee:hover .la-track { animation-play-state: paused; }
.la-item { display: flex; align-items: center; gap: 12px; flex: none; white-space: nowrap; }
.la-item img { width: 27px; height: 27px; object-fit: contain; flex: none; }
.la-item img.la-logo { width: auto; height: 22px; max-width: 128px; }
.la-item span { font-size: 15px; font-weight: 600; color: var(--ink-60); }
@keyframes la-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 820px) {
  .life-values { grid-template-columns: 1fr; gap: 30px; }
  .life-quotes { grid-template-columns: 1fr; gap: 40px; }
}
@media (prefers-reduced-motion: reduce), (max-width: 700px) { .la-track { animation: none; } }

/* ---------- inclusion band ---------- */
.inclusion-band { background: var(--periwinkle); }
.inclusion-inner {
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: start;
}
.inclusion-inner h2 { margin: 0; }
.inclusion-inner .lead { margin: 0; color: var(--ink-70); }
.inclusion-inner .lead strong { color: var(--ink); font-weight: 600; }
.inclusion-inner .accommodate {
  margin-top: 22px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--periwinkle-2); border-radius: var(--r-mid);
  font-size: 14.5px; color: var(--ink-60); line-height: 1.55;
}
.inclusion-inner .accommodate a { color: var(--indigo); font-weight: 600; }

/* ============================================================
   job detail modal
   ============================================================ */
.job-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.job-modal.open { display: block; }
.job-modal .jm-scrim {
  position: absolute; inset: 0; background: rgba(11,16,32,.55);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s;
}
.job-modal.open .jm-scrim { opacity: 1; }
.jm-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(760px, 100%); background: #fff;
  box-shadow: -30px 0 80px -30px rgba(11,16,32,.5);
  transform: translateX(24px); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s;
  display: flex; flex-direction: column;
}
.job-modal.open .jm-panel { transform: none; opacity: 1; }
.jm-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--line);
  flex: none; background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
}
.jm-top .jm-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink-60); }
.jm-top .jm-brand img { height: 20px; }
.jm-close {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center;
  color: var(--ink-60); font-size: 18px; transition: all .15s; flex: none;
}
.jm-close:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-40); }
.jm-body { overflow-y: auto; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px) 40px; flex: 1; }

/* job detail content */
.jd-eyebrow { color: var(--indigo); }
.jd h1 {
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.035em;
  line-height: 1.08; margin: 10px 0 0; color: var(--ink);
}
.jd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jd-meta span {
  font-size: 12.5px; font-weight: 600; color: var(--ink-60);
  background: var(--paper); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: var(--r-pill);
}
.jd-meta span.dept { color: var(--indigo); background: var(--periwinkle); border-color: transparent; }
.jd-lead { font-size: 16.5px; line-height: 1.62; color: var(--ink-70); margin: 24px 0 0; }
.jd-lead p { margin: 0 0 16px; }
.jd-lead p:last-child { margin-bottom: 0; }
.jd section { margin-top: 34px; }
.jd h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-40); margin: 0 0 16px;
}
.jd ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.jd ul li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.55; color: var(--ink-70); }
.jd ul li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--periwinkle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%233b4fe0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.jd ul li b { color: var(--ink); font-weight: 600; }
.jd ul.plain li { padding-left: 22px; }
.jd ul.plain li::before {
  background: none; width: 6px; height: 6px; top: 9px; left: 5px;
  background-color: var(--indigo-300); background-image: none;
}

/* AI-engineer style facts + key skills block */
.jd-facts {
  margin-top: 34px; border: 1px solid var(--line); border-radius: var(--r-mid);
  background: var(--paper); overflow: hidden;
}
.jd-facts dl {
  margin: 0; display: grid; grid-template-columns: 1fr 1fr;
}
.jd-facts .fact {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.jd-facts dl .fact:nth-child(2n) { border-right: 0; }
.jd-facts dl .fact:nth-last-child(-n+1):nth-child(odd) { grid-column: 1 / -1; }
.jd-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); }
.jd-facts dd { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.jd-skills { padding: 18px 20px; }
.jd-skills .sk-lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 12px; }
.jd-skills .sk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jd-skills .sk {
  font-size: 12.5px; font-weight: 500; color: var(--ink-60);
  background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: var(--r-pill);
}
.jd-skills .sk.pref { color: var(--indigo); background: var(--periwinkle); border-color: transparent; font-weight: 600; }
.jd-skills .sk-note { font-size: 11.5px; color: var(--ink-40); margin-top: 12px; }

.jd-inclusion {
  margin-top: 38px; padding: 22px 24px; border-radius: var(--r-mid);
  background: var(--paper); border: 1px solid var(--line);
}
.jd-inclusion h4 { margin: 0 0 9px; font-size: 14px; font-weight: 600; color: var(--ink); }
.jd-inclusion p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-60); }
.jd-inclusion a { color: var(--indigo); font-weight: 600; }
.jd-apply {
  position: sticky; bottom: 0; margin: 40px -56px -40px; padding: 18px clamp(24px, 4vw, 56px);
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.jd-apply .jd-apply-note { font-size: 13px; color: var(--ink-40); }
.jd-apply button { font: inherit; border: 0; cursor: pointer; }

/* ============================================================
   application form
   ============================================================ */
.af-back {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px;
  font-weight: 600; color: var(--ink-60); background: none; border: 0; cursor: pointer;
  padding: 0; margin-bottom: 22px;
}
.af-back:hover { color: var(--indigo); }
.apply-form h2 {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.03em;
  margin: 0; color: var(--ink);
}
.apply-form .af-sub { color: var(--ink-60); font-size: 15px; margin: 8px 0 30px; line-height: 1.5; }
.af-field { margin-bottom: 20px; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.af-label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-70); margin-bottom: 9px;
}
.af-label .req { color: #e0564e; margin-left: 2px; }
.af-input, .af-select, .af-textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #f6f7fc; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.af-textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
.af-input::placeholder, .af-textarea::placeholder { color: var(--ink-40); }
.af-input:focus, .af-select:focus, .af-textarea:focus {
  outline: 0; border-color: var(--indigo-300); background: #fff;
  box-shadow: 0 0 0 4px rgba(59,79,224,.1);
}
.af-select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a8096' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px; cursor: pointer;
}
.af-file {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.af-file input[type=file] { font: inherit; font-size: 13.5px; color: var(--ink-60); }
.af-file input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; font-size: 13.5px; color: var(--indigo);
  background: var(--periwinkle); border: 0; border-radius: var(--r-pill);
  padding: 9px 16px; margin-right: 12px; cursor: pointer;
}
.af-hint { font-size: 12px; color: var(--ink-40); margin-top: 8px; }
.af-questions { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.af-questions .af-qh { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 20px; }
.af-submit-bar {
  position: sticky; bottom: 0; margin: 34px -56px -40px; padding: 18px clamp(24px, 4vw, 56px);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.af-submit-bar .af-consent { font-size: 12px; color: var(--ink-40); max-width: 42ch; }
.af-submit-bar .btn { flex: none; }

/* success state */
.af-success { text-align: center; padding: 40px 0 20px; }
.af-success .af-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; color: #fff; font-size: 30px;
  background: linear-gradient(150deg, var(--indigo), var(--indigo-700));
  box-shadow: 0 16px 40px -18px var(--indigo);
}
.af-success h2 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 12px; color: var(--ink); }
.af-success p { color: var(--ink-60); font-size: 15.5px; line-height: 1.6; max-width: 40ch; margin: 0 auto 26px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .inclusion-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .role-row { flex-wrap: wrap; gap: 12px; padding-inline: 4px; }
  .role-row:hover { padding-left: 4px; }
  .role-row .rr-meta { margin-left: 0; width: 100%; }
  .role-row .rr-go { position: absolute; right: 4px; top: 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .roles-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .jm-body { padding-inline: 22px; }
  .jd-apply, .af-submit-bar { margin-inline: -22px; padding-inline: 22px; }
  .af-row { grid-template-columns: 1fr; }
  .jd-facts dl { grid-template-columns: 1fr; }
  .jd-facts .fact { border-right: 0 !important; }
}

@media (max-width: 700px) {
  /* hero top/bottom padding was tuned for desktop hero framing; tighten for
     phones while keeping generous breathing room around the hero copy */
  .cr-hero { padding: clamp(96px, 20vw, 132px) 0 clamp(40px, 8vw, 56px); }
}

@media (max-width: 460px) {
  .cr-hero { padding: clamp(84px, 20vw, 108px) 0 clamp(32px, 8vw, 44px); }
  .hero-tools { margin-top: clamp(24px, 5vw, 32px); }
}
