.delivery {
  --delivery-progress: 0;
  position: relative;
  display: block;
  grid-template-columns: none;
  height: 285vh;
  min-height: 2100px;
  padding: 0;
  overflow: visible;
  background:
    radial-gradient(circle at 77% 44%, rgba(63, 116, 146, .13), transparent 34%),
    linear-gradient(180deg, #0b1118 0%, #0d151d 56%, #172028 100%);
  color: #fff;
}

.delivery-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(390px, .82fr) minmax(600px, 1.18fr);
  grid-template-rows: 1fr auto;
  gap: 2.5vh 7vw;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  padding: 8vh 4vw 5vh;
  overflow: hidden;
}

.delivery-sticky::before {
  content: "ORDER CONTROL / 01-07";
  position: absolute;
  top: 4vh;
  right: 4vw;
  color: rgba(255, 255, 255, .36);
  font-size: 9px;
  letter-spacing: 0;
}

.delivery-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 52%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 52%, #000);
}

.delivery .route-copy {
  align-self: center;
  max-width: 560px;
}

.delivery .route-copy h2 {
  margin: 0;
  font-size: clamp(52px, 5.25vw, 82px);
  line-height: .94;
  letter-spacing: 0;
}

.delivery .route-copy > p:not(.section-kicker) {
  max-width: 500px;
  margin: 24px 0 0;
  color: #aeb9c3;
  font-size: 13px;
  line-height: 1.7;
}

.delivery-live {
  min-height: 108px;
  margin: 34px 0 26px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--yellow);
}

.delivery-live small {
  display: flex;
  justify-content: space-between;
  max-width: 400px;
  color: #788795;
  font-size: 9px;
}

.delivery-live small span { color: var(--yellow); }

.delivery-live strong {
  display: block;
  margin-top: 10px;
  font-size: 21px;
  letter-spacing: 0;
}

.delivery-live p {
  max-width: 430px;
  margin: 7px 0 0;
  color: #aeb9c3;
  font-size: 11px;
  line-height: 1.5;
}

.delivery .secondary-dark {
  border-color: rgba(255, 255, 255, .32);
  background: transparent;
}

.delivery .secondary-dark:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.delivery .route-map {
  position: relative;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 610px;
  padding-left: 0;
}

.delivery .route-line {
  position: absolute;
  top: 7%;
  bottom: 7%;
  left: 21px;
  width: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .15);
}

.delivery .route-line i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--delivery-progress) * 100%);
  background: linear-gradient(180deg, #fff, var(--yellow));
  box-shadow: 0 0 14px rgba(246, 200, 86, .68);
  transition: height .18s linear;
}

.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 43px 38px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 67px;
  padding: 8px 20px 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  color: #fff;
  text-align: left;
  opacity: .3;
  transform: translateX(0);
  transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1), background .35s ease;
}

.route-step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: #0d151d;
  transform: translateY(-50%);
  transition: background .3s, border-color .3s, box-shadow .3s;
}

.route-step > span {
  position: relative;
  z-index: 3;
  color: transparent;
  font-size: 0;
}

.route-step > i,
.route-step > svg {
  width: 20px;
  height: 20px;
  color: #8d9ba7;
  stroke-width: 1.35;
  transition: color .3s, transform .4s cubic-bezier(.16, 1, .3, 1);
}

.route-step div { min-width: 0; }
.route-step small { color: #7f8e9b; font-size: 9px; text-transform: uppercase; }
.route-step h3 { margin: 3px 0 0; font-size: 17px; font-weight: 650; letter-spacing: 0; }

.route-step p {
  max-width: 570px;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #aeb9c3;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height .4s ease, margin .4s ease, opacity .3s ease, transform .4s ease;
}

.route-step.past { opacity: .55; }

.route-step.active,
.route-step:hover,
.route-step:focus-visible {
  background: linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 82%);
  opacity: 1;
  transform: translateX(12px);
}

.route-step.active::before {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 0 0 7px rgba(246, 200, 86, .12), 0 0 24px rgba(246, 200, 86, .48);
}

.route-step.active > i,
.route-step.active > svg {
  color: var(--yellow);
  transform: scale(1.1);
}

.route-step.active p {
  max-height: 58px;
  margin-top: 7px;
  opacity: 1;
  transform: none;
}

.delivery-corridor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, .52);
  font-size: 9px;
}

.delivery-corridor > span {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, .15);
}

.delivery-corridor > span i {
  position: absolute;
  top: -1px;
  left: 0;
  width: calc(var(--delivery-progress) * 100%);
  height: 3px;
  background: var(--yellow);
  transition: width .18s linear;
}

.delivery-corridor > span i::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, .7);
}

@media (max-width: 1100px) {
  .delivery-sticky { grid-template-columns: minmax(330px, .72fr) minmax(530px, 1.28fr); gap: 4vw; }
  .delivery .route-copy h2 { font-size: 52px; }
  .route-step { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .delivery { height: auto; min-height: 0; }
  .delivery-sticky { position: relative; height: auto; min-height: 900px; }
}
