/* 3D 미니어처 도시 무대 — 랜딩 히어로
   html[data-city]  idle | loading | live | still  — still 이면 캔버스를 숨기고 같은 장면의 정지 이미지를 보인다.
   무대는 #main 밖(body 바로 아래)에 absolute 로 놓고 히어로와 같은 높이·위치를 쓴다. 라우터가 #main 을 갈아끼워도 산다. */

#cityStage {
  position: absolute; top: 0; left: 0; right: 0;
  height: 100vh; min-height: 760px;
  z-index: 0; pointer-events: none; overflow: hidden;
}
#cityStage[hidden] { display: none; }
/* 시차 이동(±14px)로 가장자리가 비지 않게 16px 여유를 둔다 */
.c3-par { position: absolute; inset: -16px; will-change: transform; }

#cityCanvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
html[data-city="idle"] #cityCanvas,
html[data-city="loading"] #cityCanvas { visibility: hidden; }
html[data-city="still"] #cityCanvas { display: none; }

.c2-stage-still { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 74% 50%; }
.c2-stage-still[hidden], html[data-city="live"] .c2-stage-still { display: none; }

/* 장소 이름표 — 흰 칩 + 앞의 점(파랑: 화면·빈자리, 주황: 감지). 위치는 엔진이 transform 으로 준다 */
.c2-tags { position: absolute; inset: 0; }
.c2-tag {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 13px 0 12px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 1;
  letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(13, 16, 21, .3), 0 0 0 1px var(--line);
  will-change: transform;
  pointer-events: auto; cursor: pointer; text-decoration: none;
  transition: box-shadow .2s, color .2s;
}
.c2-tag:hover { color: var(--blue); box-shadow: 0 14px 28px -12px rgba(13, 16, 21, .38), 0 0 0 1px var(--blue); }
.c2-tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.c2-tag[data-dot="amber"]::before { background: #F59E0B; }
.c2-tag[hidden] { display: none; }

/* ---------- 히어로를 도시 무대 위로 ---------- */
.hero { background: transparent !important; }
.hero-wall { display: none !important; }
/* 왼쪽 글자 자리만 덮는 옅은 흰 그라데이션 — 도시가 놓이는 오른쪽 60%는 건드리지 않는다 */
.hero-shade {
  background:
    linear-gradient(90deg, #fff 0%, #fff 30%, rgba(255,255,255,.92) 42%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 58%),
    linear-gradient(0deg, #fff 0%, rgba(255,255,255,.55) 12%, rgba(255,255,255,0) 26%) !important;
}
.hero .wrap, .hero-in { position: relative; z-index: 2; }
/* 히어로 빈 영역은 클릭을 아래 도시 무대(이름표)로 흘려보낸다 — 글자 · 버튼 · 통계 띠만 받는다 */
#main { pointer-events: none; }
#main > * { pointer-events: auto; }
#main > .hero, .hero .wrap, .hero-in, .hero-shade { pointer-events: none; }
.hero-in > * { pointer-events: none; }
.hero-cta a, .hero-bar { pointer-events: auto; }
/* 이름표는 히어로 글자 위로 올린다 */
#cityStage .c2-tags { z-index: 3; }
/* 아래 통계 띠는 도시를 가리지 않게 조금 투명하게 */
.hero-bar { background: rgba(255,255,255,.82) !important; backdrop-filter: blur(14px) saturate(1.1); }

@media (max-width: 1100px) {
  .hero-shade {
    background:
      linear-gradient(90deg, #fff 0%, #fff 34%, rgba(255,255,255,.55) 56%, rgba(255,255,255,0) 74%),
      linear-gradient(0deg, #fff 0%, rgba(255,255,255,.5) 14%, rgba(255,255,255,0) 30%) !important;
  }
}
@media (max-width: 768px) {
  #cityStage { height: 100vh; min-height: 0; }
  .c2-stage-still { object-position: 50% 34%; }
  .c2-tag { font-size: 12px; height: 28px; padding: 0 11px 0 10px; }
  /* 좁은 화면: 글자는 아래, 도시는 위쪽 띠 */
  .hero-shade {
    background:
      linear-gradient(0deg, #fff 0%, #fff 34%, rgba(255,255,255,.9) 46%, rgba(255,255,255,.35) 58%, rgba(255,255,255,0) 70%) !important;
  }
}
