/* =========================================================
   CAREERS — extends styles.css. Uses the site's own classes
   (.section, .h1, .h2, .it, .eyebrow, .lead, .kicker-row,
   .btn, .chip, .reveal) and only adds what doesn't exist yet.
   ========================================================= */

/* ---------- green statement (borrowed from the homepage) ---------- */
.rp-green { background: var(--accent); color: var(--ink); padding: 120px 0; position: relative; overflow: hidden; }
.rp-green .gs-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: clamp(120px, 22vw, 340px);
  letter-spacing: -0.07em; color: rgba(14,14,12,0.08);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.rp-green .wrap { position: relative; z-index: 1; }
.rp-green .headline {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.05em;
  line-height: 0.9; font-size: clamp(46px, 8vw, 118px); margin: 0;
}
.rp-green .headline em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.rp-green .gs-sub {
  font-size: clamp(17px, 1.4vw, 21px); color: rgba(14,14,12,0.7);
  max-width: 560px; margin-top: 30px; line-height: 1.45; letter-spacing: -0.01em;
}
.rp-green .gs-cta { display: flex; gap: 14px; margin-top: 42px; flex-wrap: wrap; align-items: center; }

/* ---------- index hero (dark, like the homepage hero) ---------- */
.careers-hero {
  background: var(--ink);
  color: #ECEAE1;
  padding: 190px 0 120px;
  text-align: center;
}
.careers-hero .eyebrow { color: rgba(255,255,255,0.55); }
.careers-hero .h1 { color: #ECEAE1; max-width: 15ch; margin-inline: auto; }
.careers-hero .lead { color: rgba(236,234,225,0.62); margin-inline: auto; text-align: center; }

/* ---------- role cards ---------- */
.roles-count {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 34px;
}
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .35s;
}
.role-card::before {
  content: ""; position: absolute; top: -1px; left: 28px; right: 28px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.role-card { position: relative; }
.role-card:hover::before { transform: scaleX(1); }
.role-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14,14,12,0.2);
  box-shadow: 0 22px 50px -30px rgba(14,14,12,0.4);
}
.role-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 40px;
}
.role-terms { font-size: 12.5px; color: var(--ink-3); text-align: right; }
.role-card h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 30px; line-height: 0.98; letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.role-card p { margin: 0 0 30px; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }
.role-view {
  margin-top: auto; display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 15px; align-self: flex-start;
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s;
}
.role-card:hover .role-view { border-bottom-color: var(--accent); }

/* ---------- role page hero ---------- */
.rp-hero {
  background: var(--ink); color: #ECEAE1;
  padding: 170px 0 100px;
}
.rp-hero .eyebrow { color: rgba(255,255,255,0.55); }
.rp-hero .h1 { color: #ECEAE1; max-width: 14ch; }
.rp-hero .lead { color: rgba(236,234,225,0.62); }
.rp-back {
  display: flex; width: fit-content; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(236,234,225,0.5);
  margin-bottom: 26px; transition: color .2s;
}
.rp-back:hover { color: #ECEAE1; }
.rp-hero-foot {
  display: flex; flex-wrap: wrap; gap: 36px;
  align-items: flex-end; justify-content: space-between; margin-top: 34px;
}
.rp-comp-line {
  margin: 16px 0 0; font-size: 16.5px; color: #ECEAE1;
  font-weight: 500; max-width: 46ch;
}
.rp-hero .chip { background: rgba(255,255,255,0.09); color: rgba(236,234,225,0.8); }

/* ---------- stat strip ---------- */
.rp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line-soft);
}
.rp-stat-n {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(38px, 4.2vw, 62px); line-height: 0.92;
  letter-spacing: -0.045em; margin-bottom: 16px;
}
.rp-stat-n .accent { color: var(--accent); }
.section.dark .rp-stat-n { color: #ECEAE1; }
.rp-stat-n .it {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; letter-spacing: -0.02em;
}
.rp-stat p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }

/* ---------- numbered ownership rows ---------- */
.rp-row {
  display: grid; grid-template-columns: 62px minmax(0,1fr) minmax(0,1.2fr);
  gap: 34px; padding: 32px 0; border-top: 1px solid var(--line-soft);
}
.rp-row:last-child { border-bottom: 1px solid var(--line-soft); }
.rp-row-n {
  font-family: var(--mono); font-size: 13px; color: var(--ink-3);
  padding-top: 7px; position: relative;
}
.rp-row-n::after {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .4s cubic-bezier(.2,.7,.2,1);
}
.rp-row:hover .rp-row-n::after { width: 26px; }
.rp-row h3 {
  margin: 0; font-family: var(--sans); font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; letter-spacing: -0.035em;
}
.rp-row p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.section.dark .rp-row { border-color: rgba(255,255,255,0.12); }
.section.dark .rp-row p { color: rgba(236,234,225,0.6); }
.section.dark .rp-row-n { color: rgba(236,234,225,0.45); }

/* ---------- process ---------- */
.rp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 36px; }
.rp-step-n {
  font-family: var(--serif); font-style: italic; font-size: 50px;
  line-height: 1; color: var(--accent); margin-bottom: 24px;
  text-shadow: 0 2px 18px oklch(0.85 0.27 142 / 0.25);
}
.rp-step h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.rp-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); }

/* ---------- support cards ---------- */
.rp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rp-card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 32px;
}
.rp-card { position: relative; }
.rp-card::before {
  content: ""; position: absolute; top: -1px; left: 26px; right: 26px;
  height: 2px; background: var(--accent); border-radius: 2px;
  opacity: 0; transition: opacity .3s;
}
.rp-card:hover::before { opacity: 1; }
.rp-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.rp-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }
.section.dark .rp-card {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12);
}
.section.dark .rp-card p { color: rgba(236,234,225,0.6); }

/* ---------- compensation ---------- */
.rp-comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.rp-big {
  color: var(--accent);
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(66px, 11vw, 150px); line-height: 0.88;
  letter-spacing: -0.055em; margin: 0 0 20px;
}
.rp-big-sub { font-size: 17px; color: var(--ink-3); max-width: 26ch; margin: 0; }
.rp-comp-note { font-size: 17px; line-height: 1.65; color: var(--ink-3); margin: 0; }
.rp-comp-note b { color: var(--ink); font-weight: 500; }
.section.dark .rp-big-sub,
.section.dark .rp-comp-note { color: rgba(236,234,225,0.6); }
.section.dark .rp-comp-note b { color: #ECEAE1; }

.rp-table { width: 100%; border-collapse: collapse; margin-top: 52px; }
.rp-table th {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  text-align: left; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft);
}
.rp-table th:last-child, .rp-table td:last-child { text-align: right; }
.rp-table td {
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 17px; font-variant-numeric: tabular-nums;
}
.rp-table tr:last-child td { font-weight: 600; }
.section.dark .rp-table th,
.section.dark .rp-table td { border-color: rgba(255,255,255,0.12); }
.section.dark .rp-table th { color: rgba(236,234,225,0.5); }

/* ---------- honesty columns ---------- */
.rp-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.rp-fit h3 {
  font-family: var(--sans); font-weight: 600; font-size: 28px;
  letter-spacing: -0.035em; margin: 0 0 28px;
}
.rp-fit h3 .it {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; letter-spacing: -0.02em;
}
.rp-fit ul { list-style: none; margin: 0; padding: 0; }
.rp-fit li {
  display: grid; grid-template-columns: 20px 1fr; gap: 14px;
  padding: 17px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 16px; line-height: 1.5;
}
.rp-mark {
  width: 17px; height: 17px; border-radius: 50%; margin-top: 3px;
  display: grid; place-items: center; font-size: 9px; line-height: 1;
  border: 1px solid var(--line-soft); color: var(--ink-3);
}
.rp-yes .rp-mark { background: var(--accent); border-color: transparent; color: var(--ink); }
.rp-no li { color: var(--ink-3); }

/* ---------- closing cta ---------- */
.rp-cta { background: var(--ink); color: #ECEAE1; padding: 130px 0; text-align: center; }
.rp-cta .h2 { color: #ECEAE1; margin-inline: auto; max-width: 14ch; }
.rp-cta .lead { color: rgba(236,234,225,0.62); margin: 0 auto 36px; text-align: center; }
.rp-cta .eyebrow { color: rgba(255,255,255,0.55); }

/* ---------- embed mode: /careers.html?embed=1 hides nav + footer ---------- */
body.is-embed .nav,
body.is-embed .footer { display: none; }
body.is-embed .careers-hero,
body.is-embed .rp-hero { padding-top: 72px; }

/* ---------- narrow ---------- */
@media (max-width: 1000px) {
  .role-grid { grid-template-columns: 1fr; }
  .rp-stats { grid-template-columns: 1fr 1fr; gap: 34px 24px; padding: 42px 0; }
  .rp-row { grid-template-columns: 36px 1fr; gap: 14px 18px; }
  .rp-row p { grid-column: 2; }
  .rp-cards, .rp-fit, .rp-comp-grid { grid-template-columns: 1fr; gap: 36px; }
  .careers-hero { padding: 130px 0 80px; }
  .rp-hero { padding: 120px 0 70px; }
  .rp-cta { padding: 90px 0; }
  .rp-big { font-size: clamp(58px, 19vw, 100px); }
}

@media (prefers-reduced-motion: reduce) {
  .role-card { transition: none; }
}

/* ---------- founder card ---------- */
.rp-card-founder { display: flex; flex-direction: column; }
.rp-founder-head {
  display: flex; align-items: center; gap: 18px; margin-bottom: 20px;
}
.rp-founder-photo {
  width: 76px; height: 76px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--accent);
  background: var(--bg-soft);
}
.rp-card-founder h3 { margin: 0 0 4px; }
.rp-founder-role {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.section.dark .rp-founder-role { color: rgba(236,234,225,0.55); }
@media (max-width: 560px) {
  .rp-founder-photo { width: 62px; height: 62px; }
}
