/* 웹사이트 엔진 기본 틀. 색·서체·둥글기는 build.py 가 brand.json 에서 넣는 변수만 쓴다 — 여기에 색 값을 직접 쓰지 않는다.
   변수: --paper 바탕 · --ink 글자 · --sub 보조 글자 · --accent 강조 · --line 가는 선 · --deep 진한 띠 바탕 · --on-deep 띠 글자
         --btn-bg 단추 바탕 · --btn-text 단추 글자 · --fb 본문 서체 · --fd 제목 서체 · --dw 제목 굵기 · --r 둥글기
   손님마다 바꾸려면 손님 폴더 theme/style.css 를 두거나(통째로 덮음) theme/extra.css 를 둔다(이 파일 뒤에 붙음). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--fb), "Site Sans", "Pretendard Variable", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.75; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* 글자 */
.h1, .h2, .h3 { font-family: var(--fd), var(--fb), sans-serif; font-weight: var(--dw); margin: 0; letter-spacing: -0.03em; }
.h1 { font-size: clamp(36px, 5.6vw, 76px); line-height: 1.14; }
.h1-s { font-size: clamp(32px, 4.4vw, 56px); }
.h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.25; margin-bottom: 20px; }
.h3 { font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; }
.eb { font-size: 16px; font-weight: 600; color: var(--accent); letter-spacing: 0; margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--sub); max-width: 34em; margin-top: 22px; }
.ls { margin: 0 0 1em; padding-left: 1.2em; }
.ls li { margin: .3em 0; }
.prose > * + .h3 { margin-top: 32px; }
.prose .h3 + p { margin-top: 8px; }

/* 단추 — 누를 자리 48px 이상 */
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--btn-bg); color: var(--btn-text); border: 1.5px solid var(--btn-bg);
  border-radius: var(--r-btn); font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ln { background: transparent; color: var(--ink); border-color: var(--ink); }

/* 머리 */
.hd { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo { font-family: var(--fd), var(--fb), sans-serif; font-weight: var(--dw); font-size: 20px; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.nav { display: flex; gap: 6px; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; padding: 0 14px; text-decoration: none; font-size: 16px; font-weight: 500; color: var(--sub); border-radius: var(--r); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.mnav { display: none; position: relative; }
.mnav > summary { list-style: none; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; border-radius: var(--r); }
.mnav > summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.mnav[open] .bars { background: transparent; }
.mnav[open] .bars::before { transform: translateY(7px) rotate(45deg); }
.mnav[open] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.mnav > nav { position: absolute; right: -8px; top: 56px; width: min(78vw, 300px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--ink) 35%, transparent); }
.mnav > nav a { min-height: 52px; display: flex; align-items: center; padding: 0 14px; text-decoration: none; font-size: 18px; border-radius: var(--r); }
.mnav > nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* 구역 공통 */
.sec { padding: 112px 0 0; }
main > .sec:last-child { padding-bottom: 120px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.ph { margin: 0; overflow: hidden; border-radius: var(--r); background: color-mix(in srgb, var(--ink) 6%, var(--paper)); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* 첫 화면 */
.hero { padding-top: 72px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: end; }
.hero.has-img .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.hero-ph { aspect-ratio: 4 / 5; max-height: 640px; }
.hero:not(.has-img) .h1 { max-width: 14em; }

/* 쪽 머리 */
.phd { padding-top: 88px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.phd .wrap { padding-bottom: 64px; }

/* 카드 — 그림자 상자 대신 위 선으로 나눈다 */
.grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.grid.n2, .grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border-top: 2px solid var(--ink); padding-top: 22px; }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--sub); }
.card .acts { margin-top: 18px; }
.card .btn { background: transparent; border: 0; color: var(--ink); padding: 0; min-height: 44px; min-width: 0; justify-content: flex-start; font-size: 16px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.card .btn::after { content: "\2192"; margin-left: 8px; text-decoration: none; }
.card .btn:hover { color: var(--accent); transform: none; }
.card-ph { aspect-ratio: 3 / 2; margin-bottom: 20px; }

/* 순서 */
.st { list-style: none; margin: 0; padding: 0; }
.st li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.st li:last-child { border-bottom: 1px solid var(--line); }
.st .no { font-family: var(--fd), var(--fb), sans-serif; font-weight: var(--dw); font-size: 28px; color: var(--accent); line-height: 1.2; font-variant-numeric: tabular-nums; }
.st p { color: var(--sub); margin-top: 6px; }

/* 물음 — JS 없이 접고 편다 */
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--sub); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 0 0 24px; color: var(--sub); max-width: 40em; }

/* 표 — 폰에서는 표만 가로로 민다 */
.tw { margin-top: 32px; overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 14px; font-weight: 600; color: var(--sub); }
tbody th { font-weight: 700; }
.note { margin-top: 16px; font-size: 16px; color: var(--sub); }

/* 그림과 글 */
.media-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.side-right .media-ph { order: 2; }
.media-ph { aspect-ratio: 4 / 3; }

/* 띠 */
.band { padding-top: 120px; }
.band-in { background: var(--deep); color: var(--on-deep); border-radius: var(--r); padding: 64px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.band .h2 { margin-bottom: 12px; }
.band p { color: color-mix(in srgb, var(--on-deep) 78%, var(--deep)); }
.band .eb { color: var(--on-deep); opacity: .8; }
.band .acts { margin-top: 0; flex-shrink: 0; }
.band .btn { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.band .btn-ln { background: transparent; color: var(--on-deep); }

/* 문의 */
.fm { display: grid; gap: 22px; }
.fl { display: grid; gap: 8px; font-weight: 600; font-size: 16px; }
.fl i { color: var(--accent); font-style: normal; }
.fl input, .fl textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1.5px solid color-mix(in srgb, var(--ink) 30%, var(--paper)); border-radius: var(--r); padding: 14px 16px; min-height: 52px; width: 100%; }
.fl input:focus, .fl textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fm-note { font-size: 16px; color: var(--sub); margin: 0; }
.cs { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--sub); line-height: 1.6; cursor: pointer; }
.cs input { width: 24px; height: 24px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.fm .btn { justify-self: start; min-width: 160px; }
.msg { min-height: 1.6em; font-weight: 600; margin: 0; }
.msg.ok { color: var(--ink); }
.msg.err { color: var(--accent); }

/* 법정 글 */
.legal .h3 { margin-top: 36px; font-size: 18px; }
.legal p, .legal li { color: var(--sub); }

/* 꼬리 */
.ft { margin-top: 0; border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 15px; color: var(--sub); }
.ft-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; }
.ft-name { font-family: var(--fd), var(--fb), sans-serif; font-weight: var(--dw); color: var(--ink); font-size: 18px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.ft-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px 0 0; text-decoration: none; }
.ft-nav a:hover { color: var(--ink); text-decoration: underline; }
.ft-lines { grid-column: 2; }
.ft-lines p { margin: 0 0 4px; }

/* 움직임을 줄이라는 설정이면 끈다 */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 태블릿 */
@media (max-width: 960px) {
  .wrap { padding: 0 28px; }
  .split, .media-in, .hero.has-img .hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side-right .media-ph { order: 0; }
  .sec { padding-top: 88px; }
  .hero-ph { aspect-ratio: 4 / 3; }
  .band-in { flex-direction: column; align-items: flex-start; padding: 48px 36px; }
}

/* 폰 */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .mnav { display: block; }
  .hd-in { min-height: 64px; }
  .sec { padding-top: 72px; }
  .hero { padding-top: 40px; }
  .phd { padding-top: 56px; }
  .phd .wrap { padding-bottom: 44px; }
  .lead { font-size: 17px; }
  .grid, .grid.n2, .grid.n4 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .st li { grid-template-columns: 48px minmax(0, 1fr); }
  .st .no { font-size: 22px; }
  .band { padding-top: 80px; }
  .band-in { padding: 40px 24px; }
  .acts .btn { flex: 1 1 auto; }
  .ft-in { grid-template-columns: minmax(0, 1fr); }
  .ft-lines { grid-column: 1; }
  main > .sec:last-child { padding-bottom: 88px; }
}

/* 손님 theme/extra.css */
/* 하결 인테리어 견본 — 섞기표(2_설계/10_섞기표.md): 첫 화면 stanzza, 전환 dsgninterior, 글씨·목록·마무리 storey, 색 stanzza.
   색은 brand.json 변수만(--paper 크림, --ink 먹, --accent 올리브, --stone, --oak, --deep). */

body { font-size: 16px; line-height: 1.72; letter-spacing: -0.008em; }
.hg-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 48px; }
.h2 { font-size: clamp(30px, 4vw, 56px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; margin-bottom: 0; }
.h3 { font-family: var(--fd), var(--fb), sans-serif; font-weight: 500; font-size: 21px; letter-spacing: -0.02em; }
.eb { font-family: var(--fb), sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--sub); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eb::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.sec { padding-top: 140px; }
main > .sec:last-child { padding-bottom: 0; }
.btn { min-height: 50px; padding: 0 24px; font-size: 15px; font-weight: 500; letter-spacing: 0; border-radius: 0; transition: background .25s cubic-bezier(.2,.7,.2,1), color .25s, transform .25s cubic-bezier(.2,.7,.2,1); }
.btn::after { content: "\2197"; margin-left: 10px; font-size: 13px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.btn:hover::after { transform: translate(2px, -2px); }
.btn:hover { transform: none; background: var(--accent); border-color: var(--accent); color: var(--on-deep); }
.btn-ln:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
::selection { background: var(--accent); color: var(--on-deep); }
.hg-side { color: var(--sub); max-width: 30em; font-size: 16px; }
.hg-side .acts { margin-top: 28px; }

/* 머리 — 첫 쪽은 사진 위 투명, 내리면 크림 */
.hg-hd { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom: 1px solid transparent; backdrop-filter: none; transition: background .35s, border-color .35s, color .35s; }
.hg-hd-in { max-width: 1360px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.hg-hd .logo { font-size: 19px; font-weight: 600; letter-spacing: .14em; }
.hg-hd .nav { gap: 4px; }
.hg-hd .nav a { font-size: 15px; color: inherit; opacity: .82; }
.hg-hd .nav a:hover, .hg-hd .nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -1px 0 currentColor; }
.hg-hd .nav a.nav-cta { opacity: 1; border: 1px solid currentColor; margin-left: 12px; padding: 0 18px; }
.hg-hd .nav a.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
body.hg-over .hg-hd:not(.is-solid) { color: var(--on-deep); }
body.hg-over .hg-hd:not(.is-solid) .bars, body.hg-over .hg-hd:not(.is-solid) .bars::before, body.hg-over .hg-hd:not(.is-solid) .bars::after { background: var(--on-deep); }
body.hg-over .hg-hd:not(.is-solid) .nav a.nav-cta:hover { background: var(--on-deep); color: var(--ink); border-color: var(--on-deep); }
.hg-hd.is-solid { background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom-color: var(--line); backdrop-filter: blur(10px); color: var(--ink); }
main { padding-top: 76px; }
body.hg-over main { padding-top: 0; }
html.hg-anim:not(.hg-done) body.hg-over .hg-hd { opacity: 0; }

/* 첫 화면 — stanzza */
.hg-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--paper); }
.hg-win { position: absolute; inset: 0; overflow: hidden; }
.hg-bg { margin: 0; width: 100%; height: 100%; }
.hg-bg img { width: 100%; height: 100%; object-fit: cover; }
.hg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 34%, transparent) 0%, transparent 28%, transparent 46%, color-mix(in srgb, var(--ink) 72%, transparent) 100%); }
.hg-chips { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 14px; z-index: 1; pointer-events: none; }
.hg-chips img { width: clamp(64px, 8vw, 118px); aspect-ratio: 4 / 5; object-fit: cover; opacity: 0; }
html:not(.hg-anim) .hg-chips { display: none; }
html.hg-anim .hg-win { clip-path: inset(41% 46.5% 41% 46.5%); opacity: 0; }
.hg-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: 1360px; margin: 0 auto; padding: 0 48px 64px; color: var(--on-deep); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.hg-eb { grid-column: 1 / -1; font-size: 14px; margin: 0; opacity: .9; display: flex; align-items: center; gap: 10px; }
.hg-eb::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hg-h1 { margin: 0; font-family: var(--fd), var(--fb), sans-serif; font-weight: 500; font-size: clamp(44px, 6.6vw, 104px); line-height: 1.04; letter-spacing: -0.045em; }
.hg-h1 strong { font-weight: 500; }
.hg-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hg-line > span { display: block; }
.hg-lead { font-size: 17px; max-width: 24em; color: color-mix(in srgb, var(--on-deep) 88%, transparent); }
.hg-lead p { margin: 0; }
.hg-copy .acts { margin-top: 0; grid-column: 2; }
.hg-hero .btn { background: var(--on-deep); color: var(--ink); border-color: var(--on-deep); }
.hg-hero .btn-ln { background: transparent; color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 70%, transparent); }
.hg-hero .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-deep); }

/* 머리 두 칸(제목 왼쪽 크게, 설명 오른쪽 작게) — storey */
.hg-head2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 64px; }
.hg-head2 > .eb { grid-column: 1 / -1; margin-bottom: 0; }

/* 큰 문장 */
.hg-text-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; }
.hg-text-h .h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
.hg-big { font-family: var(--fd), var(--fb), sans-serif; font-weight: 500; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.38; letter-spacing: -0.03em; color: var(--ink); margin: 0; }
html.m-on:not(.m-calm) .hg-big .m-w { opacity: .16; }
.hg-text-b > p:not(.hg-big) { color: var(--sub); max-width: 40em; }

/* 전면 판 쌓임 — dsgninterior */
.hg-stack { padding-top: 140px; }
.hg-shead { margin-bottom: 48px; }
.hg-panel { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; color: var(--on-deep); background: var(--deep); }
.hg-panel-ph { position: absolute; inset: 0; margin: 0; }
.hg-panel-ph img { width: 100%; height: 100%; object-fit: cover; }
.hg-panel-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--ink) 70%, transparent) 100%); }
.hg-panel-tx { position: absolute; left: 0; right: 0; bottom: 0; max-width: 1360px; margin: 0 auto; padding: 0 48px 72px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.hg-panel-h { margin: 0; font-family: var(--fd), var(--fb), sans-serif; font-weight: 500; font-size: clamp(40px, 6vw, 92px); line-height: 1.02; letter-spacing: -0.045em; grid-row: span 2; }
.hg-panel-tx p { margin: 0; color: color-mix(in srgb, var(--on-deep) 88%, transparent); max-width: 26em; }
.hg-panel-tx .acts { margin-top: 0; }
.hg-panel .btn { background: transparent; color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 70%, transparent); }
.hg-panel .btn:hover { background: var(--on-deep); color: var(--ink); border-color: var(--on-deep); }

/* 그림과 글 */
.hg-media-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.side-right .hg-media-ph { order: 2; }
.side-right .hg-media-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hg-media-ph { overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.hg-ph { margin: 0; height: 100%; }
.hg-ph img { width: 100%; height: 112%; object-fit: cover; }
.hg-media-tx .h2 { font-size: clamp(28px, 3.2vw, 46px); margin-bottom: 24px; }
.hg-media-tx > p { color: var(--sub); max-width: 30em; }
.hg-media-tx .ls { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.hg-media-tx .ls li { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* 숫자 줄 — storey */
.hg-st, .hg-list { list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: 1px solid var(--line); }
.hg-st li, .hg-list li { counter-increment: n; display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.hg-st li::before, .hg-list li::before { content: counter(n); font-family: var(--fd), var(--fb), sans-serif; font-weight: 500; font-size: 64px; line-height: .9; letter-spacing: -0.04em; color: color-mix(in srgb, var(--ink) 22%, var(--paper)); }
.hg-st .h3, .hg-list .h3 { margin: 4px 0 0; }
.hg-st-tx, .hg-list-tx { color: var(--sub); max-width: 34em; }
.hg-st-tx p, .hg-list-tx p { margin: 4px 0 0; }
.hg-rows.has-ph .hg-list li { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); }
.hg-list-ph { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.hg-list-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hg-list li:hover .hg-list-ph img { transform: scale(1.04); }
.hg-list .acts { margin-top: 16px; }
.hg-list .btn, .hg-ex .btn { background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid currentColor; padding: 0; min-height: 44px; min-width: 0; }
.hg-list .btn:hover, .hg-ex .btn:hover { background: transparent; color: var(--accent); }

/* 올리브 판 — stanzza 사례 */
.hg-olive { background: var(--accent); color: var(--on-deep); padding-bottom: 120px; margin-top: 140px; padding-top: 120px; }
.hg-olive .h2, .hg-olive .h3 { color: var(--on-deep); }
.hg-olive .eb { color: color-mix(in srgb, var(--on-deep) 82%, transparent); }
.hg-ex { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.hg-ex li:nth-child(2) { margin-top: 96px; }
.hg-ex-ph { margin: 0 0 20px; aspect-ratio: 4 / 5; overflow: hidden; }
.hg-ex-ph img { width: 100%; height: 112%; object-fit: cover; }
.hg-ex .h3 { margin-bottom: 6px; }
.hg-ex p { color: color-mix(in srgb, var(--on-deep) 86%, transparent); font-size: 16px; margin: 0; }
.hg-olive > .hg-wrap > .acts { margin-top: 56px; }
.hg-olive .btn { background: var(--on-deep); color: var(--ink); border-color: var(--on-deep); }
.hg-olive .btn:hover { background: var(--ink); color: var(--on-deep); border-color: var(--ink); }
.hg-olive + .hg-band { margin-top: 0; }

/* 쪽 머리 */
.hg-phd { padding-top: 120px; }
.hg-phd-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid var(--ink); }
.hg-h1s { margin: 0; font-family: var(--fd), var(--fb), sans-serif; font-weight: 500; font-size: clamp(44px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -0.045em; }
.hg-phd + .sec { padding-top: 96px; }
.m-line { display: block; overflow: hidden; }
.m-line > span { display: block; }

/* 마무리 띠 */
.hg-band { background: var(--stone); margin-top: 140px; padding: 120px 0; }
.hg-band-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.hg-band-h { margin: 0; font-family: var(--fd), var(--fb), sans-serif; font-weight: 500; font-size: clamp(36px, 5vw, 76px); line-height: 1.06; letter-spacing: -0.045em; }

/* 표·물음·법정 글 */
.tbl .wrap, .faq .wrap, .legal .wrap { max-width: 1360px; padding: 0 48px; }
.tw { border-top: 1px solid var(--ink); }
tbody th { font-family: var(--fd), var(--fb), sans-serif; font-weight: 500; }
.faq .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.qa summary .h3 { font-size: 19px; }
.qa summary::after { font-weight: 300; }
.legal .wrap { max-width: 860px; }

/* 종이 신청서 — storey */
.hg-contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px 80px; align-items: start; }
.hg-contact-h .h2 { margin-bottom: 24px; }
.hg-paper { background: color-mix(in srgb, var(--paper) 40%, var(--on-deep)); padding: 48px 48px 40px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px color-mix(in srgb, var(--ink) 40%, transparent); counter-reset: f; gap: 4px; }
.hg-paper .fl { counter-increment: f; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; align-items: baseline; font-weight: 500; font-size: 14px; color: var(--sub); padding-top: 14px; }
.hg-paper .fl::before { content: "0" counter(f); font-size: 12px; color: var(--sub); grid-row: span 2; }
.hg-paper .fl input, .hg-paper .fl textarea { grid-column: 2; background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 0; padding: 8px 0 10px; min-height: 48px; font-size: 16px; }
.hg-paper .fl input:focus, .hg-paper .fl textarea:focus { box-shadow: none; border-bottom-color: var(--ink); }
.hg-paper .fm-note { margin-top: 24px; padding: 12px 14px; background: var(--stone); color: var(--ink); font-size: 14px; }
.hg-paper .cs { margin-top: 12px; font-size: 14px; }
.hg-paper .btn { margin-top: 20px; }

/* 꼬리 — 먹색, 큰 글자 표시 */
.hg-ft { background: var(--deep); color: color-mix(in srgb, var(--on-deep) 72%, var(--deep)); border-top: 0; padding: 72px 0 0; margin-top: 0; overflow: hidden; }
.hg-ft-in { max-width: 1360px; margin: 0 auto; padding: 0 48px; }
.hg-ft-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; padding-bottom: 48px; border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 18%, transparent); }
.hg-ft .ft-nav a { color: var(--on-deep); font-size: 15px; padding-right: 18px; }
.hg-ft .ft-lines { grid-column: auto; font-size: 14px; }
.hg-mark { font-family: var(--fd), var(--fb), sans-serif; font-weight: 500; font-size: clamp(56px, 15.2vw, 228px); line-height: 1; letter-spacing: -0.01em; color: var(--on-deep); padding: 40px 0 28px; white-space: nowrap; }
main > .sec:last-child:not(.hg-band) { padding-bottom: 140px; }

@media (max-width: 960px) {
  .hg-wrap, .hg-hd-in, .hg-copy, .hg-panel-tx, .hg-ft-in, .tbl .wrap, .faq .wrap, .legal .wrap { padding-left: 28px; padding-right: 28px; }
  .hg-head2, .hg-text-in, .hg-media-in, .side-right .hg-media-in, .hg-phd-in, .hg-band-in, .hg-contact-in, .hg-copy, .hg-panel-tx, .faq .split { grid-template-columns: minmax(0, 1fr); }
  .side-right .hg-media-ph { order: 0; }
  .hg-copy .acts { grid-column: 1; }
  .hg-st li, .hg-list li, .hg-rows.has-ph .hg-list li { grid-template-columns: 72px minmax(0, 1fr); }
  .hg-st-tx, .hg-list-tx, .hg-list-ph { grid-column: 2; }
  .hg-st li::before, .hg-list li::before { font-size: 44px; grid-row: span 3; }
  .hg-ex { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hg-ex li:nth-child(2) { margin-top: 0; }
  .sec, .hg-stack { padding-top: 104px; }
  .hg-olive, .hg-band { margin-top: 104px; padding: 88px 0; }
}
@media (max-width: 760px) {
  .hg-wrap, .hg-hd-in, .hg-copy, .hg-panel-tx, .hg-ft-in, .tbl .wrap, .faq .wrap, .legal .wrap { padding-left: 20px; padding-right: 20px; }
  .hg-hd-in { min-height: 64px; }
  main { padding-top: 64px; }
  .hg-hero { min-height: 560px; }
  .hg-copy { padding-bottom: 40px; gap: 18px; }
  .hg-h1 { font-size: clamp(38px, 11vw, 56px); }
  .hg-copy .acts { flex-direction: column; }
  .hg-panel { height: 88svh; }
  .hg-panel-tx { padding-bottom: 44px; }
  .hg-ex { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hg-st li, .hg-list li, .hg-rows.has-ph .hg-list li { grid-template-columns: 52px minmax(0, 1fr); padding: 24px 0; }
  .hg-st li::before, .hg-list li::before { font-size: 34px; }
  .hg-head2 { margin-bottom: 40px; }
  .hg-paper { padding: 28px 20px; }
  .hg-ft-top { grid-template-columns: minmax(0, 1fr); }
  .sec, .hg-stack { padding-top: 88px; }
  .hg-phd { padding-top: 64px; }
  .hg-olive, .hg-band { margin-top: 88px; padding: 72px 0; }
  .hg-mark { font-size: 16.5vw; }
}

main > .hg-band:last-child { padding-bottom: 120px; }
@media (max-width: 960px) { main > .hg-band:last-child { padding-bottom: 88px; } }
@media (max-width: 760px) { main > .hg-band:last-child { padding-bottom: 72px; } }

/* 다듬기(13단계): 시공사례는 큰 사진 2단 갤러리(stanzza 사례 판 크기), 번호는 storey 회색 숫자 */
.hg-wk { list-style: none; margin: 0; padding: 0; counter-reset: w; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 40px; }
.hg-wk li { counter-increment: w; }
.hg-wk li:nth-child(even) { margin-top: 120px; }
.hg-wk-ph { margin: 0 0 22px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.hg-wk-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.hg-wk li:hover .hg-wk-ph img { transform: scale(1.035); }
.hg-wk-tx { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; }
.hg-wk-tx::before { content: "0" counter(w); grid-row: span 3; font-family: var(--fd), var(--fb), sans-serif; font-size: 15px; color: var(--sub); padding-top: 4px; }
.hg-wk .h3 { margin: 0 0 6px; }
.hg-wk-tx p { margin: 0; color: var(--sub); max-width: 30em; }
.hg-wk .acts { margin-top: 12px; }
.hg-wk .btn { background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid currentColor; padding: 0; min-height: 44px; min-width: 0; }
.hg-wk .btn:hover { background: transparent; color: var(--accent); }
.hg-win { background: var(--deep); }
.tw { padding-top: 4px; }
@media (max-width: 760px) {
  .hg-wk { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hg-wk li:nth-child(even) { margin-top: 0; }
  .hg-wk-tx { grid-template-columns: 40px minmax(0, 1fr); }
}
.hg-wk .acts .btn, .hg-list .acts .btn, .hg-ex .acts .btn { flex: none; }

/* 4판 고침(본체 지시 10/8): 첫 화면 제목 뒤 왼쪽 아래 그늘(제목 대비 4.5:1 이상), 약속 구역 */
.hg-shade { background:
  linear-gradient(180deg, color-mix(in srgb, var(--ink) 34%, transparent) 0%, transparent 22%),
  linear-gradient(0deg, color-mix(in srgb, var(--ink) 82%, transparent) 0%, color-mix(in srgb, var(--ink) 72%, transparent) 40%, transparent 72%),
  linear-gradient(90deg, color-mix(in srgb, var(--ink) 30%, transparent) 0%, transparent 60%); }
.hg-promise { }
.hg-pm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.hg-pm li { padding: 28px 28px 8px 0; }
.hg-pm li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.hg-pm .h3 { margin: 0 0 12px; }
.hg-pm p { color: var(--sub); margin: 0; }
@media (max-width: 960px) { .hg-pm { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hg-pm li:nth-child(3) { padding-left: 0; border-left: 0; } .hg-pm li { padding-bottom: 24px; border-bottom: 1px solid var(--line); } }
@media (max-width: 760px) { .hg-pm { grid-template-columns: minmax(0, 1fr); } .hg-pm li, .hg-pm li + li { padding: 24px 0; border-left: 0; } }
