/* A single thread joins the sections like notes on the same sheet of paper. */
body { position: relative; }
.journey-thread { position: absolute; inset: 0 auto auto 0; width: 100%; height: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.journey-line { fill: none; stroke: #b66d54; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 7; opacity: .4; transition: opacity .45s; }
.journey-line.is-reached { opacity: .78; }
.journey-line--card { stroke: #fff1da; opacity: .42; }
.journey-line--about { stroke: #e6b59c; }
.journey-line--contact { stroke: #fff1da; }
.journey-origin { fill: var(--paper); stroke: var(--accent); stroke-width: 1.5; }
.journey-end { fill: var(--accent); stroke: #fff1da; stroke-width: 1.5; }
.journey-motion-path { fill: none; stroke: none; }
.journey-thread, .journey-cursor { overflow-anchor: none; }
.journey-cursor { --cursor-color: var(--accent); position: absolute; top: 0; left: 0; z-index: 4; color: var(--cursor-color); pointer-events: none; opacity: 0; }
.journey-cursor.is-ready { opacity: 1; }
.journey-cursor[data-surface='card'] { --cursor-color: #fff1da; }
.journey-cursor[data-surface='dark'] { --cursor-color: #e6b59c; }
.journey-cursor[data-surface='terracotta'] { --cursor-color: #fff1da; }
.section-padding { position: relative; padding-top: 144px; }
.journey-stop { --stop-paper: var(--surface); position: absolute; z-index: 3; top: 37px; left: calc(var(--page-edge) + 16%); display: flex; align-items: center; gap: 12px; padding: 5px 13px; color: var(--accent); font: italic 16px/1.4 var(--serif); transform: rotate(-2deg); }
.journey-stop > span:last-child { transform: translateY(-22px); background: var(--stop-paper); padding: 0 4px; }
.journey-knot { position: relative; width: 13px; height: 13px; flex: 0 0 13px; border: 1px solid currentColor; border-radius: 50%; background: var(--stop-paper); }
.journey-knot::after { content: ''; position: absolute; inset: 3px; background: currentColor; border-radius: 50%; opacity: 0; transform: scale(.4); transition: opacity .35s, transform .35s; }
.journey-stop.is-reached .journey-knot::after { opacity: 1; transform: scale(1); }
.journey-stop.is-current .journey-knot { box-shadow: 0 0 0 5px #ac432c12; }
.playground .journey-stop { --stop-paper: var(--surface-deep); left: auto; right: calc(var(--page-edge) + 12%); transform: rotate(1.5deg); }
.about .journey-stop { --stop-paper: var(--ink); color: var(--accent-light); left: calc(var(--page-edge) + 10%); }
.contact .journey-stop { --stop-paper: var(--accent); color: #fff1da; left: auto; right: calc(var(--page-edge) + 10%); transform: rotate(1.5deg); }
.about .journey-stop.is-current .journey-knot, .contact .journey-stop.is-current .journey-knot { box-shadow: 0 0 0 5px #fff1da12; }
.motion-paused .journey-line, .motion-paused .journey-knot::after { transition: none; }
.motion-paused .journey-cursor { display: none; }
@media (max-width: 800px) {
  .section-padding { padding: 120px max(var(--page-edge), 36px) 72px; }
  .journey-line { stroke-width: 1.25; stroke-dasharray: 1 6; }
  .journey-stop, .playground .journey-stop, .about .journey-stop, .contact .journey-stop { top: 27px; left: 31px; right: auto; gap: 9px; font-size: 14px; padding: 5px 10px; }
  .journey-knot { width: 11px; height: 11px; flex-basis: 11px; }
  .journey-knot::after { inset: 2px; }
}
@media (max-width: 360px) {
  .journey-stop, .playground .journey-stop, .about .journey-stop, .contact .journey-stop { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-line, .journey-knot::after { transition: none; }
  .journey-cursor { display: none; }
}
