main {
  position: relative;
  isolation: isolate;
}

.journey {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.journey-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey path {
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-track {
  stroke: #b47852;
  opacity: .2;
}

.line-drawn,
.line-branch {
  stroke: #ae6d48;
}

.line-branch {
  opacity: .75;
}

.line-shimmer {
  stroke: #ffdcc0;
  stroke-dasharray: 3 190 1 280 2 524;
  animation: line-travel 13s cubic-bezier(.45, 0, .2, 1) infinite alternate;
}

.line-shimmer-glow {
  stroke: #e4aa86;
  stroke-width: 7 !important;
  opacity: .9;
  filter: blur(3px);
}

.scroll-pulse {
  opacity: .8;
}

@keyframes line-travel {
  to { stroke-dashoffset: -1000; }
}

main > .journey ~ section > :is(.shell, .hero-inner, .contact-card, .content-grid) {
  position: relative;
  z-index: 3;
}

@media(prefers-reduced-motion: reduce) {
  .line-shimmer { animation: none; }
}
