/* ============================================================
   career.css — CAREER section (3-beat scroll narrative)
   Base = stacked panels (mobile + reduced-motion fallback).
   Horizontal pinned track only kicks in on wide screens
   when motion is allowed (media query mirrors career.js).
   SPECIMEN pass: display-lg beat titles are gone — each beat is a
   specimen card: mono codename, hairline, ONE medium focal line
   (the beat's lime <em> phrase, set in ink), body-size sentences.
   ============================================================ */

.career {
  position: relative;
}

.career__track {
  display: flex;
  flex-direction: column;
}

/* ---------- Beat panels (stacked base) ---------- */
.career__beat {
  position: relative;
  display: block;
  min-height: 88vh;
  padding: 18vh 7vw;
  overflow: hidden; /* clips the oversized ghost index */
}

.career__beat--bridge {
  padding-bottom: 14vh;
}

/* ---------- Ghost index numbers ---------- */
.career__index {
  position: absolute;
  top: 7vh;
  right: 5vw;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 28vw, 15rem);
  line-height: 1;
  color: rgba(143, 163, 200, 0.07); /* faint fill fallback */
  -webkit-text-stroke: 1.5px rgba(143, 163, 200, 0.22);
  pointer-events: none;
  user-select: none;
}

/* ---------- Content ---------- */
.career__content {
  position: relative; /* paints above the ghost index */
  max-width: 46rem;
}

/* Specimen card chrome: codename → hairline → focal line → sentences */
.career__code {
  /* .spec-label supplies family/size/tracking/color */
}

.career__rule {
  width: min(100%, 22rem);
  margin: 1rem 0 1.35rem;
}

/* The beat's focal line — the old lime <em> phrase as the ONE medium
   line (ink, not display type; lime stays on the inline <em> below). */
.career__focal {
  font-weight: 600; /* Clash 500 isn't shipped by Fontshare; 600 is the medium voice */
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 0 0 22px rgba(10, 22, 51, 0.65); /* legible over the warp stream */
}

/* Line masks: outer clips, inner slides up (JS-driven) */
.career__line {
  display: block;
  overflow: hidden;
}

.career__line-in {
  display: block;
  padding-bottom: 0.1em; /* descender room inside the mask */
  will-change: transform;
}

.career__line--title .career__line-in {
  padding-bottom: 0.18em; /* display type has deeper descenders */
}

.career__text {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  text-shadow: 0 1px 14px rgba(10, 22, 51, 0.75); /* stays legible over the warp stream */
}

.career__hl {
  font-style: normal;
  color: var(--pop);
}

/* ---------- End accent: arrow toward the next section ---------- */
.career__next {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  color: var(--pop);
}

.career__next-icon {
  width: 24px;
  height: 56px;
  animation: career-bob 2.2s ease-in-out infinite;
}

@keyframes career-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ---------- Scroll progress (desktop pin only) ---------- */
.career__progress {
  display: none;
}

/* ============================================================
   Desktop + motion allowed: horizontal track (pinned via JS)
   ============================================================ */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .career {
    height: 100vh;
    overflow: hidden;
  }

  .career__track {
    flex-direction: row;
    width: max-content;
    height: 100%;
    will-change: transform;
  }

  .career__beat {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100%;
    min-height: 0;
    padding: 0 8vw;
    display: flex;
    align-items: center;
  }

  .career__index {
    top: 0;
    bottom: 0;
    right: 6vw;
    display: flex;
    align-items: center;
    font-size: clamp(16rem, 32vw, 30rem);
  }

  .career__content {
    max-width: 60rem;
  }

  .career__text {
    max-width: 52ch;
  }

  .career__next {
    position: absolute;
    left: 50%;
    bottom: 6vh;
    margin-top: 0;
    transform: translateX(-50%);
  }

  .career__progress {
    display: block;
    position: absolute;
    left: 8vw;
    bottom: 6vh;
    width: 180px;
    height: 2px;
    background: rgba(143, 163, 200, 0.22);
    z-index: 2;
  }

  .career__progress-fill {
    display: block;
    height: 100%;
    background: var(--pop);
    transform: scaleX(0);
    transform-origin: left center;
  }
}
