/* HISHAND 서브 페이지 (프로젝트 아카이브) — PSD Hompage_Dark_Sub.psd (1440 × 3010) 기준
   ─────────────────────────────────────────────────────────
   style.css(메인과 공통: 헤더·푸터·태그 바·견적 CTA·맨 위로)를 먼저 읽고, 여기서 브라운 톤으로 덮어씀.
   좌표 주석의 y 값은 PSD 페이지 기준(헤더 75 포함).
*/

/* ── 브라운 팔레트 (PSD 'Color' 견본) ── */
.sub {
  --br-0: #0c0a08;           /* 가장 어두운 바탕 (히어로·태그 바) */
  --br-1: #1b1612;           /* 헤더·카탈로그·푸터 바닥 */
  --br-line: #5a4c3d;        /* 카드 테두리·구분선 */
  --bg-header: #1b1612;
  --bg: #1b1612;
  --copy-thin-color: rgba(27, 22, 18, .6);
  background: var(--br-1);
}

/* ── 공통 요소 브라운 톤 ── */
.sub .service-tags { background: rgba(12, 10, 8, .8); }          /* CTA_Sorting_BG: #0c0a08 80% */
.sub .ft, .sub .ft-floor { background: var(--br-1); }
@media (max-width: 1300px) { .sub .ft-bottom { background: var(--br-1); } }
@media (max-width: 1100px) { .sub .main-nav { background: rgba(27, 22, 18, .97); } }
@media (max-width: 980px)  { .sub .m-cta { background: rgba(27, 22, 18, .97); } }
/* 견적 CTA: 메인과 같은 화면 높이 (메인 첫 화면 'SHAPING POSSIBILITIES' 줄 가운데) */
.sub { --quote-y: calc(75px + 480 * min(1px, 100vw / 1440)); }   /* 견적 CTA 가운데 = 히어로 'VIEW PROJECT'와 '01 / 06' 사이 (PSD y 555, 히어로 축소 비율 따라감) */

/* ════════════════════════════════════════════════════
   Hero (PSD y 75~650, 1440 × 575)
   ════════════════════════════════════════════════════ */
.sh {
  --sh-frame-r: max(0px, calc((100% - 1440px) / 2));   /* 1440보다 넓으면 가운데, 좁으면 오른쪽에 붙임 */
  position: relative; margin-top: 75px; height: 575px; overflow: clip; isolation: isolate;   /* clip: 포커스·스크롤로 안쪽이 밀리지 않게 */
  background: var(--br-0); color: var(--cream);
}
.sh-in { position: absolute; inset: 0; }
/* 901~1439px: PC 구도(1440 × 575)를 그대로 화면 폭에 맞춰 통째로 축소 (배율 --sh-s 는 sub.js) */
@media (min-width: 901px) and (max-width: 1439px) {
  .sh { height: calc(575px * var(--sh-s, 1)); }
  .sh-in { right: auto; bottom: auto; width: 1440px; height: 575px; transform: scale(var(--sh-s, 1)); transform-origin: 0 0; }
}
.sh-scene { position: absolute; inset: 0; pointer-events: none; }
.sh-l { position: absolute; max-width: none; will-change: transform; }
/* 질감: Hero_BG(#0c0a08) + Hero_BG_Texture(밝은 색상 70%) — 움직여도 가장자리가 안 보이게 위아래 12px 여유 */
.sh-tex { left: 0; right: 0; top: -12px; bottom: -12px; background: var(--br-0) url("../images/sub/hero_tex.jpg") center top / cover no-repeat; }

/* 사진 무대: PSD 좌표 그대로 1440 × 575 틀 안에 배치 */
.sh-stage { position: absolute; top: 0; right: 0; width: 1440px; height: 575px; pointer-events: none; }   /* PSD처럼 오른쪽에 붙음: 화면이 넓어지면 왼쪽 여백만 늘어남 */
.sh-frame { position: absolute; left: 0; top: 0; width: 1440px; height: 575px; }
/* Hero_Picture_BG(사선 + 왼쪽 흐림) 모양으로 사진을 자름 */
.sh-pic {
  left: -248px; top: 94px; width: 1499px; height: 481px; overflow: clip;
  -webkit-mask: url("../images/sub/hero_mask_tall.png") 0 0 / 1499px 741px no-repeat;
          mask: url("../images/sub/hero_mask_tall.png") 0 0 / 1499px 741px no-repeat;
}
/* 사진 = 스마트 오브젝트 원본 전체를 PSD 자리(틀 x 10~1568, y 0~1038)에 놓고 마스크로 보이는 부분만 */
.sh-track { position: absolute; inset: 0; }
/* 카테고리 사진: PSD Image_Hero_* 스마트 오브젝트 위치·크기 그대로 (sub.js 의 box → --x --y --w --h, PSD 1440 좌표)
   .sh-pic 의 왼쪽 위 = PSD (-248, 169) */
.sh-slide {
  position: absolute; left: calc(var(--x) * 1px + 248px); top: calc(var(--y) * 1px - 169px);
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  background: center top / 100% 100% no-repeat; will-change: transform;
}
/* 반투명 사각 2장 (소프트 라이트) — 사진이 바뀌어도 그대로 */
.sh-rect { mix-blend-mode: soft-light; }
.sh-rect1 { left: 421px; top: 94px; width: 830px; height: 741px; }   /* 아래로 같은 기울기 연장본 */
.sh-rect2 { left: 308px; top: 164px; width: 800px; height: 671px; opacity: .5; }

/* 카테고리 5칸 (PSD Hero_Menu_Btn: 100~1340 × 105~145)
   · 바깥 테두리 1px 골드 (1240 × 40)
   · 세로 구분선 1px: x 248 · 496 · 743 · 991 (틀 기준), 위·아래 테두리와 2px 띄움 (y +3 ~ -3)
   · 선택 칸(Hero_Menu_Btn_On): 테두리·양옆 구분선까지 덮는 골드 그라데이션 (칸 폭 + 1px) */
.sh-menu {
  position: absolute; z-index: 2; top: 30px; left: calc(var(--edge) + 45px); right: calc(var(--edge) + 45px); height: 40px;
  display: grid; grid-template-columns: 248fr 248fr 247fr 248fr 249fr;
}
.sh-menu::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); pointer-events: none; }
.sh-menu button {
  position: relative; z-index: 2; min-width: 0; height: 100%; padding: 0; border: 0;
  background: transparent; cursor: pointer;
  font-family: var(--f-serif); font-weight: 400; font-size: 17px; line-height: 17px; letter-spacing: .07em; color: var(--cream);
  white-space: nowrap; transition: color .35s;
}
/* 구분선: 각 칸의 왼쪽 끝, 위아래 3px 안쪽 */
.sh-menu button + button::before { content: ""; position: absolute; z-index: 1; left: 0; top: 3px; bottom: 3px; width: 1px; background: var(--gold); transition: opacity .35s; }
/* 마우스 오버: 선택 칸과 같은 모양 (테두리·구분선까지 덮음) */
.sh-menu button::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: -1px;
  background: linear-gradient(180deg, #ba9572, #ddb791); opacity: 0; transition: opacity .35s;
}
.sh-menu button:hover::after { opacity: 1; }
.sh-menu button:last-of-type::after { right: 0; }
.sh-menu button:hover, .sh-menu button.on { color: #12161b; font-weight: 800; }
.sh-menu button:hover::before, .sh-menu button:hover + button::before,
.sh-menu button.on::before, .sh-menu button.on + button::before { opacity: 0; }
/* 선택 표시: 카테고리를 바꾸면 미끄러지듯 이동 */
.sh-menu-on {
  position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: calc(20% + 1px);
  background: linear-gradient(180deg, #ba9572, #ddb791);
  transform: translateX(calc(var(--cat-i, 0) * (100% - 1px)));
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}

/* 타이틀 (왼쪽, 1440에서 x 100) */
.sh-title { position: absolute; z-index: 2; left: calc(var(--edge) + 45px); top: 1px; width: 360px; height: 575px; pointer-events: none; }
.sh-title > * { position: absolute; left: 0; margin: 0; pointer-events: auto; }
.sh-eyebrow { top: 149px; font-family: var(--f-label); font-weight: 300; font-size: 11px; line-height: 11px; letter-spacing: .27em; color: var(--gold); white-space: nowrap; }
.sh-title h1 { top: 184px; left: -1px; font-family: var(--f-serif); font-weight: 400; font-size: 40px; line-height: 50px; letter-spacing: .07em; color: var(--cream); white-space: nowrap; }
.sh-desc { top: 302px; left: -1px; font-family: var(--f-sans); font-weight: 200; font-size: 18px; line-height: 24px; letter-spacing: .04em; color: var(--cream); white-space: nowrap; }
.sh-line { top: 400px; width: 50px; height: 2px; background: var(--gold); }
.sh-big {   /* PSD 'Project Archive': Cormorant Light Italic 60 / 행간 55 / 자간 50·100 / 대문자(All Caps) + 가짜 기울임 / 불투명 10%
                 — 오른쪽 반투명 사각 레이어들과 같이 움직이도록 오른쪽 기준(1440에서 x 51, 1줄 기준선 y 565) */
  position: absolute; z-index: 2; left: calc(100% - 1440px + 49.5px); top: 443.5px; margin: 0;
  font-family: "Cormorant", "Cormorant Garamond", serif; font-style: italic; font-weight: 300; text-transform: uppercase;
  font-size: 60px; line-height: 55px; letter-spacing: .07em; color: rgba(239, 232, 222, .1); white-space: nowrap; pointer-events: none;
}
/* 가짜 기울임(Faux Italic): 줄마다 기준선에서 기울임 — PSD 합성본과 겹쳐 맞춘 값 */
.sh-big span { display: inline-block; transform: skewX(-12deg); transform-origin: 0 100%; }
.sh-big span:last-of-type { letter-spacing: .12em; }

/* 프로젝트 정보 상자: 950~1442 × 248~652 (사선 왼쪽, 오른쪽은 화면 끝까지) */
.sh-info { position: absolute; z-index: 2; top: 173px; right: -2px; width: 492px; height: 404px; }   /* 항상 화면 오른쪽 끝 (배경판 오른쪽 2px 선은 화면 밖) */
.sh-info-bg { position: absolute; inset: 0; background: url("../images/sub/hero_info.png") 0 0 / 492px 404px no-repeat; opacity: .9; }

.sh-info > :not(.sh-info-bg) { position: absolute; margin: 0; }
.sh-cat-en { left: 190px; top: 39px; font-family: var(--f-label); font-weight: 400; font-size: 13px; line-height: 13px; letter-spacing: .205em; color: var(--gold); white-space: nowrap; }
.sh-cat-navi { left: 190px; top: 60px; width: 200px; height: 1px; background: rgba(239, 232, 222, .3); }
.sh-cat-navi i { position: absolute; left: 0; top: 0; width: 40px; height: 1px; background: var(--cream); transform: translateX(calc(var(--cat-i, 0) * 100%)); transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.sh-ptitle { left: 159px; top: 88px; font-family: var(--f-serif); font-weight: 400; font-size: 26px; line-height: 34px; letter-spacing: -.035em; color: var(--cream); white-space: nowrap; }
.sh-meta { left: 160px; top: 129px; display: flex; align-items: center; height: 17px; font-family: var(--f-sans); font-weight: 500; font-size: 16px; line-height: 17px; letter-spacing: .05em; color: var(--gold); white-space: nowrap; }
.sh-meta i { width: 1px; height: 15px; margin: 0 20px 0 18px; background: var(--gold); }
.sh-meta .loc { font-size: 17px; letter-spacing: 0; text-transform: uppercase; }   /* PSD 글자 옵션: 모두 대문자 */
.sh-pdesc { left: 160px; top: 177px; font-family: var(--f-serif); font-weight: 400; font-size: 16px; line-height: 24px; letter-spacing: -.03em; color: var(--cream); white-space: nowrap; }
.sh-view {
  left: 160px; top: 254px; width: 130px; height: 19px; padding-bottom: 4px; border-bottom: 1px solid var(--gold);
  font-family: var(--f-sans); font-weight: 500; font-size: 14px; line-height: 14px; letter-spacing: .073em; color: var(--gold); white-space: pre;   /* 대문자 자간: PSD 글자 폭에 맞춤 */   /* PSD처럼 화살표 앞 공백 2칸 유지 */
  text-transform: uppercase;   /* PSD 글자 옵션: 모두 대문자(Tt) */
  transition: color .2s, border-color .2s;
}
.sh-view:hover { color: var(--cream); border-color: var(--cream); }
.sh-navi { left: 100px; top: 348px; width: 240px; height: 14px; }
.sh-count { position: absolute; left: 0; top: 3px; margin: 0; font-family: var(--f-label); font-weight: 500; font-size: 11px; line-height: 11px; letter-spacing: .155em; color: var(--cream); white-space: nowrap; }
.sh-bar { position: absolute; left: 60px; top: 6px; width: 180px; height: 3px; background: rgba(239, 232, 222, .3); overflow: hidden; }
.sh-bar i { position: absolute; left: 0; top: 0; width: calc(100% / var(--n, 6)); height: 3px; background: var(--cream); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.sh-arrows { left: 356px; top: 339px; display: flex; gap: 5px; }
.sh-arrows button {
  display: grid; place-items: center; width: 37px; height: 33px; padding: 0; border: 2px solid var(--br-line); border-radius: 3px;
  background: transparent; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.sh-arrows button img { width: 9px; height: 14px; }
.sh-arrows button:hover { border-color: var(--gold); background: rgba(213, 182, 147, .1); }

/* ════════════════════════════════════════════════════
   Catalog (PSD y 650~2170 / #1b1612)
   ════════════════════════════════════════════════════ */
.cat { position: relative; background: var(--br-1); padding: 30px 0 34px; }
.cat-head, .cat-grid { width: calc(100% - var(--page-gutter) * 2); max-width: 1900px; margin-inline: auto; }
.cat-head { position: relative; height: 42px; display: flex; align-items: center; }
.cat-count { flex: none; width: auto; margin: 0;   /* 그리드 왼쪽 끝에 맞춤 — 건수가 늘고 줄면 오른쪽 선 길이가 바뀜 */ font-family: var(--f-sans); font-weight: 500; font-size: 16px; line-height: 16px; letter-spacing: .05em; color: var(--cream); white-space: nowrap; }
.cat-line { flex: 1 1 auto; height: 2px; margin: 0 30px; background: var(--gold); }
.cat-sort {
  flex: none; position: relative; width: 152px; height: 42px; padding: 0 0 0 33px; border: 2px solid var(--br-line); border-radius: 3px;   /* PSD Layer 15: 2px 선 */
  background: rgba(27, 22, 18, .5); cursor: pointer; text-align: left;
  font-family: var(--f-sans); font-weight: 500; font-size: 16px; line-height: 16px; letter-spacing: .05em; color: var(--gold);
  transition: border-color .2s;
}
.cat-sort img { position: absolute; left: 109px; top: 15px; width: 14px; height: 9px; }
.cat-sort:hover { border-color: var(--gold); }

/* 제품 그리드: 넓으면 4개, PSD(1440)는 3개, 좁으면 2개 — 줄이 바뀔 때 카드가 새 자리로 미끄러지듯 이동(sub.js) */
.cat-grid { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@media (min-width: 1560px) { .cat-grid { --cols: 4; } }
@media (max-width: 900px)  { .cat-grid { --cols: 2; gap: 10px; } }

/* 분류 체크박스 (카테고리 사진 파일명의 분류) — '전체 N건' 줄과 그리드 사이 */
.cat-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; width: calc(100% - var(--page-gutter) * 2); max-width: 1900px; margin: 6px auto 0; }   /* "전체 N건" 글자 아래 ~ 체크박스 = 체크박스 ~ 그리드 = 21px */
.cat-filter[hidden] { display: none; }
.cat-filter + .cat-grid { margin-top: 21px; }
/* 전체보기: 체크 초기화 — 태그 바 카테고리 버튼과 같은 모양·크기 (90 × 25, 골드 1px)
   아무것도 체크 안 했을 땐 폭 0으로 숨어 있다가, 체크하는 순간 폭이 열리며 스윽 나타나 체크박스들을 오른쪽으로 밀어냄 */
.cat-all { display: inline-flex; flex: none; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap;
  width: 0; height: 25px; margin-right: -28px; padding: 0; opacity: 0; pointer-events: none; transform: translateX(-10px);
  border: 0 solid transparent; border-radius: 2px; background: none; cursor: pointer;
  font-family: var(--f-sans); font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: .05em; color: var(--gold);
  transition: width .55s cubic-bezier(.2, .8, .2, 1), margin-right .55s cubic-bezier(.2, .8, .2, 1), opacity .35s ease .05s, transform .55s cubic-bezier(.2, .8, .2, 1), border-color .3s, color .2s; }
.cat-all.is-on { width: 90px; margin-right: 0; opacity: 1; pointer-events: auto; transform: none; border-width: 1px; border-color: var(--gold); }
.cat-all.is-on:hover { border-color: var(--cream); color: var(--cream); }
@media (max-width: 700px) { .cat-all { margin-right: -20px; } .cat-all.is-on { margin-right: 0; } }
@media (prefers-reduced-motion: reduce) { .cat-all { transition: none; } }
.cat-chk { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
  font-family: var(--f-sans); font-weight: 500; font-size: 13px; line-height: 1; letter-spacing: .03em; color: var(--cream); }
.cat-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-chk i { flex: none; position: relative; width: 18px; height: 18px; border: 2px solid var(--br-line); border-radius: 3px; background: rgba(12, 10, 8, .5); transition: border-color .2s, background .2s; }
.cat-chk i::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 9px; border: solid #14110d; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity .15s; }
.cat-chk small { font-size: 12px; font-weight: 400; color: var(--gold); opacity: .8; }
.cat-chk:hover i { border-color: var(--gold); }
.cat-chk input:checked + i { border-color: var(--gold); background: linear-gradient(180deg, #bc9572, #dcb692); }
.cat-chk input:checked + i::after { opacity: 1; }
.cat-chk input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 700px) { .cat-filter { gap: 10px 20px; margin-top: 9px; } .cat-filter + .cat-grid { margin-top: 18px; } .cat-chk { font-size: 11.5px; } }

/* 카탈로그 배너 (PSD Catalog_Grid_Banner_01~05, 434 × 320 기준)
   --p = 배너 폭 / 434 → PSD 숫자 × --p 로 어떤 칸 크기에서도 같은 비율 */
.cc {
  position: relative; display: block; aspect-ratio: 434 / 320; overflow: clip; container-type: inline-size;
  background: var(--br-0); color: var(--cream);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .5s;
}
.cc > *, .cc-in > * { --p: calc(100cqw / 434); }
.cc-in { position: absolute; inset: 0; }
/* 사진: 스마트 오브젝트 위치·크기 그대로 (배너 밖은 잘림) */
.cc-img {
  position: absolute; left: calc(var(--x) * var(--p)); top: calc(var(--y) * var(--p));
  width: calc(var(--w) * var(--p)); height: calc(var(--h) * var(--p));
  background: center / 100% 100% no-repeat; transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
/* 아래쪽 그림자 (PSD Shadow 레이어 그대로: 위 45 ~ 아래 끝) */
.cc-shadow { position: absolute; left: 0; right: 0; top: calc(45 * var(--p)); bottom: 0; background: url("../images/sub/card_shadow.png") 0 0 / 100% 100% no-repeat; pointer-events: none; }
/* 테두리: 레이어 효과 획 2px 안쪽, #d5b693 */
.cc::before { content: ""; position: absolute; z-index: 3; inset: 0; border: 2px solid var(--br-line); pointer-events: none; transition: border-color .35s; }
.cc-in > p { position: absolute; left: calc(39 * var(--p)); margin: 0; white-space: nowrap; }
/* 영문 카테고리: Pretendard Medium 18 / 자간 50 / 모두 대문자 / #d5b693 (기준선 174.7) */
.cc-en { top: calc(160 * var(--p)); font-family: var(--f-sans); font-weight: 500; font-size: calc(18 * var(--p)); line-height: calc(18 * var(--p)); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
/* 프로젝트명: 나눔명조 26 / 자간 -30 / #efe8de (기준선 206.7) */
.cc-title { top: calc(188 * var(--p)); font-family: var(--f-serif); font-weight: 400; font-size: calc(26 * var(--p)); line-height: calc(26 * var(--p)); letter-spacing: -.03em; color: var(--cream); }
/* 분류 | 지역: Pretendard Medium 17 / 자간 0 / #d5b693, 세로선은 글자 끝 +20, 지역은 선 +21 (기준선 242.7) */
.cc-meta { top: calc(228 * var(--p)); display: flex; align-items: center; height: calc(17 * var(--p)); font-family: var(--f-sans); font-weight: 500; font-size: calc(17 * var(--p)); line-height: 1; letter-spacing: 0; color: var(--gold); }
.cc-meta i { width: 1px; height: calc(15 * var(--p)); margin: 0 calc(20 * var(--p)) 0 calc(20 * var(--p)); background: var(--gold); }
.cc-meta .loc { text-transform: uppercase; }
/* 버튼 2개 (175 × 40, 둥근 모서리 3, 안쪽 획 2px 50%) — 카테고리가 바뀌어도 고정 */
.cc-btns { position: absolute; z-index: 2; left: calc(37 * var(--p)); top: calc(263 * var(--p)); display: flex; gap: calc(10 * var(--p)); }
.cc-b {
  display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--p));
  width: calc(175 * var(--p)); height: calc(40 * var(--p)); border-radius: 3px;
  font-family: var(--f-sans); font-weight: 500; font-size: calc(15 * var(--p)); line-height: 1; letter-spacing: .05em; color: var(--gold); white-space: nowrap;
  transition: filter .25s, box-shadow .25s;
}
.cc-b img { width: auto; height: calc(16 * var(--p)); flex: none; }
.cc-b2 img { height: calc(17 * var(--p)); }
.cc-b1 { background: linear-gradient(90deg, #382d22, #14110d); box-shadow: inset 0 0 0 2px rgba(90, 76, 61, .5); }
.cc-b2 { background: #0e0b07; box-shadow: inset 0 0 0 2px rgba(213, 182, 147, .5); }
.cc-b:hover { filter: brightness(1.25); box-shadow: inset 0 0 0 2px rgba(213, 182, 147, .9); }
/* 기본: 사진은 켜진 상태, 테두리만 PSD의 꺼진 색(#5a4c3d)
   마우스를 올린 배너 → 테두리 골드 + 살짝 커짐, 나머지 배너는 사진·글자가 톤 다운 (버튼은 항상 켜진 상태 그대로) */
.cc-in { transition: filter .5s; }
.cat-grid:hover .cc .cc-in { filter: saturate(.55) brightness(.72); }
.cat-grid .cc:hover { z-index: 3; transform: scale(1.035); }
.cat-grid .cc:hover .cc-in { filter: none; }
.cc:hover::before { border-color: var(--gold); }
.cc:hover .cc-img { transform: scale(1.04); }
@media (hover: none) { .cat-grid:hover .cc .cc-in { filter: none; } }
/* 배너가 좁을 때(모바일 2칸 등): 비율로만 줄이면 글자가 읽히지 않아 — 글자는 최소 크기를 두고 아래에서부터 차곡차곡 쌓음 */
@container (max-width: 300px) {
  .cc-in { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 8px 38px 10px; }
  .cc-in > p { position: relative; left: 0; top: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .cc-en { font-size: 8.5px; line-height: 1.1; }
  .cc-title { margin-top: 2px; font-size: 12.5px; line-height: 1.25; }
  .cc-meta { margin-top: 3px; height: auto; font-size: 8.5px; }
  .cc-meta i { height: 8px; margin: 0 5px; }
  .cc-btns { left: 8px; right: 8px; top: auto; bottom: 8px; gap: 4px; }
  .cc-b { flex: 1 1 0; width: auto; height: 23px; gap: 3px; font-size: 8.5px; letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(213, 182, 147, .4); }
  .cc-b img { height: 9px; }
}


/* 페이지 번호: 197~1243 × 2108~2136 */
.cat-page { display: flex; align-items: center; justify-content: center; width: min(1046px, calc(100% - var(--page-gutter) * 2)); height: 28px; margin: 34px auto 0; }
.cat-pline { flex: 1 1 350px; height: 1px; background: var(--br-line); position: relative; top: -1px; }   /* PSD y 2121 */
.cat-parrow { flex: none; display: grid; place-items: center; width: 9px; height: 28px; margin: 0 30px 0 50px; padding: 0; border: 0; background: none; cursor: pointer; }
.cat-parrow.next { margin: 0 50px 0 30px; }
.cat-parrow img { width: 9px; height: 14px; transition: transform .2s; }
.cat-parrow.prev:hover img { transform: translateX(-3px); }
.cat-parrow.next:hover img { transform: translateX(3px); }
.cat-pnums { flex: none; display: flex; gap: 7px; }
.cat-pnums button {
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
  font-family: var(--f-sans); font-weight: 500; font-size: 13px; line-height: 28px; letter-spacing: 0; color: var(--cream);
  transition: color .2s, background .2s;
}
.cat-pnums button:hover { color: var(--gold); }
.cat-pnums button.on { background: linear-gradient(180deg, #bc9572, #dcb692); color: #12161b; font-weight: 700; }

/* 태그 바 (PSD CTA_Sorting 510×45, 가운데, 모서리 둥근 판 #0c0a08 80%)
   처음엔 숨김 → 스크롤해서 히어로 카테고리 버튼이 헤더에 가려지는 순간 헤더 바로 아래에 스윽 나타나 따라다님,
   다시 올려 카테고리 버튼이 보이면 스윽 사라짐 (sub.js) */
.sub .tags-slot { position: absolute; left: 0; top: 0; width: 0; height: 0; margin: 0; }
.sub .service-tags {
  position: fixed; z-index: 45; left: 50%; top: var(--hdr-h, 75px);
  width: 510px; height: 45px; padding: 0 20px 0 10px; border-radius: 10px;
  justify-content: flex-start; overflow: visible;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1), visibility 0s linear .55s;
}
.sub .service-tags.is-shown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1), visibility 0s;
}
@media (prefers-reduced-motion: reduce) { .sub .service-tags, .sub .service-tags.is-shown { transition: none; } }
.sub .service-tags a[data-cat] { cursor: pointer; white-space: nowrap; }

/* ════════════════════════════════════════════════════
   반응형
   ════════════════════════════════════════════════════ */
@media (max-width: 1300px) {


}
/* 태블릿(≤1100): 카테고리 → 타이틀 → 사진 → 정보 상자 순서로 위에서 아래로 */
}
@media (max-width: 700px) {
  .sh-stage { margin-top: -6px; }   /* 사진을 제목 쪽으로 붙임 */
  .sh-menu { height: 36px; }
  .sh-menu button { font-size: 13px; line-height: 13px; letter-spacing: 0; }
  .sh-title { padding-top: 36px; }
  .sh-title h1 { font-size: 30px; line-height: 40px; margin-top: 20px; }
  .sh-desc { font-size: 16px; line-height: 24px; margin-top: 20px; white-space: normal; }

  .sh-ptitle { font-size: 22px; line-height: 30px; }
  .sh-navi { width: 200px; }
  .sh-bar { width: 140px; }
  .cat { padding-top: 24px; }
  .cat-head { height: 38px; }
  .cat-line { margin: 0 16px; }
  .cat-sort { width: 112px; height: 38px; padding-left: 18px; font-size: 14px; }
  .cat-sort img { left: 81px; top: 13px; }
  .cat-grid { margin-top: 22px; }
  .cat-parrow { margin: 0 18px 0 22px; }
  .cat-parrow.next { margin: 0 22px 0 18px; }
  .cat-pnums { gap: 2px; }
}
@media (max-width: 420px) {
  .sh-menu button { font-size: 12px; letter-spacing: -.02em; }
}

/* 터치 기기: 히어로 층은 스크롤로 움직이지 않으므로 별도 레이어 해제 (2026-11-19) */
@media (hover: none) { .sh-l { will-change: auto; } }

/* ════════════════════════════════════════════════════
   모바일 히어로 (≤700) — 2026-11-19 모바일 시안 구도
   시안 폭 485 기준 좌표를 화면 폭에 비례(--u = 100vw / 485)해 배치.
   간격·글자 비율은 PC PSD 기조: 라벨→제목 30, 제목 40/50(행간 1.25), 설명 18/24, 골드 선 2px,
   정보 상자 사선 기울기(0.42)·반투명(#2c2826 90%)은 PC 히어로와 동일
   ════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* 시안 폭 485 기준 비례 — 세로 태블릿에서 너무 커지지 않게 600px 폭 크기까지만 */
  .sh { --u: calc(min(100vw, 600px) / 485); height: calc(var(--u) * 825); padding: 0; }
  .sh .sh-in { padding-top: 30px; }
  .sh .sh-menu { position: relative; top: auto; left: auto; right: auto; margin: 0 var(--edge); }
  /* 모바일: 메뉴 글씨를 두 글자로 줄이고(주거/상업/종교/소품/조형) 크기 17→15, 칸 안에 여백이 생기게 */
  .sh .sh-menu button { font-size: 15px; line-height: 15px; letter-spacing: .04em; }
  .sh .sh-menu .m-hide { display: none; }

  /* 타이틀 묶음: 사진 위에 겹쳐 놓음 */
  .sh .sh-title { position: absolute; inset: 0; width: auto; height: auto; padding: 0; z-index: 2; pointer-events: none; }
  .sh .sh-title > * { position: absolute; margin: 0; left: calc(var(--u) * 41); right: auto; top: auto; }
  .sh .sh-eyebrow { top: calc(var(--u) * 142); font-size: calc(var(--u) * 12.5); line-height: 1; letter-spacing: .27em; }
  /* 카테고리 중 가장 긴 제목(소품·조형)도 화면 안에 들어오도록 36→31.5 (모든 카테고리 같은 크기) */
  .sh .sh-title h1 { top: calc(var(--u) * 175); font-size: calc(var(--u) * 31.5); line-height: calc(var(--u) * 42); letter-spacing: .07em; white-space: nowrap; }
  .sh .sh-desc { top: calc(var(--u) * 279); font-size: calc(var(--u) * 16.2); line-height: calc(var(--u) * 21.6); font-weight: 200; letter-spacing: .05em; white-space: nowrap; }   /* PSD: ExtraLight 18 × 0.9 */
  .sh .sh-line { top: calc(var(--u) * 367); width: calc(var(--u) * 45); height: 2px; margin: 0; }
  .sh .sh-big {   /* 모바일 PSD: PC 글자의 0.9배(기준선 y 406.4, x 228.7) — 오른쪽 사진·사각 층과 같이 오른쪽 기준 */
    left: calc(100% - var(--sh-z, 1) * 237.6px); right: auto; top: calc(var(--u) * 364.2); text-align: left;
    font-size: calc(var(--u) * 54.02); line-height: calc(var(--u) * 49.52);
  }

  /* 사진 무대: PC 히어로와 같은 층 구성(사선·왼쪽 흐림 마스크 사진 + 반투명 사각 2장)을 그대로 두고 크기만 키움
     — 시안 구도: PC 틀 x 442부터 1.086배(시안 485 기준) (배율·위치는 sub.js) */
  .sh .sh-stage { position: absolute; left: 0; right: 0; top: 0; margin: 0; width: auto; bottom: 0; height: auto; overflow: clip; }   /* 히어로 바닥까지 꽉 채움 (사파리에서 높이 계산이 짧게 나와 아래가 떠 보이던 문제) */
  .sh .sh-frame { left: calc((var(--sh-fx, 0) - var(--sh-x0, 442)) * 1px); top: calc(var(--sh-y0, -10) * -1px); zoom: var(--sh-z, 1); }
  /* 히어로가 길어진 만큼 사진·마스크도 같은 기울기로 아래까지 (원본 사진 전체 사용) */
  .sh .sh-pic { height: 741px; }
  /* 모바일은 사진 영역이 아래로 더 길게 보임 → 사진이 짧은 카테고리는 바닥까지 닿도록 비율 유지한 채 살짝 키움 */
  .sh .sh-slide { height: max(calc(var(--h) * 1px), calc(912px - var(--y) * 1px)); background-size: cover; }
  /* 모바일 PSD: Hero_Picture 그룹 불투명도 50% */
  .sh .sh-frame { opacity: .5; }
  /* 모바일 PSD Hero_BG_Texture: 질감 레이어를 시안 485 기준 2306 × 921 크기, x -482 에 그대로 */
  .sh .sh-tex { top: 0; bottom: 0; background: var(--br-0) url("../images/sub/hero_tex_m.jpg") calc(var(--u) * -482) 0 / calc(var(--u) * 2306) calc(var(--u) * 921) no-repeat; }

  /* 정보 상자: PSD Hero_Info_BG 이미지를 그대로 비율 유지해 축소 (492×404 → 시안 485 기준 432.3×355, 히어로 바닥·오른쪽에 붙임) */
  .sh .sh-info {
    position: absolute; left: auto; right: calc(var(--u) * -18.5); top: auto; bottom: calc(var(--u) * -2);   /* 모바일 PSD: x 68.5 · y 470 · 435 × 357 */
    width: calc(var(--u) * 435); height: calc(var(--u) * 357); padding: 0; display: block;
  }
  .sh .sh-info-bg { background: url("../images/sub/hero_info.png") 0 0 / 100% 100% no-repeat; opacity: .9; }
  .sh .sh-info-bg::after { display: none; }
  .sh .sh-info > :not(.sh-info-bg) { position: absolute; margin: 0; }
  .sh .sh-cat-en { left: calc(var(--u) * 167.5); top: calc(var(--u) * 34); font-size: calc(var(--u) * 13); line-height: 1; letter-spacing: .23em; }
  .sh .sh-cat-navi { left: calc(var(--u) * 167.5); top: calc(var(--u) * 52); width: calc(var(--u) * 177); }
  .sh .sh-cat-navi i { width: 20%; }
  .sh .sh-ptitle { left: calc(var(--u) * 140.5); top: calc(var(--u) * 77); font-size: calc(var(--u) * 22.5); line-height: calc(var(--u) * 30); letter-spacing: .005em; white-space: nowrap; }
  .sh .sh-meta { left: calc(var(--u) * 141.5); top: calc(var(--u) * 114); height: auto; font-size: calc(var(--u) * 14); line-height: 1; }
  .sh .sh-meta .loc { font-size: calc(var(--u) * 15.5); }
  .sh .sh-meta i { height: calc(var(--u) * 14); margin: 0 calc(var(--u) * 17); }
  .sh .sh-pdesc { left: calc(var(--u) * 141.5); top: calc(var(--u) * 155); font-size: calc(var(--u) * 14.5); line-height: calc(var(--u) * 22); white-space: nowrap; }
  .sh .sh-view {
    left: calc(var(--u) * 141.5); top: calc(var(--u) * 224); display: inline-block; width: auto; height: auto; padding-bottom: calc(var(--u) * 2.5);
    font-size: calc(var(--u) * 13.5); line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  }
  .sh .sh-navi { left: calc(var(--u) * 87.5); top: calc(var(--u) * 309); width: calc(var(--u) * 212); height: calc(var(--u) * 14); }
  .sh .sh-count { top: 50%; transform: translateY(-50%); font-size: calc(var(--u) * 11); }
  .sh .sh-bar { left: calc(var(--u) * 54); top: 50%; margin-top: -1.5px; width: calc(var(--u) * 158); }
  .sh .sh-arrows { left: calc(var(--u) * 314.5); top: calc(var(--u) * 300); gap: calc(var(--u) * 6); }
  .sh .sh-arrows button { width: calc(var(--u) * 32); height: calc(var(--u) * 29); }
}

/* 크타(태그 바) 모바일: 서브페이지에서는 모바일에서도 보임 — 화면 폭에 맞춘 둥근 판, 이름은 두 글자로 (상단 메뉴와 동일) */
@media (max-width: 700px) {
  .sub .tags-slot { display: block !important; }
  .sub .service-tags {
    width: min(510px, calc(100vw - 2 * var(--page-gutter))); height: 42px;
    padding: 0 10px 0 8px; gap: 6px;
  }
  .sub .service-tags a[data-cat] { flex: 1 1 0; width: auto; min-width: 0; height: 26px; font-size: 12px; letter-spacing: .02em; }
  .sub .service-tags .m-hide { display: none; }
  .sub .service-tags .tag-search { flex: 0 0 auto; width: 20px; height: 20px; margin-left: 4px; }
  .sub .service-tags .tag-search img { width: 20px; height: 20px; }
}

/* ── 브로슈어 팝업 ── 원본 크기 이미지(화면보다 넓으면 화면 폭에 맞춤)를 세로 스크롤, 닫기 버튼은 오른쪽 견적 CTA 자리에 고정 */
.bro { position: fixed; inset: 0; z-index: 120; background: rgba(12, 10, 8, .9); }
.bro[hidden] { display: none; }
.bro-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.bro-img { display: block; max-width: 100%; height: auto; margin: 0 auto; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
.bro-close { z-index: 121; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bro-close:focus { outline: none; }
.bro-close:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }   /* 키보드로 이동할 때만 표시 */
/* 휴대폰·태블릿: 누른 뒤 남는 hover·초점 때문에 한글로 바뀌어 보이지 않게 항상 영문 */
@media (hover: none) { .bro-close .en { opacity: 1 !important; } .bro-close .ko { opacity: 0 !important; } .bro-close .quote-icon { transform: none !important; } }
.bro-close .quote-icon { transition: transform .25s; }
.bro-close:hover .quote-icon { transform: rotate(90deg); }
@media (max-width: 700px) { .bro .bro-close { display: flex; top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); transform: none; } }
html.bro-open, html.bro-open body { overflow: hidden; }

/* ════════════════════════════════════════════════════
   배너 크게 보기 (임시 테스트) — 어두운 막 + 가운데 2.5배 틀 (sub.js)
   ════════════════════════════════════════════════════ */
.lb { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: rgba(12, 10, 8, .82); cursor: zoom-out; }
html.lb-open { overflow: hidden; }
.lb-frame { position: relative; overflow: hidden; background: var(--br-0); transform-origin: 0 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.lb-frame::after { content: ""; position: absolute; z-index: 4; inset: 0; border: 2px solid var(--gold); pointer-events: none; }   /* 배너 온 상태 테두리 */
.lb-img { position: absolute; background: center / cover no-repeat; }
.lb-shadow { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; background: url("../images/sub/card_shadow.png") 0 0 / 100% 100% no-repeat; pointer-events: none; }
/* 글자 3줄·버튼: 배너와 같은 크기 그대로 왼쪽 아래에 */
.lb-card { position: absolute !important; z-index: 2; left: 0; bottom: 0; background: none !important; overflow: visible !important; }
.lb-card::before { display: none; }
.lb-card .cc-shadow { display: none; }
.lb-card .cc-in { filter: none !important; }
.lb-card .cc-b { cursor: pointer; }
/* 좌우 화살표: 제품 도감과 같은 모양 */
.lb-arrow {
  position: absolute; z-index: 3; top: 50%; width: 40px; height: 64px; margin-top: -32px; padding: 0;
  border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity .2s, transform .2s;
}
.lb-arrow img { width: 19px; height: 45px; }
.lb-arrow:hover { opacity: .7; }
.lb-arrow.prev { left: 30px; } .lb-arrow.next { right: 30px; }
.lb-arrow.prev:hover { transform: translateX(-3px); } .lb-arrow.next:hover { transform: translateX(3px); }
@media (max-width: 700px) { .lb-arrow.prev { left: 4px; } .lb-arrow.next { right: 4px; } .lb-arrow img { width: 13px; height: 31px; } }
.cat-grid .cc { cursor: zoom-in; }
.cat-grid .cc .cc-b { cursor: pointer; }
/* 휠 확대·축소: 사진만 커지고 글자·버튼·화살표·테두리는 그대로 */
.lb-pan { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .18s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.lb-frame { cursor: zoom-out; }   /* 팝업 기본(축소 상태): 돋보기 마이너스 — 누르면 닫힘 */
/* 휠로 확대한 상태: 스크롤 휠 + 상하좌우 화살표 아이콘 (마우스를 움직이면 사진이 따라 움직인다는 표시), 지원 안 하는 브라우저는 이동 아이콘 */
.lb-frame.is-zoomed { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cg%20stroke%3D%22%23000%22%20stroke-width%3D%223.2%22%20opacity%3D%22.55%22%3E%3Crect%20x%3D%2211.5%22%20y%3D%229%22%20width%3D%229%22%20height%3D%2214%22%20rx%3D%224.5%22/%3E%3Cpath%20d%3D%22M16%2012v3M16%201.8l-2.6%202.6M16%201.8l2.6%202.6M16%2030.2l-2.6-2.6M16%2030.2l2.6-2.6M1.8%2016l2.6-2.6M1.8%2016l2.6%202.6M30.2%2016l-2.6-2.6M30.2%2016l-2.6%202.6%22/%3E%3C/g%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-width%3D%221.6%22%3E%3Crect%20x%3D%2211.5%22%20y%3D%229%22%20width%3D%229%22%20height%3D%2214%22%20rx%3D%224.5%22/%3E%3Cpath%20d%3D%22M16%2012v3M16%201.8l-2.6%202.6M16%201.8l2.6%202.6M16%2030.2l-2.6-2.6M16%2030.2l2.6-2.6M1.8%2016l2.6-2.6M1.8%2016l2.6%202.6M30.2%2016l-2.6-2.6M30.2%2016l-2.6%202.6%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 16 16, move; }
