
.courier { position: relative; isolation: isolate; }
.courier__stop { position: relative; }


.courier--h { view-timeline: --courier block; }
.courier__h { display: block; width: 100%; height: auto; overflow: visible; margin-bottom: 28px; }
.courier__dots { fill: none; stroke: rgba(31, 95, 69, .32); stroke-width: 2.5; stroke-dasharray: 0 8; stroke-linecap: round; }
.courier__fill { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; }
.courier__seat { fill: #fff; stroke: var(--line2); stroke-width: 2; }
.courier__lit { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 5px 8px rgba(18, 183, 106, .45)); }
.courier__orb {
  filter: drop-shadow(0 4px 6px rgba(18, 183, 106, .5));
  offset-path: path("M10 40C403.33 40 796.67 12 1190 12"); offset-rotate: 0deg; offset-distance: 100%;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .courier__orb, .courier__fill, .courier__lit {
      animation: linear both; animation-timeline: --courier; animation-range: entry 100% cover 62%;
    }
    .courier__orb { animation-name: cr-orb; }
    .courier__fill { animation-name: cr-fill; }
    .courier__lit.s1 { animation-name: cr-lit1; }
    .courier__lit.s2 { animation-name: cr-lit2; }
    .courier__lit.s3 { animation-name: cr-lit3; }
  }
}
@keyframes cr-orb { from { offset-distance: 0%; } }
@keyframes cr-fill { from { stroke-dashoffset: 1; } }
@keyframes cr-lit1 { 0% { opacity: 0; scale: .4; } 4%, 100% { opacity: 1; scale: 1; } }
@keyframes cr-lit2 { 0%, 33% { opacity: 0; scale: .4; } 38%, 100% { opacity: 1; scale: 1; } }
@keyframes cr-lit3 { 0%, 67% { opacity: 0; scale: .4; } 72%, 100% { opacity: 1; scale: 1; } }
.courier.is-js .courier__orb { offset-distance: calc(var(--p, 1) * 100%); }
.courier.is-js .courier__fill { stroke-dashoffset: calc(1 - var(--p, 1)); }
.courier.is-js .courier__lit.s2 { opacity: clamp(0, (var(--p, 1) - .34) * 30, 1); }
.courier.is-js .courier__lit.s3 { opacity: clamp(0, (var(--p, 1) - .68) * 30, 1); }


.courier__v { position: absolute; left: 0; top: 10px; bottom: 10px; width: 24px; container-type: size; }
.courier__v svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.courier__v path { fill: none; stroke-width: 2.5; stroke-dasharray: 0 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.courier__v svg:not(.courier__vfill) path { stroke: rgba(31, 95, 69, .32); }
.courier__vfill path { stroke-width: 3; stroke-dasharray: none; }
.courier__v .orb { position: absolute; left: 12px; top: 0; z-index: 1; width: 14px; height: 14px; translate: -50% calc(100cqh - 50%); }
.courier__stop::before {
  content: ""; position: absolute; left: calc(2px - var(--cr-gut, 40px)); top: var(--cr-dot-y, -3px); width: 20px; height: 20px;
  border-radius: 50%; background: var(--orb-fill); box-shadow: 0 6px 14px rgba(18, 183, 106, .4);
}
@keyframes cr-v {
  0% { translate: -50% -50%; }
  23% { translate: calc(-50% + 3px) calc(23cqh - 50%); }
  50% { translate: -50% calc(50cqh - 50%); }
  77% { translate: calc(-50% - 3px) calc(77cqh - 50%); }
  100% { translate: -50% calc(100cqh - 50%); }
}
@keyframes cr-stop-lit {
  0%, 92% { background: #fff; box-shadow: inset 0 0 0 2px var(--line2); }
  100% { background: var(--orb-fill); box-shadow: 0 6px 14px rgba(18, 183, 106, .4); }
}


.courier--h .courier__v, .courier--h .courier__stop::before { display: none; }
@media (max-width: 760px) {
  .courier--h .courier__h { display: none; }
  .courier--h { padding-left: 40px; }
  .courier--h .courier__v, .courier--h .courier__stop::before { display: block; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .courier--h .courier__v .orb { animation: cr-v linear both; animation-timeline: --courier; animation-range: entry 60% cover 70%; }
      .courier--h .courier__stop { view-timeline: --cr-stop block; }
      .courier--h .courier__stop::before { animation: cr-stop-lit linear both; animation-timeline: --cr-stop; animation-range: entry 100% cover 55%; }
    }
  }
  .courier--h.is-js .courier__v .orb { translate: -50% calc(var(--p, 1) * 100cqh - 50%); }
}



@property --cr-ink { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
.courier--v { padding-left: var(--cr-gut, 40px); }

.courier__ink {
  background: linear-gradient(var(--g), var(--g-deep)) 0 0 / 100% var(--cr-ink) no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .courier--v .courier__v { view-timeline: --cr-v block; view-timeline-inset: 0 50%; }
    .courier--v .courier__v .orb { animation: cr-v linear both; animation-timeline: --cr-v; animation-range: entry-crossing 0% entry-crossing 100%; }
    .courier--v .courier__vfill { animation: cr-vfill linear both; animation-timeline: --cr-v; animation-range: entry-crossing 0% entry-crossing 100%; }
    .courier--v .courier__stop { view-timeline: --cr-stop block; view-timeline-inset: 0 50%; }
    .courier--v .courier__stop::before {
      animation: cr-stop-lit linear both; animation-timeline: --cr-stop;
      animation-range: entry-crossing calc(var(--cr-dot-y, -3px) - 6px) entry-crossing calc(var(--cr-dot-y, -3px) + 10px);
    }
    .courier--v .courier__ink { animation: cr-ink linear both; animation-timeline: view(block 0px 50%); animation-range: entry-crossing 0% entry-crossing 100%; }
  }
}
@keyframes cr-vfill { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cr-ink { from { --cr-ink: 0%; } to { --cr-ink: 100%; } }
.courier--v.is-js .courier__v .orb { translate: -50% calc(var(--p, 1) * 100cqh - 50%); }
.courier--v.is-js .courier__vfill { clip-path: inset(0 0 calc(100% - var(--p, 1) * 100%) 0); }
.courier--v.is-js .courier__stop:not(.is-lit)::before { background: #fff; box-shadow: inset 0 0 0 2px var(--line2); }

@media (forced-colors: active) {
  .courier__ink { background: none; color: CanvasText; }
}



body { timeline-scope: --cr-read; }
.courier-read { view-timeline: --cr-read block; view-timeline-inset: var(--nav-h) 0px; }

.courier--page { position: fixed; z-index: 40; left: 0; right: 0; top: calc(var(--nav-h) + 1px); height: 2px; pointer-events: none; }
.courier--page .courier__bar { position: absolute; inset: 0; background: var(--grad-go); transform-origin: 0 0; scale: var(--p, 0) 1; }
@supports (animation-timeline: view()) {
  .courier--page .courier__bar { animation: cr-bar-x linear both; animation-timeline: --cr-read; animation-range: contain 0% contain 100%; }
}
@keyframes cr-bar-x { from { scale: 0 1; } to { scale: 1 1; } }
@media (prefers-reduced-motion: reduce), print { .courier--page { display: none; } }
