/* ============================================================
   CAREERS PAGE — extends styles.css
   ============================================================ */

.nav-links a.active {
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
}

/* HERO */
.careers-hero {
  position: relative;
  min-height: calc(100vh - 100px);
  background: var(--fg);
  color: var(--bg);
  overflow: hidden;
  padding: 80px var(--pad-x) 60px;
  display: flex;
  align-items: center;
  border-bottom: var(--rule) solid var(--fg);
}
.careers-hero .careers-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.careers-hero .careers-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: grayscale(1) contrast(1.15) brightness(0.9);
}
.careers-hero .careers-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 40%, rgba(0,0,0,0.25) 72%, rgba(0,0,0,0.1) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
}
.careers-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.careers-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--bg);
  flex-wrap: wrap;
}
.careers-headline {
  font-size: clamp(72px, 12vw, 200px);
  line-height: 0.82;
}
.careers-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
}
.careers-body p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* WHY WORK */
.why-work {
  background: var(--bg);
  color: var(--fg);
  border-bottom: var(--rule) solid var(--fg);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.why-card {
  padding: 40px;
  border-right: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s ease, color .3s ease;
  cursor: default;
}
.why-card:hover {
  background: var(--fg);
  color: var(--bg);
}
.why-card:nth-child(3n) { border-right: none; }
.why-card:nth-last-child(-n+3) { border-bottom: none; }
.why-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.7;
}
.why-card-title {
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.why-card-body {
  font-size: 14px;
  line-height: 1.55;
  margin-top: 12px;
}

/* OPEN ROLES */
.roles {
  background: var(--bg);
  color: var(--fg);
  border-bottom: var(--rule) solid var(--fg);
}
.roles-list {
  display: flex;
  flex-direction: column;
}
.role-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 2fr 1fr 40px;
  gap: 24px;
  align-items: center;
  padding: 26px var(--pad-x);
  border-bottom: 2px solid var(--fg);
  transition: background .25s ease, color .25s ease;
}
.role-row:last-child { border-bottom: none; }
a.role-row:hover {
  background: var(--fg);
  color: var(--bg);
}
.role-row-closed {
  cursor: not-allowed;
  opacity: 0.55;
}
.role-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  opacity: 0.6;
}
.role-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.role-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 10px 5px 8px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.role-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.role-status.open { color: #2FCE6B; }
.role-status.open .role-status-dot {
  background: #2FCE6B;
  box-shadow: 0 0 0 0 rgba(47, 206, 107, 0.5);
  animation: pulse-open 2s ease-in-out infinite;
}
body.no-motion .role-status.open .role-status-dot { animation: none; }
@keyframes pulse-open {
  0%   { box-shadow: 0 0 0 0 rgba(47, 206, 107, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(47, 206, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 206, 107, 0); }
}
.role-status.closed { color: #E5432D; }
.role-status.closed .role-status-dot { background: #E5432D; }
a.role-row:hover .role-status { color: var(--bg); }
a.role-row:hover .role-status.open .role-status-dot { background: #6DFFA0; }
a.role-row:hover .role-status.closed .role-status-dot { background: #FFB4A5; }

.role-desc {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}
.role-type {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: right;
}
.role-arrow {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  text-align: right;
  transition: transform .3s ease;
}
a.role-row:hover .role-arrow { transform: translateX(6px); }

/* APPLY CTA */
.apply {
  background: var(--fg);
  color: var(--bg);
  padding: 70px var(--pad-x);
  border-bottom: var(--rule) solid var(--fg);
}
.apply-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.apply-body { text-align: center; }
.apply-eyebrow { opacity: 0.7; }
.apply-headline {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.85;
}
.apply-body {
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  opacity: 0.9;
}
.apply-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 32px;
  background: #0061FF;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 8px 8px 0 rgba(255,255,255,0.15);
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
  margin-top: 12px;
}
.apply-cta:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 rgba(255,255,255,0.2);
}
.apply-cta-label {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
}
.apply-cta-email {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.apply-cta:hover .arrow { transform: translateX(4px); }
.apply-fine {
  opacity: 0.6;
  margin-top: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card:nth-child(3n) { border-right: 2px solid var(--fg); }
  .why-card:nth-child(2n) { border-right: none; }
  .why-card:nth-last-child(-n+3) { border-bottom: 2px solid var(--fg); }
  .why-card:nth-last-child(-n+2) { border-bottom: none; }
  .role-row {
    grid-template-columns: 40px 1fr 30px;
    gap: 16px;
  }
  .role-title-block { grid-column: 2 / -1; }
  .role-desc, .role-type { grid-column: 2 / -1; }
  .role-desc { font-size: 13px; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { border-right: none !important; border-bottom: 2px solid var(--fg) !important; }
  .why-card:last-child { border-bottom: none !important; }
  .apply-cta-email { font-size: 18px; word-break: break-all; }
}
