/**
 * Careers page — Ban Teck Han Apple shell.
 */

body.bth-apple-careers {
  --bth-careers-ink: #1d1d1f;
  --bth-careers-muted: #6e6e73;
  --bth-careers-soft: #86868b;
  --bth-careers-red: #b91c1c;
  --bth-careers-red-deep: #991b1b;
  --bth-careers-paper: #f3f1ee;
  --bth-careers-wash: #ebe8e3;
  color: var(--bth-careers-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 480px at 88% -10%, rgba(185, 28, 28, 0.1), transparent 58%),
    radial-gradient(900px 420px at 8% 12%, rgba(29, 29, 31, 0.045), transparent 55%),
    linear-gradient(180deg, #f6f5f2 0%, #fff 40%, #f6f5f2 100%);
}

.bth-careers-main {
  position: relative;
  overflow: clip;
  background: transparent;
  color: var(--bth-careers-ink);
}

.bth-careers-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(68vh, 580px);
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 50% 0%, rgba(255, 255, 255, 0.88), transparent 70%),
    repeating-linear-gradient(
      16deg,
      transparent 0,
      transparent 12px,
      rgba(29, 29, 31, 0.016) 12px,
      rgba(29, 29, 31, 0.016) 13px
    );
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.bth-careers-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 52px) 0 clamp(72px, 9vw, 112px);
}

/* —— Hero —— */
.bth-careers-hero {
  max-width: 680px;
  margin: 0 0 clamp(36px, 5vw, 56px);
}

.bth-careers-eyebrow {
  margin: 0 0 12px;
  color: var(--bth-careers-red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bth-careers-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.bth-careers-lead {
  margin: 16px 0 0;
  max-width: 52ch;
  color: var(--bth-careers-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

/* —— Featured role —— */
.bth-careers-role {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, var(--bth-careers-paper) 100%);
  border: 1px solid rgba(29, 29, 31, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 22px 56px rgba(29, 29, 31, 0.06);
}

.bth-careers-role__kicker {
  margin: 0 0 10px;
  color: var(--bth-careers-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bth-careers-role__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bth-careers-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0 0 18px;
}

.bth-careers-meta__item {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(29, 29, 31, 0.08);
}

.bth-careers-meta__item dt {
  margin: 0 0 4px;
  color: var(--bth-careers-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bth-careers-meta__item dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.bth-careers-role__summary {
  margin: 0 0 22px;
  max-width: 54ch;
  color: var(--bth-careers-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.bth-careers-role__actions,
.bth-careers-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bth-careers-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: 20px;
  background:
    radial-gradient(280px 160px at 100% 0%, rgba(185, 28, 28, 0.16), transparent 65%),
    linear-gradient(160deg, #171719 0%, #1d1d1f 55%, #2a1414 100%);
  color: #fff;
}

.bth-careers-aside__label {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bth-careers-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bth-careers-aside__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.bth-careers-aside__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bth-careers-red);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25);
}

/* —— Detail panels —— */
.bth-careers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin: 0 0 clamp(28px, 4vw, 40px);
}

.bth-careers-panel {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(29, 29, 31, 0.06);
  box-shadow: 0 14px 36px rgba(29, 29, 31, 0.04);
  backdrop-filter: blur(6px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.bth-careers-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(29, 29, 31, 0.07);
}

.bth-careers-panel__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bth-careers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bth-careers-list li {
  position: relative;
  padding: 0 0 0 22px;
  color: var(--bth-careers-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.bth-careers-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background: var(--bth-careers-red);
  border-radius: 2px;
}

/* —— Buttons —— */
.bth-careers-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 13px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bth-careers-btn:hover,
.bth-careers-btn:focus,
.bth-careers-btn:focus-visible,
.bth-careers-btn:active {
  text-decoration: none !important;
  transform: translateY(-1px);
}

.bth-careers-btn--primary {
  background: var(--bth-careers-red);
  color: #fff !important;
}

.bth-careers-btn--primary:hover,
.bth-careers-btn--primary:focus,
.bth-careers-btn--primary:focus-visible,
.bth-careers-btn--primary:active {
  background: var(--bth-careers-red-deep);
  color: #fff !important;
  text-decoration: none !important;
}

.bth-careers-btn--ghost {
  border: 1px solid rgba(29, 29, 31, 0.14);
  color: var(--bth-careers-ink) !important;
  background: rgba(255, 255, 255, 0.55);
}

.bth-careers-btn--ghost:hover,
.bth-careers-btn--ghost:focus,
.bth-careers-btn--ghost:focus-visible,
.bth-careers-btn--ghost:active {
  border-color: rgba(185, 28, 28, 0.35);
  color: var(--bth-careers-red) !important;
  text-decoration: none !important;
}

.bth-careers-cta .bth-careers-btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff !important;
  background: transparent;
}

.bth-careers-cta .bth-careers-btn--ghost:hover,
.bth-careers-cta .bth-careers-btn--ghost:focus,
.bth-careers-cta .bth-careers-btn--ghost:focus-visible,
.bth-careers-cta .bth-careers-btn--ghost:active {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
  text-decoration: none !important;
}

/* —— CTA —— */
.bth-careers-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4.5vw, 44px) clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(560px 260px at 90% 0%, rgba(185, 28, 28, 0.36), transparent 60%),
    linear-gradient(145deg, #141416 0%, #1d1d1f 50%, #2a1212 100%);
  color: #fff;
}

.bth-careers-cta__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.bth-careers-cta__lead {
  margin: 12px 0 0;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.55;
}

.bth-careers-cta__actions {
  margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .bth-careers-panel,
  .bth-careers-btn {
    transition: none !important;
  }

  .bth-careers-panel:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .bth-careers-role,
  .bth-careers-grid {
    grid-template-columns: 1fr;
  }

  .bth-careers-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .bth-careers-role {
    padding: 22px 18px;
  }
}
