/* 신상도역 이안 — 색·서체는 인쇄 전단(Noto Sans KR + 지오메트릭 숫자, 네이비/로즈/스카이)에서 가져왔다 */

:root {
  --midnight: #002c46;
  --midnight-deep: #001e31;
  --slate: #3b4054;
  --ink: #1f2634;
  --ink-soft: #586273;
  --rose: #b98b8b;
  --rose-deep: #9c6b6c;
  --rose-pale: #cfaea8;
  --sky: #ccd8e6;
  --steel: #597a8d;
  --mist: #eef2f6;
  --paper: #f8f3f0;
  --sun: #f8d858;
  --amber: #f8b018;
  --line7: #6b752c;
  --seobu: #901830;
  --alert: #c0392b;

  /* 타입 색 = 리플렛 배치도·동호수표의 범례 색 */
  --t59a: #c3d984;
  --t59b: #c5b6dc;
  --t71: #7fd4f7;
  --t84: #f9aa8f;

  --font-ko: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-num: "Urbanist", "Noto Sans KR", sans-serif;

  --text-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --text-h2: clamp(1.75rem, 1.15rem + 2.7vw, 3.1rem);
  --text-hero: clamp(2.3rem, 1.15rem + 5.1vw, 5.1rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(4.5rem, 3rem + 6.5vw, 8.5rem);
  --wrap: 76rem;
  --header-h: 3.5rem;
  --dock-h: 3.5rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  --chamfer: polygon(0 0, calc(100% - 0.8rem) 0, 100% 0.8rem, 100% 100%, 0 100%);
  --shadow: 0 1.5rem 3.5rem -1.5rem rgb(0 30 49 / 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: var(--dock-h);
  font: 400 var(--text-base) / 1.7 var(--font-ko);
  color: var(--ink);
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; }
.num { font-family: var(--font-num); font-feature-settings: "tnum"; letter-spacing: 0; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

.skip {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--sun); color: var(--midnight); font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ── 버튼·태그 ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.75rem;
  border: 0; cursor: pointer;
  font-weight: 700; letter-spacing: -0.01em; line-height: 1;
  clip-path: var(--chamfer);
  transition: background-color var(--fast), color var(--fast), transform var(--fast);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: -4px; outline-color: var(--midnight); }
.btn--sun { background: var(--sun); color: var(--midnight); }
/* :hover 는 전부 (hover: hover) 안에 둔다. 휴대폰은 누른 뒤에도 hover 가 남아, 흰 바탕의 등록 버튼이 흰색이 되어 사라져 보였다 */
@media (hover: hover) { .btn--sun:hover { background: #fff; } }
.btn--ghost { background: rgb(255 255 255 / 0.14); color: #fff; font-family: var(--font-num); font-size: 1.15em; }
@media (hover: hover) { .btn--ghost:hover { background: #fff; color: var(--midnight); } }
.btn--ghost:focus-visible { outline-color: var(--sun); }
.btn--ink { background: var(--midnight); color: #fff; }
@media (hover: hover) { .btn--ink:hover { background: var(--seobu); } }
/* 어두운 버튼 위에서는 포커스 테두리를 밝게 */
.btn--ink:focus-visible { outline-color: var(--sun); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* 관심고객 등록으로 가는 버튼(헤더·서브페이지 끝·모바일 하단 바). 어디서든 같은 노란색이고,
   빛이 한 번씩 훑고 지나가며 화살표가 움직여 눈에 띈다(움직임은 아래 '모션'에 있고 '동작 줄이기'면 멈춘다) */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--sun); color: var(--midnight); text-shadow: none; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.85) 50%, transparent 62%);
  transform: translateX(-100%);
}
.cta::after { content: "\2192"; font-family: var(--font-num); }
@media (hover: hover) { .btn.cta:hover { background: var(--midnight); color: var(--sun); } }
.btn.cta:focus-visible { outline-color: var(--midnight); }
@media (hover: hover) { .btn.cta:hover:focus-visible { outline-color: var(--sun); } }

.tag {
  display: inline-block; padding: 0.3em 1.3em 0.35em 0.9em;
  background: var(--steel); color: #fff; font-size: 0.875rem; font-weight: 700; line-height: 1.4;
  clip-path: var(--chamfer);
}
.tag--red { background: var(--seobu); }

.text-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.9rem; font-weight: 700;
  border-bottom: 1px solid currentColor; padding-bottom: 0.1em;
  transition: gap var(--fast), color var(--fast);
}
/* 글자만 한 줄이라 손가락으로 누르기 좁다. 보이는 모양은 그대로 두고 누를 수 있는 높이만 44px 쯤으로 넓힌다 */
.text-link::before { content: ""; position: absolute; inset: -0.55rem 0; }
.text-link::after { content: "→"; font-family: var(--font-num); }
@media (hover: hover) { .text-link:hover { gap: 0.75em; color: var(--seobu); } }

/* 노선 배지 */
.line {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.2em 0.9em 0.25em 0.3em; border-radius: 99px;
  color: #fff; font-size: 0.875rem; font-weight: 500; line-height: 1.5;
}
.line b {
  display: grid; place-items: center; min-width: 1.6em; height: 1.6em; padding-inline: 0.45em;
  border-radius: 99px; background: #fff; font-family: var(--font-num); font-weight: 800;
}
.line--7 { background: var(--line7); }
.line--7 b { color: var(--line7); }
.line--seobu { background: var(--seobu); }
.line--seobu b { color: var(--seobu); font-family: var(--font-ko); font-size: 0.85em; }

/* ── 헤더: 메뉴가 곧 노선도 ─────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h); padding-inline: var(--gutter);
  color: #fff;
  --track: rgb(255 255 255 / 0.3);
  --run: #fff;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-header:not(.is-solid, .is-menu-open) { text-shadow: 0 1px 0.6rem rgb(0 20 45 / 0.55); }
.site-header.is-solid {
  background: #fff; color: var(--midnight);
  box-shadow: 0 1px 0 rgb(0 44 70 / 0.12);
  --track: #d3dae1;
  --run: var(--line7);
}

.brand { display: flex; align-self: stretch; align-items: center; gap: 0.6rem; flex: none; } /* 헤더 높이만큼 누를 수 있게 */
.brand-mark { width: 3.9rem; height: auto; }
.brand-name { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-tel {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.125rem; margin: -0.125rem; /* 동그라미 2.5rem 둘레로 누르는 영역만 44px */
  font: 700 1.3rem / 1 var(--font-num);
}
.header-tel svg { width: 2.5rem; height: 2.5rem; padding: 0.6rem; border-radius: 50%; background: rgb(255 255 255 / 0.16); }
.is-solid .header-tel svg { background: var(--mist); }
.header-tel span, .header-cta { display: none; }
.header-cta { min-height: 2.75rem; padding: 0 1.4rem; font-size: 1rem; }

.menu-toggle {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 1.4rem; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -0.42rem; }
.menu-toggle-bars::after { top: 0.42rem; }
[aria-expanded="true"] > .menu-toggle-bars { background: transparent; }
[aria-expanded="true"] > .menu-toggle-bars::before { transform: translateY(0.42rem) rotate(45deg); }
[aria-expanded="true"] > .menu-toggle-bars::after { transform: translateY(-0.42rem) rotate(-45deg); }

/* 스크립트가 꺼진 브라우저: 헤더를 처음부터 흰 배경으로, 열 수 없는 메뉴 버튼은 숨김 */
@media (scripting: none) {
  .site-header:not(.is-menu-open) {
    background: #fff; color: var(--midnight); text-shadow: none;
    box-shadow: 0 1px 0 rgb(0 44 70 / 0.12);
    --track: #d3dae1;
    --run: var(--line7);
  }
  .menu-toggle { display: none; }
}

/* 모바일: 세로 노선 패널 */
.route {
  position: fixed; inset: var(--header-h) 0 0; z-index: -1;
  padding: 2.5rem var(--gutter);
  background: var(--midnight); color: #fff;
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-0.75rem);
  transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
  --track: rgb(255 255 255 / 0.25);
  --run: var(--sun);
}
.is-menu-open .route { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
/* 메뉴가 열린 헤더는 스크롤 위치와 상관없이 어두운 바탕 (화면을 넓혀 데스크톱 메뉴로 바뀌면 해당 없음) */
@media (max-width: 69.99rem) {
  .site-header.is-menu-open { background: var(--midnight); color: #fff; box-shadow: none; }
  .is-menu-open .header-tel svg { background: rgb(255 255 255 / 0.16); }
}

.route ol { display: grid; }
.route li { position: relative; }
/* 다음 역까지 이어지는 선. 현재 페이지보다 앞선 구간(is-passed)만 노선색 */
.route li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(0.4375rem - 1px); top: 50%; width: 2px; height: 100%;
  background: var(--track);
}
.route li.is-passed::after { background: var(--run); }
.route ol a {
  position: relative; display: flex; align-items: center; gap: 1.25rem;
  padding-block: 0.85rem;
  font-size: 1.35rem; font-weight: 300; letter-spacing: -0.03em;
  transition: color var(--fast);
}
.route ol a::before {
  content: ""; position: relative; z-index: 1; flex: none;
  width: 0.875rem; height: 0.875rem; border-radius: 50%;
  background: #fff; border: 2px solid #9fb0bd;
  transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.route .is-passed a::before { border-color: var(--run); }
.route ol a[aria-current]::before {
  background: var(--amber); border-color: var(--amber); transform: scale(1.3);
  box-shadow: 0 0 0 4px rgb(248 176 24 / 0.28);
}
.route ol a[aria-current] { font-weight: 700; }
@media (hover: hover) { .route ol a:hover::before { transform: scale(1.3); } }
.route-cta { margin-top: 2rem; }

@media (min-width: 48rem) {
  .header-tel span { display: inline; }
  .header-tel svg { width: 2.25rem; height: 2.25rem; padding: 0.5rem; }
}

/* 데스크톱: 가로 노선 */
@media (min-width: 70rem) {
  :root { --header-h: 4rem; --dock-h: 0rem; }
  .menu-toggle, .route-cta { display: none; }
  .route {
    position: static; z-index: auto; inset: auto; padding: 0; margin-inline: auto;
    background: none; color: inherit; overflow: visible;
    visibility: visible; opacity: 1; transform: none; transition: none;
    --track: inherit; --run: inherit;
  }
  .route ol { display: flex; }
  .route li:not(:last-child)::after { left: 50%; top: calc(0.95rem - 1px); width: 100%; height: 2px; }
  .route li { flex: 0 0 5.5rem; }
  .route ol a {
    flex-direction: column; gap: 0.4rem; padding-block: 0.6rem 0.3rem;
    font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  }
  .route ol a::before { width: 0.7rem; height: 0.7rem; }
  @media (hover: hover) { .route ol a:not([aria-current]):hover { color: var(--amber); } }
  @media (hover: hover) { .is-solid .route ol a:not([aria-current]):hover { color: var(--line7); } }
}
/* 등록 버튼은 메뉴·전화번호와 나란히 들어갈 폭(1280px)부터, 역 간격은 그보다 넓을 때만 벌린다 */
@media (min-width: 80rem) { .header-cta { display: inline-flex; } }
@media (min-width: 86rem) { .route li { flex-basis: 6.25rem; } }

/* ── 섹션 공통 ──────────────────────────────── */
.section { padding-block: var(--space-section); }

.sec-head { margin-bottom: clamp(2rem, 5vw, 4rem); }
.sec-head--center { text-align: center; }
h2 { font-size: var(--text-h2); font-weight: 300; line-height: 1.28; letter-spacing: -0.055em; }
h2 b { font-weight: 700; color: var(--rose-deep); }
.sec-label {
  margin-top: 0.9rem;
  font: 600 0.8125rem / 1 var(--font-num); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}
.sec-desc { margin-top: 1.5rem; max-width: 24em; color: var(--ink-soft); }
.block-title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.3; }
.block-title b { font-weight: 700; color: var(--rose-deep); }
.notes { margin-top: clamp(1.5rem, 4vw, 2.5rem); font-size: 0.75rem; line-height: 1.65; color: var(--ink-soft); }

/* 이미지컷: 인쇄물에 실린 참고 사진. 오른쪽 아래에 표시가 붙는다 */
.cut { position: relative; overflow: hidden; }
.cut img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
@media (hover: hover) { .cut:hover img { transform: scale(1.04); } }
.cut figcaption {
  position: absolute; right: 0; bottom: 0; padding: 0.1rem 0.45rem 0.15rem;
  background: rgb(31 38 52 / 0.78); color: #fff; font-size: 0.6875rem; line-height: 1.5;
}

/* 확대 링크 */
.zoom { position: relative; display: block; overflow: hidden; }
.zoom img { width: 100%; transition: transform 0.6s var(--ease); }
@media (hover: hover) { .zoom:hover img { transform: scale(1.015); } }
.zoom-hint {
  position: absolute; right: 0; bottom: 0;
  padding: 0.5rem 0.9rem 0.5rem 1.3rem;
  background: var(--midnight); color: #fff; font-size: 0.8125rem; font-weight: 700;
  clip-path: polygon(0.8rem 0, 100% 0, 100% 100%, 0 100%, 0 0.8rem);
  transition: background-color var(--fast), color var(--fast);
}
@media (hover: hover) { .zoom:hover .zoom-hint { background: var(--sun); color: var(--midnight); } }

/* ── 서브페이지 이동 헤더: 앞 역 ── ● 현재 역 ── 다음 역 ──
   전체 헤더(흰 바탕, 화면에 고정) 바로 아래에 붙는 별도의 한 줄. 스크롤하면 같이 올라간다. */
.page-head { margin-top: var(--header-h); background: var(--midnight-deep); color: #fff; }
.station { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.25rem); min-height: 3rem; }
/* 역 사이를 잇는 선: 가상 요소를 링크와 제목 사이에 끼워 넣는다 */
.station::before, .station::after { content: ""; flex: 1; height: 2px; background: rgb(255 255 255 / 0.22); }
.station::before { order: 2; }
.station::after { order: 4; }
.station a:first-child { order: 1; }
.station h1 { order: 3; }
.station a:last-child { order: 5; }
.station h1 {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.04em; white-space: nowrap;
}
.station h1::before {
  content: ""; width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgb(248 176 24 / 0.28);
}
.station a {
  display: inline-flex; align-items: center; gap: 0.45rem; min-width: 2.75rem; padding-block: 0.75rem; /* min-width: 짧은 '← 홈' 도 44px */
  font-size: 0.875rem; font-weight: 500; white-space: nowrap; color: rgb(255 255 255 / 0.78);
  transition: color var(--fast), gap 0.3s var(--ease);
}
.station a:first-child::before, .station a:last-child::after { font-family: var(--font-num); }
.station a:first-child::before { content: "\2190"; }
.station a:last-child::after { content: "\2192"; }
@media (hover: hover) { .station a:hover { color: var(--sun); gap: 0.8rem; } }

/* ── 서브페이지 끝: 다음 역 + 등록 ───────────── */
/* 푸터(어두운 바탕, 전화번호)와 겹쳐 보이지 않게 밝고 얇은 띠로 둔다. 전화번호는 바로 아래 푸터에만. */
.page-foot {
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem); color: var(--midnight);
  background: color-mix(in srgb, var(--sky) 60%, #fff);
  border-top: 1px solid rgb(0 44 70 / 0.1);
}
.page-foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.next-stop { display: grid; gap: 0.15rem; justify-items: start; }
.next-stop span { font-size: 0.875rem; font-weight: 500; color: var(--slate); }
.next-stop strong {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.05em;
  transition: gap 0.35s var(--ease), color var(--fast);
}
.next-stop strong::after { content: "\2192"; font-family: var(--font-num); }
@media (hover: hover) { .next-stop:hover strong { gap: 1.4rem; color: var(--seobu); } }
.page-foot .cta { min-height: 4rem; padding: 0 2.5rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); }

/* ── 사업개요 ───────────────────────────────── */
.overview-top { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.first-last {
  font: 400 clamp(3.4rem, 1.8rem + 7.4vw, 7.5rem) / 0.95 var(--font-num); letter-spacing: -0.045em; color: var(--midnight);
}
.first-last span { color: var(--rose); font-weight: 300; }
.overview-lede h2 { margin-top: clamp(1.25rem, 3vw, 2rem); }
.overview-sub { margin-top: 1.25rem; padding-left: 0.9rem; border-left: 1px solid var(--rose); color: var(--ink-soft); line-height: 1.55; }

.spec { border-top: 2px solid var(--midnight); }
.spec > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid #dfe5ea; }
.spec dt { font-weight: 700; color: var(--midnight); }
.spec dd { line-height: 1.6; }
.spec dd small { display: inline-block; margin-left: 0.3em; font-size: 0.8125rem; color: var(--ink-soft); }
.spec .num { font-size: 1.25em; font-weight: 700; }

.process-block { margin-top: var(--space-section); }
.process { position: relative; display: grid; margin-top: clamp(1.75rem, 4vw, 3rem); }
.process::before { content: ""; position: absolute; left: 0.4375rem; top: 0.6rem; bottom: 2rem; width: 2px; background: var(--sky); }
.process li { position: relative; padding: 0 0 2rem 2.5rem; }
.process li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: #fff; border: 2px solid var(--steel);
}
.process-no { display: block; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; color: var(--steel); }
.process h4 { margin-top: 0.15rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.04em; color: var(--midnight); }
.process p { margin-top: 0.4rem; font-size: 0.9375rem; line-height: 1.65; color: var(--ink-soft); }
.process .is-key::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px rgb(248 176 24 / 0.25); }
.process .is-key h4 { display: inline-block; padding: 0.15em 1.2em 0.2em 0.7em; background: var(--slate); color: var(--sun); clip-path: var(--chamfer); }
.process .is-key p { color: var(--ink); font-weight: 500; }

.terrain { margin-top: clamp(1rem, 4vw, 3rem); padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--paper); }
.terrain figcaption { margin-bottom: 1.5rem; }
.terrain figcaption p { margin-top: 0.9rem; font-size: clamp(1.1rem, 0.9rem + 1.1vw, 1.75rem); font-weight: 300; line-height: 1.4; letter-spacing: -0.045em; }
.terrain figcaption b { font-weight: 700; }
.terrain figcaption .num { font-weight: 700; font-size: 1.1em; }

@media (min-width: 64rem) {
  .overview-top { grid-template-columns: 5fr 6fr; align-items: end; }
  .spec > div { grid-template-columns: 7rem 1fr; }
  .process { grid-template-columns: repeat(6, 1fr); }
  .process::before { left: 0.5rem; right: 16.6%; top: 0.4375rem; bottom: auto; width: auto; height: 2px; }
  .process li { padding: 2.25rem 1.5rem 0 0; }
  .process li::before { top: 0; }
}

/* ── 입지환경 (흰 바탕) ─────────────────────── */
/* 제목 오른쪽에 전단의 역 안내 기둥 원본 그림. 기둥 밑동이 바로 아래 지도 윗변에 닿게 세운다 */
.location .sec-head { position: relative; --head-gap: clamp(2rem, 5vw, 4rem); margin-bottom: var(--head-gap); padding-right: 5.5rem; }
.station-signs { position: absolute; right: 0; bottom: calc(var(--head-gap) * -1); width: auto; height: 9rem; }

.map { margin-inline: calc(var(--gutter) * -1); }

.merits { display: grid; gap: 2.75rem 1.75rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.merits .cut { aspect-ratio: 579 / 449; margin-bottom: 1.15rem; }
.merit-label { font: 600 0.75rem / 1 var(--font-num); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.merits h3 { margin-top: 0.5rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.04em; color: var(--midnight); }
.merits p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.7; color: var(--ink-soft); }

@media (min-width: 40rem) {
  .map { margin-inline: 0; }
  /* 넓은 화면의 지도 그림은 왼쪽 아래가 흰 여백이라, 확대 안내를 그 자리에 글자 링크로 둔다 */
  .map .zoom-hint {
    right: auto; left: 0; padding: 0 0 0.1em; background: none; color: var(--midnight);
    clip-path: none; border-bottom: 1px solid currentColor;
  }
  @media (hover: hover) { .map .zoom:hover .zoom-hint { background: none; color: var(--seobu); } }
  .merits { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 48rem) {
  .location .sec-head { padding-right: 10.5rem; }
  .station-signs { height: clamp(13rem, 20vw, 17rem); }
}
@media (min-width: 70rem) { .merits { grid-template-columns: repeat(4, 1fr); } }

/* ── 항공 조망 ──────────────────────────────── */
.aerial { display: grid; background: var(--paper); }
.aerial-view img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 58% 50%; }
@media (min-width: 40rem) { .aerial-view img { aspect-ratio: auto; } }
.aerial-copy { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter); }
.aerial-lead { padding-left: 0.9rem; border-left: 1px solid var(--ink-soft); font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); font-weight: 300; line-height: 1.5; letter-spacing: -0.03em; }
.aerial h2 { margin-top: 1.5rem; }
.aerial h2 b { font-size: 1.9em; line-height: 0.9; }
@media (min-width: 80rem) {
  .aerial { grid-template-columns: 73fr 27fr; align-items: center; }
  .aerial-copy { padding: 1.5rem clamp(1.75rem, 2.6vw, 3.5rem); }
  .aerial .notes { margin-top: 1.25rem; }
}

/* ── 프리미엄 ───────────────────────────────── */
.premium { background: var(--slate); color: #fff; }
.premium h2 { font-weight: 700; }
.premium h2 b { color: var(--rose-pale); }
.premium h2 .num { font-weight: 800; letter-spacing: -0.02em; }
.premium .notes { color: rgb(255 255 255 / 0.6); }

.benefits { display: grid; grid-template-columns: 1fr 1fr; }
.benefits li {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0.5rem; text-align: center;
  border-bottom: 1px dotted rgb(255 255 255 / 0.4);
  transition: background-color 0.3s;
}
.benefits li:nth-child(odd) { border-right: 1px dotted rgb(255 255 255 / 0.4); }
.benefits li:nth-last-child(-n + 2) { border-bottom: 0; }
@media (hover: hover) { .benefits li:hover { background: rgb(255 255 255 / 0.05); } }
.benefits h3 { font-size: clamp(1.25rem, 0.95rem + 1.5vw, 2rem); font-weight: 700; letter-spacing: -0.05em; color: var(--rose-pale); }
.benefits i { font-style: normal; color: var(--sun); display: inline-block; transition: transform 0.4s var(--ease); }
@media (hover: hover) { .benefits li:hover i { transform: scale(1.25) rotate(-6deg); } }
.benefits p { margin-top: 0.6rem; font-size: clamp(0.9375rem, 0.85rem + 0.5vw, 1.2rem); line-height: 1.5; letter-spacing: -0.03em; }

@media (min-width: 64rem) {
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .benefits li, .benefits li:nth-child(odd) { border-right: 1px dotted rgb(255 255 255 / 0.4); }
  .benefits li:nth-child(4n) { border-right: 0; }
  .benefits li:nth-last-child(-n + 4) { border-bottom: 0; }
}

/* ── 단지안내 ───────────────────────────────── */
.complex { background: var(--mist); }
.complex-views { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.complex figure { position: relative; }
.complex-views figcaption {
  position: absolute; left: 0; top: 0; padding: 0.4rem 1.4rem 0.45rem 0.9rem;
  background: var(--midnight); color: #fff; font-size: 0.8125rem; font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.7rem), calc(100% - 0.7rem) 100%, 0 100%);
}
.birdseye img, .siteplan img { width: 100%; }
.birdseye { overflow: hidden; } /* 스크롤 연동으로 살짝 키운 그림(모션 참고)이 밖으로 넘치지 않게 */
.siteplan { box-shadow: var(--shadow); }

/* 리플렛의 단지 사진 두 장. 원본이 530px 안팎이라 한 장이 28rem 을 넘지 않게 묶는다 */
.complex-snaps { display: grid; gap: 1rem; max-width: 58rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.complex-snaps figcaption { padding: 0.2rem 0.6rem 0.25rem; font-size: 0.75rem; }
@media (min-width: 40rem) { .complex-snaps { grid-template-columns: 1fr 1fr; } }

.tally { padding: 1.5rem; background: #fff; }
.tally-total { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.03em; color: var(--midnight); }
.tally-total .num { font-size: 2.6em; font-weight: 700; line-height: 1; margin-inline: 0.1em; }
.tally-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.5rem 1.5rem; margin-top: 1.1rem; }
.tally-list li {
  display: flex; align-items: baseline; gap: 0.15em; padding: 0.55rem 0 0.55rem 0.9rem;
  border-left: 0.5rem solid var(--type);
  font-size: 0.9375rem;
}
.tally-list .num { font-size: 1.2em; font-weight: 700; }
.tally-list b { margin-left: auto; font-weight: 500; }
.type--59a { --type: var(--t59a); }
.type--59b { --type: var(--t59b); }
.type--71 { --type: var(--t71); }
.type--84 { --type: var(--t84); }

.dongho { margin-top: clamp(3rem, 7vw, 6rem); padding: clamp(1.25rem, 3vw, 2.5rem); background: #fff; }
.dongho figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dongho .block-title { font-weight: 700; color: var(--midnight); }
.scroller { overflow-x: auto; overscroll-behavior-x: contain; }
.scroller img { width: 100%; min-width: 44rem; }

@media (min-width: 64rem) {
  .complex-views { grid-template-columns: repeat(12, 1fr); gap: 0; align-items: start; }
  .birdseye { grid-column: 1 / 9; grid-row: 1 / 3; }
  .siteplan { grid-column: 7 / 13; grid-row: 2; z-index: 1; }
  .tally { grid-column: 9 / 13; grid-row: 1; padding: 0 0 2rem 2.5rem; background: none; }
}

/* ── 평면안내 ───────────────────────────────── */
.unit-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; }
.unit-tabs label {
  display: grid; gap: 0.3rem; padding: 0.9rem 0.25rem 0.8rem; text-align: center; cursor: pointer;
  background: var(--mist); border-top: 0.375rem solid var(--type);
  transition: background-color var(--fast), color var(--fast);
}
.unit-tabs .num { font-size: clamp(1.3rem, 0.8rem + 2.4vw, 2.5rem); font-weight: 600; line-height: 1; }
.unit-tabs small { font-size: 0.8125rem; color: var(--ink-soft); }
@media (hover: hover) { .unit-tabs label:hover { background: var(--sky); } }

.unit-panel { display: none; }
#u-59a:checked ~ .unit-panels [data-type="59a"],
#u-59b:checked ~ .unit-panels [data-type="59b"],
#u-71:checked ~ .unit-panels [data-type="71"],
#u-84:checked ~ .unit-panels [data-type="84"] { display: grid; }

#u-59a:checked ~ .unit-tabs [for="u-59a"],
#u-59b:checked ~ .unit-tabs [for="u-59b"],
#u-71:checked ~ .unit-tabs [for="u-71"],
#u-84:checked ~ .unit-tabs [for="u-84"] { background: var(--type); color: var(--midnight); }
#u-59a:checked ~ .unit-tabs [for="u-59a"] small,
#u-59b:checked ~ .unit-tabs [for="u-59b"] small,
#u-71:checked ~ .unit-tabs [for="u-71"] small,
#u-84:checked ~ .unit-tabs [for="u-84"] small { color: inherit; }
#u-59a:focus-visible ~ .unit-tabs [for="u-59a"],
#u-59b:focus-visible ~ .unit-tabs [for="u-59b"],
#u-71:focus-visible ~ .unit-tabs [for="u-71"],
#u-84:focus-visible ~ .unit-tabs [for="u-84"] { outline: 2px solid var(--midnight); outline-offset: 2px; }

.unit-panel { gap: 2rem; padding-top: clamp(2rem, 5vw, 3.5rem); animation: panel-in 0.5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(0.75rem); } }

.unit-info h3 { display: flex; align-items: baseline; gap: 0.5rem; line-height: 0.9; white-space: nowrap; color: var(--midnight); }
.unit-info h3 .num { font-size: clamp(4rem, 2.6rem + 6.5vw, 6rem); font-weight: 500; letter-spacing: -0.04em; }
.unit-info h3 small { font: 600 1rem / 1 var(--font-num); letter-spacing: 0.2em; }
.unit-count {
  display: inline-block; margin-top: 1.1rem; padding: 0.3em 1.5em 0.35em 0.9em;
  background: var(--type); color: var(--midnight); font-weight: 700; clip-path: var(--chamfer);
}
.unit-count .num { font-size: 1.15em; }
.areas { margin-top: 1.75rem; border-top: 2px solid var(--midnight); }
.areas > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid #dfe5ea; }
.areas dt { color: var(--ink-soft); }
.areas .num { font-size: 1.15em; font-weight: 700; }
.areas > div:first-child dt, .areas > div:first-child dd { color: var(--midnight); font-weight: 700; }

.unit-plan { display: grid; justify-items: start; gap: 1rem; min-width: 0; }
.plan { position: relative; justify-self: stretch; }
.plan img { width: 100%; }
.unit-plan--tall .plan { max-width: 34rem; margin-inline: auto; }
.plan-dot { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; }

.switch { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; cursor: pointer; font-size: 0.9375rem; font-weight: 500; user-select: none; }
.switch::before {
  content: ""; width: 2.75rem; height: 1.5rem; border-radius: 99px;
  background: radial-gradient(circle at 0.75rem 50%, #fff 0.5rem, transparent 0.53rem) #b9c3cd;
  transition: background-color 0.25s, background-position 0.3s var(--ease);
}
.switch::after { content: ""; order: 2; width: 1.75rem; border-top: 2px dashed #e0262d; }
:checked + .switch::before { background-color: var(--midnight); background-position: 1.25rem 0; }
:checked ~ .plan .plan-dot { opacity: 1; }
:focus-visible + .switch { outline: 2px solid var(--amber); outline-offset: 4px; }
.zoom-dot, :checked ~ .zoom-plain { display: none; }
:checked ~ .zoom-dot { display: inline-flex; }

@media (min-width: 64rem) {
  .unit-panel { grid-template-columns: 21rem 1fr; gap: 3.5rem; align-items: start; }
  .unit-plan { justify-items: end; }
  .unit-plan .switch { justify-self: start; }
}

/* ── 커뮤니티 · 인테리어(옵션품목) ────────────── */
.community { background: var(--paper); }
.community-grid { display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); }
.community-side { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }
.community .sec-head { margin-bottom: 0; }
/* 사진 3장: 큰 한 장 + 작은 두 장. 원본이 300~370px 로 작아서 이보다 크게 키우지 않는다 */
.snaps { position: relative; display: grid; grid-template-columns: 1.22fr 1fr; gap: 0.6rem; max-width: 31rem; }
/* 큰 사진 뒤로 비껴 깔리는 색 면. 오른쪽 끝을 큰 사진 안쪽(47%)에서 끊어 사진 사이 틈으로는 비치지 않게 한다 */
.snaps::before { content: ""; position: absolute; inset: 16% 47% -0.9rem -0.9rem; background: var(--rose); }
.snaps figure:first-child { grid-row: span 2; }
.facilities { border-top: 2px solid var(--midnight); }
.facilities li { display: grid; gap: 0.35rem; padding: 1.35rem 0; border-bottom: 1px solid #e3d9d4; transition: padding-left 0.35s var(--ease); }
@media (hover: hover) { .facilities li:hover { padding-left: 0.75rem; } }
.facilities h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.04em; color: var(--rose-deep); }
.facilities p { font-size: 0.9375rem; color: var(--ink-soft); }

/* 커뮤니티 페이지의 단지 배치도: 단지안내와 같은 도면을 다시 쓴다 */
.community-plan { display: grid; gap: 1.5rem; margin-top: clamp(3rem, 7vw, 5.5rem); padding: clamp(1.25rem, 4vw, 3rem); background: #fff; }
.community-plan figcaption { display: grid; gap: 0.9rem; justify-items: start; align-content: center; }
.community-plan .block-title { font-weight: 300; color: var(--midnight); }
.community-plan p { color: var(--ink-soft); }
@media (min-width: 64rem) { .community-plan { grid-template-columns: 7fr 5fr; gap: 3.5rem; } }

/* 인테리어 사진 모음: 색 면이 양옆 끝까지 닿는 세로로 긴 한 장이라 좁은 화면에서는 화면 끝까지 붙인다.
   원본이 가로 955px 이고(2배로 키운 것을 쓴다) 40rem 보다 크게 키우지 않는다 */
.rooms-cut { margin-inline: calc(var(--gutter) * -1); }
.rooms-cut img { width: 100%; }
.rooms-cut .notes { margin-inline: var(--gutter); }
/* 옵션품목: 좁은 화면에서는 사진 모음 아래에 온다. 가전 사진은 바탕이 흰색이라 화면 끝까지 붙이지 않는다 */
.options { margin-top: clamp(3rem, 7vw, 5.5rem); }
.options .sec-head { margin-bottom: 1.5rem; }
.options-cut { margin-top: 2rem; }
.options-cut img { width: 100%; }
.options-cut .notes { margin-top: 1.25rem; }
.option-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.option-list li { padding: 0.4rem 0.9rem; background: var(--mist); font-size: 0.9375rem; font-weight: 500; }
@media (min-width: 40rem) {
  .rooms-cut, .options-cut { max-width: 40rem; margin-inline: auto; }
  .rooms-cut .notes { margin-inline: 0; }
}
/* 넓은 화면: 오른쪽 칸은 긴 사진 한 장, 왼쪽 칸은 제목과 그 바로 아래 옵션품목.
   둘째 줄을 1fr 로 두어야 긴 사진의 남는 높이가 제목과 옵션품목 사이를 벌리지 않는다 */
@media (min-width: 64rem) {
  .rooms-grid { display: grid; grid-template: auto 1fr / 5fr 6fr; gap: 3.5rem 5rem; align-items: start; }
  .rooms-grid > .sec-head { margin-bottom: 0; }
  .rooms-cut { grid-column: 2; grid-row: 1 / span 2; max-width: none; margin-inline: 0; }
  .options { grid-column: 1; margin-top: 0; }
  .options-cut { max-width: none; margin-inline: 0; }
}

@media (min-width: 64rem) {
  .community-grid { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
  .facilities li { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; }
}

/* ── 푸터 ───────────────────────────────────── */
.site-footer { background: var(--midnight-deep); color: rgb(255 255 255 / 0.78); }
.footer-grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; color: #fff; }
.footer-tel { margin-left: auto; font-size: 1.75rem; font-weight: 700; color: var(--sun); }
.footer-info { display: grid; gap: 0.35rem 2.5rem; font-size: 0.875rem; }
.footer-info > div { display: flex; gap: 0.9rem; }
.footer-info dt { flex: none; width: 5.5em; white-space: nowrap; color: rgb(255 255 255 / 0.5); }
.site-footer .notes { margin-top: 0; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.14); color: rgb(255 255 255 / 0.5); }
@media (min-width: 48rem) {
  .footer-info { grid-template-columns: 1fr 1fr; }
  .footer-info > div:nth-child(-n + 2) { grid-column: 1 / -1; }
}

/* ── 모바일 하단 상담 바 ────────────────────── */
.dock {
  position: fixed; inset: auto 0 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.35fr; height: var(--dock-h);
  box-shadow: 0 -0.5rem 1.5rem rgb(0 30 49 / 0.2);
}
.dock a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; background: #fff; color: var(--midnight); font-weight: 700; }
.dock svg { width: 1.2rem; height: 1.2rem; }
.dock .dock-primary { background: var(--sun); }
.dock a:active { filter: brightness(0.94); }
@media (min-width: 70rem) { .dock { display: none; } }

/* ── 모션 ─────────────────────────────────────
   등장: main.js 가 화면에 들어온 .reveal 에 .is-in 을 붙이면 한 번 재생된다.
     .reveal            아래에서 떠오름 (기본)
     .reveal--wipe      그림이 커튼처럼 왼쪽부터 걷힘 + 안쪽 그림은 살짝 줄어들며 자리 잡음
     .reveal--slide     오른쪽에서 밀려 들어옴
     .reveal--stagger   자신은 그대로, 자식들이 차례로 떠오름
     .reveal--still     자신은 그대로, 안쪽 제목은 어절 단위로 올라오고 나머지는 떠오름
   스크립트가 꺼져 있거나 '동작 줄이기' 설정이면 처음부터 전부 보인다.
   스크립트는 켜져 있는데 main.js 가 못 돌면(html.io 가 안 붙음) 4초 뒤 그냥 보여준다. */
/* 움직이는 동안 화면 밖으로 나간 부분(slide 의 오른쪽 4rem, stamp 의 확대 등)이 페이지 폭을 늘리면
   휴대폰 브라우저가 화면을 축소했다가 되돌린다. hidden 은 sticky 를 깨므로 clip */
main { overflow-x: clip; }
@keyframes rise { from { opacity: 0; transform: translateY(2.5rem); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.16); } }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.88); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(4rem); } }
@keyframes word { from { transform: translateY(115%); } }
@keyframes stamp { from { opacity: 0; transform: scale(2.6) rotate(-16deg); } }
@keyframes stand { from { opacity: 0; transform: translateY(40%); } }
@keyframes draw { from { transform: var(--draw-from, scaleX(0)); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes ping { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
@keyframes nudge { 50% { transform: translateX(0.5rem); } }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes dock-in { from { transform: translateY(100%); } }
@keyframes drift { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }
@keyframes failsafe { to { opacity: 1; } }

.count { display: inline-block; text-align: right; }

@media (prefers-reduced-motion: no-preference) {
  /* 페이지를 넘길 때 화면이 부드럽게 바뀐다. 헤더와 하단 바는 제자리에 둔다 */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .dock { view-transition-name: dock; animation: dock-in 0.7s var(--ease) 0.5s backwards; }

  /* 지금 있는 역의 점에서 퍼져 나가는 고리 */
  .route ol a[aria-current]::after, .station h1::after, .process .is-key::after {
    content: ""; position: absolute; border-radius: 50%; background: var(--amber); pointer-events: none;
    animation: ping 2.4s ease-out infinite;
  }
  .route ol a[aria-current]::after { left: 0; top: 50%; width: 0.875rem; height: 0.875rem; margin-top: -0.4375rem; }
  .station h1 { position: relative; }
  .station h1::after { left: 0; top: 50%; width: 0.75rem; height: 0.75rem; margin-top: -0.375rem; }
  .process .is-key::after { left: 0; top: 0.3rem; width: 1rem; height: 1rem; }

  /* 이동 헤더: 가운데에서 양쪽으로 선이 뻗는다 */
  .station::before, .station::after { animation: draw 1.1s var(--ease) 0.15s backwards; }
  .station::before { transform-origin: right; }
  .station::after { transform-origin: left; }

  /* '다음' 화살표는 계속 살짝 움직인다 */
  .next-stop strong::after { animation: nudge 1.8s ease-in-out infinite; }

  /* 관심고객 등록 버튼: 4.5초마다 빛이 훑고 지나가고 화살표가 움직인다 */
  .cta::before { animation: sheen 4.5s ease-in-out infinite; }
  .cta::after { animation: nudge 1.8s ease-in-out infinite; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 70rem) {
  .route ol a[aria-current]::after { left: 50%; top: 0.6rem; width: 0.7rem; height: 0.7rem; margin: 0 0 0 -0.35rem; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 64rem) {
  .process .is-key::after { top: 0; }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  /* 대기 상태 */
  .reveal, .reveal--stagger > * { opacity: 0; animation: failsafe 0.5s 4s forwards; }
  .reveal.reveal--stagger { opacity: 1; animation: none; }
  html.io .reveal, html.io .reveal--stagger > * { animation: none; }

  /* 등장 */
  html.io .reveal.is-in { opacity: 1; animation: rise 0.9s var(--ease) var(--d, 0ms) backwards; }
  html.io .reveal--wipe.is-in { animation-name: wipe; animation-duration: 1.25s; }
  html.io .reveal--slide.is-in { animation-name: slide-in; animation-duration: 1.1s; }
  html.io .reveal--still.is-in, html.io .reveal--stagger.is-in { animation: none; }
  html.io .reveal--stagger.is-in > * {
    opacity: 1; animation: rise 0.8s var(--ease) calc(var(--d, 0ms) + var(--i, 0) * 80ms) backwards;
  }
  html.io .reveal--still.is-in > :not(.split, .reveal) { animation: rise 0.8s var(--ease) calc(var(--d, 0ms) + 0.35s) backwards; }

  .reveal--wipe { overflow: hidden; }
  html.io .reveal--wipe.is-in img, html.io .hub-tile.is-in img { animation: settle 1.7s var(--ease) var(--d, 0ms) backwards; }
  html.io .place.is-in > img { animation: wipe 1.25s var(--ease) calc(var(--d, 0ms) + 0.15s) backwards; }
  /* 옵션품목: 품목이 하나씩 톡 튀어나오고, 가전 사진은 커지며 자리 잡는다 */
  html.io .option-list.is-in > li {
    animation: pop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--d, 0ms) + 0.2s + var(--i, 0) * 90ms) backwards;
  }
  html.io .options-cut.is-in > img { animation: zoom-in 1.1s var(--ease) calc(var(--d, 0ms) + 0.15s) backwards; }

  /* 제목: main.js 가 어절마다 <span class="w"><span> 으로 감싸 두면 아래에서 올라온다 */
  .w { display: inline-block; clip-path: inset(-0.1em -0.1em -0.2em -0.1em); }
  .w > span { display: inline-block; }
  html.io .split .w > span { transform: translateY(115%); }
  html.io .is-in .split .w > span, html.io .split.is-in .w > span {
    transform: none; animation: word 0.95s var(--ease) calc(var(--d, 0ms) + 0.1s + var(--i) * 60ms) backwards;
  }

  /* 사업진행 절차: 선이 그어지고 역 점이 차례로 찍힌다 */
  .process { --draw-from: scaleY(0); }
  html.io .process.is-in::before { transform-origin: left top; animation: draw 1.5s var(--ease) 0.1s backwards; }
  html.io .process li.is-in::before { animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--d, 0ms) + 0.3s) backwards; }

  /* 입지환경: 역 기둥이 아래에서 솟는다 */
  html.io .reveal--still.is-in > .station-signs { animation: stand 1.2s var(--ease) 0.55s backwards; }

  /* 프리미엄: 無 자가 도장처럼 찍힌다 */
  html.io .benefits .is-in i { animation: stamp 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--d, 0ms) + 0.45s) backwards; }

  /* 커뮤니티: 사진 뒤 색 면이 모서리에서 펼쳐진다 */
  html.io .snaps.is-in::before { transform-origin: left bottom; animation: pop 0.9s var(--ease) 0.35s backwards; }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-width: 64rem) {
  .process { --draw-from: scaleX(0); }
}

/* 스크롤에 따라 큰 그림이 천천히 흘러간다 (지원 브라우저에서만) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .aerial-view img, .birdseye img { scale: 1.08; animation: drift linear both; animation-timeline: view(); }
    html.io .aerial-view.is-in img, html.io .birdseye.is-in img {
      animation: settle 1.7s var(--ease) var(--d, 0ms) backwards, drift linear both; animation-timeline: auto, view();
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
  }
}
/* 인쇄할 때는 등장 대기 중인 것도 전부 보이게 */
@media print {
  .reveal, .reveal--stagger > * { opacity: 1 !important; animation: none !important; }
  .split .w > span { transform: none !important; animation: none !important; }
}
