/* 항공 시점 히어로 — 첫 화면 전체를 실제 지형 지도로 채운다. 그리는 로직은 js/hero-aerial.js */
.mobility-renewal .hero-scroll .mobility-hero.aerial-hero {
  display:flex; align-items:center; height:calc(100svh - 78px); min-height:560px; background:#081320;
}
.mobility-renewal .aerial-hero .hero-documentary { position:absolute; z-index:-2; inset:0; width:100%; height:100%; margin:0; }
.aerial-canvas { display:block; width:100%; height:100%; font-family:PretendardLocal,"Noto Sans KR",sans-serif; } /* 글꼴은 캔버스 안 이름표에 쓰인다 */
/* 글자가 영상에 묻히지 않도록 왼쪽과 아래쪽을 어둡게 덮는다 */
.hero-scroll .mobility-hero.aerial-hero::after { display:block; background:linear-gradient(90deg,#06121fd9,#06121f66 45%,transparent 75%),linear-gradient(0deg,#06121fcc,transparent 34%); }

/* 지도 범례: 파란 점 = 운수 계열사, 주황 고리 = 서비스 계열사, 붉은 에뚜알 = 본사 (색상은 js/hero-aerial.js 와 동일하게 유지) */
.aerial-legend { position:absolute; right:max(56px,calc((100% - 1480px)/2)); bottom:104px; display:flex; flex-wrap:wrap; gap:10px 26px; color:#e1eaf2; font-size:13px; }
.aerial-legend li { display:flex; align-items:center; gap:8px; }
.aerial-legend small { color:#a9bccd; font-size:12px; }
.aerial-legend li::before { content:""; width:10px; height:10px; border-radius:50%; box-sizing:border-box; }
.aerial-legend .site-bus::before { background:#7cc4ff; }
.aerial-legend .site-service::before { border:2px solid #ffb454; }
.aerial-legend .site-hq::before { width:18px; height:14px; border-radius:0; background:#cf463e; -webkit-mask:var(--tn-etoile) center / contain no-repeat; mask:var(--tn-etoile) center / contain no-repeat; } /* 지도 위 본사 표시와 같은 붉은 에뚜알 (--tn-etoile: theme-navy.css) */

@media (max-width:1000px) {
  .mobility-renewal .hero-scroll .mobility-hero.aerial-hero { padding-bottom:150px; }
  .aerial-legend { left:32px; right:32px; bottom:92px; }
}
@media (max-width:700px) {
  .mobility-renewal .hero-scroll .mobility-hero.aerial-hero { height:calc(100svh - 68px); padding-bottom:140px; }
  /* 좁은 화면: 문구가 위쪽에 있으므로 위에서 아래로 어둡게 덮어 지도 표시가 가려지지 않게 한다 */
  .hero-scroll .mobility-hero.aerial-hero::after { background:linear-gradient(180deg,#06121fd9,#06121f8c 52%,transparent 72%),linear-gradient(0deg,#06121fcc,transparent 28%); }
  .aerial-legend { left:22px; right:22px; bottom:80px; gap:6px 16px; font-size:12px; }
}

/* ── 스크롤 이야기 (감싼 요소에 data-aerial-scroll, 동작 중에는 js 가 is-story 를 붙인다) ──
   히어로를 화면에 고정해 두고 스크롤하는 동안 지도가 가까워지며 서비스 계열사가 하나씩 나타난다. */
.hero-scroll.is-story { height:calc(100svh - 78px + 200vh); }
.mobility-renewal .hero-scroll.is-story .mobility-hero.aerial-hero { position:sticky; top:78px; clip-path:none; }
.mobility-renewal .hero-scroll.is-story .mobility-copy { position:relative; transform:none; opacity:1; }
.hero-scroll.is-story .hero-scroll-line { position:sticky; top:calc(100svh - 2px); }

/* 문구 전환: 0단계는 처음 문구, 서비스 계열사가 나타나기 시작하면(1단계부터) 다음 문구 */
.aerial-next-copy { display:none; }
.is-story .aerial-next-copy { display:block; position:absolute; top:0; left:0; right:0; opacity:0; visibility:hidden; transition:opacity .5s, visibility .5s; }
.is-story .mobility-copy > .mobility-eyebrow, .is-story .mobility-copy > h1, .is-story .mobility-copy > .mobility-description { transition:opacity .5s, visibility .5s; }
.is-story:not([data-aerial-step="0"]) .mobility-copy > :is(.mobility-eyebrow, h1, .mobility-description) { opacity:0; visibility:hidden; }
.is-story:not([data-aerial-step="0"]) .aerial-next-copy { opacity:1; visibility:visible; }
.aerial-next-title { font-size:clamp(42px,4vw,72px); line-height:1.23; font-weight:600; letter-spacing:-.045em; }

/* 범례: 서비스 계열사는 나타나기 전까지 흐리게 */
.is-story .aerial-legend .site-service { opacity:.35; transition:opacity .5s; }
.is-story:not([data-aerial-step="0"]) .aerial-legend .site-service { opacity:1; }

@media (max-width:1000px) {
  .aerial-next-title { font-size:clamp(36px,5.6vw,56px); }
}
@media (max-width:700px) {
  .hero-scroll.is-story { height:calc(100svh - 68px + 200vh); }
  .mobility-renewal .hero-scroll.is-story .mobility-hero.aerial-hero { top:68px; }
  .aerial-next-title { font-size:clamp(34px,9vw,48px); }
}
