/* A small scroll-driven illustration; the experiment media remain unchanged. */
.desktop-nav > a { display: inline-flex; align-items: center; gap: 9px; }
.desktop-nav > a > span { color: #748399; font-size: 15px; }
.apple-journey, .journey-toggle { display: none; }
.has-journey .apple-journey {
  --track-x: 50%;
  display: block;
  position: fixed;
  z-index: 15;
  right: max(12px, calc((100vw - 1280px) / 2 - 96px));
  top: calc(50% + 34px);
  width: 72px;
  height: clamp(300px, 63vh, 540px);
  transform: translateY(-50%);
}
.journey-caption { position: absolute; top: -28px; left: 0; width: 100%; text-align: center; font-size: 14px; color: var(--muted); }
.journey-track { position: absolute; left: var(--track-x); top: 46px; width: 1px; bottom: 118px; background: #dbe1e9; pointer-events: none; }
.journey-track > span { display: block; width: 100%; height: 100%; background: #8b9ba8; transform: scaleY(0); transform-origin: top; }
.journey-stop { position: absolute; left: var(--track-x); top: 24px; width: 44px; height: 44px; transform: translateX(-50%); display: grid; place-items: center; border-radius: 50%; }
.journey-mark { display: block; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 1.5px solid #9aa9bc; box-shadow: 0 0 0 5px #fff; }
.journey-stop[aria-current] .journey-mark { background: var(--blue); border-color: var(--blue); }
.journey-stop:hover .journey-mark, .journey-stop:focus-visible .journey-mark { box-shadow: 0 0 0 7px #eaf0ff; border-color: var(--blue); }
.journey-label { position: absolute; right: calc(100% + 2px); top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid #e0e5ec; box-shadow: 0 4px 14px #25395008; border-radius: 7px; padding: 6px 12px; white-space: nowrap; color: var(--muted); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .16s; }
.apple-journey:hover .journey-label, .journey-stop:focus-visible .journey-label { opacity: 1; }
.journey-stop[aria-current] .journey-label { color: var(--blue); }
.journey-apple { position: absolute; left: var(--track-x); top: 0; margin-left: -18px; width: 36px; height: 40px; transform-origin: 50% 75%; pointer-events: none; }
.journey-apple svg { display: block; width: 100%; height: 100%; }
.pen-apple { stroke: #3b4853; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pen-apple .pen-light { stroke: #9aa5ae; stroke-width: 1.1; }
.journey-finale { position: absolute; left: var(--track-x); bottom: 0; margin-left: -42px; width: 84px; height: 112px; border-radius: 12px; }
.journey-person { display: block; width: 84px; height: 112px; stroke: #3b4853; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.journey-person .pen-ground { stroke: #b0bac4; stroke-width: 1.2; }
.journey-person .pen-face { stroke-width: 1.7; }
.journey-person .pen-book { stroke: #748598; stroke-width: 1.5; }
.thinker-head { transform-origin: 47px 39px; transform: rotate(-6deg); transition: transform .5s cubic-bezier(.22,.7,.25,1); }
.thinker-thinking-arm { opacity: 0; }
.thinker-rest-arm, .thinker-thinking-arm { transition: opacity .2s; }
.thought-bubble { position: absolute; right: 0; top: -12px; width: 28px; height: 32px; display: grid; place-items: center; opacity: 0; transform: translateY(5px); transition: opacity .35s, transform .35s; }
.thought-bubble svg { width: 22px; height: 30px; stroke: #6b7d90; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.journey-ending-label { position: absolute; right: calc(100% + 6px); top: 4px; padding: 7px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--muted); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.journey-finale:hover .journey-ending-label, .journey-finale:focus-visible .journey-ending-label { opacity: 1; }
.is-landing .thinker-head { transform: rotate(19deg) translateY(-1px); transition-delay: .12s; }
.is-landing .thinker-rest-arm { opacity: 0; transition-delay: .3s; }
.is-landing .thinker-thinking-arm { opacity: 1; transition-delay: .3s; }
.is-landing .thought-bubble { opacity: 1; transform: none; transition-delay: .5s; }
.journey-toggle { position: fixed; bottom: 20px; right: 18px; z-index: 16; width: 52px; height: 52px; border: 1px solid #dce2e9; border-radius: 50%; background: #fff; box-shadow: 0 4px 20px #25395014; padding: 9px; }
.journey-toggle svg { width: 100%; height: 100%; }
.journey-toggle[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px #e6eeff; }
@media (min-width: 1101px) and (min-height: 601px) {
  .has-journey { --gutter: clamp(104px, 5.5vw, 112px); }
}
@media (max-width: 1100px), (max-height: 600px) {
  .has-journey .journey-toggle { display: block; }
  .has-journey .apple-journey { --track-x: calc(100% - 42px); right: 18px; top: auto; bottom: 86px; width: 204px; height: min(450px, calc(100svh - 180px)); transform: none; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 40px #2236511a; visibility: hidden; opacity: 0; }
  .has-journey .apple-journey.is-open { visibility: visible; opacity: 1; }
  .journey-caption { top: 17px; left: 18px; width: auto; text-align: left; }
  .journey-label { opacity: 1; border: 0; box-shadow: none; background: transparent; right: calc(100% + 1px); padding: 6px 8px; }
  .journey-ending-label { right: calc(100% - 12px); top: 35px; white-space: normal; width: 100px; border: 0; padding: 0 10px; }
  .is-landing .journey-ending-label { opacity: 1; }
  .thought-bubble { right: 0; }
}
@media (max-height: 500px) {
  .has-journey .apple-journey { height: auto; max-height: calc(100svh - 100px); overflow-y: auto; padding: 12px; bottom: 80px; }
  .journey-stop { position: relative; left: auto; top: auto !important; transform: none; width: 100%; display: flex; justify-content: flex-start; gap: 12px; padding-inline: 8px; border-radius: 6px; }
  .journey-label { position: static; transform: none; }
  .journey-caption, .journey-track, .journey-apple, .journey-finale { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .thinker-head, .thought-bubble, .thinker-rest-arm, .thinker-thinking-arm { transition: none; }
}
