
@font-face {
  font-family: "Pretendard Bath79";
  src: url("/fonts/pretendard-7d89c4621ea5.woff2") format("woff2-variations"), url("/fonts/pretendard-7d89c4621ea5.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Layout: 돌 회색 바탕, 사진은 자르지 않고 세로 그대로. 한 현장(고덕동)을 첫 화면부터 층 벗기기까지 따라가고, 남색 바탕은 층 벗기기와 전화에만.
   모양 규칙: 전화 버튼만 알약, 사진 모서리 6, 그림자 없음 */
:root {
  --canvas: #ecebe8;
  --surface: #e1dfda;
  --paper: #f7f6f4;
  --ink: #111b29;
  --ink-soft: #4d5765;
  --line: #cfccc6;
  --navy: #0b2947;
  --navy-2: #143a62;
  --on-navy: #eef2f6;
  --on-navy-soft: #a9b7c8;
  --brand-blue: #004884;
  --accent: #f2b627;
  --accent-hi: #f7c64a;
  --accent-ink: #111b29;
  --font: "Pretendard Bath79", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --hdr: 72px;
  --top: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  --gut: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gut-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
  --r: 6px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: clamp(24px, 1.2rem + 1vw, 32px);
  --t-3xl: clamp(28px, 1.1rem + 2.2vw, 46px);
  --t-hero: clamp(36px, 1.3rem + 3.4vw, 64px);
  color-scheme: light;
}
@media (max-width: 760px) { :root { --hdr: 64px; } }

html { -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--canvas); color: var(--ink); font-family: var(--font);
  font-size: var(--t-md); line-height: 1.7; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--canvas); }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.22; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wrap { max-width: 1320px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: var(--accent); }
figcaption { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 var(--t-md)/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .14s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-yellow { background: var(--accent); color: var(--accent-ink); }
.btn-plain { background: none; border: 0; padding: 0; min-height: 44px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.btn-line-light { color: var(--on-navy); border-color: color-mix(in srgb, var(--on-navy) 60%, transparent); background: transparent; border-radius: 8px; }
.btn-line { color: var(--ink); border-color: var(--line); background: var(--paper); border-radius: 8px; min-height: 44px; padding: 0 16px; }
@media (hover: hover) and (pointer: fine) {
  .btn-yellow:hover { background: var(--accent-hi); }
  .btn-line-light:hover { border-color: var(--on-navy); }
  .btn-line:hover { border-color: var(--ink); }
}
.btn:disabled { opacity: .35; cursor: default; }

/* 머리띠 */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: var(--canvas); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-in { height: var(--hdr); max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 32px; padding-left: var(--gut); padding-right: var(--gut-r); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .lockup { display: grid; gap: 6px; }
.brand img { display: block; width: auto; height: 28px; }
.brand .tag { width: 0; min-width: 100%; border-top: 1px solid currentColor; padding-top: 4px; color: var(--navy); font-size: 9px; font-weight: 600; letter-spacing: 0.195em; line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.hdr .btn { min-height: 42px; padding: 0 20px; font-size: 15px; }
@media (max-width: 860px) { .nav { display: none; } .hdr .btn { margin-left: auto; } }
@media (max-width: 760px) { .brand img { height: 25px; } .brand .tag { display: none; } }

main { padding-top: var(--top); }

/* 첫 화면: 왼쪽 글, 오른쪽 세로 사진 */
.hero { padding-block: clamp(24px, 4vh, 48px) clamp(64px, 10vh, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-text { display: grid; gap: 24px; max-width: 34em; }
.hero h1 { font-size: var(--t-hero); line-height: 1.12; letter-spacing: -0.045em; font-weight: 800; }
.hero-lead { font-size: var(--t-lg); color: var(--ink-soft); line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 4px; }
.hero-fig { display: grid; gap: 10px; }
.hero-photo { overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 4; max-height: calc(100svh - var(--top) - 120px); justify-self: end; width: 100%; max-width: calc((100svh - var(--top) - 120px) * 0.75); background: var(--surface); }
.hero-photo img { width: 100%; height: 108%; object-fit: cover; transform: translateY(calc(-6% * var(--p, 0))); will-change: transform; }
.hero-fig figcaption { justify-self: end; width: 100%; max-width: calc((100svh - var(--top) - 120px) * 0.75); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo, .hero-fig figcaption { max-width: none; max-height: none; justify-self: stretch; }
}

/* 현장 이야기 */
.story { padding-block: clamp(80px, 12vh, 150px); border-top: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-text { display: grid; gap: 20px; max-width: 32em; }
.story h2 { font-size: var(--t-3xl); }
.story-text p { font-size: var(--t-lg); color: var(--ink-soft); }
.story-text .site { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.story-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-photos figure { display: grid; gap: 10px; }
.story-photos img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

/* 층 벗기기 (고정 구간) */
.act { position: relative; }
.stage { position: sticky; top: var(--top); height: calc(100svh - var(--top)); overflow: hidden; }
.peel { height: 380vh; }
.peel .stage { background: var(--navy); color: var(--on-navy); }
.peel-grid {
  height: 100%; display: grid; align-content: center;
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto;
  column-gap: clamp(40px, 6vw, 96px); row-gap: 28px; padding-block: 40px;
}
.peel-frame { grid-row: 1 / 4; grid-column: 1; position: relative; overflow: hidden; border-radius: var(--r); height: min(calc(100svh - var(--top) - 96px), 860px); aspect-ratio: 3 / 4; background: var(--navy-2); }
.layer { position: absolute; inset: 0; clip-path: inset(0 0 calc(100% * var(--t, 0)) 0); }
.layer img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1)); transform-origin: 50% 70%; }
.peel-edge { position: absolute; left: 0; right: 0; top: var(--edge, 100%); height: 2px; z-index: 7; background: var(--accent); opacity: var(--edge-o, 0); }
.peel-head { grid-column: 2; display: grid; gap: 12px; max-width: 30em; }
.peel-head h2 { font-size: var(--t-3xl); }
.peel-head p { color: var(--on-navy-soft); }
.peel-list { grid-column: 2; list-style: none; padding: 0; display: grid; gap: 0; max-width: 30em; border-top: 1px solid color-mix(in srgb, var(--on-navy) 16%, transparent); }
.peel-list li { border-bottom: 1px solid color-mix(in srgb, var(--on-navy) 16%, transparent); }
.peel-list button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; width: 100%; padding: 14px 0; }
.peel-list .pl-name { font-size: var(--t-xl); font-weight: 700; color: var(--on-navy-soft); letter-spacing: -0.02em; transition: color .2s var(--ease); }
.peel-list .pl-text { font-size: 15px; line-height: 1.6; color: var(--on-navy); display: none; }
.peel-list li[aria-current="step"] .pl-name { color: var(--accent); }
.peel-list li[aria-current="step"] .pl-text { display: block; }
@media (hover: hover) and (pointer: fine) { .peel-list button:hover .pl-name { color: var(--on-navy); } }
.peel-now { display: none; }
@media (max-width: 860px) {
  .peel { height: 330svh; }
  .peel-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; row-gap: 14px; justify-items: center; align-content: start; padding-block: 18px; }
  .peel-head { grid-column: 1; grid-row: 1; justify-self: stretch; gap: 4px; }
  .peel-head h2 { font-size: 24px; }
  .peel-head p { font-size: 14px; }
  .peel-frame { grid-column: 1; grid-row: 2; height: min(48svh, 440px); }
  .peel-list { grid-column: 1; grid-row: 3; grid-template-columns: repeat(5, 1fr); width: 100%; max-width: none; border-top: 0; }
  .peel-list li { border-bottom: 0; }
  .peel-list button { padding: 8px 2px; text-align: center; border-bottom: 2px solid transparent; }
  .peel-list li[aria-current="step"] button { border-bottom-color: var(--accent); }
  .peel-list .pl-text, .peel-list li[aria-current="step"] .pl-text { display: none; }
  .peel-list .pl-name { font-size: 14px; }
  .peel-now { display: block; grid-column: 1; grid-row: 4; justify-self: stretch; min-height: 4.8em; font-size: 15px; line-height: 1.6; color: var(--on-navy); }
}

/* 빠짐없이 하는 공정 */
.rules { padding-block: clamp(88px, 13vh, 160px); }
.rules h2 { font-size: var(--t-3xl); }
.rules-grid { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 40px); }
.rule { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rule-img { overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; background: var(--surface); }
.rule-img img { width: 100%; height: 100%; object-fit: cover; }
.rule h3 { font-size: var(--t-xl); letter-spacing: -0.03em; }
.rule p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
@media (max-width: 960px) { .rules-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rule { grid-template-columns: 1fr; } }

/* 사례 (PC 고정 가로 이동 / 터치 기본 가로 넘김) */
.cases .stage { display: grid; grid-template-rows: auto auto; align-content: center; gap: 32px; padding-block: 28px; }
.cases-head { width: 100%; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.cases-head > div:first-child { display: grid; gap: 8px; min-width: 0; }
.cases-head h2 { font-size: var(--t-3xl); }
.cases-head p { color: var(--ink-soft); }
.cases-head .more { color: var(--brand-blue); font-weight: 600; white-space: nowrap; }
.cases-ctl { display: none; gap: 8px; }
.track-wrap { overflow: hidden; padding-left: var(--gut); }
.track { list-style: none; margin: 0; padding: 0 var(--gut-r) 4px 0; display: flex; gap: 24px; width: max-content; will-change: transform; transform: translateX(calc(-1px * var(--x, 0))); }
.case { width: var(--card-w, clamp(240px, min(25vw, calc((100svh - var(--top) - 330px) * 0.8)), 400px)); flex: none; display: grid; gap: 14px; align-content: start; }
.case-link { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; background: var(--surface); }
.case-link img { width: 112%; height: 100%; max-width: none; object-fit: cover; transform: translateX(calc(-5% + var(--cx, 0) * 1%)); }
.case-meta { display: grid; gap: 3px; }
.case-where { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.case h3 { font-size: var(--t-lg); letter-spacing: -0.02em; }
.case-work { font-size: 14px; line-height: 1.55; }
.case-date { font-size: 13px; color: var(--ink-soft); }
html.touch .cases, html.rm .cases { height: auto !important; }
html.touch .cases .stage, html.rm .cases .stage { position: static; height: auto; overflow: visible; padding-block: clamp(80px, 12vh, 140px); }
html.touch .track-wrap, html.rm .track-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); overscroll-behavior-x: contain; scrollbar-width: none; }
html.touch .track-wrap::-webkit-scrollbar, html.rm .track-wrap::-webkit-scrollbar { display: none; }
html.touch .track, html.rm .track { transform: none; }
html.touch .case, html.rm .case { scroll-snap-align: start; --card-w: min(76vw, 320px); }
html.touch .cases-ctl, html.rm .cases-ctl { display: flex; }
@media (max-width: 760px) { .cases-head { flex-direction: column; align-items: flex-start; } }

/* 다녀온 동네 */
.area { padding-block: clamp(88px, 13vh, 160px); border-top: 1px solid var(--line); }
.area-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.area-sum { display: grid; gap: 16px; }
.area-sum h2 { font-size: var(--t-3xl); }
.area-big { font-size: clamp(64px, 3rem + 4vw, 112px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--brand-blue); }
.area-big small { font-size: 0.36em; letter-spacing: -0.02em; color: var(--ink); margin-left: 6px; }
.area-sum p { color: var(--ink-soft); max-width: 24em; }
.places { columns: 2 260px; column-gap: clamp(28px, 4vw, 56px); }
.place { break-inside: avoid; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.place dt { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: var(--t-lg); letter-spacing: -0.02em; }
.place dt .num { color: var(--brand-blue); }
.place dd { margin-top: 4px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.places-group { break-inside: avoid; font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); padding-top: 22px; }
.places-group:first-child { padding-top: 0; }
.place dd a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 28%, transparent); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .place dd a:hover { color: var(--brand-blue); text-decoration-color: currentColor; } }
@media (max-width: 960px) { .area-grid { grid-template-columns: 1fr; } }

/* 자주 묻는 질문: 펼침 없이 다 보이게 (검색·AI 가 읽는 글) */
.faq { padding-block: clamp(88px, 13vh, 160px); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-sum { display: grid; gap: 16px; }
.faq-sum h2 { font-size: var(--t-3xl); }
.faq-sum p { color: var(--ink-soft); max-width: 24em; }
.faq-list { display: grid; }
.qa { padding: 22px 0 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.qa:first-child { border-top: 0; padding-top: 0; }
.qa h3 { font-size: var(--t-xl); letter-spacing: -0.03em; }
.qa p { color: var(--ink-soft); line-height: 1.75; max-width: 40em; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; } }

/* 전화 */
.call { background: var(--navy); color: var(--on-navy); padding-block: clamp(96px, 15vh, 180px) 0; }
.call-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.call h2 { font-size: var(--t-3xl); letter-spacing: -0.04em; }
.call-note { margin-top: 16px; color: var(--on-navy-soft); }
.call-right { display: grid; gap: 28px; }
.call-num {
  font-size: min(clamp(40px, 1.2rem + 3.4vw, 80px), 10.4vw); font-weight: 800; letter-spacing: -0.04em; line-height: 1; white-space: nowrap;
  color: var(--on-navy); text-decoration: none; justify-self: start;
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 100% 4px; background-position: 0 100%; padding-bottom: 14px;
}
.call-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tips { display: grid; gap: 10px; font-size: 15px; color: var(--on-navy-soft); border-top: 1px solid color-mix(in srgb, var(--on-navy) 16%, transparent); padding-top: 24px; }
.tips p { color: var(--on-navy); font-weight: 600; }
.tips ul { padding-left: 1.2em; display: grid; gap: 4px; }
.foot { margin-top: clamp(80px, 12vh, 140px); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid color-mix(in srgb, var(--on-navy) 14%, transparent); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: 14px; color: var(--on-navy-soft); }
.foot .foot-logo { width: auto; height: 64px; }
.foot b { color: var(--on-navy); font-size: 16px; }
.foot a { color: var(--on-navy); }
.biz { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 18px; font-style: normal; font-size: 13px; line-height: 1.7; color: var(--on-navy-soft); }
.biz a { color: var(--on-navy-soft); }
@media (max-width: 860px) { .call-grid { grid-template-columns: 1fr; align-items: start; } }

/* 사례 상세: 블로그로 나가지 않고 홈페이지 안에서 한 화면으로 열림 */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--canvas); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: var(--canvas); }
.sheet-bar { position: sticky; top: 0; z-index: 2; background: var(--canvas); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.sheet-bar-in { height: var(--hdr); max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding-left: var(--gut); padding-right: var(--gut-r); }
.sheet-name { margin-right: auto; min-width: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-bar .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.case-doc { padding-top: clamp(32px, 6vh, 64px); }
.cd-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 6vw, 96px); align-items: start; }
.cd-where { font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); }
.cd-head h2 { margin-top: 8px; font-size: var(--t-3xl); }
.cd-head h2:focus { outline: none; }
.cd-facts { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.cd-facts div { display: flex; gap: 8px; }
.cd-facts dt { color: var(--ink-soft); }
.cd-facts dd { font-weight: 600; }
.cd-body { display: grid; gap: 18px; max-width: 36em; }
.cd-sum { font-size: var(--t-lg); line-height: 1.7; }
.cd-note { font-size: 15px; color: var(--ink-soft); }
.cd-scope { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; font-size: 15px; }
.cd-scope dt { font-weight: 700; }
.cd-scope dd { color: var(--ink-soft); line-height: 1.65; }
.cd-steps { list-style: none; padding: 0; margin: clamp(40px, 7vh, 72px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(16px, 2vw, 28px); }
.cd-steps li { display: grid; gap: 12px; align-content: start; }
.cd-ph { overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 4; background: var(--surface); }
.cd-ph img { width: 100%; height: 100%; object-fit: cover; }
.cd-steps h3 { display: flex; align-items: baseline; gap: 10px; font-size: var(--t-lg); letter-spacing: -0.02em; }
.cd-steps h3 .num { font-size: 14px; font-weight: 700; color: var(--brand-blue); }
.cd-steps p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.cd-call { margin-top: clamp(56px, 9vh, 104px); border-top: 1px solid var(--line); padding-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.cd-call p { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.03em; }
.cd-nav { margin-top: 32px; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-nav a { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-decoration: none; min-width: 0; }
.cd-nav .next { text-align: right; grid-column: 2; }
.cd-nav small { font-size: 13px; color: var(--ink-soft); }
.cd-nav b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .cd-nav a:hover { border-color: var(--ink); } }
@media (max-width: 960px) { .cd-head { grid-template-columns: 1fr; } .cd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cd-steps { grid-template-columns: 1fr; }
  .cd-nav { grid-template-columns: 1fr; }
  .cd-nav .next { grid-column: 1; }
  .sheet-bar .btn { padding: 0 14px; }
}

/* 사진이 화면에 들어올 때 살짝 떠오름 (처음부터 화면 밖에 있던 것만) */
[data-in] { transition: opacity .7s var(--ease), transform .8s var(--ease); }
[data-in].pre { opacity: 0; transform: translateY(24px); }

/* 움직임 줄이기 */
html.rm .peel { height: auto; }
html.rm .stage { position: relative; top: 0; height: auto; }
html.rm .hero-photo img { transform: none; height: 100%; }
html.rm .peel .stage { padding-block: 80px; }
html.rm .peel-grid { grid-template-columns: 1fr; grid-template-rows: none; }
html.rm .peel-head, html.rm .peel-list { grid-column: 1; }
html.rm .peel-frame { grid-row: auto; height: auto; aspect-ratio: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; overflow: visible; background: none; }
html.rm .layer { position: relative; clip-path: none; }
html.rm .layer img { transform: none; aspect-ratio: 3 / 4; border-radius: var(--r); }
html.rm .peel-edge { display: none; }
html.rm .peel-list .pl-text { display: block; }
@media (prefers-reduced-motion: reduce) { .btn, [data-in] { transition: none; } }

body { margin: 0; }
.skip-link { position:fixed; top:8px; left:16px; z-index:100; padding:10px 18px; background:var(--paper); color:var(--ink); transform:translateY(-180%); }
.skip-link:focus { transform:none; }
.site-links { display:flex; flex-wrap:wrap; gap:12px 24px; width:100%; margin-top:20px; }
.site-links a { color:var(--on-navy); }
.reading-page { max-width:1120px; padding-top:32px; padding-bottom:80px; }
.reading-page h1 { font-size:var(--t-3xl); margin:24px 0; }
.page-lead { max-width:48em; font-size:var(--t-lg); color:var(--ink-soft); }
.breadcrumbs { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:14px; padding-top:24px; color:var(--ink-soft); }
.breadcrumbs a { min-height:28px; }
.record-page > .wrap { padding-bottom:64px; }
.record-page .cd-head h1 { margin:8px 0 0; font-size:var(--t-3xl); }
.record-page .case-doc { padding-top:28px; }
.record-source,.related-cases { border-top:1px solid var(--line); padding:28px 0; margin-top:24px; }
.record-source h2,.related-cases h2 { font-size:var(--t-xl); margin-bottom:14px; }
.record-source p { margin-bottom:12px; color:var(--ink-soft); }
.related-cases li { margin:8px 0; }
.case-group { padding-top:52px; scroll-margin-top:100px; }
.case-group h2 { font-size:var(--t-2xl); margin-bottom:24px; }
.case-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 24px; }
.case-list-card a { display:block; text-decoration:none; }
.case-list-card a:hover h3 { text-decoration:underline; text-underline-offset:5px; }
.case-list-card img { width:100%; height:auto; aspect-ratio:3/4; object-fit:cover; border-radius:6px; background:var(--surface); }
.case-list-card h3 { font-size:20px; margin:16px 0 10px; }
.case-list-card p { font-size:15px; color:var(--ink-soft); }
.case-list-card span { display:block; margin-top:10px; font-size:13px; color:var(--ink-soft); }
.area-index { display:flex; flex-wrap:wrap; gap:8px 12px; margin-top:28px; }
.area-index a { padding:8px 12px; border:1px solid var(--line); border-radius:6px; background:var(--paper); text-decoration:none; }
.guide-section { margin-top:48px; }
.guide-section h2 { font-size:var(--t-2xl); margin-bottom:20px; }
.guide-section li { margin:10px 0; }
.guide-section p { margin:14px 0; }
.guide-section .biz { display:grid; color:var(--ink); font-size:16px; gap:12px; }
.guide-section .biz a { color:var(--ink); }
.guide-callout { border-top:1px solid var(--line); padding:64px 0; }
.guide-callout h2 { font-size:var(--t-2xl); margin-bottom:16px; }
.guide-callout p { color:var(--ink-soft); }
.guide-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
@media(max-width:860px) { .case-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .case-list { grid-template-columns:1fr; } .reading-page h1,.record-page .cd-head h1 { font-size:30px; } .record-page .breadcrumbs { padding-top:20px; } }
