/* Octane careers page. Loads after css/styles.css and reuses its tokens, nav and footer. */

.careers-main {
  padding: clamp(72px, 9vw, 118px) var(--gutter) clamp(88px, 10vw, 140px);
  background: var(--blush);
}

.careers-shell {
  width: min(800px, 100%);
  margin: 0 auto;
}

/* ── Header ───────────────────────────────────── */
.careers-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}

.careers-header h1 {
  max-width: 18ch;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6.4vw, 72px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--moss);
  text-wrap: balance;
}

.careers-summary {
  max-width: 620px;
  margin-top: 22px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.careers-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ── Sections ─────────────────────────────────── */
.careers-section {
  margin-top: clamp(52px, 6vw, 80px);
  padding-top: clamp(30px, 3.4vw, 42px);
  border-top: 1px solid var(--line);
}

.careers-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.careers-section h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
}

.careers-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive);
}

.careers-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.careers-prose p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.careers-prose p:first-child {
  font-size: 20px;
  color: var(--ink);
}

/* ── Role card ────────────────────────────────── */
.role {
  margin-top: 26px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 110px;
}

.role-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: var(--sage);
  border-bottom: 1px solid var(--line);
}

.role-head h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
  color: var(--moss);
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive);
}

.role-meta li + li::before {
  content: "·";
  margin: 0 10px;
}

.role-body { padding: 6px 32px 30px; }

.role-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.role-section:last-child {
  padding-bottom: 8px;
  border-bottom: 0;
}

.role-section h4 {
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.role-section p,
.role-section li {
  font-size: 17px;
  line-height: 1.68;
  color: var(--muted);
  text-wrap: pretty;
}

.role-section p + p { margin-top: 12px; }

.role-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  list-style: none;
}

.role-section li {
  position: relative;
  padding-left: 22px;
}

.role-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .7em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--olive);
  border-radius: 50%;
}

.role-section a {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.role-section a:hover { color: var(--olive); }

.role-apply .btn {
  margin-top: 18px;
  color: var(--blush);
  text-decoration: none;
}

.role-apply .btn:hover { color: var(--blush); }

@media (max-width: 600px) {
  .careers-main { padding-top: 58px; }
  .careers-section { margin-top: 48px; }
  .careers-prose p { font-size: 17px; }
  .careers-prose p:first-child { font-size: 18px; }
  .role-head { padding: 22px 20px; }
  .role-body { padding: 2px 20px 22px; }
  .role-section { padding: 22px 0; }
  .role-section p,
  .role-section li { font-size: 16px; }
}

/* The nav call to action is a link on this page; keep button padding inside the mobile menu. */
.nav-mobile a.btn { padding: 11px 22px; }

/* ── Motion ───────────────────────────────────── */
/* Sections use the site-wide .reveal fade; list items follow in a short stagger. */
.role-section li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1);
}

.role-section.in li {
  opacity: 1;
  transform: none;
}

.role-section.in li:nth-child(1) { transition-delay: .08s; }
.role-section.in li:nth-child(2) { transition-delay: .14s; }
.role-section.in li:nth-child(3) { transition-delay: .2s; }
.role-section.in li:nth-child(4) { transition-delay: .26s; }
.role-section.in li:nth-child(5) { transition-delay: .32s; }
.role-section.in li:nth-child(6) { transition-delay: .38s; }
.role-section.in li:nth-child(7) { transition-delay: .44s; }
.role-section.in li:nth-child(8) { transition-delay: .5s; }
.role-section.in li:nth-child(9) { transition-delay: .56s; }

/* A quiet pulse beside the open-role count. */
.careers-count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.careers-count-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
}

.careers-count-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--leaf);
  border-radius: 50%;
  opacity: 0;
  animation: careersPulse 2.6s cubic-bezier(.2,.6,.2,1) infinite;
}

@keyframes careersPulse {
  0% { transform: scale(.45); opacity: .6; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .role-section li { opacity: 1; transform: none; transition: none; }
  .careers-count-dot::after { animation: none; }
}

/* ── Application form ─────────────────────────── */
.apply-form { margin-top: 20px; }

.apply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.apply-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apply-field-wide { grid-column: 1 / -1; }

.apply-field > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
}

.apply-field input,
.apply-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--blush);
  border: 1px solid var(--sage-deep);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .18s cubic-bezier(.2,.6,.2,1), box-shadow .18s cubic-bezier(.2,.6,.2,1), background .18s;
}

.apply-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.apply-field input::placeholder,
.apply-field textarea::placeholder { color: rgba(26,30,24,.38); }

.apply-field input:focus,
.apply-field textarea:focus {
  outline: none;
  border-color: var(--moss);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.apply-field input:user-invalid,
.apply-field textarea:user-invalid { border-color: rgba(164,106,60,.7); }

.apply-form .btn { margin-top: 22px; }

.role-apply .apply-privacy {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.role-apply .apply-status {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(26,30,24,.5);
}

.apply-thanks {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--leaf-soft);
}

.apply-thanks:focus { outline: none; }

.apply-thanks-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--white);
  color: var(--leaf);
  font-size: 16px;
}

.role-apply .apply-thanks-title {
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}

.role-apply .apply-alt {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .apply-grid { grid-template-columns: 1fr; }
}
