/* 내일의 모빌리티 — '한 번의 이동'을 세 구간으로 보여준다.
   실선 = 지금 운행 중인 버스, 점선 = 준비하는 이동수단(킥보드·자전거, DRT). 첫 화면 범례와 같은 약속이다. */
.mobility-journey { position:relative; display:grid; grid-template-columns:1fr 1.25fr 1fr; margin-top:72px; padding:0; list-style:none; view-timeline:--journey block; }
.journey-leg { position:relative; padding:44px 32px 0 0; border-top:3px dashed #a9bccc; }
.journey-leg.is-now { border-top:3px solid #142b43; }
/* 구간이 시작되는 지점(정류장)의 점과 이름 */
.journey-leg::before, .journey-leg:last-child::after { content:""; position:absolute; top:-9px; left:0; width:15px; height:15px; border-radius:50%; background:#fff; border:3px solid #142b43; box-sizing:border-box; }
.journey-leg:last-child::after { left:auto; right:0; }
.leg-stop { position:absolute; top:-40px; left:0; font-size:12px; color:#557c9c; }
.leg-end { left:auto; right:0; }
.journey-leg h3 { font-size:clamp(22px,2.1vw,30px); font-weight:600; letter-spacing:-.04em; color:#6f8799; }
.journey-leg.is-now h3 { color:#142b43; }
.journey-leg .leg-role { margin-top:14px; font-size:15px; font-weight:600; color:#19324b; }
.journey-leg p { margin-top:10px; font-size:13px; line-height:1.8; color:#698093; }
.leg-status { display:inline-block; margin-top:20px; padding:6px 12px; border-radius:999px; border:1px dashed #a9bccc; font-size:11px; color:#5b7086; }
.is-now .leg-status { border:0; background:#142b43; color:#fff; font-weight:600; }
.journey-foot { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:56px; padding-top:24px; border-top:1px solid #e0e7ed; }
.journey-foot p { font-size:12px; color:#708597; }

/* 걸어온 길(연혁)에 'NEXT' 칸이 더해져 다섯 칸이 된다 */
@media (min-width:1001px) {
  .mobility-renewal .journey-timeline { grid-template-columns:repeat(5,minmax(0,1fr)); }
}

/* 스크롤 연출: 이동하는 사람을 뜻하는 표식(브랜드 미니 심볼 에뚜알, css/theme-navy.css 의 --tn-etoile)이 출발에서 도착까지 움직이고, 지나간 구간이 차례로 또렷해진다.
   스크롤 연동 애니메이션을 지원하지 않는 브라우저와 '동작 줄이기' 설정에서는 모든 구간이 처음부터 보인다. */
@supports (animation-timeline:view()) {
  @media (prefers-reduced-motion:no-preference) {
    .mobility-journey::after { content:""; position:absolute; top:-8px; left:0; width:24px; height:18px; margin-left:-12px; background:#a9312b; -webkit-mask:var(--tn-etoile) center / contain no-repeat; mask:var(--tn-etoile) center / contain no-repeat; animation:journey-travel linear both; animation-timeline:--journey; animation-range:cover 22% cover 62%; }
    .journey-leg > :not(.leg-stop) { animation:journey-arrive linear both; animation-timeline:--journey; }
    .journey-leg:nth-child(1) > * { animation-range:cover 18% cover 30%; }
    .journey-leg:nth-child(2) > * { animation-range:cover 31% cover 43%; }
    .journey-leg:nth-child(3) > * { animation-range:cover 46% cover 58%; }
  }
}
@keyframes journey-travel { from { left:0; } to { left:100%; } }
@keyframes journey-arrive { from { opacity:.25; transform:translateY(14px); } to { opacity:1; transform:none; } }

@media (max-width:700px) {
  /* 좁은 화면: 구간을 위에서 아래로 쌓고, 선과 점도 세로로 흐른다 */
  .mobility-journey { grid-template-columns:1fr; margin-top:40px; margin-left:8px; }
  .journey-leg { padding:0 0 40px 30px; border-top:0; border-left:3px dashed #a9bccc; }
  .journey-leg.is-now { border-top:0; border-left:3px solid #142b43; }
  .journey-leg::before { top:0; left:-9px; }
  .journey-leg:last-child::after { top:auto; bottom:0; left:-9px; right:auto; }
  .leg-stop { position:static; display:block; margin-bottom:10px; }
  .leg-end { position:absolute; top:auto; bottom:-4px; left:30px; margin:0; }
  .journey-leg:last-child { padding-bottom:56px; }
  .journey-foot { flex-direction:column; align-items:flex-start; margin-top:36px; }
  .mobility-journey::after { top:0; left:0; margin:-9px 0 0 -10.5px; }
  @keyframes journey-travel { from { top:0; } to { top:100%; } }
}
