/* =========================================================
   대구고립보고서 — 지도형 인터랙티브
   ========================================================= */

:root {
    --bg: #0b0b0d;
    --bg-2: #141417;
    --ink: #ece8e1;
    --ink-2: #c9c4bb;
    --muted: #8f8a82;
    --line: rgba(255, 255, 255, .12);

    --apartment: #ff5a4f;
    --oneroom: #f4b63f;
    --oldhouse: #4cc3c9;
    --jjokbang: #b48cff;

    --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
    --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --red: #ff4d42;
    --bar-h: 56px;
    --gutter: clamp(16px, 4vw, 56px);
}

[data-type="apartment"] { --c: var(--apartment); }
[data-type="oneroom"] { --c: var(--oneroom); }
[data-type="oldhouse"] { --c: var(--oldhouse); }
[data-type="jjokbang"] { --c: var(--jjokbang); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -.025em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

body.panel-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------------------------------------------------------
   메인 (hero)
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(56px, 8vh, 96px) var(--gutter) 40px;
    overflow: hidden;
    isolation: isolate;
}

.hero-inner { max-width: 1100px; margin: 0 auto; }

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(11, 11, 13, .5) 0%, rgba(11, 11, 13, .9) 35%, var(--bg) 60%),
        url('../images/2025122215594786787.jpg') center top / cover no-repeat;
}

.kicker {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .2em;
    color: var(--muted);
    margin-bottom: 18px;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(44px, 6vw, 88px);
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -.035em;
}

.hero-sub {
    display: inline-block;
    margin-top: 20px;
    padding-left: 14px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(19px, 1.7vw, 26px);
    line-height: 1.55;
    letter-spacing: -.03em;
    color: var(--ink);
    border-left: 3px solid var(--red);
}

.hero-guide {
    margin: 40px 0 14px;
    font-size: 15px;
    color: var(--muted);
}

/* 유형 타일 */
.tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 138px;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid var(--c);
    background: var(--bg-2);
    isolation: isolate;
    transition: transform .3s ease, border-color .3s ease;
}

.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 11, 13, .35), rgba(11, 11, 13, .92)), var(--img) center / cover;
    filter: grayscale(1);
    opacity: .55;
    transition: opacity .35s ease, filter .35s ease, transform .6s ease;
}

.tile:hover, .tile.is-focus { transform: translateY(-3px); border-color: var(--c); }
.tile:hover::before, .tile.is-focus::before { opacity: .95; filter: grayscale(.2); transform: scale(1.05); }

.tile-num {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--sans);
    font-weight: 900;
    font-size: 15px;
    color: var(--c);
}

.tile-name {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(19px, 1.6vw, 24px);
    letter-spacing: -.03em;
    line-height: 1.25;
}

.tile-kind {
    margin-top: 2px;
    font-size: 13px;
    color: var(--c);
    font-weight: 500;
}

.tile-dongs {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.5;
}

/* 프롤로그 링크 */
.prologue-link {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgba(255, 77, 66, .55);
    border-left: 3px solid var(--red);
    background: rgba(255, 255, 255, .03);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.4;
    transition: background .25s ease, border-color .25s ease;
}

.prologue-link small {
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--muted);
    margin-bottom: 2px;
}

.prologue-thumb {
    flex: none;
    width: 64px;
    height: 48px;
    background: url('../images/2025121616414070900.jpg') center / cover;
    filter: grayscale(1) brightness(.8);
}

.prologue-link .arrow { margin-left: auto; color: var(--muted); transition: transform .25s ease; }
.prologue-link:hover { background: rgba(255, 77, 66, .1); border-color: var(--red); }
.prologue-link .arrow { color: var(--red); }
.prologue-link:hover .arrow { transform: translateX(4px); color: var(--ink); }

/* 지도 */
.hero-map { margin-top: 28px; }

/* 모바일에서만 줄바꿈 */
.m-br { display: none; }

/* PC: 왼쪽 제목·프롤로그·유형 버튼 / 오른쪽 지도 */
@media (min-width: 1101px) {
    .hero { display: flex; flex-direction: column; justify-content: center; }
    .hero-inner {
        width: 100%;
        max-width: 1440px;
        display: grid;
        grid-template-columns: minmax(400px, 5fr) 7fr;
        column-gap: clamp(40px, 4vw, 80px);
        align-content: center;
    }
    .hero-inner > :not(.hero-right) { grid-column: 1; }
    .hero-right { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
    .hero-map { margin-top: 16px; }
    .hero-title { font-size: clamp(56px, 5.4vw, 96px); }
    .hero-sub { justify-self: start; }
    .prologue-link { max-width: none; margin-top: 0; }
    .hero-guide { margin-top: 36px; }
    .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .scroll-cue { margin-top: 48px; }
}

.map-frame {
    position: relative;
    aspect-ratio: 1200 / 782;
    overflow: hidden;
    background: #1a1a1d;
}

/* 원본 이미지 하단 캡션 영역을 잘라냄 */
.map-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-width: none;
    user-select: none;
    pointer-events: none;
}

[data-map="hero"] .map-img,
[data-map="mini"] .map-img { filter: grayscale(.92) brightness(.55) contrast(1.2); }

[data-map="hero"] .map-frame { box-shadow: 0 30px 80px rgba(0, 0, 0, .6); outline: 1px solid var(--line); }

.pin {
    position: absolute;
    width: 0;
    height: 0;
    transition: opacity .3s ease;
}

.pin i {
    position: absolute;
    left: -9px;
    top: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c);
    border: 2px solid rgba(11, 11, 13, .85);
    z-index: 2;
    transition: transform .3s ease;
}

.pin i::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--c);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: .9; }
    100% { transform: scale(2.8); opacity: 0; }
}

.pin-label {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translate(-50%, 0);
    z-index: 6; /* 이름표가 다른 점보다 항상 위에 */
    padding: 3px 9px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    background: var(--c);
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    transition: opacity .25s ease;
}

/* 점끼리 가까운 동네는 이름표 위치를 옆·아래로 */
.pin[data-pos="l"] .pin-label { left: auto; right: 12px; bottom: auto; top: 50%; transform: translate(0, -50%); }
.pin[data-pos="r"] .pin-label { left: 12px; bottom: auto; top: 50%; transform: translate(0, -50%); }
.pin[data-pos="b"] .pin-label { bottom: auto; top: 14px; }

a.pin { cursor: pointer; }
a.pin::before { /* 클릭 영역 확대 */
    content: '';
    position: absolute;
    left: -20px;
    top: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

a.pin:hover, a.pin:focus-visible { outline: none; }
a.pin:hover i, a.pin:focus-visible i { z-index: 3; }
a.pin:hover i, a.pin:focus-visible i { transform: scale(1.3); }

.map[data-focus] .pin { opacity: .18; }
.map[data-focus] .pin i::after { animation: none; opacity: 0; }

.map[data-focus="apartment"] .pin[data-type="apartment"],
.map[data-focus="oneroom"] .pin[data-type="oneroom"],
.map[data-focus="oldhouse"] .pin[data-type="oldhouse"],
.map[data-focus="jjokbang"] .pin[data-type="jjokbang"] { opacity: 1; }

.map[data-focus="apartment"] .pin[data-type="apartment"] .pin-label,
.map[data-focus="oneroom"] .pin[data-type="oneroom"] .pin-label,
.map[data-focus="oldhouse"] .pin[data-type="oldhouse"] .pin-label,
.map[data-focus="jjokbang"] .pin[data-type="jjokbang"] .pin-label,
.map-mini .pin-label { opacity: 1; }

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ink-2);
}

.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.map-legend em { flex-basis: 100%; font-style: normal; font-size: 12px; color: var(--muted); }

.scroll-cue {
    display: table;
    margin: 64px auto 0;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--red);
    border: 1px solid rgba(255, 77, 66, .45);
    border-radius: 999px;
    background: rgba(255, 77, 66, .08);
    white-space: nowrap;
    transition: background .25s ease, color .25s ease;
}

.scroll-cue:hover { background: var(--red); color: #fff; }

.scroll-cue span { display: inline-block; animation: bob 1.8s ease-in-out infinite; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ---------------------------------------------------------
   방향성
   --------------------------------------------------------- */
.directions {
    position: relative;
    padding: clamp(80px, 12vw, 160px) var(--gutter);
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 13, .82) 20%, rgba(11, 11, 13, .9) 80%, var(--bg) 100%),
        url('../images/2025122215491386153.jpg') center / cover no-repeat;
}

.directions-head { text-align: center; max-width: 1000px; margin: 0 auto clamp(48px, 6vw, 80px); }

.directions-head h2 {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(26px, 3.4vw, 48px);
    line-height: 1.35;
    letter-spacing: -.035em;
}

.directions-head p {
    margin-top: 18px;
    font-family: var(--sans);
    font-size: clamp(15px, 1.4vw, 20px);
    color: var(--ink-2);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
}

.card {
    padding: 36px 32px 40px;
    background: rgba(20, 20, 23, .78);
    border: 1px solid var(--line);
    border-top: 2px solid var(--red);
    backdrop-filter: blur(4px);
}

.card-num {
    display: block;
    font-family: var(--sans);
    font-weight: 900;
    font-size: 48px;
    line-height: 1;
    color: var(--red);
}

.card:nth-child(2) .card-num { color: #ff7d6b; }
.card:nth-child(3) .card-num { color: #ffab96; }

.card h3 {
    margin: 18px 0 20px;
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(21px, 1.8vw, 26px);
    line-height: 1.4;
    letter-spacing: -.03em;
}

.card p { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.card p + p { margin-top: 1.1em; }

/* ---------------------------------------------------------
   크레딧
   --------------------------------------------------------- */
.credits {
    padding: clamp(80px, 10vw, 140px) var(--gutter);
    text-align: center;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 13, .65) 50%, rgba(11, 11, 13, .9) 100%),
        url('../images/2025122215594786787.jpg') center / cover no-repeat;
}

.credits-title {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(32px, 4vw, 56px);
    letter-spacing: -.04em;
}

.credits-list { margin-top: 20px; font-size: 15px; line-height: 2; color: var(--ink-2); }

.credits-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }

.credits-btns a, .btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, .5);
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.credits-btns a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.to-top { display: inline-block; margin-top: 40px; font-size: 13px; color: var(--muted); }
.to-top:hover { color: var(--ink); }

/* ---------------------------------------------------------
   패널 (유형별 상세 · 프롤로그)
   --------------------------------------------------------- */
.panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .4s ease, transform .4s ease;
}

.panel[hidden] { display: none; }
.panel.is-open { opacity: 1; transform: none; }

.panel-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--bar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    background: linear-gradient(180deg, rgba(11, 11, 13, .85), rgba(11, 11, 13, .55));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.panel-bar-title { font-family: var(--sans); font-weight: 600; font-size: 15px; }
.panel-bar-title b { color: var(--c, var(--ink)); margin-right: 6px; }

.panel-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(255, 77, 66, .35);
    transition: background .2s ease, transform .2s ease;
}

.panel-close:hover { background: #ff6a60; transform: translateX(-2px); }

/* 커버 */
.cover {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    margin-top: calc(-1 * var(--bar-h));
    background: var(--img) center / cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: calc(var(--bar-h) + 32px) var(--gutter) clamp(48px, 8vh, 96px);
}

.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 13, .2) 0%, rgba(11, 11, 13, 0) 40%, rgba(11, 11, 13, .9) 100%);
}

.cover-in { position: relative; text-align: right; max-width: 640px; }

.cover-num {
    font-family: var(--sans);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: .1em;
    color: var(--c);
}

.cover-tag {
    margin-top: 8px;
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(40px, 6vw, 92px);
    line-height: 1.1;
    letter-spacing: -.045em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.cover-dongs {
    margin-top: 12px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(17px, 1.8vw, 26px);
    color: var(--ink-2);
}

.map-mini {
    position: absolute;
    top: calc(var(--bar-h) + 24px);
    right: var(--gutter);
    width: clamp(180px, 20vw, 300px);
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.map-mini .pin i { left: -6px; top: -6px; width: 12px; height: 12px; border-width: 1.5px; }
.map-mini .pin-label { font-size: 11px; padding: 1px 6px; bottom: 9px; }
.map-mini .pin[data-pos="b"] .pin-label { bottom: auto; top: 9px; }
.map-mini .pin[data-pos="l"] .pin-label { right: 9px; bottom: auto; }
.map-mini .pin[data-pos="r"] .pin-label { left: 9px; bottom: auto; }

/* 현장 이야기 */
.story {
    display: grid;
    grid-template-columns: 5fr 6fr;
    background: var(--bg);
}

.story-fig {
    position: sticky;
    top: var(--bar-h);
    height: calc(100vh - var(--bar-h));
    overflow: hidden;
}

.story-fig img { width: 100%; height: 100%; object-fit: cover; }

.story .prose {
    padding: clamp(64px, 14vh, 160px) clamp(24px, 6vw, 96px);
    max-width: 760px;
}

.prose p {
    font-family: var(--sans);
    font-size: clamp(17px, 1.25vw, 19px);
    line-height: 2;
    color: var(--ink-2);
}

.prose p + p { margin-top: 1.4em; }
.prose b { color: var(--ink); font-weight: 600; }
.prose em { font-style: normal; color: var(--ink); }

.prose .quote {
    position: relative;
    padding-left: 20px;
    color: var(--ink);
    font-weight: 600;
    border-left: 2px solid var(--c, var(--ink));
}

/* 분석 */
.analysis {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.analysis-in {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(72px, 12vw, 150px) var(--gutter);
}

.analysis-kicker {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    background: var(--c);
}

.headline {
    margin: 20px 0 36px;
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(26px, 3.2vw, 46px);
    line-height: 1.38;
    letter-spacing: -.04em;
}

.analysis .prose p { font-family: var(--sans); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.95; }

.analysis .btn, .pro-place .btn { margin-top: 40px; }
.btn:hover { background: var(--c, var(--ink)); border-color: var(--c, var(--ink)); color: #111; }
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* 이전/다음 */
.panel-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    padding: 40px var(--gutter) 56px;
    border-top: 1px solid var(--line);
}

.panel-nav a {
    padding: 24px 28px;
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(18px, 1.8vw, 26px);
    letter-spacing: -.04em;
    border: 1px solid color-mix(in srgb, var(--c, #fff) 45%, transparent);
    background: color-mix(in srgb, var(--c, #fff) 10%, transparent);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.panel-nav .prev { border-left: 5px solid var(--c); }
.panel-nav .next { border-right: 5px solid var(--c); text-align: right; }

.panel-nav small {
    display: block;
    margin-bottom: 4px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .05em;
    color: var(--c);
}

.panel-nav .prev small::before { content: '← '; }
.panel-nav .next small::after { content: ' →'; }

.panel-nav .prev:hover, .panel-nav .next:hover { background: var(--c); color: #111; }
.panel-nav .prev:hover small, .panel-nav .next:hover small { color: #111; }
.panel-nav .prev:hover { transform: translateX(-3px); }
.panel-nav .next:hover { transform: translateX(3px); }

.panel-nav .home {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    border: 0;
}

.panel-nav .home::before { content: '⌂'; margin-right: 8px; font-size: 1.2em; }
.panel-nav .home:hover { background: #ff6a60; }

/* ---------------------------------------------------------
   프롤로그
   --------------------------------------------------------- */
.pro-201 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--bar-h));
    background: #000;
}

.pro-201-text {
    align-self: center;
    padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px);
}

.pro-201-text p {
    font-family: var(--sans);
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.95;
    color: #fff;
}

.pro-201-text p + p { margin-top: 1.5em; }
.pro-201-text b { color: var(--apartment); font-weight: 600; }

.pro-201-img { background-size: cover; background-position: center; min-height: 360px; }

.pro-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 80px var(--gutter);
    background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)), var(--img) center / cover no-repeat;
}

.pro-quote blockquote {
    position: relative;
    max-width: 1000px;
    text-align: center;
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(22px, 3vw, 44px);
    line-height: 1.6;
    letter-spacing: -.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .7);
}

.pro-quote blockquote::before,
.pro-quote blockquote::after {
    display: block;
    font-size: 2.2em;
    line-height: .6;
    color: rgba(255, 255, 255, .5);
}

.pro-quote blockquote::before { content: '“'; margin-bottom: 24px; }
.pro-quote blockquote::after { content: '”'; margin-top: 40px; }
.pro-quote blockquote b { font-weight: 900; }

.pro-hyeji {
    background: var(--img) center / cover no-repeat #e9eaee;
    color: #333;
}

.pro-hyeji-in {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(72px, 12vw, 160px) var(--gutter);
}

.pro-hyeji .prose {
    padding: clamp(24px, 3vw, 40px);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(4px);
}

.prose-dark p { color: #333; }
.prose-dark b { color: #111; }

.prose-dark .pull {
    margin-top: 2em;
    font-weight: 900;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.6;
    color: #404040;
    letter-spacing: -.03em;
}

.pro-hyeji-fig img { width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }

.pro-data {
    padding: clamp(72px, 12vw, 160px) var(--gutter);
    background: var(--bg);
    text-align: center;
}

.pro-data-lead {
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(22px, 2.8vw, 40px);
    letter-spacing: -.03em;
    line-height: 1.5;
}

.pro-data-lead b { font-weight: 900; color: #fff; box-shadow: inset 0 -.35em 0 rgba(255, 90, 79, .45); }

.pro-data-map { max-width: 1000px; margin: clamp(40px, 6vw, 72px) auto 0; }

.pro-data-map figcaption {
    margin-top: 20px;
    font-family: var(--sans);
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.7;
    color: var(--ink-2);
}

.pro-data-map figcaption b { color: #fff; font-weight: 900; }

.stats { max-width: 1000px; margin: clamp(56px, 8vw, 100px) auto 0; }

.stats-title {
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(16px, 1.7vw, 24px);
}

.stats-title small { font-size: .6em; color: var(--muted); }

.stats ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }

.stats strong {
    display: block;
    font-family: var(--sans);
    font-weight: 900;
    font-style: italic;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 1;
    letter-spacing: -.04em;
    color: rgba(255, 60, 60, var(--a));
}

.stats li:nth-child(n+3) strong { color: rgba(255, 140, 140, calc(var(--a) + .35)); }

.stats span {
    display: block;
    margin-top: 14px;
    font-family: var(--sans);
    font-size: clamp(15px, 1.6vw, 22px);
    line-height: 1.45;
    color: var(--ink-2);
}

.pro-place {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: #0f0d14;
}

.pro-place-img { background-size: cover; background-position: center; min-height: 360px; }

.pro-place-text {
    align-self: center;
    padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px);
    --c: var(--oneroom);
}

.pro-place-text .headline { margin-top: 0; font-size: clamp(24px, 2.4vw, 38px); }

.panel-end {
    padding: 80px var(--gutter) 100px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.panel-end .btn-solid:hover { background: transparent; color: var(--ink); }

/* ---------------------------------------------------------
   명조 포인트
   --------------------------------------------------------- */
.hero-sub,
.directions-head p,
.card-num,
.tile-num,
.cover-num,
.prose .quote,
.prose em,
.pro-quote blockquote,
.prose-dark .pull,
.pro-data-lead,
.pro-data-map figcaption,
.stats strong,
.credits-title,
.prologue-link > span:not(.arrow) { font-family: var(--serif); }

.prologue-link small { font-family: var(--sans); }
.prose .quote { letter-spacing: -.03em; }

/* 고딕 제목은 자간을 더 좁게 */
.directions-head h2, .card h3, .headline, .cover-tag, .tile-name, .panel-nav a { font-weight: 800; }
.directions-head h2, .card h3, .headline, .cover-tag, .tile-name, .panel-nav a { letter-spacing: -.04em; }
.prose p { line-height: 1.9; }

/* ---------------------------------------------------------
   등장 효과
   --------------------------------------------------------- */
.has-reveal .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s ease, transform .9s ease;
}

.has-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .has-reveal .reveal { opacity: 1; transform: none; transition: none; }
    .pin i::after, .scroll-cue span { animation: none; }
    .panel { transition: none; }
}

/* ---------------------------------------------------------
   반응형
   --------------------------------------------------------- */
@media (max-width: 1100px) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: 1fr; max-width: 760px; }
}

@media (max-width: 860px) {
    .story, .pro-201, .pro-place, .pro-hyeji-in { grid-template-columns: 1fr; }
    .story-fig { position: relative; top: 0; height: auto; aspect-ratio: 4 / 3; }
    .story .prose { padding: 56px var(--gutter) 72px; }
    .pro-201-img { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
    .pro-place-img { min-height: 0; aspect-ratio: 4 / 3; }
    .pro-place { min-height: 0; }
    .pro-201 { min-height: 0; }
    .cover { justify-content: flex-start; }
    .cover-in { text-align: left; }
}

@media (max-width: 640px) {
    :root { --bar-h: 52px; }
    body { font-size: 15px; }
    .hero { padding-bottom: 32px; }
    .prologue-link { margin-top: 24px; }
    .hero-map { width: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
    .map-legend { padding: 0 var(--gutter); }
    .tiles { gap: 8px; }
    .tile { min-height: 120px; padding: 14px; }
    .tile-dongs { font-size: 11px; }
    .pin i { left: -7px; top: -7px; width: 14px; height: 14px; }
    .pin-label { font-size: 11px; padding: 2px 6px; bottom: 10px; }
    .pin[data-pos="b"] .pin-label { bottom: auto; top: 10px; }
    .pin[data-pos="l"] .pin-label { right: 10px; bottom: auto; }
    .pin[data-pos="r"] .pin-label { left: 10px; bottom: auto; }
    .map-legend { font-size: 12px; gap: 4px 14px; }
    .map-mini { width: 128px; top: calc(var(--bar-h) + 14px); }
    .map-mini .pin-label { display: none; }
    .map-mini .pin i { left: -4px; top: -4px; width: 8px; height: 8px; border-width: 1px; }
    .map-mini .pin i::after { display: none; }
    .card { padding: 28px 22px 32px; }
    .stats ol { grid-template-columns: 1fr 1fr; gap: 32px 12px; }
    .pro-hyeji .prose { padding: 22px; }
    .panel-nav { grid-template-columns: 1fr 1fr; gap: 8px; padding: 28px var(--gutter) 40px; }
    .panel-nav .home { grid-column: 1 / -1; grid-row: 2; padding: 16px; }
    .panel-nav a { padding: 18px 16px; }
    .panel-bar-title { display: none; }
    .panel-bar { justify-content: center; }
    .panel-close { padding: 6px 14px; font-size: 12.5px; gap: 6px; box-shadow: 0 2px 10px rgba(255, 77, 66, .3); }
        .credits-btns a { flex: 1 1 100%; justify-content: center; }
    .m-br { display: inline; }
    .pro-quote blockquote { font-size: 19px; }
    .pro-data-lead { font-size: 20px; }
}
