/* HISHAND Homepage — PSD(Hompage_Dark_Main.psd, 1440px) 기준
   ─────────────────────────────────────────────────────────
   자간: 포토샵 값 ÷ 1000 = em  (예: 270 → .27em)
   행간: 포토샵 값(pt)을 px로 그대로 사용 (72ppi 문서)
   투명도: 포토샵 불투명도 % ÷ 100 (예: 50% → .5)
*/

/* ── 폰트 ───────────────────────────────────────────── */
@font-face {
  font-family: "Pretendard Variable";
  src: url("../font/PretendardVariable.subset.woff2") format("woff2-variations"),
       url("../font/PretendardVariable.subset.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}
@font-face {
  font-family: "Nanum Myeongjo";
  src: url("../font/NanumMyeongjo.subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "NEXON Lv2 Gothic";
  src: url("../font/NEXONLv2Gothic-Light.subset.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
/* Mongolian Baiti: Windows 기본 폰트(MS 라이선스)라 파일은 서버에 올리지 않고
   방문자 PC에 설치된 것만 사용. 없으면 Cormorant Garamond로 대체 */
@font-face {
  font-family: "Mongolian Baiti";
  src: local("Mongolian Baiti"), local("MongolianBaiti");
}

:root {
  /* ── 색상 (PSD) ── */
  --cream: #efe8de;          /* 기본 텍스트 */
  --gold: #d5b693;           /* 포인트 */
  --ink: #2a3038;            /* 크림 버튼 위 글자 */
  --bg-header: #12161b;      /* 헤더 */
  --bg-about: #07080c;       /* About 바탕(이미지 로딩 전) */
  --bg-portfolio: #12161b;   /* Portfolio 바탕 (PSD: 18,22,27) */
  --bg: #12161b;
  --bg-soft: #181d23;
  --text: var(--cream);
  --accent: var(--gold);
  --muted: rgba(239, 232, 222, .6);
  --line: rgba(239, 232, 222, .18);

  /* ── 폰트 패밀리 ── */
  --f-title: "Mongolian Baiti", "Cormorant Garamond", serif;   /* 히어로 영문 타이틀 */
  --f-serif: "Nanum Myeongjo", "NanumMyeongjoOTF", serif;      /* 한글 제목·히어로 문구 */
  --f-sans: "Pretendard Variable", "Pretendard", sans-serif;   /* 본문·버튼 */
  --f-label: "NEXON Lv2 Gothic", "Pretendard Variable", sans-serif; /* 작은 영문 라벨·메뉴 */

  /* ── 레이아웃 ── */
  --content-width: 1330px;                    /* 1440 - 좌우 55 */
  --page-gutter: clamp(20px, 3.82vw, 55px);   /* 1440px에서 55px */
  --edge: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));

  /* ── 히어로 사이드 라벨 (PSD: Pretendard Thin 75 / 자간 -50 / 행간 65 / 세로 90%) ── */
  --side-font: var(--f-sans);
  --side-weight: 100;
  --side-size: clamp(44px, 5.21vw, 75px);
  --side-size-mobile: 34px;
  --side-leading: .8667em;                    /* 65 ÷ 75 */
  --side-tracking: -.036em;                   /* PSD -50, 렌더 폭 보정 */
  --side-scale-y: .9;
  --side-off: rgba(213, 182, 147, .5);        /* 골드 50% */
  --side-on: rgba(230, 215, 197, .75);        /* 골드 50% 위에 크림 50%를 겹친 결과 */

  /* ── 슬라이드 시간 (배경·라벨·번호·바 공통) ── */
  --slide-cycle: 16.4s;

  /* ── 히어로 문구 두께 보정 (윈도우 크롬이 포토샵 '매끄럽게'보다 굵게 그림) ──
     굵기 0 = 보정 없음 / 숫자를 키울수록 가늘어짐 (.2px ~ .6px 권장) */
  --copy-thin: .25px;
  --copy-thin-color: rgba(18, 22, 27, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 75px; }  /* 고정 헤더 높이만큼 앵커 위치 보정 */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 200;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.section-wrap { width: min(100% - var(--page-gutter) * 2, var(--content-width)); margin-inline: auto; }

/* 공통: 작은 영문 라벨 (NEXON Light 11 / 자간 270 / 골드 / 대문자) */
.eyebrow {
  font-family: var(--f-label); font-weight: 300;
  font-size: 11px; line-height: 11px; letter-spacing: .27em;
  color: var(--gold); text-transform: uppercase;
}
/* 공통: 한글 제목 (나눔명조 40 / 행간 50 / 자간 50) */
h2 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: 40px; line-height: 50px; letter-spacing: .05em; color: var(--cream);
}
/* 공통: 텍스트 링크 (Pretendard Medium 18 / 골드 / 밑줄 1px) */
.text-link {
  display: inline-block; padding-bottom: 3px; border-bottom: 1px solid var(--gold);
  font-family: var(--f-sans); font-weight: 500; font-size: 18px; line-height: 20px;
  letter-spacing: .05em; color: var(--gold); transition: opacity .2s;
}
.text-link:hover { opacity: .75; }

/* 공통 버튼 (160 × 35, Pretendard 13 / 자간 50) */
.button {
  display: inline-flex; width: 160px; height: 35px; align-items: center; justify-content: center;
  border-radius: 5px; font-family: var(--f-sans); font-size: 13px;   /* PSD 버튼 라운드 5px */ line-height: 1; letter-spacing: .05em;
  transition: background .2s, color .2s, border-color .2s;
}
.button-fill { background: var(--cream); color: var(--ink); font-weight: 700; }
.button-fill:hover { background: var(--gold); }
.button-stroke { border: 1px solid var(--cream); color: var(--cream); font-weight: 500; }
.button-stroke:hover { background: rgba(239, 232, 222, .12); }

/* ── Header (높이 75 / #12161b) ───────────────────────── */
.site-header {
  position: fixed; z-index: 50; top: 0; left: 0; width: 100%; height: 75px;   /* 상단 고정 */
  display: flex; align-items: center;
  padding: 0 var(--edge); background: var(--bg-header);
}
.logo { display: flex; flex: 0 0 auto; align-items: center; gap: 20px; }
.logo-icon { width: 27px; height: 37px; }
.logo-text { width: 170px; height: 19px; }
/* 메뉴: 화면 가운데 정렬 (로고·우측 버튼과 무관) */
.main-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 38px; }
.main-nav a {
  font-family: var(--f-label); font-weight: 300; font-size: 11px; line-height: 11px;
  letter-spacing: .17em; text-transform: uppercase; color: var(--gold); transition: color .2s;
}
.main-nav a.is-active, .main-nav a:hover { color: var(--cream); }
.header-lang { position: relative; top: 1px; }
/* 영문·한글을 같은 칸에 겹쳐 두고, 마우스를 올리면 한글로 교체 (폭이 흔들리지 않게 넓은 쪽 기준) */
.main-nav a { display: inline-grid; justify-items: center; white-space: nowrap; }
.main-nav a > span { grid-area: 1 / 1; transition: opacity .2s; }
.main-nav a .en { position: relative; top: 1px; }
.main-nav a .ko { opacity: 0; font-size: 12px; letter-spacing: .08em; }   /* 한글은 영문보다 1px 크게 */
.main-nav a:hover .en, .main-nav a:focus-visible .en { opacity: 0; }
.main-nav a:hover .ko, .main-nav a:focus-visible .ko { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 50px; margin-left: auto; }
.header-lang {
  font-family: var(--f-label); font-weight: 500; font-size: 11px; line-height: 11px;
  letter-spacing: .08em; color: var(--gold); white-space: nowrap;
}
.menu-toggle { display: block; width: 30px; height: 19px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle img { width: 30px; height: 19px; }

/* ── Hero (1440 × 900) ───────────────────────────────── */
.hero {
  /* 화면이 좁아질수록 높이·타이틀 위치·라벨 위치가 함께 줄어듦 (1440px 이상 = PSD 그대로) */
  --hero-h: clamp(720px, 62.5vw, 900px);
  position: relative; height: var(--hero-h); overflow: hidden; background: #1b1c1c;
}
.hero-slider { position: absolute; inset: 0; overflow: hidden; }
.hero-track {
  display: flex; width: 500%; height: 100%;
  animation: heroSlide var(--slide-cycle) infinite; will-change: transform;
}
.hero-slide { flex: 0 0 20%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; }
.slide-1 { background-image: url("../images/Hero_BG_Residential.jpg"); }
.slide-2 { background-image: url("../images/Hero_BG_Commercial.jpg"); }
.slide-3 { background-image: url("../images/Hero_BG_Object.jpg"); }
.slide-4 { background-image: url("../images/Hero_BG_Sculpture.jpg"); }

@keyframes heroSlide {
  0%, 18.29%  { transform: translateX(0); }
  25%, 43.29% { transform: translateX(-20%); }
  50%, 68.29% { transform: translateX(-40%); }
  75%, 93.29% { transform: translateX(-60%); }
  100%        { transform: translateX(-80%); }
}

/* 타이틀 묶음: PSD 좌상단 (55, 270) */
.hero-content { position: absolute; z-index: 2; top: calc(var(--hero-h) * .3); left: var(--edge); }
.hero h1 {
  margin: 25px 0 0 -4px;
  font-family: var(--f-title); font-weight: 400; font-size: clamp(40px, 5.5vw, 60px); line-height: 1.1667;
  letter-spacing: .05em; text-transform: uppercase; color: var(--cream); white-space: nowrap;
  width: max-content;
}
.hero h1 .gold { color: var(--gold); }
.hero h1 .w { display: inline-block; }   /* 단어 단위로 전환 애니메이션 */
.m-br { display: none; }                 /* 모바일에서만 SHAPING / POSSIBILITIES 줄바꿈 */
.hero-copy {
  width: max-content; max-width: 100%;
  margin-top: 44px;
  font-family: var(--f-serif); font-size: 20px; line-height: 20px; letter-spacing: .08em; color: var(--cream);
  -webkit-text-stroke: var(--copy-thin) var(--copy-thin-color);
}
.hero-buttons { display: flex; width: max-content; gap: 10px; margin-top: clamp(60px, calc(var(--hero-h) - 750px), 150px); }

/* 우측 키워드: 오른쪽 끝 1386, 마지막 줄 기준선 846 */
.hero-side-label {
  position: absolute; z-index: 2; right: calc(var(--edge) - 2px);
  bottom: clamp(48px, calc(48px + (1440px - 100vw) * .09), 96px);   /* 좁아질수록 위로 올라가 하단 진행 바와 안 겹침 */
  font-family: var(--side-font); font-weight: var(--side-weight);
  font-size: var(--side-size); line-height: var(--side-leading);
  letter-spacing: var(--side-tracking); text-align: right; text-transform: uppercase;
}
.hero-side-label span {
  display: block; color: var(--side-off);
  transform: scaleY(var(--side-scale-y)); transform-origin: right 80%;
  animation: labelOn var(--slide-cycle) infinite;
}
.hero-side-label span:nth-child(2), .hero-counter span:nth-child(2) { animation-delay: calc(var(--slide-cycle) * -.75); }
.hero-side-label span:nth-child(3), .hero-counter span:nth-child(3) { animation-delay: calc(var(--slide-cycle) * -.5); }
.hero-side-label span:nth-child(4), .hero-counter span:nth-child(4) { animation-delay: calc(var(--slide-cycle) * -.25); }

@keyframes labelOn {
  0%, 18.29%  { color: var(--side-on); }
  25%, 93.29% { color: var(--side-off); }
  100%        { color: var(--side-on); }
}

/* 하단 진행 바: 640 × 3, 가운데 / 바닥에서 55 */
.hero-navi {
  position: absolute; z-index: 2; left: 50%; bottom: 55px; width: 640px; height: 3px;
  transform: translateX(-50%); background: rgba(239, 232, 222, .3);
}
.hero-bar {
  position: absolute; top: 0; left: 0; width: 25%; height: 3px; background: var(--cream);
  animation: barMove var(--slide-cycle) infinite;
}
@keyframes barMove {
  0%, 18.29%  { transform: translateX(0); }
  25%, 43.29% { transform: translateX(100%); }
  50%, 68.29% { transform: translateX(200%); }
  75%, 93.29% { transform: translateX(300%); }
  100%        { transform: translateX(0); }
}
/* 슬라이드 번호: 바 왼쪽 16px */
.hero-counter {
  position: absolute; right: calc(100% + 16px); top: 50%; width: 46px; height: 11px; transform: translateY(-70%);
  font-family: var(--f-label); font-weight: 500; font-size: 11px; line-height: 11px;
  letter-spacing: .08em; color: var(--cream); white-space: nowrap;
}
.hero-counter span { position: absolute; right: 0; top: 0; opacity: 0; animation: counterOn var(--slide-cycle) infinite; }
@keyframes counterOn {
  0%, 18.29%  { opacity: 1; }
  25%, 93.29% { opacity: 0; }
  100%        { opacity: 1; }
}

/* ── About (높이 680) ───────────────────────────────── */
.about {
  position: relative; height: 680px;
  background: var(--bg-about) url("../images/About_BG.jpg") center bottom / cover no-repeat;   /* 아래 기준 고정: 가공 기계 사진이 항상 보이게 */
}
.about-copy { position: absolute; top: 90px; left: var(--edge); }
.about h2 { margin-top: 15px; }
.about-text { margin-top: 13px; font-size: 18px; line-height: 30px; font-weight: 200; letter-spacing: .035em; color: var(--cream); }
.about .text-link { margin-top: 157px; }   /* PSD: 글자 상단 1408 */

/* 공간·용도 태그 바: 0~555 × 45 / #12161b 80%
   평소엔 About 설명글과 '자세히 보기' 사이에 있고, 지나쳐 스크롤하면 화면 하단에 고정되어 따라다님 */
.tags-slot { height: 45px; margin: 67px 0 0 calc(var(--edge) * -1); }   /* 자세히 보기 아래 → 바 상단 1498 */
.service-tags {
  /* 회사소개 안 자리에서도 화면 왼쪽 끝 기준 (떠 있을 때와 같은 위치 — 넓은 화면에서 벌어지지 않게) */
  width: min(calc(var(--page-gutter) + 500px), 100vw); height: 45px;
  display: flex; align-items: center; gap: 10px; padding: 0 var(--page-gutter);
  background: rgba(18, 22, 27, .8);            /* PSD CTA_Sorting_BG: #12161b, 불투명도 80% (흐림 효과 없음) */
  overflow-x: auto; scrollbar-width: none;
}
.service-tags::-webkit-scrollbar { display: none; }
.service-tags.is-docked {
  position: fixed; z-index: 45; left: 0; bottom: var(--tags-dock-gap, 50px);   /* 화면 하단에서 50px 띄워 고정 (이동 애니메이션은 main.js) */
  /* 떠 있을 때는 화면 왼쪽 끝 기준 (넓은 화면에서도 버튼이 가운데로 밀려 들어가지 않게) — PSD 1440: 왼쪽 55 · 폭 555 */
  width: min(calc(var(--page-gutter) + 500px), 100vw); padding: 0 var(--page-gutter);
}
.service-tags a {
  display: inline-flex; flex: 0 0 auto; height: 25px; align-items: center; justify-content: center;
  border: 1px solid var(--gold); border-radius: 2px;
  font-family: var(--f-sans); font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: .05em;
  color: var(--gold); transition: color .2s, border-color .2s;
}
.service-tags a:nth-child(-n+3) { width: 90px; }
.service-tags a:nth-child(n+4):nth-child(-n+5) { width: 60px; }
.service-tags a.is-active, .service-tags a:hover { border-color: var(--cream); color: var(--cream); }
.service-tags .tag-search { width: 23px; height: 23px; margin-left: 17px; border: 0; }
.service-tags .tag-search img { width: 23px; height: 23px; }

/* ── Portfolio (높이 680 / #181d23) ───────────────────── */
.portfolio { height: 680px; padding-top: 90px; background: var(--bg-portfolio); overflow-x: clip; }
.section-heading h2 { margin-top: 15px; }
.section-description { margin-top: 13px; font-size: 18px; line-height: 30px; font-weight: 200; letter-spacing: .035em; color: var(--cream); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 41px; }
/* 카드: 평소 흑백 + 어둡게 → 마우스 오버 시 컬러·밝게 + 사진 중심 기준 10% 확대 */
.portfolio-card {
  --card-dim: grayscale(1) brightness(.85);
  --card-lit: grayscale(0) brightness(1.05);
  position: relative; z-index: 0; display: block; aspect-ratio: 322 / 360; min-width: 0;
  transform-origin: center; transition: transform .55s cubic-bezier(.22, .9, .3, 1);
}
.portfolio-card::before {
  position: absolute; inset: 0; z-index: -1; content: "";
  background: var(--card-img) center / cover no-repeat;
  filter: var(--card-dim); transition: filter .55s ease;
}
.portfolio-card:hover, .portfolio-card:focus-visible { z-index: 2; transform: scale(1.05); }
.portfolio-card:hover::before, .portfolio-card:focus-visible::before { filter: var(--card-lit); }
/* 휴대폰·태블릿(마우스 없음) 또는 모바일 폭: 누르면 바로 이동하니 처음부터 컬러(켜진 상태), 크기는 그대로 */
@media (hover: none), (max-width: 700px) {
  .portfolio-card::before { filter: var(--card-lit); }
  .portfolio-card:hover, .portfolio-card:focus-visible { transform: none; }
}
.thumb-1 { --card-img: url("../images/Spaces_Objects_01_bg.jpg"); }
.thumb-2 { --card-img: url("../images/Spaces_Objects_02_bg.jpg"); }
.thumb-3 { --card-img: url("../images/Spaces_Objects_03_bg.jpg"); }
.thumb-4 { --card-img: url("../images/Spaces_Objects_04_bg.jpg"); }
.portfolio-card h3 {
  position: absolute; left: 18px; bottom: 38px;
  font-family: var(--f-sans); font-weight: 200; font-size: 18px; line-height: 18px; letter-spacing: .05em; color: var(--cream);
}
.portfolio-card p {
  position: absolute; left: 19px; bottom: 16px;
  font-family: var(--f-label); font-weight: 300; font-size: 11px; line-height: 11px; letter-spacing: .27em;
  text-transform: uppercase; color: var(--gold);
}

/* ── 이하 PSD에 없는 섹션 (기존 구성 유지, 톤만 맞춤) ── */
.image-placeholder { position: relative; overflow: hidden; background-color: #282725; background-position: center; background-size: cover; }
.image-placeholder::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(0,0,0,.42), transparent 55%); }
.image-placeholder > span { position: absolute; z-index: 1; bottom: 14px; left: 16px; color: rgba(255,255,255,.75); font-size: 8px; letter-spacing: .12em; }

.feature-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 7%; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.feature-copy h2, .info-grid h2 { margin: 18px 0 18px; }
.feature-copy p:not(.eyebrow) { max-width: 420px; }
.feature-copy .text-link, .info-grid .text-link { margin-top: 30px; }
.feature-visual { min-height: 440px; background-image: url("../images/objects.jpg"); }

.info-strip { padding: clamp(60px, 8vw, 110px) 0; background: var(--bg-soft); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.info-grid > div + div { padding-left: 8%; border-left: 1px solid var(--line); }
.info-grid p:not(.eyebrow) { max-width: 420px; }

.contact-cta { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); text-align: center; }
.contact-cta h2 { margin: 18px 0 36px; }
.site-footer { padding: 30px var(--edge) 119px;   /* 하단 고정 태그 바(45px + 띄움 50px)에 가리지 않게 */ border-top: 1px solid var(--line); background: #0b0d0e; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top { padding-bottom: 28px; }
.footer-top p { font-family: var(--f-title); font-size: 14px; color: var(--muted); }
.footer-bottom { flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-bottom p, .footer-bottom address, .footer-links a { color: var(--muted); font-size: 11px; line-height: 1.6; font-style: normal; }
.footer-links { display: flex; gap: 18px; }


/* ── 우측 중앙 고정 견적 문의 (Cosentino 'Request a quote' 형식) ── */
.quote-cta {
  --quote-bg: #f2e36c;          /* 노랑 */
  --quote-bg-hover: #ead85a;
  --quote-ink: #1d1d1b;
  /* 세로 위치: 첫 화면의 'SHAPING POSSIBILITIES' 줄 높이에 고정 (main.js가 --quote-y 계산) */
  position: fixed; z-index: 46; right: 0; top: var(--quote-y, 50%); transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 202px; height: 45px; padding: 0 17px;                 /* 289×64에서 30% 축소 */
  border-radius: 5px 0 0 5px;                                  /* 왼쪽만 버튼과 같은 5px 라운드 */
  background: var(--quote-bg); color: var(--quote-ink);
  box-shadow: 0 4px 17px rgba(0, 0, 0, .18);
  font-family: var(--f-sans); font-weight: 600; font-size: 11.5px; line-height: 1; letter-spacing: 0;
  transition: background .25s, padding .25s;
}
.quote-cta:hover, .quote-cta:focus-visible { background: var(--quote-bg-hover); }
.quote-cta.at-ft { position: absolute; }   /* 푸터에 닿으면 원석 중간에 붙어 페이지와 함께 움직임 (footer.js) */
.quote-label { display: inline-grid; justify-items: end; }
.quote-label > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .2s; }
.quote-label .ko { opacity: 0; font-size: 12.5px; letter-spacing: .02em; }
.quote-cta:hover .en, .quote-cta:focus-visible .en { opacity: 0; }
.quote-cta:hover .ko, .quote-cta:focus-visible .ko { opacity: 1; }
.quote-icon { flex: 0 0 auto; width: 18px; height: 18px; transition: transform .25s; }
.quote-cta:hover .quote-icon { transform: translateX(3px); }

/* ── 모바일 하단 고정 바 (PC에서는 숨김) ── */
.m-cta { display: none; }

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 1280px) {
  .main-nav { gap: clamp(18px, 2.64vw, 38px); }
}
@media (max-width: 1100px) {
  /* 1100px 이하: 메뉴는 햄버거 버튼으로 열기 */
  .header-actions { margin-left: auto; gap: 24px; }
  .main-nav {
    position: absolute; top: 75px; left: 0; right: 0; transform: none; display: none; align-items: stretch;
    flex-direction: column; gap: 0; margin: 0; padding: 10px var(--edge) 18px;
    background: rgba(18, 22, 27, .97); border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a .ko { font-size: 13px; }
  .main-nav a { justify-items: start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; line-height: 12px; }
}
@media (max-width: 980px) {
  .about-copy { right: var(--edge); }
  .about-copy .tags-slot { margin-right: calc(var(--edge) * -1); }
  .hero-navi { width: calc(100% - var(--edge) * 2 - 124px); }
  .hero-side-label { --side-size: 52px; }
  .portfolio { height: auto; padding-bottom: 80px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --page-gutter: 20px; }
  .site-header { height: 58px; }
  html { scroll-padding-top: 58px; }
  .logo { gap: 12px; }
  .logo-icon { width: 20px; height: auto; }
  .logo-text { width: 120px; height: auto; }
  .header-actions { gap: 18px; }
  .main-nav { top: 58px; }

  /* ── 모바일 히어로: 폰 화면 한 장(100svh)에 꽉 차게
     사이드 라벨은 헤더 바로 아래, 타이틀 묶음은 그 아래 적당한 간격, 진행 바는 화면 하단 */
  .hero {
    --m-gap-label: clamp(28px, 6svh, 64px);   /* 사이드 라벨 → 타이틀 간격 (화면이 짧을수록 좁게) */
    /* 높이 = 실제 보이는 화면 높이 (JS가 측정). 단, 세로로 아주 긴 창에서는 800px까지만 */
    --m-hero-max: 800px;
    --m-bar-h: calc(70px + env(safe-area-inset-bottom));          /* 하단 고정 바 높이만큼 빼서 진행 바가 가리지 않게 */
    height: min(calc(100vh - var(--m-bar-h)), var(--m-hero-max));                    /* svh 미지원 브라우저용 */
    height: min(calc(var(--app-h, 100svh) - var(--m-bar-h)), var(--m-hero-max));
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 72px var(--edge) 0;
  }
  .hero-side-label {
    order: -1; position: relative; inset: auto; align-self: flex-end;
    font-size: clamp(28px, 4.6svh, var(--side-size-mobile)); line-height: .95;
  }
  .hero-side-label span { transform-origin: right top; }
  .hero-content { position: relative; inset: auto; margin-top: var(--m-gap-label); }
  .hero h1 { width: auto; margin: clamp(14px, 2.6svh, 20px) 0 0 -2px; font-size: clamp(34px, calc((100vw - 40px) / 8.2), 46px); line-height: 1.12; }
  .m-br { display: inline; }
  .hero-copy { width: auto; margin-top: clamp(18px, 3.4svh, 26px); font-size: clamp(14px, 4.1vw, 16px); line-height: 1.5; }
  .hero-buttons { width: 100%; max-width: 330px; margin-top: clamp(24px, 4.6svh, 36px); }
  .hero-buttons .button { flex: 1; width: auto; }
  .hero-navi { width: calc(100% - var(--edge) * 2 - 62px); left: calc(var(--edge) + 62px); transform: none; bottom: 36px; }

  .about { height: auto; padding: 75px var(--edge) 60px; background-position: 70% bottom; }
  .about-copy { position: static; }
  .about h2 { font-size: 28px; line-height: 38px; }
  .about-text { font-size: 16px; line-height: 28px; }
  .about .text-link { margin-top: 40px; }
  /* 모바일: 우측 견적 CTA·떠다니는 태그 바 대신 하단 고정 바 하나만 */
  .quote-cta { display: none; }
  .service-tags.is-docked { position: static; }
  .m-cta {
    position: fixed; z-index: 48; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    padding: 10px var(--edge) calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 22, 27, .97);   /* 흐림 효과 제거: iOS 스크롤 버벅임 원인 (2026-11-19) */
    border-top: 1px solid rgba(213, 182, 147, .25);
  }
  .m-cta a {
    position: relative; display: flex; flex-direction: column; justify-content: center;
    height: 50px; padding: 0 16px; border-radius: 5px;
  }
  .m-cta small {
    font-family: var(--f-label); font-weight: 300; font-size: 9px; line-height: 1;
    letter-spacing: .22em; text-transform: uppercase;
  }
  .m-cta span { margin-top: 5px; font-family: var(--f-sans); font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: .02em; }
  .m-cta-store { border: 1px solid rgba(239, 232, 222, .35); color: var(--cream); }
  .m-cta-store small { color: var(--gold); }
  .m-cta-quote { background: #f2e36c; color: var(--ink); }   /* 우측 견적 CTA와 같은 노랑 */
  .m-cta-quote small { color: rgba(42, 48, 56, .7); }
  .m-cta-quote svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
  .m-cta a:active { transform: scale(.98); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }   /* 하단 바에 내용이 가리지 않게 */
  .site-footer { padding-bottom: 24px; }
  .tags-slot { margin: 32px calc(var(--edge) * -1) 0; }
  .service-tags { width: 100vw; }
  .about .text-link { margin-top: 32px; }

  .portfolio { padding-top: 75px; }
  .section-heading h2 { font-size: 28px; line-height: 38px; }
  .section-description { font-size: 16px; line-height: 28px; }
  .portfolio-grid { gap: 10px; margin-top: 32px; }
  .portfolio-card h3 { font-size: 15px; bottom: 32px; left: 14px; }
  .portfolio-card p { left: 14px; bottom: 14px; font-size: 10px; letter-spacing: .2em; }

  .feature-section { grid-template-columns: 1fr; gap: 28px; padding-top: 80px; padding-bottom: 80px; }
  .feature-visual { min-height: 300px; }
  .info-grid { grid-template-columns: 1fr; gap: 42px; }
  .info-grid > div + div { padding: 36px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  h2 { font-size: 28px; line-height: 38px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-top { gap: 8px; }
  .desktop-only { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-track, .hero-side-label span, .hero-bar, .hero-counter span { animation-play-state: paused; }
}

/* ═════════════════════════════════════════════════════════════
   03 · Material (석재 도감) / 04 · Product (제품 컬렉션)
   PSD 기준: 섹션 1440×500, 사진 775×500 + 검색 패널 555 (좌우 대칭)
   ═════════════════════════════════════════════════════════════ */
.finder { position: relative; height: 500px; overflow: hidden; }
.finder-mat { background: #181d23; }                 /* Material_BG */
.finder-pro { background: #12161b; }                 /* Product_BG  */

/* ── 사진 영역 (775 × 500) ── */
.fd-pic {
  --pic-w: min(53.82%, calc(100% - var(--edge) - 610px));
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--pic-w); overflow: hidden; background: #0c0d0f;
}
.finder-pro .fd-pic { left: auto; right: 0; }
.fd-img {
  position: absolute; inset: 0; background: #0c0d0f center / cover no-repeat;
  transform-origin: 50% 50%; transition: transform .25s ease, opacity .35s ease;
}
.fd-shadow {                                         /* PSD Shadow 레이어: 왼쪽 597px, 불투명도 80% */
  position: absolute; top: 0; bottom: 0; left: 0; width: 77.03%; pointer-events: none;   /* 597 / 775 — 사진 폭에 비례 (화면이 좁아져도 원본과 같은 비율로 어두워짐) */
  background: url("../images/psd/material_shadow.png") left top / 100% 100% no-repeat;
}
.finder-pro .fd-shadow { background-image: url("../images/psd/product_shadow.png"); }
.fd-title { position: absolute; z-index: 2; top: 40px; left: 55px; }
.fd-title h2 { margin-top: 15px; }
.fd-title .fd-desc { margin-top: 13px; font-size: 18px; line-height: 30px; font-weight: 200; letter-spacing: .035em; color: var(--cream); }
.finder-mat .fd-title { left: max(55px, calc(var(--edge))); }

.fd-arrow {
  position: absolute; z-index: 2; 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;
}
.fd-arrow img { width: 19px; height: 45px; }
.fd-arrow:hover { opacity: .7; }
.fd-arrow.prev { left: 30px; }                       /* 아이콘 x40 */
.fd-arrow.next { right: 30px; }                      /* 아이콘 x716 (사진 오른쪽 끝에서 40) */
.fd-arrow.prev:hover { transform: translateX(-3px); }
.fd-arrow.next:hover { transform: translateX(3px); }

.fd-name { position: absolute; z-index: 2; left: 55px; bottom: 58px; max-width: calc(100% - 290px); }
.finder-mat .fd-name { left: max(55px, var(--edge)); }
.fd-en {                                              /* Pretendard Thin 45 / 자간 -50 / 세로 90% / 60% */
  font-family: var(--f-sans); font-weight: 100; font-size: 45px; line-height: 45px; letter-spacing: -.036em;
  position: relative; top: 2px; text-transform: uppercase; color: var(--cream); opacity: .6;
  transform: scaleY(.9); transform-origin: left bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fd-ko {                                              /* Pretendard Medium 18 / 골드 / 60% */
  margin-top: 9px; font-family: var(--f-sans); font-weight: 500; font-size: 18px; line-height: 20px;
  letter-spacing: .05em; color: var(--gold); opacity: .6;
}
.fd-dots { display: flex; gap: 12px; margin-top: 23px; height: 8px; }
.fd-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(239, 232, 222, .4); cursor: pointer; transition: background .2s, transform .2s; }
.fd-dots button.on { background: var(--gold); }
.fd-dots button:hover { transform: scale(1.25); }

.fd-link {                                            /* 160 × 36 / 검정 40% + 크림 1px */
  position: absolute; z-index: 2; right: 62px; bottom: 58px; width: 160px; height: 36px;
  display: flex; align-items: center; gap: 0; padding: 0 16px;
  background: rgba(0, 0, 0, .4); border: 1px solid var(--cream); border-radius: 5px;
  font-family: var(--f-sans); font-weight: 500; font-size: 13px; line-height: 1; letter-spacing: .05em; color: var(--cream);
  transition: background .2s;
}
.fd-link:hover { background: rgba(0, 0, 0, .6); }
.fd-link .i-prod { width: 19px; height: 22px; margin-right: 9px; }
.fd-link .i-arr { width: 9px; height: 14px; margin-left: auto; transition: transform .2s; }
.fd-link:hover .i-arr { transform: translateX(3px); }

/* ── 검색 패널 (555 × 387, 섹션 위에서 54px) ── */
.fd-panel { position: absolute; top: 54px; right: var(--edge); width: 555px; }
.finder-pro .fd-panel { right: auto; left: var(--edge); }
.fd-head { position: relative; display: flex; align-items: center; height: 24px; }
.fd-head img { width: 26px; height: 24px; margin-left: 3px; }
.fd-head p { margin-left: 25px; font-size: 15px; line-height: 15px; font-weight: 400; letter-spacing: .05em; color: var(--cream); }
.fd-head i { position: absolute; right: 0; top: 10px; width: 245px; height: 1px; background: var(--gold); }

.fd-row { position: absolute; left: 0; right: 0; display: flex; align-items: center; }
.fd-row > .lb { width: 93px; flex: none; font-size: 18px; line-height: 18px; font-weight: 400; letter-spacing: .05em; color: var(--cream); }
.fd-row.r1 { top: 62px; height: 60px; }               /* 석종/용도  116~176 */
.fd-row.r2 { top: 156px; height: 32px; }              /* 색상       210~242 */
.fd-row.r3 { top: 222px; height: 48px; }              /* 패턴/마감  276~324 */
.fd-row.r4 { top: 298px; height: 16px; }              /* 확대/축소  352~368 */
.fd-row.r4 > .lb { font-size: 16px; line-height: 16px; }
.fd-opts { flex: 1; min-width: 0; display: flex; }

/* 석종 / 용도 버튼 110 × 60 */
.fd-tiles { justify-content: space-between; }
.fd-tile {
  position: relative; width: 110px; height: 60px; padding: 0; border: 0; border-radius: 7px; cursor: pointer;
  background: #292f37 center / cover no-repeat; color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(120, 121, 122, 1);
  font-family: var(--f-sans); font-size: 13px; line-height: 13px; font-weight: 400; letter-spacing: .05em;
  transition: box-shadow .2s, color .2s, background-color .2s;
}
.fd-tile .t { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; }
.fd-tile.stone { box-shadow: none; background-color: transparent; }   /* 모서리 찌꺼기 방지: 이미지 자체를 꽉 채우고 CSS 라운드로만 자름 */
.fd-tile.stone[data-v="대리석"] { background-image: url("../images/psd/stone_marble.png"); }
.fd-tile.stone[data-v="화강석"] { background-image: url("../images/psd/stone_granite.png"); }
.fd-tile.stone[data-v="인조대리석"] { background-image: url("../images/psd/stone_engineered.png"); }
.fd-tile.stone[data-v="세라믹"] { background-image: url("../images/psd/stone_ceramic.png"); }
.fd-tile.stone .t { bottom: 11px; }
.fd-tile .ic { position: absolute; top: 10px; left: 50%; height: 22px; width: auto; transform: translateX(-50%); }
.fd-tile:hover { box-shadow: inset 0 0 0 1px rgba(213, 182, 147, .7); }
.fd-tile.on { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.fd-tile.use.on { background-color: #11151b; }

/* 색상 32px (테두리 골드 60% + 엠보스) */
.fd-colors { justify-content: space-between; }
.fd-sw {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; flex: none;
  background: #777 center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(213, 182, 147, .6), inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(0, 0, 0, .32);
  transition: box-shadow .2s, transform .2s;
}
.fd-sw:hover { transform: scale(1.08); }
.fd-sw.on { box-shadow: 0 0 0 2px #12161b, 0 0 0 3px var(--gold), 0 0 14px rgba(213, 182, 147, .55); }

/* 체크박스 15px (검정 + 골드 60% 1px) */
.fd-checks { flex-wrap: wrap; column-gap: 28px; row-gap: 18px; align-content: space-between; height: 48px; }
.fd-chk {
  display: inline-flex; align-items: center; gap: 5px; height: 15px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--f-sans); font-size: 13px; line-height: 13px; font-weight: 400; letter-spacing: .05em; color: var(--cream);
}
.fd-chk::before {
  content: ""; width: 15px; height: 15px; flex: none; box-sizing: border-box; border-radius: 3px;
  background: #000; border: 1px solid rgba(213, 182, 147, .6); transition: background .15s, border-color .15s;
}
.fd-chk:hover::before { border-color: var(--gold); }
.fd-chk.on { color: var(--gold); }
.fd-chk.on::before {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M3.5 7.6 6.3 10.3 11.5 4.8' fill='none' stroke='%2312161b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-color: var(--gold);
}

/* 확대/축소 슬라이더: 트랙 크림 20% / 채움 골드→어두운 골드 / 손잡이 16px 크림 + 그림자 */
.fd-range {
  --p: 0%; -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 4px; margin: 0; border-radius: 0; cursor: pointer;
  background:
    linear-gradient(90deg, #d5b693, #5b5145) 0 0 / var(--p) 100% no-repeat,
    rgba(239, 232, 222, .2);
}
.fd-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 15px rgba(0, 0, 0, .9); }
.fd-range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--cream); box-shadow: 0 0 15px rgba(0, 0, 0, .9); }

/* 초기화 / 검색하기 226 × 35 */
.fd-btns { position: absolute; top: 352px; left: 93px; right: 0; display: flex; gap: 10px; }
.fd-btns button {
  flex: 1; height: 35px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 5px; cursor: pointer;
  font-family: var(--f-sans); font-size: 13px; line-height: 1; letter-spacing: .05em; transition: background .2s, color .2s;
}
.fd-reset { border: 1px solid var(--gold); background: transparent; color: var(--gold); font-weight: 500; }
.fd-reset img { width: 16px; height: 16px; margin-right: 9px; }
.fd-reset:hover { background: rgba(213, 182, 147, .12); }
.fd-go { border: 0; background: var(--gold); color: var(--ink); font-weight: 700; }
.fd-go .i-s { width: 18px; height: 16px; margin-right: 7px; }
.fd-go .i-a { width: 10px; height: 12px; margin-left: 7px; transition: transform .2s; }
.fd-go:hover { background: #e2c7a6; }
.fd-go:hover .i-a { transform: translateX(3px); }
/* 검색 결과 수 한 줄 (버튼 아래, 초기화 글씨와 같은 색) */
.fd-count { position: absolute; top: 401px; left: 93px; right: 0; margin: 0; text-align: center;
  font-family: var(--f-sans); font-size: 13px; line-height: 1; letter-spacing: .05em; font-weight: 400; color: var(--gold); }
.fd-count b { font-weight: 700; }
.finder-pro .fd-count { top: 417px; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .finder { height: auto; display: flex; flex-direction: column; }   /* 사진이 위, 검색 패널이 아래 */
  .finder-pro .fd-pic { order: -1; }
  .fd-pic { position: relative; width: 100%; height: clamp(420px, 62vw, 560px); }
  .finder-pro .fd-pic { right: auto; }
  .fd-panel { position: relative; top: auto; right: auto; left: auto; width: min(555px, calc(100% - var(--edge) * 2)); margin: 48px auto 56px; height: 387px; }
  .finder-pro .fd-panel { left: auto; }
  .finder-mat .fd-title, .finder-mat .fd-name { left: var(--edge); }
  .fd-title, .fd-name { left: var(--edge); }
}
@media (max-width: 700px) {
  .fd-pic { height: clamp(380px, 110vw, 480px); }
  .fd-title { top: 32px; }
  .fd-title .fd-desc { font-size: 15px; line-height: 25px; }
  .fd-shadow { width: 100%; }
  .fd-arrow.prev { left: 2px; } .fd-arrow.next { right: 2px; }
  .fd-name { bottom: 92px; max-width: calc(100% - 40px); }
  .fd-en { font-size: 34px; line-height: 36px; }
  .fd-ko { font-size: 15px; }
  .fd-link { right: auto; left: var(--edge); bottom: 28px; }
  .fd-dots { position: absolute; left: 196px; bottom: -64px; }
  .fd-panel { height: auto; margin: 36px auto 48px; }
  .fd-head i { display: none; }
  .fd-row { position: relative; top: auto !important; height: auto !important; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 26px; }
  .fd-row > .lb { width: auto; font-size: 16px; }
  .fd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .fd-tile { width: auto; }
  .fd-colors { display: grid; grid-template-columns: repeat(6, 32px); justify-content: space-between; row-gap: 12px; }
  .fd-checks { height: auto; column-gap: 18px; row-gap: 14px; }
  .fd-row.r4 { flex-direction: row; align-items: center; }
  .fd-row.r4 > .lb { width: 80px; }
  .fd-btns { position: relative; top: auto; left: auto; margin-top: 30px; }
  .fd-count, .finder-pro .fd-count { position: relative; top: auto; left: auto; margin-top: 14px; }
}

/* 04 Product 패널 (PSD 갱신: 마감 1줄 + 가공 1줄) — 섹션 위에서 46px */
.finder-pro .fd-panel { top: 46px; }
.finder-pro .fd-row.r3 { top: 222px; height: 15px; }   /* 마감 268 */
.finder-pro .fd-row.r3b { top: 271px; height: 15px; }  /* 가공 317 */
.finder-pro .fd-row.r4 { top: 314px; }                 /* 확대/축소 360 */
.finder-pro .fd-btns { top: 368px; }                   /* 버튼 414 */
.finder-pro .fd-checks { height: 15px; flex-wrap: nowrap; column-gap: 24px; }
/* 같은 제품 사진 여러 장: 1.5초마다 겹치며 전환 */
/* 자동 사진 전환: 히어로와 같은 가감속(ease), 속도는 히어로의 절반 (2.2초) */
.fd-img-next { position: absolute; inset: 0; background: #0c0d0f center / cover no-repeat; pointer-events: none;
  transform: translateX(0); transition: transform 2.2s ease; will-change: transform; }
.fd-img-next.in { transform: translateX(100%); }
.fd-img-next.go-out { transform: translateX(-100%); }
.fd-img-next.in.go-in { transform: translateX(0); }
@media (max-width: 700px) {
  .finder-pro .fd-checks { flex-wrap: wrap; height: auto; }
}
@media (max-width: 1100px) {
  .finder-pro .fd-panel { top: auto; height: 403px; }
}
@media (max-width: 700px) {
  .finder-pro .fd-panel { height: auto; }
}

/* 체크박스 글자: 줄바꿈 없이 가로 한 줄 (PSD: Pretendard Regular 13 / 자간 50) */
.fd-chk { flex: none; white-space: nowrap; }
/* 04 용도 버튼 5개 (PSD: 85 × 60) */
.finder-pro .fd-tile.use { width: 85px; }
@media (max-width: 700px) { .finder-pro .fd-tiles { grid-template-columns: repeat(5, 1fr); } .finder-pro .fd-tile.use { width: auto; } }

/* 검색 결과 수 줄이 들어갈 자리만큼 태블릿 패널 높이 확보 + 모바일 제품 버튼 위치 바로잡기 */
@media (max-width: 1100px) {
  .fd-panel { height: 414px; }
  .finder-pro .fd-panel { height: 430px; }
}
@media (max-width: 700px) {
  .fd-panel, .finder-pro .fd-panel { height: auto; }
  .finder-pro .fd-btns { top: auto; }
}

/* 검색하기 · 적용 제품 보기 · 사용 석재 보기로 결과가 나타날 때: 사진 테두리 골드 반짝임 2번 → 사라짐 */
.fd-pic::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(213, 182, 147, .35), inset 0 0 60px rgba(213, 182, 147, .35);
}
.fd-pic.fd-focus::after { animation: fdFocus 2.6s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes fdFocus {
  0%   { opacity: 0; border-width: 6px; }
  14%  { opacity: 1; border-width: 3px; box-shadow: inset 0 0 0 1px rgba(213,182,147,.5), inset 0 0 90px rgba(213,182,147,.45); }
  36%  { opacity: .45; border-width: 2px; box-shadow: inset 0 0 0 1px rgba(213,182,147,.2), inset 0 0 30px rgba(213,182,147,.15); }
  56%  { opacity: 1; border-width: 3px; box-shadow: inset 0 0 0 1px rgba(213,182,147,.5), inset 0 0 90px rgba(213,182,147,.45); }
  100% { opacity: 0; border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) { .fd-pic.fd-focus::after { animation-duration: .01s; } }

/* 사진 끌어서 보기: 넘치는 부분이 있을 때 손 모양, 글자 영역은 드래그 통과(점·버튼은 그대로 클릭) */
.fd-img { transform: none !important; transition: background-size .25s ease, background-position .25s ease; }
.fd-pic.fd-pan .fd-img, .fd-pic.fd-pan { cursor: grab; }
.fd-pic.fd-dragging, .fd-pic.fd-dragging * { cursor: grabbing !important; user-select: none; }
.fd-pic.fd-dragging .fd-img { transition: none; }
.fd-title, .fd-name, .fd-shadow { pointer-events: none; }
.fd-dots, .fd-dots button { pointer-events: auto; }
.fd-arrow, .fd-link { cursor: pointer; }

/* 점(페이지) 클릭 영역 넓히기: 그려진 원은 8px 그대로, 클릭되는 영역은 가로 20 × 세로 28px (점 간격만큼 빈틈없이) */
/* 버튼 자체를 20 × 28로 키우고, 보이는 원(8px)은 가운데에 그림 → 겉보기·간격은 그대로 */
.fd-dots { gap: 0; margin-left: -6px; }
.fd-dots button, .fd-dots button.on, .fd-dots button:hover {
  position: relative; width: 20px; height: 28px; margin: -10px 0; background: transparent !important; border-radius: 0; transform: none; }
.fd-dots button::before { content: ""; position: absolute; left: 6px; top: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(239, 232, 222, .4); transition: background .2s, transform .2s; }
.fd-dots button.on::before { background: var(--gold); }
.fd-dots button:hover::before { transform: scale(1.25); }
.fd-img.fd-still { transition: none !important; }   /* 사진 교체 순간에는 크기·위치 애니메이션 끔 */


/* ════════════════════════════════════════════════════════════
   하단 (PSD 갱신 11-10): Contact 480 → Key Features 380 → Footer 840
   1440px 기준 PSD 좌표 그대로. Pretendard 19·25px 줄은 PSD 세로 비율 90% (scaleY .9)
   ════════════════════════════════════════════════════════════ */
.ct, .kf, .ft { position: relative; overflow: hidden; background: #12161b; }
.vs9 { display: inline-block; transform: scaleY(.9); transform-origin: 50% 84.6%; }

/* ── Contact ── */
.ct { height: 480px; background: #12161b url("../images/psd/contact_bg.jpg") center / cover no-repeat; text-align: center; color: var(--cream); }
.ct-eyebrow {
  position: absolute; left: 0; right: 0; top: 141px; margin: 0; height: 19px;
  display: flex; justify-content: center; align-items: center; gap: 20px;
}
.ct-eyebrow i { width: 100px; height: 2px; background: var(--gold); margin-top: 0; }
.ct-eyebrow span {
  font-family: var(--f-sans); font-weight: 400; font-size: 19px; line-height: 19px; letter-spacing: -.02em; color: var(--gold);
  display: inline-block; transform: scaleY(.9); transform-origin: 50% 84.6%;
}
.ct-title {
  position: absolute; left: 0; right: 0; top: 195px; margin: 0;
  font-family: var(--f-serif); font-weight: 400; font-size: 40px; line-height: 50px; letter-spacing: -.035em; color: var(--cream);
}
.ct-desc {
  position: absolute; left: 0; right: 0; top: 266px; margin: 0;
  font-family: var(--f-sans); font-weight: 500; font-size: 19px; line-height: 19px; letter-spacing: -.037em; color: var(--cream);
  transform: scaleY(.9); transform-origin: 50% 84.6%;
}
.ct-btns { position: absolute; left: 0; right: 0; top: 330px; display: flex; justify-content: center; gap: 10px; }
.ct-btns a {
  width: 226px; height: 35px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 5px;
  font-family: var(--f-sans); font-size: 13px; line-height: 1; letter-spacing: .05em; text-decoration: none; transition: background .2s, color .2s;
}
.ct-btns img { width: 10px; height: 12px; transition: transform .2s; }
.ct-btns a:hover img { transform: translateX(3px); }
.ct-fill { background: var(--gold); color: #2a3038; font-weight: 700; }
.ct-fill:hover { background: #e2c7a6; }
.ct-stroke { border: 1px solid var(--gold); color: var(--gold); font-weight: 500; }
.ct-stroke:hover { background: rgba(213, 182, 147, .12); }

/* ── Key Features ── */
.kf { height: 380px; }   /* PSD 11-11: 380, 칸 242 × 5, 글자 23/16 */
.kf-list {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1210px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr);
}
.kf-list li { position: relative; text-align: center; color: var(--cream); }
.kf-list li + li::before { content: ""; position: absolute; left: -1px; top: 124px; width: 2px; height: 130px; background: #5a4c3d; }
.kf-list img { position: absolute; left: 50%; top: 125px; transform: translateX(-50%); }
.kf-list strong, .kf-list span { display: block; position: absolute; left: 0; right: 0; transform: scaleY(.9); transform-origin: 50% 84.6%; white-space: nowrap; }
.kf-list strong { top: 203px; font-family: var(--f-sans); font-weight: 400; font-size: 23px; line-height: 23px; letter-spacing: -.05em; }
.kf-list span { top: 239px; font-family: var(--f-sans); font-weight: 500; font-size: 16px; line-height: 16px; letter-spacing: -.028em; }

/* ── Footer ── */
.ft { height: 840px; }
/* 배경 장면 (PSD: 질감 1440×720 @0 / 도면 1440×885 @-45 / 원석 1407×449 @33,191 / 바닥색 @640) */
.ft-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ft-l { position: absolute; max-width: none; will-change: transform; }
.ft-tex { left: 0; right: 0; top: -12px; height: 760px; background: url("../images/psd/footer_texture.jpg") center 12px / 100% auto no-repeat; }   /* 마우스로 움직여도 가장자리가 안 보이게 12px 여유 */
.ft-draw { left: 0; top: -45px; width: 1440px; height: 885px; }   /* 원본 크기 고정(확대 안 함) + 항상 왼쪽에 붙임 */
.ft-stone { right: 0; top: 191px; width: 1407px; height: auto; transform-origin: 100% 100%; }   /* 오른쪽 끝에 붙음 (잘린 면은 화면 밖) */
.ft-floor { position: absolute; left: 0; right: 0; top: 640px; bottom: 0; background: #12161b; }
.ft-row { z-index: 1; }
.ft-row { position: absolute; top: 99px; left: 50%; transform: translateX(-50%); width: 1242px; height: 90px; display: flex; align-items: flex-start; }
.ft-brand { position: relative; width: 372px; height: 90px; flex: none; }
.ft-logo { position: absolute; left: 0; top: 0; display: block; width: 322px; height: 90px; }
.ft-logo-icon { position: absolute; left: 0; top: 17px; width: 41px; height: 55px; }
.ft-logo-text { position: absolute; left: 71px; top: 19px; width: 251px; height: 28px; }
.ft-tag {
  position: absolute; left: 71px; top: 62px; margin: 0; white-space: nowrap;
  font-family: var(--f-label); font-weight: 300; font-size: 11px; line-height: 11px; letter-spacing: .25em; color: var(--gold);
}
.ft-vline { flex: none; width: 2px; height: 90px; margin-left: 50px; background: var(--gold); }
.ft-menu { position: absolute; left: 0; top: 0; width: 100%; height: 90px; }
.ft-menu a { position: absolute; top: 0; display: block; width: 140px; margin-left: -70px; text-align: center; text-decoration: none; padding-top: 3px; }
/* 메뉴 가운데 위치 (로고 왼쪽 끝 기준, PSD) */
.ft-menu a:nth-child(1) { left: 568px; } .ft-menu a:nth-child(2) { left: 729px; } .ft-menu a:nth-child(3) { left: 888px; }
.ft-menu a:nth-child(4) { left: 1043px; } .ft-menu a:nth-child(5) { left: 1200px; }
.ft-menu span { display: block; font-family: var(--f-sans); font-size: 19px; line-height: 19px; letter-spacing: -.05em; white-space: nowrap;
  transform: scaleY(.9); transform-origin: 50% 84.6%; transition: color .2s; }
.ft-menu .en { font-weight: 400; color: var(--gold); letter-spacing: -.01em; }
.ft-menu .ko { font-weight: 500; color: var(--cream); margin-top: 46px; letter-spacing: -.03em; }
.ft-menu a::after { content: ""; position: absolute; left: 50%; top: 44px; width: 30px; height: 2px; margin-left: -15px; background: var(--gold); transition: width .25s, margin .25s; }
.ft-menu a:hover::after { width: 46px; margin-left: -23px; }
.ft-menu a:hover .ko { color: var(--gold); }

/* ── 하단 반응형 ── */
@media (max-width: 1439px) {   /* 1440보다 좁으면 Key Features 글자·칸을 화면 폭에 비례해 줄임 */
  .kf-list { width: min(1210px, calc(100% - 40px)); }
}
@media (max-width: 1300px) {   /* 푸터: 한 줄 배치가 안 들어가면 가운데 세로 배치 */
  .ft { height: auto; padding: 90px 20px 150px; }
  .ft-row { position: relative; top: auto; left: auto; transform: none; width: auto; height: auto; flex-direction: column; align-items: center; gap: 34px; }
  .ft-brand { width: 322px; height: 75px; }
  .ft-logo { height: 55px; }
  .ft-logo-icon { top: 0; } .ft-logo-text { top: 2px; }
  .ft-tag { top: 64px; left: 71px; }
  .ft-vline { width: 60px; height: 2px; margin: 0; }
  .ft-menu { position: relative; width: auto; height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 56px; }
  .ft-menu a, .ft-menu a:nth-child(n) { position: relative; left: auto; width: auto; margin: 0; }
}
@media (max-width: 1100px) {
  .kf { height: auto; padding: 56px 20px 64px; }
  .kf-list { position: static; transform: none; width: 100%; max-width: 760px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .kf-list li + li::before { display: none; }
  .kf-list img, .kf-list li:nth-child(n) img { position: static; transform: none; display: block; margin: 0 auto 22px; height: 46px; width: auto; }
  .kf-list strong, .kf-list span { position: static; white-space: normal; }
  .kf-list strong { font-size: 20px; line-height: 26px; }
  .kf-list span { margin-top: 10px; font-size: 15px; line-height: 21px; }
}
@media (max-width: 900px) {
  .ct { height: auto; padding: 84px 20px 90px; }
  .ct-eyebrow, .ct-title, .ct-desc, .ct-btns { position: relative; top: auto; }
  .ct-eyebrow i { width: 60px; }
  .ct-title { margin-top: 34px; font-size: clamp(25px, 4.8vw, 40px); line-height: 1.35; word-break: keep-all; }
  .ct-desc { margin-top: 18px; font-size: clamp(14px, 2.2vw, 19px); line-height: 1.6; word-break: keep-all; }
  .ct-btns { margin-top: 38px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .kf-list { grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 40px; }
  .kf-list li:last-child { grid-column: 1 / -1; }
  .ct-btns a { width: min(226px, 100%); }
  .ct-btns { flex-direction: column; align-items: center; }
  .ft-menu { gap: 24px 30px; }
  .ft-menu span { font-size: 16px; line-height: 16px; }
  .ft-menu .ko { margin-top: 40px; }
  .ft-menu a::after { top: 37px; }
}
@media (max-width: 1300px) { .ft-tag { left: 50%; transform: translateX(-50%); } }
@media (max-width: 600px) { .ft-tag { letter-spacing: .16em; } }

@media (max-width: 1300px) {   /* 세로 배치일 때 원석은 화면 폭 기준으로 아래쪽에 크게 */
  .ft-stone { top: auto; bottom: -6px; width: max(105vw, 560px); right: 0; }
  .ft-floor { display: none; }
  .ft-tex { top: -12px; bottom: -12px; height: auto; background-size: cover; }
}
/* Key Features 둘째 줄(작은 글씨): 크림색을 60%로 낮춰 제목보다 한 단계 어둡게 */
.kf-list span { color: #736c64; }   /* PSD 11-11 */

/* Key Features 태블릿: 위 3개 · 아래 2개(가운데 정렬) + 칸 사이 세로선 (위 2개, 아래 1개) */
@media (max-width: 1100px) {
  .kf-list { display: flex; flex-wrap: wrap; justify-content: center; max-width: 780px; }
  .kf-list li { width: 33.333%; padding: 0 12px; box-sizing: border-box; }
  .kf-list li + li::before { display: none; }
  .kf-list li:nth-child(2)::before, .kf-list li:nth-child(3)::before, .kf-list li:nth-child(5)::before {
    display: block; content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; height: auto; background: #5a4c3d;
  }
}
/* 모바일: 2 › 2 › 1 — 첫째·둘째 줄 가운데에만 세로선 */
@media (max-width: 600px) {
  .kf-list li { width: 50%; }
  .kf-list li:last-child { width: 100%; }
  .kf-list li:nth-child(3)::before, .kf-list li:nth-child(5)::before { display: none; }
  .kf-list li:nth-child(2)::before, .kf-list li:nth-child(4)::before {
    display: block; content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; height: auto; background: #5a4c3d;
  }
}
/* 태블릿·모바일 푸터: 원석을 더 아래로 내려 메뉴 글씨가 원석에 덜 겹치게 */
@media (max-width: 1300px) {
  .ft { padding-bottom: calc(150px + 12vw); }
  .ft-stone { bottom: -14vw; }
}
@media (max-width: 600px) {
  .ft { padding-bottom: 190px; }
  .ft-stone { bottom: -70px; }
}
@media (max-width: 1100px) { .kf-list { column-gap: 0; } }


/* ── Footer_Bottom (PSD 11-11: 푸터 아래 200px, 1440 기준 좌표) ── */
.ft-bottom { position: absolute; z-index: 1; left: 50%; top: 640px; width: 1440px; height: 200px; margin-left: -720px; }
.ft-info p { position: absolute; left: 103px; margin: 0; white-space: nowrap; letter-spacing: -.025em; transform: scaleY(.9); transform-origin: 0 84.6%; }
.ft-i1 { top: 42px; font: 400 34px/34px var(--f-sans); color: var(--gold); letter-spacing: -.025em; }
.ft-i2 { top: 87px; font: 500 16px/16px var(--f-sans); color: var(--cream); }
.ft-i3 { top: 109px; font: 400 15px/15px var(--f-sans); color: #948a7f; }
.ft-i4 { top: 138px; font: 400 15px/15px var(--f-sans); color: #948a7f; }
.ft-bline { position: absolute; left: 464px; top: 50px; width: 1px; height: 100px; background: var(--gold); }
.ft-insta { position: absolute; left: 515px; top: 87px; height: 26px; display: flex; align-items: center; text-decoration: none; }
.ft-insta img { width: 26px; height: 26px; }
.ft-insta span { position: absolute; left: 34px; top: -5px; font: 400 29px/29px var(--f-sans); letter-spacing: -.025em; color: var(--gold);
  white-space: nowrap; transform: scaleY(.9); transform-origin: 0 84.6%; transition: color .2s; }
.ft-insta:hover span { color: var(--cream); }
.ft-policy { position: absolute; left: 1000px; top: 93px; margin: 0; white-space: nowrap; font: 500 16px/16px var(--f-sans); letter-spacing: -.025em;
  color: var(--cream); transform: scaleY(.9); transform-origin: 0 84.6%; }
.ft-policy a { color: inherit; text-decoration: none; transition: color .2s; }
.ft-policy a:hover { color: var(--gold); }
.ft-policy .sep { margin: 0 1.6em; }

/* 맨 위로: 오른쪽 아래 고정 — 페이지 끝까지 내리면 PSD 자리(오른쪽 100 · 아래 70)와 일치 */
.to-top {
  position: fixed; z-index: 46; right: max(var(--edge), calc(50% - 620px)); bottom: 70px; width: 60px; height: 60px; border-radius: 50%;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .35s, transform .35s, visibility 0s .35s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s; }
.to-top img { width: 60px; height: 60px; display: block; transition: transform .25s, filter .25s; }
.to-top:hover img { transform: translateY(-3px); filter: brightness(1.15); }

@media (max-width: 1300px) {   /* 아래 정보도 가운데 세로 배치 */
  .ft-bottom { position: relative; left: auto; top: auto; width: auto; height: auto; margin: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 0 0; text-align: center; }
  .ft-info p, .ft-insta, .ft-insta span, .ft-policy, .ft-bline { position: static; transform-origin: 50% 84.6%; }
  .ft-info p + p { margin-top: 10px; }
  .ft-i1 { font-size: 28px; line-height: 28px; }
  .ft-bline { width: 60px; height: 1px; }
  .ft-insta { gap: 10px; height: auto; }
  .ft-insta span { font-size: 24px; line-height: 24px; }
}
@media (max-width: 700px) {
  .to-top { bottom: 84px; right: 16px; width: 48px; height: 48px; }   /* 모바일 하단 바 위 */
  .to-top img { width: 48px; height: 48px; }
  .ft-i3 { white-space: normal; }
}
/* 세로 배치(≤1300): 원석 장면은 위쪽, 아래 정보는 PSD처럼 단색 바닥 위에 */
@media (max-width: 1300px) {
  .ft { --ftb-h: 300px; padding-bottom: 0; }
  .ft-scene { bottom: var(--ftb-h); }
  .ft-bottom { height: var(--ftb-h); box-sizing: border-box; margin: calc(150px + 12vw) -20px 0; padding: 40px 20px; background: #12161b; justify-content: center; }
}
@media (max-width: 600px) {
  .ft { --ftb-h: 330px; padding-bottom: 0; }
  .ft-bottom { margin-top: 190px; }
}
/* 태블릿·모바일 원석: 메뉴와의 간격을 기존의 절반으로 (위로 올림) */
@media (max-width: 1300px) { .ft-stone { bottom: calc(74.75px - 17.75vw); } }
@media (max-width: 600px)  { .ft-stone { bottom: min(-41px, calc(69px - 22vw)); } }   /* 태블릿과 같은 간격(약 50px)으로 이어지게 */
/* 공간·용도 태그 바(8개 버튼) 임시 비활성 — main.js 의 TAGS_DOCK = true 로 바꾸면 다시 보임 */
.tags-off .tags-slot { display: none; }

/* 푸터 메뉴 5개: 폭에 따라 한 줄 ↔ 여러 줄을 오가며 튀지 않게
   641px 이상은 항상 한 줄(간격만 화면 폭에 비례), 640px 이하는 항상 3 + 2(가운데) */
@media (max-width: 1300px) {
  .ft-menu { flex-wrap: nowrap; column-gap: clamp(24px, 4.3vw, 56px); }
}
@media (max-width: 640px) {
  .ft-menu { flex-wrap: wrap; max-width: 340px; margin: 0 auto; gap: 26px 0; }
  .ft-menu a, .ft-menu a:nth-child(n) { flex: 0 0 33.333%; }
  .ft-menu span { font-size: 16px; line-height: 16px; }
  .ft-menu .ko { margin-top: 40px; }
  .ft-menu a::after { top: 37px; }
}

/* 터치 기기: 스크롤에 따라 움직이지 않는 배경 층은 별도 레이어로 띄우지 않음 (iOS 메모리·스크롤 부담 줄임, 2026-11-19) */
@media (hover: none) {
  .ft-l { will-change: auto; }
}

/* 공간·용도 태그 바(CTA): 모바일(≤700)에서는 숨김 — 메인 회사소개 · 서브 카탈로그 모두 (2026-11-19) */
@media (max-width: 700px) {
  .tags-slot { display: none !important; }
}
