.career-timeline { --journey-card-width: clamp(340px, 32vw, 440px); --journey-gutter: 6vw; border-top: 1px solid var(--line); padding-top: 20px; scroll-margin-top: var(--header-clearance); }
.journey-stage { padding: 16px 0 12px; }
.career-heading { text-align: center; padding: 0 6% 20px; }
.career-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.8px; color: var(--muted); }
.career-eyebrow > span { margin-right: 8px; color: var(--accent); font-size: 19px; vertical-align: middle; }
.career-heading h2 { margin: 12px 0; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-variation-settings: "SOFT" 100, "opsz" 144; font-size: clamp(32px, 4.2vw, 64px); letter-spacing: -1.6px; line-height: 1.08; }
.journey-summary { max-width: 580px; margin: auto; font-size: 14px; line-height: 1.6; color: var(--muted); }
.journey-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: auto; scrollbar-color: var(--accent) var(--paper); scroll-padding-inline-start: var(--journey-gutter); }
.journey-viewport.is-dragging { scroll-snap-type: none; user-select: none; }
.journey-track { display: flex; gap: 48px; list-style: none; position: relative; width: max-content; margin: 0; padding: 16px var(--journey-gutter) 18px; }
.has-image-previews .journey-track { padding-top: 110px; }
.journey-track::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.journey-stop { position: relative; width: var(--journey-card-width); flex-shrink: 0; padding: 70px 0 0; scroll-snap-align: start; }
.journey-stop:nth-child(even) { padding: 0 0 70px; }
.journey-label { position: absolute; top: 0; left: 50%; translate: -50% 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; min-height: 36px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); white-space: nowrap; font-size: 12px; box-shadow: inset 0 1px 0 #ffffff20; }
.journey-label > span { color: var(--accent-ink); }
.journey-label::after { content: ""; position: absolute; top: 100%; left: 50%; height: 35px; width: 1px; background: var(--line); }
.journey-label::before { content: ""; position: absolute; top: calc(100% + 10px); left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 3px var(--page); z-index: 1; }
.journey-stop:nth-child(even) .journey-label { top: auto; bottom: 0; }
.journey-stop:nth-child(even) .journey-label::after { top: auto; bottom: 100%; }
.journey-stop:nth-child(even) .journey-label::before { top: auto; bottom: calc(100% + 10px); }
.journey-card { height: 100%; position: relative; background: linear-gradient(145deg, #ffffff0b, transparent), var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 0 color-mix(in srgb, var(--line) 55%, var(--page)), 0 16px 30px #0002; transform: rotate(1.5deg); transition: transform .3s, border-color .3s; }
.journey-stop:nth-child(even) .journey-card { transform: rotate(-1.5deg); }
.journey-stop.is-current .journey-card { box-shadow: inset 0 3px 0 var(--accent), 0 5px 0 var(--line), 0 16px 30px #0002; }
.journey-stop.is-current .journey-label::before { background: var(--accent); }
.journey-card > header { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); background: #ffffff04; border-radius: 12px 12px 0 0; }
.journey-card > header > img { width: 48px; height: 52px; object-fit: cover; flex-shrink: 0; border: 3px solid var(--paper); outline: 1px dashed var(--line); border-radius: 3px; }
.journey-card > header > div { min-width: 0; }
.journey-card h3 { margin: 0 0 5px; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -.3px; }
.journey-card header p, .journey-location { font-size: 12px; color: var(--muted); line-height: 1.4; }
.journey-location { margin-left: auto; max-width: 76px; }
.journey-stop:has(.is-preview-open) { z-index: 5; }
.journey-image-fan { position: absolute; z-index: 3; left: 50%; top: -98px; width: min(94%, 370px); opacity: 0; visibility: hidden; translate: -50% 12px; pointer-events: none; transition: opacity .2s, translate .25s, visibility .2s; }
.journey-image-fan > div { display: flex; align-items: center; justify-content: center; }
.journey-image-fan img { display: block; width: 38%; height: 116px; object-fit: contain; padding: 5px; border: 4px solid white; border-radius: 10px; background: var(--paper); box-shadow: 0 10px 24px #0005; }
.journey-image-fan img:first-child { rotate: -13deg; translate: 10px 0; }
.journey-image-fan img:nth-child(2) { z-index: 1; rotate: 5deg; translate: 0 10px; }
.journey-image-fan img:last-child { rotate: 12deg; translate: -10px 0; }
.journey-image-fan p { position: absolute; left: 50%; bottom: -28px; translate: -50% 0; width: max-content; max-width: 100%; margin: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 9px; line-height: 1.4; }
.journey-card.is-preview-open .journey-image-fan { opacity: 1; visibility: visible; translate: -50% 0; }
.journey-card > ul { padding: 22px 24px 24px 38px; margin: 0; display: grid; gap: 18px; }
.journey-card li { padding-left: 2px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.journey-card strong { color: var(--ink); font-weight: 600; }
.journey-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 6% 8px; }
.journey-controls > button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 21px; }
.journey-controls > button:disabled { opacity: .35; cursor: default; }
.journey-hint { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-right: 8px; }
.journey-position { font-size: 12px; min-width: 50px; font-variant-numeric: tabular-nums; }
@media (min-width: 701px) and (max-height: 820px) {
  .career-timeline { padding-top: 8px; }
  .journey-stage { padding: 8px 0; }
  .career-heading { padding-bottom: 8px; }
  .career-heading h2 { font-size: clamp(32px, 3.4vw, 48px); margin: 8px 0; }
  .journey-summary { max-width: 740px; font-size: 12px; line-height: 1.5; }
  .journey-stop { padding-top: 52px; }
  .journey-stop:nth-child(even) { padding: 0 0 52px; }
  .journey-label::after { height: 16px; }
  .journey-label::before { top: calc(100% + 5px); }
  .journey-stop:nth-child(even) .journey-label::before { top: auto; bottom: calc(100% + 5px); }
  .journey-card > header { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
  .journey-card > header > img { width: 40px; height: 44px; }
  .journey-card > ul { padding: 16px 20px 18px 32px; gap: 10px; }
  .journey-card li { font-size: 13px; line-height: 1.5; }
}
@media (max-width: 700px) {
  .career-timeline { --journey-gutter: 6vw; padding-top: 16px; }
  .journey-stage { padding-top: 16px; }
  .career-heading { padding-bottom: 12px; }
  .journey-summary { font-size: 12px; max-width: 330px; }
  .journey-track { gap: 28px; }
  .journey-stop { width: 84vw; }
  .journey-card > header { grid-template-columns: 40px minmax(0, 1fr); padding: 16px; gap: 10px; }
  .journey-card > header > img { width: 40px; height: 44px; }
  .journey-card h3 { font-size: 16px; }
  .journey-card li { font-size: 13px; }
  .journey-card > ul { padding: 18px 18px 20px 30px; gap: 14px; }
  .journey-location { display: none; }
  .journey-image-fan { top: -90px; }
  .journey-image-fan img { height: 104px; }
  .journey-hint { font-size: 9px; }
}
@media (hover: hover) {
  .journey-card:hover { transform: rotate(0); }
}
@media (max-width: 700px) and (max-height: 680px) {
  .journey-controls { padding-top: 8px; padding-bottom: 4px; }
  .journey-stop { padding-top: 44px; }
  .journey-stop:nth-child(even) { padding: 0 0 44px; }
  .journey-label::after { height: 8px; }
  .journey-label::before { top: calc(100% + 1px); }
  .journey-stop:nth-child(even) .journey-label::before { top: auto; bottom: calc(100% + 1px); }
}
@media (prefers-reduced-motion: reduce) {
  .journey-card, .journey-stop:nth-child(even) .journey-card { transform: none; transition: none; }
}
