@keyframes journeyLightSweep {
  0% { opacity: 0; stroke-dashoffset: 112; }
  16% { opacity: 0.95; }
  82% { opacity: 0.72; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}

.journey-overview { gap: 22px; }

.journey-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.journey-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.8rem, 4.4vw, 4.8rem);
  font-weight: 520;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.journey-intro > div:first-child > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.journey-position {
  display: grid;
  min-width: 250px;
  grid-template-columns: 10px 1fr;
  gap: 3px 12px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid var(--portal-line);
  border-radius: 15px;
  background: var(--portal-panel);
}

.journey-position > span {
  grid-row: 1 / span 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--portal-accent);
  box-shadow: 0 0 20px var(--portal-glow);
}

.journey-position small { color: var(--portal-muted); font-size: 0.75rem; }
.journey-position strong { font-size: 0.9rem; }

.journey-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 18px;
  align-items: start;
}

.journey-canvas,
.step-guide {
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: var(--portal-panel);
  box-shadow: var(--portal-shadow);
}

.journey-canvas {
  min-width: 0;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 34px);
}

.journey-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.journey-heading h2,
.step-guide h2 {
  margin: 6px 0 0;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  font-weight: 560;
  letter-spacing: -0.04em;
}

.journey-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.journey-counts span {
  padding: 7px 10px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  color: var(--portal-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.journey-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  padding: 19px 20px;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: var(--portal-panel-strong);
}

.journey-next-action small {
  color: var(--portal-accent);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey-next-action h3 {
  margin: 5px 0 3px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.journey-next-action p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.88rem;
}

.journey-next-action .primary-action { flex: 0 0 auto; min-width: 145px; }

.journey-scope-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 2px solid var(--portal-accent-border);
  background: var(--portal-accent-soft);
}

.journey-scope-note span {
  flex: 0 0 auto;
  color: var(--portal-accent);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-scope-note p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.journey-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin: 18px 0 3px;
  color: var(--portal-muted);
  font-size: 0.74rem;
}

.journey-legend span { display: inline-flex; align-items: center; gap: 6px; }

.journey-legend i {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--portal-line-strong);
  border-radius: 50%;
}

.journey-legend .is-done i { border-color: var(--portal-text); background: var(--portal-text); }
.journey-legend .is-current i { border-color: var(--portal-accent); box-shadow: 0 0 10px var(--portal-glow); }
.journey-legend .is-optional i { border-style: dashed; }
.journey-legend .is-planned i { opacity: 0.45; }

@media (prefers-reduced-motion: reduce) {
  .journey-track-light { animation: none; opacity: 0; }
}
