/* ========================================================
   MEET THE DESIGNER — career journey (About)
   Pinned panel: scrolling (or the arrow keys) moves the avatar along the path.
   Everything is scoped with the jr- prefix. js/journey.js adds .jr-on;
   without it (no JS, reduced motion) the same content shows as a list.
   Panel is deliberately dark in both themes.
   ======================================================== */
.jr { position: relative; margin-top: 60px; color: #fff; }

.jr-track { position: relative; }
.jr-pin { padding: 24px; }

.jr-panel {
  position: relative; width: 100%; margin: 0 auto;
  border-radius: 8px; overflow: hidden;
  background: linear-gradient(#575757, #333);
}

/* ---------- static list (no JS / reduced motion) ---------- */
.jr-ui { position: relative; padding: 24px 20px 0; }
.jr-list { list-style: none; margin: 0; padding: 8px 20px 40px; display: grid; gap: 40px; max-width: 760px; }
.jr-h {
  display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 32px;
  letter-spacing: .32px; text-transform: uppercase;
}
.jr-h span { display: block; color: #fff; text-box: trim-both cap alphabetic; }
.jr-h span + span { color: var(--orange-102); }
@supports not (text-box: trim-both cap alphabetic) { .jr-h span { line-height: .685; } }
.jr-p { margin: 0; font-size: 18px; line-height: 24px; letter-spacing: .18px; }
.jr-p + .jr-p { margin-top: 12px; }
.jr-item--intro .jr-p + .jr-p { margin-top: 30px; }
.jr-key { display: inline-block; width: 26px; height: 23px; margin: 0 1px; vertical-align: -6px; }
.jr-ul { margin: 0; padding-left: 22px; font-size: 18px; line-height: 24px; letter-spacing: .18px; }
.jr-ul li + li { margin-top: 6px; }
.jr-p + .jr-ul { margin-top: 4px; }

/* Reach out: the site's pill, cream (#fbf4ea) with dark label and arrow so it reads on the dark panel. */
.jr .cta-pill { display: flex; width: max-content; margin-top: 16px; color: #2b2b2b; }
.jr .cta-pill::before, .jr .cta-pill:hover::before, .jr .cta-pill:focus-visible::before { background: #fbf4ea; border-color: #fbf4ea; }
.jr .cta-pill img, .jr .cta-pill:hover img, .jr .cta-pill:focus-visible img { filter: invert(.83); }
.jr .cta-pill:hover .cta-pill-label, .jr .cta-pill:focus-visible .cta-pill-label { color: #2b2b2b; }
.jr-slides { display: grid; gap: 12px; max-width: 436px; }
.jr-s { display: block; width: 100%; height: auto; aspect-ratio: 340 / 250; object-fit: cover; border-radius: 7px; background: #fff; }
.jr-m { display: block; width: 100%; max-width: 436px; height: auto; aspect-ratio: 340 / 250; object-fit: cover; border-radius: 7px; background: #fff; }

.jr-head { gap: 12px; cursor: default; }
.jr-head .tag {
  width: 55.68px; height: 55.68px; background: #fff; border: 1px solid #333;
  border-radius: 6.55px 0 6.55px 0;
}
.jr-head .tag img { width: 40px; height: 40px; }
.jr-head .title { margin: 0; color: #fff; letter-spacing: .32px; }
.jr-rule { display: none; margin: 0; border: 0; height: 1px; background: #fff; opacity: .85; }

.jr-stage, .jr-tbs, .jr-media { display: none; }

/* ---------- motion mode ---------- */
.jr.jr-on .jr-track { height: calc(100vh + var(--jr-scroll, 560vh)); }
.jr.jr-on .jr-pin {
  position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding-top: var(--jr-top, 108px);
  display: flex; align-items: flex-start; justify-content: center;
}
.jr.jr-on .jr-panel { aspect-ratio: 1381 / 700; max-height: calc(100vh - var(--jr-top, 108px) - 16px); }
.jr.jr-on .jr-list {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; gap: 0;
}
.jr.jr-on .jr-stage { display: block; position: absolute; left: 0; top: 0; width: 1381px; height: 700px; transform-origin: 0 0; transform: translate(var(--jr-ox, 0px), var(--jr-oy, 0px)) scale(var(--jr-s, 1)); }
.jr.jr-on .jr-ui {
  position: absolute; left: 0; top: 0; width: 1381px; height: 700px; padding: 0;
  transform-origin: 0 0; transform: translate(var(--jr-ox, 0px), var(--jr-oy, 0px)) scale(var(--jr-s, 1)); pointer-events: none;
}
.jr.jr-on .jr-ui > * { pointer-events: auto; }
.jr.jr-on .jr-head { position: absolute; left: 8px; top: 24px; width: 296px; padding: 12px; }
.jr.jr-on .jr-rule { display: block; position: absolute; left: 20px; top: 127.7px; width: 406.5px; }
.jr.jr-on .jr-tbs { display: grid; align-items: start; position: absolute; left: 20px; top: 151.7px; width: 400px; }
.jr.jr-on .jr-media { display: block; position: absolute; left: 0; top: 0; width: 436px; }

.jr-art {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 440px, #000 640px);
  mask-image: linear-gradient(90deg, transparent 0, transparent 440px, #000 640px);
}
.jr-world { position: absolute; inset: 0; transform-origin: var(--jr-wx, 908px) var(--jr-wy, 700px); transform: scale(var(--jr-w, .85)); }
.jr-world--p { transform: scale(var(--jr-pw, .85)); }
.jr-layer { position: absolute; max-width: none; display: block; will-change: transform; }
.jr-path { left: 262.5px; top: 522px; }
.jr-beacons { left: 262.5px; top: 522px; }
.jr-clouds { left: 690.5px; top: 87px; }
.jr-birds { left: 690.5px; top: 147.5px; }
.jr-cincy { left: 690.5px; top: 87px; }

.jr-dashed { stroke: #fff; stroke-width: 2; stroke-dasharray: 10 8; }
.jr-solid { stroke: var(--orange-102); stroke-width: 3; stroke-linecap: round; }

/* beacon: Figma rings. Until the avatar arrives, the two white rings pulse outward; the first beacon always pulses, to draw the eye to where the journey starts. */
.jr-beacon .jr-ring { fill: none; stroke: #fff; transform-box: fill-box; transform-origin: center; }
.jr-beacon .jr-dot { fill: var(--orange-102); stroke: #fff; }
.jr-beacon:not(.is-reached) .jr-ring, .jr-beacon:first-child .jr-ring { stroke-width: 1.5; animation: jr-pulse 2.4s ease-out infinite; }
.jr-beacon:not(.is-reached) .jr-ring + .jr-ring, .jr-beacon:first-child .jr-ring + .jr-ring { animation-delay: 1.2s; }
@keyframes jr-pulse {
  0% { transform: scale(.28); opacity: .85; }
  100% { transform: scale(1.18); opacity: 0; }
}

.jr-avatar { position: absolute; left: 0; top: 0; width: 64px; height: 74px; transform-origin: 0 0; will-change: transform; }
/* Avatar tooltip: one shape that morphs between a wide scroll hint (.is-wide, on the first beacon)
   and the round pin. Box and tail are drawn as one outline; the bottom edge stays put so the tail
   always points at the beacon. The wide state is sized in em, where 1em = 1 real px (JS sets --jr-k
   to undo the avatar's phone scale), so its text is 18px and its padding 8px on every screen. */
.jr-avatar { font-size: calc(var(--jr-k, 1) * 1px); }
.jr-tip {
  --jr-ease: cubic-bezier(.65, 0, .35, 1);
  position: absolute; left: 50%; bottom: 10px; box-sizing: border-box; width: 64px; height: 64px; transform: translateX(-50%);
  background: #f8f8f8; border: 2px solid #333; border-radius: 32px;
  transition: width .4s var(--jr-ease), height .4s var(--jr-ease), border-radius .4s var(--jr-ease);
}
.jr-avatar.is-wide .jr-tip { width: 278em; height: 80em; border-radius: 12em; }
.jr-tip-in { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.jr-avatar-face {
  position: absolute; left: 2px; top: 0; width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 0 #333; transition: left .4s var(--jr-ease), top .4s var(--jr-ease), width .4s var(--jr-ease), height .4s var(--jr-ease), box-shadow .4s var(--jr-ease);
}
.jr-avatar.is-wide .jr-avatar-face { left: 10em; top: 10em; width: 56em; height: 56em; box-shadow: 0 0 0 2em #333; }
.jr-tip-text {
  position: absolute; left: 76em; top: 50%; margin: 0; transform: translateY(-50%); white-space: nowrap;
  opacity: 0; transition: opacity .15s ease;
}
.jr-tip-copy { display: block; font-size: 18em; font-weight: 600; line-height: 1.3333; letter-spacing: .01em; color: var(--orange-102); }
.jr-avatar.is-wide .jr-tip-text { opacity: 1; transition: opacity .16s ease .2s; }
.jr .jr-tip .jr-key { width: 1.2778em; height: 1.1333em; margin: 0; vertical-align: -.22em; }   /* 23 x 20.4 at the 18px text */
.jr-tip-tail { position: absolute; left: 50%; top: 100%; margin-left: -6.78px; }
.jr-tip-tail-fill { fill: #f8f8f8; }
.jr-tip-tail-line { fill: none; stroke: #333; stroke-width: 2; stroke-linejoin: round; }

/* text block (one per beacon, stacked; the active one fades in) */
.jr-tb { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; padding-top: 8px; }
.jr-tb.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .08s; }
.jr-tb .jr-h span { white-space: nowrap; }
.jr-tb .jr-p, .jr-tb .jr-ul { width: 400px; max-width: 100%; }
.jr-tb .jr-ul { width: auto; }

/* media card: pops up above the beacon */
.jr-mc {
  position: absolute; left: 0; top: 0; width: 578px; aspect-ratio: 340 / 250; background: #e6e6df; border-radius: 7.2px; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.9); transform-origin: 50% 100%;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.jr-mc.is-active { opacity: 1; transform: none; transition-delay: .12s; }
.jr-mc--ph {
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: .28px;
  text-transform: uppercase; color: #9b9b93;
}
.jr-mc img, .jr-mc video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* slider card: a row of slides the JS glides along (see buildSlider in journey.js) */
.jr-mc--slides .jr-track-s { display: flex; height: 100%; width: calc(100% * var(--jr-n, 7)); will-change: transform; }
.jr-mc--slides .jr-slide { flex: 0 0 auto; width: calc(100% / var(--jr-n, 7)); height: 100%; }

@media (max-width: 860px) { .jr-pin { padding-left: 16px; padding-right: 16px; } }

/* ---------- compact (phones and small tablets): follows the mobile Figma mock ----------
   The panel fills the screen with the title centered at the top. The art area is 393 x 496 px, bottom-aligned to the
   small viewport; its layer boxes are the mock's px (JS positions the stage,
   avatar, beacons and media). */
.jr.jr-on.jr-compact { margin-bottom: 32px; }
.jr.jr-on.jr-compact .jr-pin { padding: 0; }
.jr.jr-on.jr-compact .jr-panel { width: 100%; max-width: none; max-height: none; height: 100vh; aspect-ratio: auto; border-radius: 0; }
.jr.jr-on.jr-compact .jr-stage { width: 393px; height: 496px; }
.jr.jr-on.jr-compact .jr-ui { width: 100%; height: 100%; transform: none; }
.jr.jr-on.jr-compact .jr-art { -webkit-mask-image: none; mask-image: none; }
.jr-compact .jr-key { width: 22.1px; height: 19.55px; vertical-align: -5px; }
.jr-compact .jr-path, .jr-compact .jr-beacons { left: -47.37px; top: 421.47px; width: 1332.4px; height: 48.6px; }
.jr-compact .jr-cincy { left: 93.03px; top: 206.27px; width: 1076.36px; height: 221.39px; }
.jr-compact .jr-clouds { left: 92.83px; top: 214.28px; width: 990.66px; height: auto; }
.jr-compact .jr-birds { left: 123.15px; top: 237.17px; width: 991.26px; height: auto; }
.jr-compact .jr-dashed { stroke-width: 3.85; stroke-dasharray: 16 10; }
.jr-compact .jr-solid { stroke-width: 5.94; }
.jr.jr-on.jr-compact .jr-head { left: 0; right: 0; top: 24px; width: auto; padding: 0; gap: 0; align-items: center; }
.jr-compact .jr-head .content-lockup { justify-content: center; width: auto; }
.jr-compact .jr-head .tag { width: 44px; height: 44px; margin-top: 3.5px; }
.jr-compact .jr-head .tag img { width: 30px; height: 30px; }
.jr-compact .jr-head .title { font-size: 24px; line-height: 25.2px; }
.jr.jr-on.jr-compact .jr-rule { left: 17px; right: 17px; top: 92px; width: auto; }
.jr.jr-on.jr-compact .jr-tbs { left: 27px; right: 26px; top: 102px; width: auto; }
.jr-compact .jr-tb { padding-top: 6.8px; }
.jr-compact .jr-head, .jr-compact .jr-rule { will-change: transform, opacity; }
.jr-compact .jr-h { gap: 6.8px; margin-bottom: 10.2px; font-size: 27.2px; letter-spacing: .27px; }
.jr-compact .jr-p, .jr-compact .jr-ul { font-size: 15.3px; line-height: 20.4px; letter-spacing: .15px; }
.jr-compact .jr-p + .jr-p { margin-top: 10.2px; }
.jr-compact .jr-item--intro .jr-p + .jr-p { margin-top: 25.5px; }
.jr-compact .jr-ul { padding-left: 19px; }
.jr-compact .jr-ul li + li { margin-top: 5px; }
.jr-compact .jr-tb .jr-p, .jr-compact .jr-tb .jr-ul { width: auto; }
.jr.jr-on.jr-compact .jr-media { width: auto; }
.jr-mc--skip { display: none; }

@media (prefers-reduced-motion: reduce) {
  .jr-beacon .jr-ring { animation: none !important; }
  .jr-tb, .jr-mc, .jr-tip, .jr-avatar-face, .jr-tip-text { transition: none !important; }
}

[data-theme="dark"] .jr-panel { border: 1px solid var(--muted); }
