.mission {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 9vw, 140px) var(--container-padding-x);
  background: var(--color-bg);
  overflow: hidden;
}

/* Soft golden glow anchored to the route side — atmosphere, not a panel. */
.mission::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(-200px, -6vw, -80px);
  width: clamp(360px, 42vw, 640px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(245, 194, 5, 0.14) 0%,
    rgba(218, 130, 45, 0.06) 38%,
    transparent 70%
  );
  pointer-events: none;
}

.mission__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}

/* ---- Left column: the message ---- */

.mission__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-meta);
  font-weight: 600;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-from);
}

.mission__eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 48px);
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.mission__heading {
  margin: clamp(20px, 2.5vw, 32px) 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.04;
  text-transform: uppercase;
  background: var(--grad-text-light);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  filter: drop-shadow(0 4px 6px rgba(12, 12, 12, 0.35));
}

.mission__heading em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.mission__lead {
  margin: clamp(20px, 2.5vw, 30px) 0 0;
  max-width: 540px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.mission__points {
  margin: clamp(28px, 3.5vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.mission__point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.mission__point-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 194, 5, 0.4);
  color: var(--color-accent-from);
}

.mission__point-icon > svg {
  width: 14px;
  height: 14px;
  max-width: none;
  flex-shrink: 0;
}

.mission__point strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ---- Right column: the route ---- */

.mission__route {
  position: relative;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 36px);
  border-radius: 20px;
  border: 1px solid rgba(245, 194, 5, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mission__route-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(22px, 2.5vw, 30px);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 194, 5, 0.25);
  background: rgba(245, 194, 5, 0.07);
  font-family: var(--font-meta);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-from);
}

.mission__route-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent-from);
  box-shadow: 0 0 0 3px rgba(245, 194, 5, 0.2);
}

/* Positioning context for the travelling car-dots so they run the whole
   route, not just the first stop. `--y-top` / `--y-bottom` are the dot's
   end positions (top edge), measured to the first/last node centres by
   route-dots.js. The values here are fallbacks if JS hasn't run. */
.route-track {
  position: relative;
  --y-top: 38px;
  --y-bottom: calc(100% - 48px);
}

.route-line {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 6px;
  list-style: none;
}

/* The dashed gold road behind the nodes. */
.route-line::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-accent-from) 0 7px,
    transparent 7px 15px
  );
  opacity: 0.55;
}

/* Travelling car-dots that run the road both ways: one heading down to the
   village, one returning up to the city — two-way intercity traffic. */
.route-line__car {
  position: absolute;
  z-index: 2;
  left: 15px;
  top: var(--y-top);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--color-accent-from);
  box-shadow: 0 0 0 4px rgba(245, 194, 5, 0.18), 0 0 14px rgba(245, 194, 5, 0.7);
  animation: route-travel-down 5s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}

/* The return dot — dimmer/cooler so the two read as separate cars. */
.route-line__car--up {
  background: var(--color-secondary-from);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 0 12px rgba(255, 255, 255, 0.55);
  animation-name: route-travel-up;
  animation-delay: 2.5s;
}

/* Down: Костанай → село. Arrives right on the village node, holds, then fades. */
@keyframes route-travel-down {
  0%   { top: var(--y-top); opacity: 0; }
  6%   { opacity: 1; }
  86%  { top: var(--y-bottom); opacity: 1; }
  95%  { top: var(--y-bottom); opacity: 1; }
  100% { top: var(--y-bottom); opacity: 0; }
}

/* Up: село → Костанай. Mirror of the down trip. */
@keyframes route-travel-up {
  0%   { top: var(--y-bottom); opacity: 0; }
  6%   { opacity: 1; }
  86%  { top: var(--y-top); opacity: 1; }
  95%  { top: var(--y-top); opacity: 1; }
  100% { top: var(--y-top); opacity: 0; }
}

.route-line__stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(14px, 1.6vw, 20px) 0;
}

.route-line__node {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.route-line__node::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.route-line__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.route-line__city {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(16px, 1.5vw, 19px);
  text-transform: uppercase;
  color: var(--color-text);
}

.route-line__meta {
  font-family: var(--font-meta);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

/* The highlighted "you are here" stop — the village, now on the map. */
.route-line__stop--you .route-line__node {
  width: 22px;
  height: 22px;
  margin-left: -2px;
  border-color: var(--color-accent-from);
  background: var(--color-bg);
  box-shadow: 0 0 0 6px rgba(245, 194, 5, 0.12);
  animation: route-pulse 2.4s ease-in-out infinite;
}

.route-line__stop--you .route-line__node::after {
  inset: 5px;
  background: var(--grad-accent);
}

@keyframes route-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(245, 194, 5, 0.12); }
  50%      { box-shadow: 0 0 0 11px rgba(245, 194, 5, 0.04); }
}

.route-line__stop--you .route-line__city {
  background: var(--grad-accent);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .route-line__car { animation: none; opacity: 0; }
  .route-line__stop--you .route-line__node { animation: none; }
}

@media (max-width: 920px) {
  .mission__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 8vw, 56px);
  }

  .mission__route {
    max-width: 460px;
    width: 100%;
  }
}

/* On phones the travelling dots read a touch left of the nodes — nudge right. */
@media (max-width: 600px) {
  .route-line__car {
    left: 15px;
  }
}
