.journey { scroll-margin-top: var(--bar); }
.journey-stage {
  isolation: isolate; position: relative; overflow: hidden;
  height: calc(100svh - var(--bar)); min-height: 520px; max-height: 1120px;
  background: #151b21; color: #fffaf1;
}
.journey-image,.journey-shade,.journey-image picture,.journey-image img,.journey-image video { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey-image { z-index: -2; pointer-events: none; }
.journey-image img,.journey-image video { display: block; object-fit: cover; object-position: center; }
.journey-image video { opacity: 0; transition: opacity .2s ease; }
.journey-stage[data-ready] video { opacity: 1; }
.journey-shade { z-index: -1; pointer-events: none; background: linear-gradient(90deg,rgba(10,12,15,.88),rgba(10,12,15,.71) 20%,rgba(10,12,15,.27) 43%,transparent 66%), linear-gradient(0deg,rgba(10,12,15,.75),transparent 22%); }
.journey-stage[data-region=air] .journey-shade { background: linear-gradient(180deg,rgba(9,12,17,.55),transparent 49%),linear-gradient(0deg,rgba(9,12,17,.70),transparent 17%); }
.journey-content { padding-top: clamp(36px,7vh,96px); }
.journey-copy { max-width: min(45%,620px); }
.journey-copy h1 { font: 540 clamp(38px,3.75vw,62px)/1.095 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.journey-copy p { margin-top: 20px; max-width: 34ch; font-size: clamp(17px,1.25vw,20px); line-height: 1.55; color: #e1e0dc; }
.journey-copy strong { color: #fff; font-weight: 650; white-space: nowrap; }
.journey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.action-short { display: none; }
.journey-foot { position: absolute; inset: auto 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.itinerary { display: inline-flex; align-items: center; gap: 12px; color: #f3f0eb; font-size: 16px; line-height: 1.25; font-weight: 600; }
.itinerary i { position: relative; width: clamp(48px,6vw,88px); height: 1px; background: #b7b5b1; }
.itinerary i::before,.itinerary i::after { content: ''; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #d7d4d1; }
.itinerary i::before { left: 0; }
.itinerary i::after { right: 0; }
.itinerary b { position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 1px; transition: transform .20s linear; }
.itinerary b::before { content: ''; position: absolute; left: 0; top: 0; width: 7px; height: 7px; transform: translate(-50%,-45%); background: var(--red); border-radius: 50%; }
.scene-controls { display: flex; gap: 4px; }
.scene-controls button { display: grid; width: 44px; height: 44px; place-items: center; color: #fff; background: #101215a8; border: 1px solid #7c7e8280; border-radius: 4px; }
.scene-controls button:hover { background: #24262a; }
.scene-controls svg { width: 18px; height: 18px; }
.motion-button .play,.motion-button .replay,.sound-button .audible,.sound-button[aria-pressed="true"] .silent { display: none; }
.motion-button[data-state=paused] .pause,.motion-button[data-state=ended] .pause { display: none; }
.motion-button[data-state=paused] .play,.motion-button[data-state=ended] .replay,.sound-button[aria-pressed="true"] .audible { display: block; }

@media (min-aspect-ratio: 21/9) {
  .journey-stage { min-height: 420px; }
  .journey-content { padding-top: 32px; }
}
@media (max-width: 1000px) and (orientation: landscape) {
  .journey-copy { max-width: 52%; }
  .journey-copy h1 { font-size: clamp(32px,4vw,44px); }
  .journey-actions .button { font-size: 15px; padding-inline: 14px; }
}
@media (orientation: portrait) and (max-width: 1100px) {
  .journey-stage { min-height: 520px; max-height: none; }
  .journey-shade { background: linear-gradient(180deg,rgba(10,12,15,.82) 0,rgba(10,12,15,.65) 17%,rgba(10,12,15,.10) 37%,transparent 49%),linear-gradient(0deg,rgba(10,12,15,.90),rgba(10,12,15,.5) 16%,transparent 37%); }
  .journey-content { padding-top: clamp(24px,5svh,52px); }
  .journey-copy { max-width: min(82%,510px); }
  .journey-copy h1 { font-size: clamp(32px,6vw,50px); }
  .journey-copy p { margin-top: 12px; max-width: 33ch; font-size: clamp(16px,2.5vw,19px); }
  .journey-actions { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 84px; margin: 0; gap: 8px; }
  .journey-foot { bottom: max(16px,env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) and (orientation: portrait) {
  .journey-copy { max-width: 100%; }
  .journey-copy h1 { font-size: clamp(30px,7.25vw,38px); }
  .journey-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
  .journey-actions .button { min-height: 52px; padding: 10px 12px; gap: 8px; font-size: 15px; text-align: center; text-wrap: balance; }
  .journey-actions .button-quiet svg { display: none; }
  .itinerary { font-size: 15px; }
}
@media (max-width: 363px) and (orientation: portrait) {
  .journey-copy h1 { font-size: 27px; }
  .journey-actions .button { padding-inline: 10px; font-size: 14px; }
  .journey-actions .button svg { display: none; }
}
@media (max-height: 550px) and (orientation: landscape) {
  :root { --bar: 52px; }
  .journey-stage { min-height: 290px; }
  .journey-image { left: 31%; width: 69%; }
  .journey-shade,.journey-stage[data-region=air] .journey-shade { background: linear-gradient(90deg,#13171b 0 28%,rgba(19,23,27,.86) 32%,transparent 45%),linear-gradient(0deg,rgba(10,12,15,.55),transparent 20%); }
  .journey-content { padding-top: 16px; }
  .journey-copy { max-width: 32%; }
  .journey-copy h1 { font-size: clamp(21px,2.7vw,30px); line-height: 1.1; }
  .journey-copy p { margin-top: 8px; font-size: 15px; line-height: 1.37; }
  .journey-actions { margin-top: 12px; gap: 8px; }
  .journey-actions .button { min-height: 44px; padding: 8px 12px; gap: 6px; }
  .journey-actions .button svg,.action-full { display: none; }
  .action-short { display: inline; }
  .journey-foot { bottom: 4px; }
}

/* The six origins are readable while the example route is playing. */
.journey-copy .delivery-reach { margin-top: 12px; max-width: none; color: #fffaf1; font-size: clamp(18px,1.5vw,23px); }
.origins { margin-top: 22px; }
.origins h2 { margin: 0 0 10px; color: #d6d6d4; font: 530 15px/1.4 var(--font); letter-spacing: normal; }
.origins ul { display: grid; grid-template-columns: max-content max-content; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.origins li { display: flex; align-items: center; gap: 9px; color: #faf8f3; font: 600 clamp(15px,1.08vw,18px)/1.42 var(--font); }
.origins img,.atlas-figure figcaption img { display: inline-block; width: 24px; height: 18px; flex: none; border-radius: 1px; }
.origins small { color: #dededc; font-size: .85em; font-weight: 500; }
.journey-copy .reward-note { margin-top: 16px; font-size: clamp(16px,1.13vw,18px); }
.journey-tools { display: flex; align-items: center; gap: 12px; }
.atlas-switch { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #7c7e829e; border-radius: 4px; background: #101215bf; color: #fffaf1; font-size: 15px; font-weight: 600; }
.atlas-switch svg { width: 18px; height: 18px; }
.atlas-switch[aria-expanded=true] { background: #292d31; border-color: #b3b5b7; }
@media (hover:hover) and (pointer:fine) { .atlas-switch:hover { background: #292d31; } }
.film-caption { color: #d2d2d0; font-size: 14px; font-weight: 500; }
.journey-atlas { position: absolute; z-index: -1; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; background: #111418; transition: opacity 240ms cubic-bezier(.23,1,.32,1),visibility 0s linear 240ms; }
.journey-stage[data-atlas] .journey-atlas { visibility: visible; opacity: 1; transition-delay: 0s; }
.atlas-figure { position: absolute; inset: 6% var(--gutter) 84px 42%; display: flex; flex-direction: column; justify-content: center; gap: 8px; margin: 0; transform: translateY(4px); transition: transform 240ms cubic-bezier(.23,1,.32,1); }
.journey-stage[data-atlas] .atlas-figure { transform: none; }
.atlas-figure picture { display: block; min-height: 0; }
.atlas-figure picture img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.atlas-figure figcaption { display: flex; flex: none; align-items: center; justify-content: center; gap: 8px; color: var(--secondary); font-size: 15px; }
.atlas-figure figcaption span { color: var(--muted); }
.journey-stage[data-atlas] .scene-controls,.journey-stage[data-atlas] .itinerary { display: none; }
.journey-stage[data-atlas] .journey-foot { justify-content: flex-end; }
.journey-content { transition: opacity 150ms cubic-bezier(.23,1,.32,1); }
.journey-stage[data-copy-fading] .journey-content { opacity: 0; transition-duration: 100ms; }
.on-map,.journey-stage[data-map-copy] .in-film,.journey-stage[data-map-copy] .origins,.journey-stage[data-map-copy] .reward-note { display: none; }
.journey-stage[data-map-copy] .on-map { display: inline; }
.journey-stage[data-map-copy] .delivery-reach { color: var(--secondary); max-width: 29ch; font-size: clamp(17px,1.35vw,21px); }
@media (min-width:1101px), (orientation:landscape) and (min-height:551px) {
  .journey-stage[data-map-copy] .journey-content { height: 100%; display: flex; align-items: center; padding: 0 0 60px; }
}

@media (orientation:portrait) and (max-width:1100px) {
  .journey-content { padding-top: clamp(20px,3.5svh,44px); }
  .origins { margin-top: 14px; }
  .origins ul { gap: 6px 20px; }
  .journey-copy .reward-note { margin-top: 12px; }
  .atlas-figure { inset: clamp(160px,20svh,218px) 4px 146px; }
  .atlas-figure figcaption { font-size: 14px; }
}
@media (max-width: 680px) and (orientation:portrait) {
  .journey-tools { width: 100%; justify-content: space-between; }
  .journey-foot .itinerary { display: none; }
  .origins h2 { margin-bottom: 6px; }
  .origins ul { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 5px 12px; max-width: 380px; }
  .origins li { align-items: baseline; gap: 7px; font-size: 15px; }
  .origins li img { width: 21px; height: 16px; align-self: start; margin-top: 2px; }
  .origins small { display: inline-block; }
}
@media (max-height:550px) and (orientation:landscape) {
  .journey-stage { height: max(360px,calc(100svh - var(--bar))); }
  .journey-copy .delivery-reach { font-size: 16px; margin-top: 6px; }
  .journey-copy .reward-note { font-size: 15px; margin-top: 8px; }
  .origins { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 51px; margin: 0; }
  .origins h2 { margin: 0 0 4px; font-size: 14px; }
  .origins ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .origins li { font-size: 14px; gap: 6px; }
  .origins img { width: 20px; height: 15px; }
  .atlas-figure { inset: 4px var(--gutter) 106px 39%; }
  .atlas-figure figcaption { font-size: 13px; }
}
@media (max-width:363px) and (orientation:portrait) {
  .atlas-switch { padding-inline: 9px; font-size: 14px; white-space: nowrap; }
  .journey-tools { gap: 6px; }
  .journey-stage[data-map-copy] .delivery-reach { font-size: 16px; line-height: 1.45; }
}
@media (prefers-reduced-motion: reduce) {
  .itinerary b,.journey-atlas,.atlas-figure,.journey-content { transition: none; }
  .atlas-figure { transform: none; }
}
