/* Career story module: watercolour sketchbook. Everything is scoped under #career-story.
   The whole module is sized to fit one screen (about 100svh minus the sticky header). */
#career-story {
  --cs-navy: var(--navy, #0f2b52);
  --cs-sci: var(--navy, #0f2b52);
  --cs-rp: #b86e0f;
  --cs-rp-ink: #8a5208;
  --cs-ai: var(--sky, #36abe2);
  --cs-ai-ink: #1c6f98;
  --cs-ink: var(--ink, #0e1b2e);
  --cs-soft: var(--ink-soft, #4a5872);
  --cs-line: var(--line, #e3ded3);
  --cs-paper: #fffdf8;
  --cs-peach: #f2c6ad;
  --cs-blue: #cfe3f1;
  --cs-ease: var(--ease, cubic-bezier(.2, .7, .2, 1));
  --cs-hand: 'Caveat', 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive;
  --cs-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --cs-sans: var(--font, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  --cs-wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  color: var(--cs-ink);
  box-sizing: border-box;
}
html[data-lang="zh"] #career-story { --cs-hand: var(--cs-sans); --cs-display: var(--cs-sans); }
#career-story *, #career-story *::before, #career-story *::after { box-sizing: border-box; }
#career-story .cs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- head ---------- */
#career-story .cs-head { text-align: center; margin: 0 0 8px; }
#career-story .cs-eyebrow { margin: 0; font-family: var(--cs-hand); font-size: 22px; line-height: 1.1; color: var(--cs-ai-ink); transform: rotate(-2deg); display: inline-block; }
#career-story .cs-title { margin: 0; font-family: var(--cs-display); font-weight: 600; font-size: clamp(23px, 3.2vw, 34px); line-height: 1.12; color: var(--cs-navy); letter-spacing: -.01em; }
html[data-lang="zh"] #career-story .cs-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; transform: none; }
html[data-lang="zh"] #career-story .cs-title { font-weight: 800; }

/* view switching */
#career-story .cs-pro { display: none; }
html[data-mode="pro"] #career-story .cs-fun { display: none; }
html[data-mode="pro"] #career-story .cs-pro { display: block; }

/* ---------- buttons: ink outline, sky wash on hover ---------- */
#career-story .cs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 16px;
  border: 2px solid var(--cs-navy); border-radius: var(--cs-wobble);
  background: var(--cs-paper); color: var(--cs-navy);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .2s var(--cs-ease), color .2s var(--cs-ease), transform .2s var(--cs-ease), opacity .2s, box-shadow .2s;
}
#career-story .cs-btn:hover { background: var(--sky-soft, #e4f3fb); }
#career-story .cs-btn:active { transform: scale(.96); }
#career-story .cs-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
#career-story .cs-btn[aria-disabled="true"]:hover { background: var(--cs-paper); }
#career-story button:focus-visible, #career-story .cs-frame:focus-visible, #career-story .cs-scrub:focus-visible {
  outline: 3px solid var(--cs-ai); outline-offset: 3px;
}
#career-story .cs-ico { display: inline-flex; width: 20px; height: 20px; }
#career-story .cs-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#career-story .cs-ico svg .fill { fill: currentColor; stroke: none; }
#career-story .cs-play.is-on { background: var(--cs-navy); color: #fff; }
#career-story .cs-next, #career-story .cs-pnext { background: var(--cs-ai); color: var(--navy-deep, #0a1f3d); }
#career-story .cs-next:hover, #career-story .cs-pnext:hover { background: #5cbde9; }
#career-story .cs-next[aria-disabled="true"]:hover { background: var(--cs-ai); }

/* =============== FUN =============== */
#career-story .cs-fun { position: relative; }
#career-story .cs-left { margin: 0 auto; }
#career-story .cs-wrap { position: relative; container-type: inline-size; }

/* the taped print */
#career-story .cs-print {
  position: relative; padding: 8px; background: var(--cs-paper); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15, 43, 82, .12), 0 12px 30px rgba(15, 43, 82, .14);
  transform: rotate(-.7deg);
}
#career-story .cs-print::before, #career-story .cs-print::after {
  content: ""; position: absolute; z-index: 7; top: -12px; width: 96px; height: 26px; pointer-events: none;
  background: rgba(242, 198, 173, .62); box-shadow: 0 1px 2px rgba(15, 43, 82, .08);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0);
}
#career-story .cs-print::before { left: 18px; transform: rotate(-6deg); }
#career-story .cs-print::after { right: 22px; transform: rotate(5deg); background: rgba(207, 227, 241, .78); }
#career-story .cs-frame {
  position: relative; width: 100%; aspect-ratio: 1400 / 1045; overflow: hidden; container-type: inline-size;
  background: var(--paper, #f6f3ec); perspective: 1800px; -webkit-tap-highlight-color: transparent; touch-action: pan-y;
}

/* slides and page turns */
#career-story .cs-slide { position: absolute; inset: 0; visibility: hidden; transform-origin: 0 50%; backface-visibility: hidden; background: var(--paper, #f6f3ec); }
#career-story .cs-slide.is-active { visibility: visible; z-index: 1; }
#career-story .cs-slide.cs-under { visibility: visible; z-index: 1; }
#career-story .cs-slide.cs-out { visibility: visible; z-index: 3; animation: cs-turn-out .4s cubic-bezier(.4, 0, .6, 1) forwards; }
#career-story .cs-slide.cs-in { visibility: visible; z-index: 3; animation: cs-turn-in .4s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes cs-turn-out { 0% { transform: rotateY(0); filter: brightness(1); } 100% { transform: rotateY(-89deg); filter: brightness(.8); } }
@keyframes cs-turn-in { 0% { transform: rotateY(-89deg); filter: brightness(.8); } 100% { transform: rotateY(0); filter: brightness(1); } }
#career-story .cs-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none;
  transform: scale(1); transform-origin: 40% 50%; transition: transform 0s linear .4s, filter .4s var(--cs-ease);
}
#career-story .cs-slide.is-active img { transform: scale(1.02); transition: transform 6s linear, filter .4s var(--cs-ease); }
#career-story .cs-noimg { background: linear-gradient(135deg, #efe9da, #f6f3ec 55%, #e4f3fb); }
#career-story .cs-noimg img { visibility: hidden; }
#career-story .cs-fx { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--cs-ease); }
#career-story .cs-slide[data-scene="05b"] img { filter: grayscale(.6) saturate(.7) brightness(.96) contrast(.97); }
#career-story .cs-slide[data-scene="05b"] .cs-fx { opacity: 1; background: radial-gradient(ellipse at center, rgba(70, 85, 105, 0) 45%, rgba(40, 55, 80, .28) 100%); }
#career-story .cs-slide[data-scene="05b"].is-rush .cs-fx { background: radial-gradient(ellipse at center, rgba(70, 85, 105, .05) 30%, rgba(30, 42, 62, .5) 100%); }
#career-story .cs-slide[data-scene="06"] img { filter: saturate(1.12) brightness(1.04); }
#career-story .cs-slide[data-scene="06"] .cs-fx {
  opacity: 1; mix-blend-mode: soft-light;
  background: radial-gradient(ellipse at 38% 38%, rgba(255, 214, 120, .95) 0%, rgba(255, 190, 90, .45) 38%, rgba(255, 190, 90, 0) 72%);
}
#career-story .cs-slide[data-scene="06"].is-active .cs-fx { animation: cs-breathe 4.5s ease-in-out infinite; }
@keyframes cs-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* paper ribbons for "Work faster" */
#career-story .cs-ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; filter: drop-shadow(0 0 1.5px rgba(70, 82, 100, .8)); }
#career-story .cs-ribbons path { fill: none; stroke: #eef0f2; stroke-width: 44; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
#career-story .is-rush .cs-ribbons path { animation: cs-ribbon 3s var(--cs-ease) forwards; }
#career-story .is-rush .cs-ribbons path:nth-child(2) { animation-delay: .15s; }
#career-story .is-rush .cs-ribbons path:nth-child(3) { animation-delay: .3s; }
@keyframes cs-ribbon { 0% { stroke-dashoffset: 1; opacity: 1; } 40% { stroke-dashoffset: 0; opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* ink hotspots */
#career-story .cs-hs {
  position: absolute; z-index: 4; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#career-story .cs-hs-ring {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 2.5px solid var(--cs-navy); border-radius: 48% 52% 44% 56% / 56% 44% 52% 48%;
  background: rgba(255, 253, 248, .6);
  box-shadow: 0 0 0 3px rgba(255, 253, 248, .7), 0 0 14px 5px rgba(54, 171, 226, .6);
  animation: cs-glow 2.4s ease-in-out infinite; transition: transform .2s var(--cs-ease), background .2s;
}
#career-story .cs-hs-ring::before, #career-story .cs-hs-ring::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--cs-navy); border-radius: 2px; }
#career-story .cs-hs-ring::before { width: 10px; height: 2.5px; margin: -1.25px 0 0 -5px; }
#career-story .cs-hs-ring::after { width: 2.5px; height: 10px; margin: -5px 0 0 -1.25px; transition: transform .2s; }
#career-story .cs-hs:hover .cs-hs-ring { transform: scale(1.12) rotate(8deg); background: #fff; }
#career-story .cs-hs[aria-expanded="true"] .cs-hs-ring { background: var(--cs-navy); }
#career-story .cs-hs[aria-expanded="true"] .cs-hs-ring::before { background: #fff; }
#career-story .cs-hs[aria-expanded="true"] .cs-hs-ring::after { transform: scaleY(0); }
#career-story .cs-hs.is-seen:not([aria-expanded="true"]) .cs-hs-ring { animation: none; box-shadow: 0 0 0 3px rgba(255, 253, 248, .7), 0 0 6px 1px rgba(54, 171, 226, .45); }
@keyframes cs-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 253, 248, .7), 0 0 10px 3px rgba(54, 171, 226, .45); }
  50% { box-shadow: 0 0 0 3px rgba(255, 253, 248, .7), 0 0 20px 8px rgba(54, 171, 226, .75); }
}

/* margin note, floating over the picture */
#career-story .cs-note {
  position: absolute; z-index: 6; width: min(250px, 66%); margin: 0; padding: 12px 36px 12px 14px;
  background: var(--cs-paper); background-image: linear-gradient(transparent 0 calc(100% - 1px), #dbe7f0 0); background-size: 100% 1.35em;
  border-radius: 2px; box-shadow: 0 2px 4px rgba(15, 43, 82, .12), 0 10px 24px rgba(15, 43, 82, .22);
  transform: rotate(-1.2deg);
}
#career-story .cs-note[hidden] { display: none; }
#career-story .cs-note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: rgba(207, 227, 241, .85); transform: rotate(3deg); }
#career-story .cs-note.is-in { animation: cs-note-in .35s var(--cs-ease); }
@keyframes cs-note-in { from { opacity: 0; transform: rotate(-4deg) scale(.88); } to { opacity: 1; transform: rotate(-1.2deg) scale(1); } }
#career-story .cs-note-text { margin: 0; font-family: var(--cs-hand); font-size: clamp(18px, 2.7cqw, 24px); font-weight: 600; line-height: 1.2; color: var(--cs-navy); }
#career-story .cs-note-x {
  position: absolute; top: 2px; right: 2px; width: 34px; height: 34px; padding: 7px; border: 0; border-radius: 50%;
  background: none; color: var(--cs-navy); cursor: pointer;
}
#career-story .cs-note-x:hover { background: var(--sky-soft, #e4f3fb); }
#career-story .cs-note-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
html[data-lang="zh"] #career-story .cs-note { transform: none; }
html[data-lang="zh"] #career-story .cs-note-text { font-size: 15px; font-weight: 600; line-height: 1.5; }

/* speech bubbles, handwritten, in the empty right third */
#career-story .cs-bubbles { position: absolute; right: 2.5%; top: 7%; width: 30%; display: grid; z-index: 5; pointer-events: none; }
#career-story .cs-bubble {
  grid-area: 1 / 1; align-self: start; position: relative;
  background: var(--cs-paper); color: var(--cs-ink); border: 2px solid var(--cs-navy); border-radius: var(--cs-wobble);
  padding: 12px 16px; box-shadow: 0 6px 16px rgba(15, 43, 82, .14);
  font-family: var(--cs-hand); font-size: clamp(17px, 3cqw, 28px); line-height: 1.12; font-weight: 600;
  opacity: 0; visibility: hidden; transform: translateY(8px) rotate(1deg) scale(.97);
  transition: opacity .15s var(--cs-ease), transform .15s var(--cs-ease), visibility 0s linear .15s;
}
#career-story .cs-bubble p { margin: 0; }
#career-story .cs-bubble.is-active { opacity: 1; visibility: visible; transform: rotate(1deg); transition: opacity .3s var(--cs-ease) .15s, transform .3s var(--cs-ease) .15s, visibility 0s; }
#career-story .cs-bubble::before {
  content: ""; position: absolute; left: -10px; top: 26px; width: 16px; height: 16px;
  background: var(--cs-paper); border-left: 2px solid var(--cs-navy); border-bottom: 2px solid var(--cs-navy);
  transform: rotate(45deg) skew(8deg, 8deg);
}
#career-story .cs-bubble[data-scene="05b"] { background: #eceef0; border-color: #6b7686; color: #3e4856; }
#career-story .cs-bubble[data-scene="05b"]::before { background: #eceef0; border-color: #6b7686; }
#career-story .cs-bubble[data-scene="06"] { border-color: #c98a1e; box-shadow: 0 8px 26px rgba(255, 176, 60, .4); }
#career-story .cs-bubble[data-scene="06"]::before { border-color: #c98a1e; }
html[data-lang="zh"] #career-story .cs-bubble { font-size: clamp(14px, 2.2cqw, 19px); line-height: 1.45; }
html[data-lang="zh"] #career-story .cs-bubble, html[data-lang="zh"] #career-story .cs-bubble.is-active { transform: none; }

/* captions and the choice moment */
#career-story .cs-caps { display: grid; }
#career-story .cs-caption, #career-story .cs-choice {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity .15s var(--cs-ease), visibility 0s linear .15s;
}
#career-story .cs-caption { font-size: 15px; line-height: 1.5; color: var(--cs-soft); }
#career-story .cs-caption.is-active, #career-story .cs-choice.is-active { opacity: 1; visibility: visible; transition: opacity .3s var(--cs-ease) .12s, visibility 0s; }
#career-story .cs-choice-q { margin: 0 0 8px; font-family: var(--cs-hand); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--cs-navy); }
html[data-lang="zh"] #career-story .cs-choice-q { font-size: 17px; }
#career-story .cs-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
#career-story .cs-choice .cs-btn { flex: 1 1 auto; }
#career-story .cs-think { background: var(--cs-ai); color: var(--navy-deep, #0a1f3d); }
#career-story .cs-think:hover { background: #5cbde9; }
#career-story .cs-fast.is-tried { color: var(--cs-soft); border-style: dashed; text-decoration: line-through; text-decoration-thickness: 2px; }
#career-story .cs-think.is-nudge { animation: cs-nudge 1.4s var(--cs-ease) 2; box-shadow: 0 0 0 4px rgba(54, 171, 226, .3); }
@keyframes cs-nudge { 0%, 100% { transform: none; } 10% { transform: translateX(-3px) rotate(-2deg); } 20% { transform: translateX(3px) rotate(2deg); } 30% { transform: translateX(-2px); } 40% { transform: none; } }

/* controls: prev, scrubber, next */
#career-story .cs-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
#career-story .cs-bar .cs-btn { padding: 0; width: 44px; flex: 0 0 auto; }
#career-story .cs-bar .cs-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#career-story .cs-bar2 { display: flex; align-items: center; gap: 8px; }
#career-story .cs-count { font-size: 13px; color: var(--cs-soft); font-variant-numeric: tabular-nums; min-width: 40px; text-align: center; }
#career-story .cs-hint { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--cs-soft); }

#career-story .cs-scrub { position: relative; flex: 1 1 auto; min-width: 0; height: 48px; cursor: grab; touch-action: none; border-radius: 10px; -webkit-user-select: none; user-select: none; }
#career-story .cs-scrub.is-drag { cursor: grabbing; }
#career-story .cs-track { position: absolute; left: 38px; right: 38px; top: 31px; height: 4px; border-radius: 4px; background: #ddd5c4; }
#career-story .cs-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--cs-ai); transition: width .35s var(--cs-ease); }
#career-story .cs-tick { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: #b6ad9b; }
#career-story .cs-thumb {
  position: absolute; top: 2px; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 48% 52% 46% 54%;
  background: var(--cs-paper); border: 3px solid var(--cs-navy); box-shadow: 0 2px 6px rgba(15, 43, 82, .25);
  transition: left .35s var(--cs-ease), transform .2s;
}
#career-story .cs-scrub.is-drag .cs-thumb, #career-story .cs-scrub.is-drag .cs-fill { transition: none; }
#career-story .cs-scrub.is-drag .cs-thumb { transform: scale(1.2); }
#career-story .cs-thumb-tag {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--cs-hand); font-size: 19px; font-weight: 700; line-height: 1; color: var(--cs-navy);
}
html[data-lang="zh"] #career-story .cs-thumb-tag { font-size: 13px; }
#career-story .cs-scrub-end { position: absolute; top: 24px; font-size: 12px; font-weight: 700; color: var(--cs-soft); }
#career-story .cs-scrub-a { left: 0; }
#career-story .cs-scrub-b { right: 0; }
#career-story .cs-scrub.at-start .cs-scrub-a, #career-story .cs-scrub.at-end .cs-scrub-b { visibility: hidden; }

/* desktop: picture left, notes and toolkit in the margin on the right */
@media (min-width: 900px) {
  html:not([data-mode="pro"]) #career-story { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto 1fr; column-gap: 30px; align-items: start; }
  html:not([data-mode="pro"]) #career-story .cs-fun { display: contents; }
  html:not([data-mode="pro"]) #career-story .cs-head { grid-column: 2; grid-row: 1; text-align: left; margin: 8px 0 14px; }
  #career-story .cs-left { grid-column: 1; grid-row: 1 / 3; width: min(100%, calc((100svh - 250px) * 1.34)); justify-self: center; }
  #career-story .cs-side { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 16px; }
  #career-story .cs-caps { padding: 12px 14px; background: var(--cs-paper); border-radius: 3px; box-shadow: 0 1px 2px rgba(15, 43, 82, .1), 0 6px 16px rgba(15, 43, 82, .08); transform: rotate(.6deg); }
  #career-story .cs-foot { display: flex; flex-direction: column; gap: 12px; }
  #career-story .cs-bar2 .cs-btn { padding: 0 14px; white-space: nowrap; }
  #career-story .cs-count { display: none; }
  #career-story .cs-kit-ico { width: 42px; height: 42px; }
  #career-story .cs-kit-list { gap: 8px 6px; }
}

/* phones and tablets: compact stack */
@media (max-width: 899px) {
  #career-story .cs-fun { display: flex; flex-direction: column; gap: 8px; }
  #career-story .cs-left, #career-story .cs-side { display: contents; }
  #career-story .cs-wrap { order: 1; width: min(100%, calc((100svh - 470px) * 1.34)); margin: 0 auto; }
  #career-story .cs-caps { order: 2; text-align: center; padding: 0 4px; }
  #career-story .cs-foot { order: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  #career-story .cs-bar { order: 4; margin-top: 0; }
  #career-story .cs-hint { order: 5; text-align: center; }
  #career-story .cs-print { padding: 5px; }
  #career-story .cs-print::before, #career-story .cs-print::after { width: 64px; height: 18px; top: -8px; }
  #career-story .cs-bubbles { position: relative; right: auto; top: auto; width: auto; margin: 12px 2px 0; }
  #career-story .cs-bubble { font-size: 20px; padding: 7px 14px; line-height: 1.1; }
  #career-story .cs-bubble.is-active { transform: none; }
  #career-story .cs-bubble::before { left: 26px; top: -9px; width: 14px; height: 14px; border: 0; border-left: 2px solid var(--cs-navy); border-top: 2px solid var(--cs-navy); transform: rotate(45deg); }
  #career-story .cs-bubble[data-scene="05b"]::before { border-left-color: #6b7686; border-top-color: #6b7686; }
  #career-story .cs-bubble[data-scene="06"]::before { border-left-color: #c98a1e; border-top-color: #c98a1e; }
  html[data-lang="zh"] #career-story .cs-bubble { font-size: 15px; line-height: 1.45; }
  #career-story .cs-caption { font-size: 13.5px; line-height: 1.42; }
  #career-story .cs-choice-q { font-size: 22px; margin-bottom: 4px; }
  #career-story .cs-choice .cs-btn { min-height: 40px; font-size: 14px; }
  #career-story .cs-kit-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #career-story .cs-bar2 { gap: 4px; }
  #career-story .cs-bar2 .cs-btn { padding: 0; width: 42px; min-width: 42px; }
  #career-story .cs-bar2 .cs-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #career-story .cs-count { display: none; }
  #career-story .cs-hs-ring { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  #career-story .cs-note { width: min(240px, 60%); padding: 9px 34px 9px 12px; }
}
@media (max-width: 360px) {
  #career-story .cs-bar2 { gap: 4px; }
}

/* =============== PRO: a tidy notebook career path =============== */
#career-story .cs-mapbox {
  position: relative; padding: 4px 14px 12px; border: 1px solid var(--cs-line); border-radius: 10px;
  background-color: var(--cs-paper); background-image: radial-gradient(rgba(15, 43, 82, .13) 1px, transparent 1.3px); background-size: 18px 18px;
}
#career-story .cs-metro { list-style: none; margin: 0; padding: 0; position: relative; }
#career-story .cs-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
#career-story .cs-seg { fill: none; stroke: #cbc3b1; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 7; }
#career-story .cs-seg-lit { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke: var(--lane); }
#career-story .cs-lane-sci { --lane: var(--cs-sci); --lane-ink: var(--cs-sci); }
#career-story .cs-lane-rp { --lane: var(--cs-rp); --lane-ink: var(--cs-rp-ink); }
#career-story .cs-lane-ai { --lane: var(--cs-ai); --lane-ink: var(--cs-ai-ink); }
#career-story .cs-pulse { fill: #fff; stroke: var(--cs-ai); stroke-width: 3; opacity: 0; filter: drop-shadow(0 0 6px rgba(54, 171, 226, .9)); }

#career-story .cs-lane { position: relative; z-index: 1; margin: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lane-ink); }
#career-story .cs-lane span { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; }
#career-story .cs-lane span::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--lane); }
#career-story .cs-stopli { position: relative; z-index: 1; }
#career-story .cs-stop {
  display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%;
  padding: 6px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 10px;
}
#career-story .cs-dot {
  flex: 0 0 auto; width: 20px; height: 20px; margin-left: 4px; border-radius: 50%;
  background: var(--cs-paper); border: 3px solid #cbc3b1; position: relative;
  transition: background .3s var(--cs-ease), border-color .3s var(--cs-ease), transform .3s var(--cs-ease);
}
#career-story .cs-dot::after {
  content: ""; position: absolute; inset: -9px; border: 2px solid var(--cs-navy); border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  opacity: 0; transform: rotate(-20deg) scale(.7); transition: opacity .3s, transform .4s var(--cs-ease);
}
#career-story .cs-slabel { display: flex; flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
#career-story .cs-year { font-size: 12.5px; color: var(--cs-soft); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
#career-story .cs-stitle { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--cs-soft); transition: color .3s; }
#career-story .cs-stop:hover .cs-dot { border-color: var(--lane); }
#career-story .is-visited .cs-dot { border-color: var(--lane); background: var(--lane); }
#career-story .is-visited .cs-stitle { color: var(--cs-ink); }
#career-story .is-active .cs-dot { border-color: var(--lane); background: var(--cs-paper); transform: scale(1.1); }
#career-story .is-active .cs-dot::after { opacity: 1; transform: rotate(-20deg) scale(1); }
#career-story .is-active .cs-stitle { color: var(--cs-navy); }

#career-story .cs-card {
  position: relative; z-index: 4; margin: 0; padding: 12px 16px 12px;
  background: #fff; border: 1px solid var(--cs-line); border-left: 4px solid var(--lane, var(--cs-sci)); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 43, 82, .12);
}
#career-story .cs-card.is-in { animation: cs-card-in .4s var(--cs-ease); }
#career-story .cs-card.is-hidden { opacity: 0; pointer-events: none; }
@keyframes cs-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#career-story .cs-card-tag { margin: 0 0 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lane-ink); }
#career-story .cs-card-title { margin: 0 0 4px; font-family: var(--cs-display); font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--cs-navy); }
html[data-lang="zh"] #career-story .cs-card-title { font-weight: 800; font-size: 17px; }
#career-story .cs-card-text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--cs-ink); }
#career-story .cs-card-facts { list-style: none; margin: 6px 0 0; padding: 0; }
#career-story .cs-card-facts li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--cs-soft); }
#career-story .cs-card-facts li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 8px; height: 5px; border-left: 2px solid var(--lane); border-bottom: 2px solid var(--lane); transform: rotate(-45deg); }
#career-story .cs-card-step { position: absolute; top: 12px; right: 16px; margin: 0; font-size: 12px; color: var(--cs-soft); }
#career-story .cs-card-x { display: none; position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50%; background: none; color: var(--cs-navy); cursor: pointer; }
#career-story .cs-card-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
#career-story .cs-pctl { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
#career-story .cs-pro .cs-hint { text-align: center; margin-top: 6px; }

/* phones and tablets: one vertical track, the card floats over the list */
@media (max-width: 899px) {
  #career-story .cs-cardwrap { display: none; }
  #career-story .cs-mapbox .cs-card { position: absolute; left: 40px; right: 8px; padding-right: 40px; }
  #career-story .cs-card.is-closed { display: none; }
  #career-story .cs-card-x { display: block; }
  #career-story .cs-card-step { display: none; }
  #career-story .cs-stitle { font-size: 14.5px; }
}

/* desktop: lanes run across a time axis; AI branches up, radiation protection branches down */
@media (min-width: 900px) {
  #career-story .cs-metro { display: grid; grid-template-columns: 118px repeat(6, minmax(0, 1fr)); padding: 2px 0 0; row-gap: 0; }
  #career-story .cs-lane { grid-column: 1; grid-row: var(--lrow); align-self: start; margin: 10px 0 0; line-height: 1.25; }
  #career-story .cs-lane span { align-items: flex-start; }
  #career-story .cs-lane span::before { flex: 0 0 auto; margin-top: 6px; }
  #career-story .cs-stopli { grid-column: calc(var(--col) + 1); grid-row: var(--lrow); }
  #career-story .cs-stop { flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 5px 4px 3px; height: 100%; }
  #career-story .cs-stitle { font-size: 14px; line-height: 1.2; }
  #career-story .cs-pro .cs-pctl { margin-top: 10px; }
  #career-story .cs-pro .cs-hint { margin-top: 4px; }
  #career-story .cs-mapbox { padding: 2px 14px 8px; }
  #career-story .cs-dot { margin: 0; }
  #career-story .cs-slabel { flex-direction: column; align-items: center; gap: 1px; }
  #career-story .cs-cardwrap { margin: 10px auto 0; max-width: 680px; }
}

/* =============== icon-led components =============== */
/* a hand-drawn line icon on a small watercolour dab */
#career-story .cs-dab {
  --tone: #cfe7f6;
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px;
  border-radius: 58% 42% 55% 45% / 47% 58% 42% 53%;
  background: radial-gradient(circle at 38% 35%, rgba(255, 255, 255, .55), transparent 55%), var(--tone);
  color: var(--cs-navy);
}
#career-story .cs-dab[data-tone="peach"] { --tone: #f6d3bf; }
#career-story .cs-dab[data-tone="grey"] { --tone: #e1e5ea; }
#career-story .cs-dab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
#career-story .cs-dab-sm { width: 30px; height: 30px; }
#career-story .cs-dab-sm svg { width: 18px; height: 18px; }

/* stamped year badge */
#career-story .cs-stamp {
  display: inline-block; padding: 2px 9px; border: 2px solid var(--cs-navy); border-radius: 4px;
  outline: 1px solid rgba(15, 43, 82, .55); outline-offset: 2px;
  font-family: var(--cs-display); font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: .03em; white-space: nowrap;
  color: var(--cs-navy); background: rgba(255, 255, 255, .6); transform: rotate(-3deg);
}
html[data-lang="zh"] #career-story .cs-stamp { font-weight: 800; font-size: 14px; transform: none; }

/* caption card: icon, stamp, text; accent wash on the left edge */
#career-story .cs-caps { position: relative; }
#career-story .cs-capgrid { display: grid; }
#career-story .cs-capmeta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
#career-story .cs-capmeta.is-in .cs-dab { animation: cs-dab-in .35s var(--cs-ease); }
#career-story .cs-capmeta.is-in .cs-stamp { animation: cs-stamp-in .35s var(--cs-ease); }
@keyframes cs-dab-in { from { transform: scale(.6) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cs-stamp-in { from { transform: scale(1.35) rotate(-8deg); opacity: 0; } to { transform: rotate(-3deg); opacity: 1; } }
@media (min-width: 900px) {
  #career-story .cs-caps { padding: 14px 16px 14px 20px; border-radius: 4px; overflow: hidden; }
  #career-story .cs-caps::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--cs-ai), #f2b998); opacity: .85; }
}

/* margin note: pencil icon and a sky accent edge */
#career-story .cs-note { padding-left: 50px; border-left: 4px solid rgba(54, 171, 226, .7); }
#career-story .cs-note-ico { position: absolute; left: 10px; top: 10px; }

/* choice buttons, icon-led */
#career-story .cs-choice-btn {
  justify-content: flex-start; gap: 8px; padding: 0 14px 0 7px; min-height: 46px;
  border: 0; border-radius: 10px; background: var(--cs-paper);
  box-shadow: 0 0 0 1.5px rgba(15, 43, 82, .28), 0 3px 8px rgba(15, 43, 82, .12);
}
#career-story .cs-choice-btn:hover { background: var(--sky-soft, #e4f3fb); }
#career-story .cs-think { background: #cdeaf8; box-shadow: inset 4px 0 0 var(--cs-ai), 0 0 0 1.5px rgba(15, 43, 82, .35), 0 3px 8px rgba(15, 43, 82, .14); color: var(--cs-navy); }
#career-story .cs-think:hover { background: #b9e1f5; }
#career-story .cs-think .cs-dab { --tone: #fff6d8; }
#career-story .cs-fast.is-tried { border: 0; color: var(--cs-soft); text-decoration: line-through; text-decoration-thickness: 2px; opacity: .8; }
#career-story .cs-think.is-nudge { box-shadow: inset 4px 0 0 var(--cs-ai), 0 0 0 3px rgba(54, 171, 226, .45), 0 3px 10px rgba(15, 43, 82, .16); }

/* toolkit: round journal stickers */
#career-story .cs-kit-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
#career-story .cs-kit-title > span:first-child { font-family: var(--cs-hand); font-size: 23px; font-weight: 700; color: var(--cs-navy); }
html[data-lang="zh"] #career-story .cs-kit-title > span:first-child { font-size: 15px; }
#career-story .cs-kit-count { font-size: 12px; color: var(--cs-soft); font-variant-numeric: tabular-nums; }
#career-story .cs-kit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
#career-story .cs-sticker {
  --r: -4deg; --wash: #cfe7f6;
  display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 2px 0; border: 0; border-radius: 10px;
  background: none; font: inherit; color: #6b6454; cursor: default; -webkit-tap-highlight-color: transparent;
}
#career-story .cs-kit-ico {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px dashed #c2b9a6; background: transparent; transition: transform .25s var(--cs-ease), box-shadow .25s;
}
#career-story .cs-kit-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: .4; }
#career-story .cs-kit-lbl { font-size: 11.5px; font-weight: 700; line-height: 1.15; text-align: center; }
#career-story .cs-sticker.is-earned { color: var(--cs-navy); cursor: pointer; }
#career-story .cs-sticker.is-earned .cs-kit-ico {
  border: 3px solid #fff; transform: rotate(var(--r));
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7), transparent 50%), var(--wash);
  box-shadow: 0 0 0 1px rgba(15, 43, 82, .14), 0 3px 6px rgba(15, 43, 82, .22);
}
#career-story .cs-sticker.is-earned .cs-kit-ico svg { opacity: 1; }
#career-story .cs-sticker.is-earned:hover .cs-kit-ico { transform: rotate(0) scale(1.08); }
#career-story .cs-sticker[data-kit="chemist"] { --r: -6deg; --wash: #cfe7f6; }
#career-story .cs-sticker[data-kit="lab"] { --r: 4deg; --wash: #f6d3bf; }
#career-story .cs-sticker[data-kit="safety"] { --r: -3deg; --wash: #fbe0a8; }
#career-story .cs-sticker[data-kit="research"] { --r: 5deg; --wash: #d7ebd2; }
#career-story .cs-sticker[data-kit="mentor"] { --r: -5deg; --wash: #f9e7b5; }
#career-story .cs-sticker[data-kit="ai"] { --r: 3deg; --wash: #c6e6f7; }
#career-story .cs-sticker[data-kit="hats"] { --r: -4deg; --wash: #f4cdbd; }
#career-story .cs-sticker.is-pop .cs-kit-ico { animation: cs-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cs-pop { 0% { transform: scale(.3) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.2) rotate(8deg); opacity: 1; } 100% { transform: rotate(var(--r)); } }

/* scrubber: ink pin and a stamped year */
#career-story .cs-track { height: 3px; background: repeating-linear-gradient(90deg, #c9c0ad 0 6px, transparent 6px 10px); }
#career-story .cs-fill { top: -1.5px; bottom: -1.5px; background: linear-gradient(90deg, #9fd4ef, var(--cs-ai)); }
#career-story .cs-tick { top: -3.5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #d8d0bf; }
#career-story .cs-thumb { width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 0; border-radius: 50%; background: var(--cs-navy); box-shadow: 0 0 0 3px var(--cs-paper), 0 0 0 4.5px rgba(15, 43, 82, .3), 0 2px 6px rgba(15, 43, 82, .3); }
#career-story .cs-thumb-tag {
  bottom: 17px; padding: 1px 7px; border: 1.5px solid var(--cs-navy); border-radius: 3px; background: var(--cs-paper);
  font-family: var(--cs-display); font-size: 13px; font-weight: 600; line-height: 1.3; transform: translateX(-50%) rotate(-2deg);
}
html[data-lang="zh"] #career-story .cs-thumb-tag { font-size: 12px; font-weight: 800; transform: translateX(-50%); }

/* Pro stop card: lane icon, title, year stamp, accent edge */
#career-story .cs-card { border: 0; border-radius: 8px; box-shadow: inset 5px 0 0 var(--lane, var(--cs-sci)), 0 0 0 1px rgba(15, 43, 82, .08), 0 8px 22px rgba(15, 43, 82, .12); padding: 12px 16px 12px 20px; }
#career-story .cs-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
#career-story .cs-card-hd { flex: 1 1 auto; min-width: 0; }
#career-story .cs-card-head .cs-card-tag { margin: 0; }
#career-story .cs-card-head .cs-card-title { margin: 0; }
#career-story .cs-card-year { transform: none; outline: 0; font-size: 14px; border-width: 1.5px; }
#career-story .cs-lane-rp .cs-card-year { border-color: var(--cs-rp-ink); color: var(--cs-rp-ink); }
#career-story .cs-lane-ai .cs-card-year { border-color: var(--cs-ai-ink); color: var(--cs-ai-ink); }

@media (max-width: 899px) {
  #career-story .cs-caps { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; text-align: left; }
  #career-story .cs-capmeta { flex-direction: column; gap: 6px; margin: 0; }
  #career-story .cs-capmeta .cs-dab { width: 32px; height: 32px; }
  #career-story .cs-capmeta .cs-dab svg { width: 19px; height: 19px; }
  #career-story .cs-stamp { font-size: 12px; padding: 1px 6px; outline-offset: 1.5px; }
  #career-story .cs-capmeta .cs-stamp { max-width: 74px; white-space: normal; text-align: center; }
  #career-story .cs-kit-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #career-story .cs-kit-list { display: flex; gap: 4px; }
  #career-story .cs-sticker { width: auto; padding: 0; }
  #career-story .cs-kit-ico { width: 31px; height: 31px; }
  #career-story .cs-sticker.is-earned .cs-kit-ico { border-width: 2px; }
  #career-story .cs-kit-ico svg { width: 17px; height: 17px; }
  #career-story .cs-kit-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #career-story .cs-note { padding-left: 44px; }
  #career-story .cs-note-ico { left: 8px; top: 8px; }
  #career-story .cs-mapbox .cs-card { padding: 10px 12px 10px 16px; }
  #career-story .cs-card .cs-dab { display: none; }
  #career-story .cs-card-head { padding-right: 34px; gap: 8px; margin-bottom: 4px; }
  #career-story .cs-card-title { font-size: 17px; }
  #career-story .cs-card-text { font-size: 14px; line-height: 1.4; }
  #career-story .cs-card-facts { margin-top: 4px; }
  #career-story .cs-card.is-compact .cs-card-facts { display: none; }
  #career-story .cs-card-facts li { font-size: 13px; line-height: 1.4; }
}
@media (max-width: 360px) {
  #career-story .cs-kit-ico { width: 27px; height: 27px; }
}

/* =============== reduced motion =============== */
@media (prefers-reduced-motion: reduce) {
  #career-story *, #career-story *::before, #career-story *::after { animation: none !important; transition: none !important; }
  #career-story .cs-slide.is-active img { transform: none; }
  #career-story .is-rush .cs-ribbons path { stroke-dashoffset: 0; opacity: 1; }
}
