/* Stampy's delivery route. Original mascot artwork from the team's Figma file. */
.hero-postman { position: absolute; top: 8px; right: 0; width: 144px; transform: rotate(7deg); text-decoration: none; z-index: 2; }
.hero-postman img { width: 100%; height: auto; }
.hero-postman span { display: block; font-family: var(--hand); font-size: 1.45rem; margin-top: -2px; }
.hero-postman:hover { transform: rotate(2deg); }
.letter-journey { margin-top: 56px; padding-top: 48px; padding-bottom: 0; }
/* The final envelope already reserves room to open above the team section. */
.letter-journey + #team { padding-top: 40px; }
.anchor-alias { position: absolute; top: 0; }
.journey-heading { display: block; }
.journey-heading h2 { max-width: none; font-size: clamp(2.5rem,5.5vw,4.1rem); text-wrap: balance; }
.journey-intro { max-width: 600px; margin: 12px 0 0; color: var(--ink-soft); }
.journey-map { position: relative; margin-top: 28px; overflow-anchor: none; }
.journey-stops { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 28px; }
.journey-stop { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 188px minmax(0,1fr); align-items: start; min-height: 292px; scroll-margin-top: 90px; }
.route-pin { position: absolute; top: calc(125px + var(--letter-clearance, 0px)); left: calc(50% - 26px); width: 48px; height: 48px; transform: translateX(-50%); border: 1px dashed #8e7e65; background: #ead9bb; color: #7c6a50; border-radius: 50%; display: grid; place-items: center; z-index: 1; }
.route-pin span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #b8a07e; border-radius: 50%; font-family: var(--sans); font-size: .82rem; }
.journey-stop:nth-child(even) .route-pin { left: calc(50% + 26px); }
.journey-stop.is-visited .route-pin { color: var(--teal); border-color: var(--teal); background: #dce3cf; }
.journey-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.journey-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-underlay { stroke: #efe1c7; stroke-width: 12px; }
.route-dashes { stroke: #a68b66; stroke-width: 2px; stroke-dasharray: 3 10; }
.route-traveled { stroke: var(--teal); stroke-width: 2.5px; opacity: .7; }
.stampy-traveler { position: absolute; left: 0; top: 0; width: 106px; height: 116px; pointer-events: none; z-index: 4; will-change: transform; }
.stampy-traveler img { width: 106px; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 4px 2px rgba(75,51,30,.13)); }
.stampy-shadow { position: absolute; bottom: 19px; left: 25px; width: 58px; height: 10px; background: rgba(75,51,30,.15); border-radius: 50%; filter: blur(3px); }
.stampy-traveler.is-walking img { animation: stampy-step .5s ease-in-out infinite alternate; }
@keyframes stampy-step { from { transform: translateY(-2px) rotate(-5deg); } to { transform: translateY(2px) rotate(5deg); } }
.stampy-happy { display: block; position: relative; width: clamp(200px,28vw,320px); aspect-ratio: 20 / 19; justify-self: center; overflow: hidden; }
.stampy-happy img { position: absolute; max-width: none; width: 298.83%; height: 193.94%; left: -41.05%; top: 0; }
.journey-map:not(.is-enhanced)::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed #a68b66; }
.journey-map:not(.is-enhanced) .journey-route { display: none; }

@media (max-width: 800px) {
  .journey-stop { grid-template-columns: 90px minmax(0,1fr); min-height: 280px; }
  .route-pin, .journey-stop:nth-child(even) .route-pin { left: 33px; width: 36px; height: 36px; }
  .route-pin span { width: 27px; height: 27px; font-size: .72rem; }
  .stampy-traveler { width: 74px; height: 88px; }
  .stampy-traveler img { width: 74px; }
  .stampy-shadow { width: 40px; left: 17px; bottom: 18px; }
  .journey-map:not(.is-enhanced)::before { left: 33px; }
}
@media (max-width: 620px) {
  .hero-postman { position: relative; top: auto; right: auto; width: auto; margin: -16px auto 20px; display: flex; align-items: center; justify-content: center; gap: 12px; transform: none; }
  .hero-postman img { width: 64px; }
  .hero-postman span { font-size: 1.35rem; }
  .letter-journey { margin-top: 44px; padding-top: 36px; }
  .journey-map { margin-top: 24px; }
  .journey-heading h2 { max-width: none; font-size: clamp(2.5rem,8vw,3.2rem); }
  .journey-intro { font-size: .93rem; }
  .journey-stop { grid-template-columns: 74px minmax(0,1fr); }
  .journey-stops { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .stampy-traveler.is-walking img { animation: none; }
}
