/* ============================================================
   KHANSTONE — 고급 대리석 브랜드 사이트
   Design system: ivory · charcoal · muted gold
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

img,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

ul { list-style: none; }

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --ivory:      #f8f5f0;
  --ivory-deep: #f1ece3;
  --paper:      #ffffff;
  --ink:        #1c1a17;
  --charcoal:   #26221d;
  --stone-800:  #33302a;
  --stone-600:  #59544b;
  --stone-500:  #7a7368;
  --stone-400:  #9a9286;
  --line:       #e6e0d5;
  --line-soft:  #efeae1;
  /* accent — deep sage green (레퍼런스 톤 포인트 컬러) */
  --gold:       #5f6f56;
  --gold-deep:  #3f4a3c;
  --gold-soft:  #93a086;

  /* type */
  --serif: 'Cormorant Garamond', 'Noto Serif KR', 'Nanum Myeongjo', Georgia, serif;
  --sans:  'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --num:   'Marcellus', 'Cormorant Garamond', Georgia, serif;

  /* layout */
  --container: 1260px;
  --gutter: clamp(1.25rem, 5vw, 3.25rem);
  --section-y: clamp(6rem, 12vw, 12rem);
  --radius: 2px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--stone-600);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-break: keep-all;      /* 한국어: 단어 중간에서 줄바꿈 금지 */
  overflow-wrap: break-word; /* 긴 영문 단어가 넘칠 때만 예외적으로 분리 */
}

/* 절 단위 줄바꿈: 데스크톱에선 쉼표·마침표 뒤 <br class="cb">로 줄바꿈,
   좁은 화면(≤860px)에선 숨겨 자연스럽게 흐르게 한다. */
@media (max-width: 860px) {
  br.cb { display: none; }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: 0.01em;
}

::selection { background: var(--gold); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 900px; }

.section { padding-block: var(--section-y); }

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Full-viewport bands ----------
   구분되는 구간마다 화면(모니터/모바일)을 꽉 채우도록
   min-height를 뷰포트 높이로 지정하고 내용을 세로 중앙 정렬.
   내용이 화면보다 길면 자연스럽게 늘어난다(min-height). */
.section,
.showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
}

.page-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 타이틀을 화면 하단에 앵커 — 상단 헤더와 겹침 방지 */
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-soft); }

/* ---------- Headings scale ---------- */
.display {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  letter-spacing: 0.005em;
}
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 300; }
.h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); font-weight: 400; }
.h3 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-weight: 500; }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.9;
  color: var(--stone-600);
  font-weight: 300;
}

.muted { color: var(--stone-500); }

/* subtle top-line accent on section headings */
.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-bottom: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--btn-fg);
  padding: 1.05rem 2.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease);
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover::after { transform: scaleX(1); }
.btn:hover { color: var(--ivory); }

.btn--solid {
  color: var(--ivory);
  background: var(--ink);
  border-color: var(--ink);
}
.btn--solid::after { background: var(--gold-deep); transform: scaleX(0); }
.btn--solid:hover { color: #fff; }

.btn--gold {
  color: #fff;
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}
.btn--gold::after { background: var(--ink); }
.btn--gold:hover { color: #fff; }

.btn--light { --btn-fg: var(--ivory); }
.btn--light::after { background: var(--ivory); }
.btn--light:hover { color: var(--ink); }

/* solid white pill — primary CTA on photo heroes (F style) */
.btn--white {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
  font-weight: 600;
}
.btn--white::after { background: var(--ink); }
.btn--white:hover { color: #fff; }

/* 큰 버튼 (CTA 강조) */
.btn--lg { font-size: 1.05rem; padding: 1.35rem 3.2rem; gap: 0.85rem; letter-spacing: 0.14em; }

/* 사각형 버튼 (하단 CTA 밴드) */
.btn--rect { border-radius: 0; }

.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* text link with animated underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.5s var(--ease), color 0.4s var(--ease);
}
.link:hover { background-size: 100% 1px; color: var(--gold-deep); }
.link .arrow { transition: transform 0.4s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }
.link--light { color: var(--ivory); }
.link--light:hover { color: var(--gold-soft); }

/* ============================================================
   Signature showcase — oversized editorial collection band
   ============================================================ */
.showcase {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  padding-block: clamp(6rem, 13vw, 12rem);
}
.showcase__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #1c1a17 center/cover no-repeat;
  transform: scale(1.03);
}
.showcase__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.74) 0%, rgba(20,18,15,0.56) 55%, rgba(20,18,15,0.7) 100%);
}
.showcase .eyebrow { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.showcase__names { display: flex; flex-direction: column; gap: clamp(0.4rem, 1vw, 1rem); }
.showcase__name {
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 9.5vw, 8.5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #fff;
  transition: color 0.5s var(--ease), opacity 0.5s var(--ease);
}
.showcase__name:nth-child(2) { margin-left: clamp(1.5rem, 14vw, 14rem); }
.showcase__name:nth-child(3) { margin-left: clamp(0.75rem, 7vw, 7rem); }
.showcase__names:hover .showcase__name { opacity: 0.5; }
.showcase__names:hover .showcase__name:hover { opacity: 1; color: var(--gold-soft); }
.showcase__caption {
  margin-left: auto;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 30rem;
  text-align: right;
}
.showcase__caption p { color: rgba(248,245,240,0.82); margin-bottom: 1.4rem; line-height: 1.85; }

@media (max-width: 640px) {
  .showcase__caption { text-align: left; margin-left: 0; }
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.35rem;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease),
              box-shadow 0.5s var(--ease), border-color 0.5s var(--ease),
              transform 0.5s var(--ease), opacity 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

/* 홈: 히어로 위에서는 상단 바 숨김, 아래로 스크롤하면 등장 */
.site-header--hero-hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.site-header--hero-hide.is-revealed {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-header .brand { justify-self: start; }
.nav { display: contents; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  justify-self: center;
}
.nav__ctas {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: end;
}

/* transparent-over-hero state (dark hero => light text) */
.site-header.over-hero { color: var(--ivory); }
.site-header.over-hero .brand__mark path { fill: var(--ivory); }

.site-header.is-scrolled {
  background: rgba(248, 245, 240, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding-block: 0.85rem;
  border-bottom-color: var(--line);
  color: var(--ink);
}
.site-header.is-scrolled .brand__mark path { fill: var(--ink); }
.site-header.is-scrolled .nav__link { color: var(--stone-600); }
.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active { color: var(--ink); }

/* 히어로 없는 페이지(제품·시공사례): 상단바를 항상 솔리드로 */
.site-header--solid {
  background: rgba(248, 245, 240, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.site-header--solid .brand__mark path { fill: var(--ink); }
.site-header--solid .nav__link { color: var(--stone-600); }
.site-header--solid .nav__link:hover,
.site-header--solid .nav__link.is-active { color: var(--ink); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
}
.brand__mark { width: 34px; height: 34px; }
.brand__logo { height: clamp(28px, 3.6vw, 40px); width: auto; display: block; }
.brand__type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  letter-spacing: 0.28em;
  font-weight: 500;
  text-indent: 0.28em;
  white-space: nowrap;
}
.brand__sub {
  font-family: var(--serif);
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.7;
  text-indent: 0.42em;
}

.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: inherit;
  padding-block: 0.35rem;
  transition: color 0.35s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--gold-deep); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-indent: 0.16em; /* 마지막 글자 뒤 letter-spacing 보정 → 시각적 가운데 정렬 */
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.site-header.is-scrolled .nav__cta { border-color: var(--line); color: var(--ink); }
.site-header.is-scrolled .nav__cta:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* burger */
.nav-toggle { display: none; width: 30px; height: 20px; position: relative; z-index: 120; }
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 3px; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 15px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 9px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ivory);
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.3s var(--ease), visibility 1.3s var(--ease);
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--ink) center/cover no-repeat;
  z-index: -2;
  transform: scale(1.08);
  transition: transform 8s ease-out;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* two-layer scrim keeps white text legible over BOTH bright and dark photos:
     horizontal darkening on the left (where the copy sits) + vertical top/bottom */
  /* even scrim keeps centered white copy legible over both bright and dark photos */
  background:
    linear-gradient(180deg, rgba(14,12,10,0.52) 0%, rgba(14,12,10,0.30) 42%, rgba(14,12,10,0.62) 100%),
    radial-gradient(120% 90% at 50% 50%, rgba(14,12,10,0.10) 0%, rgba(14,12,10,0.42) 100%);
}
/* centered brand overlay (constant over the rotating background) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.hero__wordmark {
  font-family: 'Allura', cursive;
  font-weight: 400;
  font-size: clamp(3.4rem, 21vw, 26rem);
  line-height: 1;
  white-space: nowrap;
  color: #f6f1e8;
  text-shadow: 0 2px 30px rgba(0,0,0,0.28);
}
.hero__rule { width: 1px; height: clamp(38px, 5vw, 56px); background: rgba(230,215,185,0.55); margin: clamp(1.2rem, 2.4vw, 1.9rem) 0; }
.hero__tag {
  font-family: 'Noto Serif KR', serif;
  font-weight: 200;
  font-size: clamp(1.45rem, 3.2vw, 2.5rem);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #fff;
}
.hero__sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.16em;
  color: rgba(233,220,199,0.92);
  margin-top: 1.4rem;
}
.hero__note {
  font-family: 'Noto Sans KR', var(--sans);
  font-weight: 300;
  font-size: clamp(0.62rem, 3.05vw, 1rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: rgba(238,230,214,0.82);
  margin-top: clamp(1rem, 2vw, 1.6rem);
  white-space: nowrap;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: clamp(2rem, 3.5vw, 2.8rem); }

/* gentle entrance for the overlay on load */
.hero__overlay > * { opacity: 0; transform: translateY(22px); animation: heroIn 1.1s var(--ease) forwards; }
.hero__overlay > *:nth-child(1) { animation-delay: 0.2s; }
.hero__overlay > *:nth-child(2) { animation-delay: 0.34s; }
.hero__overlay > *:nth-child(3) { animation-delay: 0.46s; }
.hero__overlay > *:nth-child(4) { animation-delay: 0.58s; }
.hero__overlay > *:nth-child(5) { animation-delay: 0.7s; }

/* entrance animation, re-runs each time a slide becomes active */
.hero__slide .hero__inner > * { opacity: 0; transform: translateY(26px); }
.hero__slide.is-active .hero__inner > * { animation: heroIn 1s var(--ease) forwards; }
.hero__slide.is-active .hero__inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero__slide.is-active .hero__inner > *:nth-child(2) { animation-delay: 0.28s; }
.hero__slide.is-active .hero__inner > *:nth-child(3) { animation-delay: 0.42s; }
.hero__slide.is-active .hero__inner > *:nth-child(4) { animation-delay: 0.56s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* bottom slide indicators (dots) */
.hero__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(2rem, 4vw, 3rem);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.hero__dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  transition: width 0.45s var(--ease), background 0.45s var(--ease);
}
.hero__dots button:hover { background: rgba(255,255,255,0.75); }
.hero__dots button.is-active { width: 28px; background: #fff; }

/* page hero (interior pages) */
.page-hero {
  position: relative;
  padding-top: 12rem;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  color: var(--ivory);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--ink) center/cover no-repeat;
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.66), rgba(20,18,15,0.82));
}
.page-hero .display,
.page-hero .h1 { color: #fff; }
.page-hero__lead { color: rgba(248,245,240,0.82); max-width: 40rem; margin-top: 1.4rem; }
.breadcrumb {
  display: flex; gap: 0.6rem; align-items: center;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(248,245,240,0.6); margin-bottom: 1.6rem;
}
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .sep { opacity: 0.5; }

/* ============================================================
   Reusable pieces
   ============================================================ */

/* two-column intro block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--wide-media { grid-template-columns: 1.1fr 0.9fr; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ivory-deep) center/cover no-repeat;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 3 / 4; }
.media-frame {
  position: relative;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  z-index: 2;
  pointer-events: none;
}

/* stone collage — 제품 이미지를 겹쳐 배치한 무드보드 */
.stone-collage {
  position: relative;
  aspect-ratio: 4 / 4.3;
  overflow: visible;
  background: none;
  border-radius: 0;
}
.stone-collage img {
  position: absolute;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
  background: var(--ivory-deep);
  box-shadow: 0 26px 55px -30px rgba(28, 24, 18, 0.55);
}
.stone-collage img:nth-child(1) { left: 0;    top: 15%; width: 44%; aspect-ratio: 1 / 1.12; z-index: 2; }
.stone-collage img:nth-child(2) { left: 27%;  top: 0;   width: 27%; aspect-ratio: 1 / 1.78; z-index: 4; }
.stone-collage img:nth-child(3) { left: 15%;  top: 41%; width: 70%; aspect-ratio: 1.55 / 1; z-index: 3; }
.stone-collage img:nth-child(4) { left: 63%;  top: 4%;  width: 37%; aspect-ratio: 1 / 1.22; z-index: 2; }
.stone-collage img:nth-child(5) { left: 53%;  top: 66%; width: 34%; aspect-ratio: 1.06 / 1; z-index: 5; }

/* 가로 밴드 + 하단 세로 배치 (Material 섹션) */
.stone-collage--cascade img:nth-child(1) { left: 4%;  top: 5%;  width: 70%; aspect-ratio: 1.7 / 1;  z-index: 2; }
.stone-collage--cascade img:nth-child(2) { left: 30%; top: 29%; width: 66%; aspect-ratio: 1.7 / 1;  z-index: 3; }
.stone-collage--cascade img:nth-child(3) { left: 6%;  top: 51%; width: 60%; aspect-ratio: 1.6 / 1;  z-index: 4; }
.stone-collage--cascade img:nth-child(4) { left: 52%; top: 56%; width: 32%; aspect-ratio: 1 / 1.35; z-index: 5; }
.stone-collage--cascade img:nth-child(5) { left: 0;   top: 40%; width: 26%; aspect-ratio: 1 / 1.2;  z-index: 5; }

/* stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.stat__num {
  font-family: var(--num);
  font-size: clamp(2.6rem, 4.7vw, 3.7rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.stat__num sup { font-size: 0.45em; color: var(--gold-deep); top: -1.1em; }
.stat__label {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--stone-500);
}

/* value cards */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.value {
  padding: clamp(1.6rem, 2.6vw, 2.4rem) 0;
  border-top: 1px solid var(--gold-soft);
}
.value__index {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}
.value__icon { width: 38px; height: 38px; margin-bottom: 1.3rem; color: var(--gold-deep); }
.value__icon svg { width: 100%; height: 100%; }
.value h3 { margin-bottom: 0.8rem; }
.value p { font-size: 0.96rem; line-height: 1.8; }

/* KHANSTONE 특장점 grid */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2vw, 1.8rem);
}
.spec {
  text-align: center;
  padding: clamp(1.8rem, 2.6vw, 2.4rem) 1rem;
  border-top: 1px solid var(--gold-soft);
}
.spec__icon { width: 40px; height: 40px; margin: 0 auto 1.1rem; color: var(--gold-deep); }
.spec__icon svg { width: 100%; height: 100%; }
.spec__title { font-size: 1.08rem; font-weight: 500; margin-bottom: 0.5rem; }
.spec__desc { font-size: 0.86rem; line-height: 1.65; color: var(--stone-500); }
@media (max-width: 860px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .specs { grid-template-columns: 1fr; } }

/* 특장점 섹션 — 밝은 차콜 + 흰색 폰트 */
.spec-band { background: #4a4744; color: rgba(255,255,255,0.85); }
.spec-band .eyebrow { color: rgba(255,255,255,0.6); }
.spec-band .h2 { color: #fff; }
.spec-band .spec { border-top-color: rgba(255,255,255,0.22); }
.spec-band .spec__icon { color: #fff; }
.spec-band .spec__title { color: #fff; }
.spec-band .spec__desc { color: rgba(255,255,255,0.68); }

/* dark band */
.band-dark {
  background: var(--ink);
  color: rgba(248,245,240,0.8);
}
.band-dark h2, .band-dark h3, .band-dark .h2 { color: #fff; }
.band-dark .lead { color: rgba(248,245,240,0.8); }

/* process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.process__item { position: relative; padding-top: 2.5rem; }
.process__item::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
}
.process__item::after {
  content: "";
  position: absolute; top: 12px; left: 3.2rem; right: 0;
  height: 1px; background: rgba(255,255,255,0.14);
}
.process__item:last-child::after { display: none; }
.process__item h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: #fff; }
.process__item p { font-size: 0.9rem; line-height: 1.75; color: rgba(248,245,240,0.62); }

/* ============================================================
   Products
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.filter-btn {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-500);
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all 0.4s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--stone-400); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.2rem);
}
.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory-deep);
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20,18,15,0.6) 100%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.product-card:hover .product-card__media::after { opacity: 1; }
.product-card__origin {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory);
  background: rgba(28,26,23,0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
}
.product-card__body { padding: 1.5rem 0.4rem 0.6rem; }
.product-card__cat {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.55rem;
}
.product-card__body h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.product-card__body p { font-size: 0.92rem; line-height: 1.7; color: var(--stone-500); }
.product-card__meta {
  display: flex; gap: 1.2rem; margin-top: 1rem;
  font-size: 0.78rem; color: var(--stone-500);
}
.product-card__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.product-card__meta .dot { width: 8px; height: 8px; border-radius: 50%; }

.product-card.is-hidden { display: none; }

/* application / finishes strip */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2.5rem; }
.feature-list--stack { grid-template-columns: 1fr; gap: 0.9rem; }
.feature-list li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem; color: var(--stone-600);
}
.feature-list .check {
  flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--gold-deep);
}
/* Material Integrity — 항목을 조금 더 크게, 넉넉한 행 간격 */
.feature-list--lg { gap: 1.5rem 2.5rem; }
.feature-list--lg li { font-size: 1.16rem; gap: 1rem; padding-bottom: 1.3rem; }
.feature-list--lg .check { width: 25px; height: 25px; margin-top: 4px; }

/* ============================================================
   Projects / gallery
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-auto-flow: dense;
}
.project {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--ivory-deep);
}
.project.is-wide { grid-column: span 8; aspect-ratio: 16 / 10; }
.project.is-tall { grid-column: span 4; aspect-ratio: 3 / 4; }
.project.is-half { grid-column: span 6; aspect-ratio: 4 / 3; }
.project__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.project:hover .project__img { transform: scale(1.06); }
.project__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, rgba(20,18,15,0) 40%, rgba(20,18,15,0.78) 100%);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  color: var(--ivory);
}
.project:hover .project__overlay { opacity: 1; transform: translateY(0); }
.project__cat {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 0.5rem;
}
.project__title { font-family: var(--serif); font-size: 1.4rem; color: #fff; line-height: 1.2; }
.project__loc { font-size: 0.82rem; color: rgba(248,245,240,0.75); margin-top: 0.3rem; }
.project.is-hidden { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  background: rgba(18,16,14,0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  position: relative; max-width: 1100px; width: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  background: var(--ink);
  border-radius: var(--radius); overflow: hidden;
  transform: scale(0.96); transition: transform 0.5s var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }
.lightbox__img { aspect-ratio: 4 / 3; background: #000 center/cover no-repeat; }
.lightbox__img img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__info { padding: clamp(2rem, 3vw, 3rem); color: rgba(248,245,240,0.8); align-self: center; }
.lightbox__info .eyebrow { color: var(--gold-soft); }
.lightbox__info .eyebrow::before { background: var(--gold-soft); }
.lightbox__info h3 { color: #fff; font-size: 1.8rem; margin-bottom: 1rem; }
.lightbox__specs { margin-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); }
.lightbox__specs div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.09);
  font-size: 0.88rem;
}
.lightbox__specs dt { color: rgba(248,245,240,0.55); letter-spacing: 0.04em; }
.lightbox__specs dd { color: #fff; text-align: right; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav.prev { left: -70px; }
.lightbox__nav.next { right: -70px; }

/* case detail — clean image gallery lightbox */
.cdlb {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(16,14,12,0.95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.cdlb.is-open { opacity: 1; visibility: visible; }
.cdlb__figure {
  position: relative; margin: 0;
  max-width: min(1080px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  transform: scale(0.97); transition: transform 0.45s var(--ease);
}
.cdlb.is-open .cdlb__figure { transform: scale(1); }
.cdlb__img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  display: block; border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}
.cdlb__caption {
  margin-top: 1.1rem; text-align: center;
  font-family: var(--num); letter-spacing: 0.12em;
  font-size: 0.95rem; color: var(--gold-soft);
}
.cdlb__close {
  position: fixed; top: clamp(1rem, 3vw, 1.8rem); right: clamp(1rem, 3vw, 1.8rem); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.cdlb__close:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }
.cdlb__nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.09); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease);
}
.cdlb__nav:hover { background: rgba(255,255,255,0.22); }
.cdlb__nav.prev { left: clamp(0.8rem, 3vw, 2.5rem); }
.cdlb__nav.next { right: clamp(0.8rem, 3vw, 2.5rem); }
.cdlb__nav[hidden] { display: none; }
@media (max-width: 560px) {
  .cdlb__nav { width: 44px; height: 44px; }
  .cdlb__img { max-height: 74vh; }
}

/* image button reset for clickable case photos */
button.case-card__media { border: 0; padding: 0; cursor: pointer; font: inherit; width: 100%; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--ivory);
}
.cta__bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--ink) center/cover no-repeat;
}
.cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20,18,15,0.78); }
.cta .h2 { color: #fff; margin-bottom: 1.4rem; }
.cta .lead { color: rgba(248,245,240,0.82); max-width: 40rem; margin-inline: auto; margin-bottom: 2.4rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #17150f;
  color: rgba(248,245,240,0.62);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand__name { color: var(--ivory); }
.footer-brand .brand__mark path { fill: var(--gold-soft); }
.footer-brand p { margin-top: 1.4rem; max-width: 22rem; line-height: 1.8; color: rgba(248,245,240,0.55); }
.footer-col h4 {
  font-family: var(--serif); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.4rem; font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col a { color: rgba(248,245,240,0.62); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--ivory); }
.footer-contact li { display: flex; gap: 0.7rem; margin-bottom: 0.9rem; line-height: 1.6; }
.footer-contact .ic { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold-soft); }
/* ---- Contact-only centered footer ---- */
.footer-center {
  text-align: center;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-center h4 {
  font-family: var(--serif); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.4rem; font-weight: 500;
}
.footer-center .footer-contact { display: inline-flex; flex-direction: column; gap: 1.05rem; align-items: center; }
.footer-center .footer-contact li {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin: 0; line-height: 1.6;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  color: rgba(248,245,240,0.9);
}
.footer-center .footer-contact a { color: inherit; }
.numeral { font-family: var(--num); font-weight: 400; letter-spacing: 0.02em; }
.footer-center .ic { flex: none; width: 19px; height: 19px; margin: 0; color: var(--gold-soft); }
.footer-addr { white-space: nowrap; }   /* 주소는 한 줄 유지 */

.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  padding-top: 2rem; text-align: center;
  font-size: 0.8rem; color: rgba(248,245,240,0.45);
}
.footer-bottom .socials { display: flex; gap: 1.2rem; }
.footer-bottom .socials a { color: rgba(248,245,240,0.62); transition: color 0.3s var(--ease); }
.footer-bottom .socials a:hover { color: var(--gold-soft); }

@media (max-width: 480px) {
  .footer-addr { font-size: 0.72rem; }  /* 좁은 화면에서도 주소 한 줄 유지 */
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__item::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  /* 모바일: 로고 가운데 정렬, 햄버거는 오른쪽 */
  .site-header .container { display: flex; position: relative; justify-content: flex-end; }
  .site-header .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); justify-self: auto; }
  /* 모바일: 로고+워드마크를 함께 가운데 정렬, 워드마크는 살짝 축소 */
  .brand__name { font-size: 1.02rem; letter-spacing: 0.24em; text-indent: 0.24em; }
  .nav {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: var(--ivory);
    color: var(--ink);
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
  }
  .nav__links, .nav__ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    justify-self: auto;
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav__link { font-size: 1.3rem; letter-spacing: 0.1em; color: var(--ink); }
  /* 모바일 메뉴: 두 문의 버튼 동일 폭 + 문자·기호 가운데 정렬 */
  .nav__ctas { align-items: stretch; width: 200px; }
  .nav__cta { font-size: 0.9rem; padding: 0.9rem 1.8rem; width: 100%; justify-content: center; text-align: center; }
  .site-header.over-hero .nav-toggle,
  .site-header.is-scrolled .nav-toggle { color: currentColor; }

  .split,
  .split--wide-media { grid-template-columns: 1fr; }
  .split__text { min-width: 0; }   /* grid blowout 방지 */
  .split__media { aspect-ratio: 4 / 3; order: -1; }
  .split--reverse .split__media { order: -1; }

  .values { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .project, .project.is-wide, .project.is-tall, .project.is-half {
    grid-column: span 1; aspect-ratio: 3 / 4;
  }
  .project.is-wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

  .lightbox__stage { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .lightbox__nav.prev { left: 0.5rem; }
  .lightbox__nav.next { right: 0.5rem; }
}

@media (max-width: 540px) {
  .brand__sub { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Product feature — editorial alternating rows (large image + big name)
   ============================================================ */
.product-features { display: flex; flex-direction: column; gap: clamp(4.5rem, 10vw, 10rem); }
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.product-feature--reverse .product-feature__media { order: 2; }
.product-feature__media {
  position: relative;
  aspect-ratio: 4 / 3; /* 가로형 슬랩 스와치에 맞춘 랜드스케이프 프레임 */
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ivory-deep);
}
.product-feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s var(--ease);
}
.product-feature:hover .product-feature__media img { transform: scale(1.05); }
.product-feature__num {
  display: block;
  font-family: var(--num);
  font-size: clamp(2.9rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  margin-bottom: 1.2rem;
}
.product-feature__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.product-feature__origin {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1.6rem;
}
.product-feature__desc {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.9; color: var(--stone-600);
  max-width: 34rem; margin-bottom: 1.9rem;
}
.product-feature__specs {
  display: flex; flex-wrap: wrap; gap: 0.7rem 2rem;
  padding-top: 1.6rem; margin-bottom: 2rem;
  border-top: 1px solid var(--line);
}
.product-feature__spec { font-size: 0.86rem; color: var(--stone-500); display: flex; align-items: center; gap: 0.55rem; }
.product-feature__spec .dot { width: 9px; height: 9px; border-radius: 50%; }
.product-feature.is-hidden { display: none; }

/* ============================================================
   Horizontal drag gallery (projects)
   ============================================================ */
.drag-hint {
  display: flex; align-items: center; gap: 0.6rem; justify-content: flex-end;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone-400); margin-bottom: 1.4rem;
}
.drag-hint svg { width: 34px; height: 12px; }
.h-scroll {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-bottom: 1.4rem;
  scrollbar-width: none;
  /* bleed to the right edge for an editorial feel */
  margin-right: calc(var(--gutter) * -1);
  padding-right: var(--gutter);
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.h-scroll.is-dragging .project { pointer-events: none; }
.h-scroll .project {
  flex: 0 0 clamp(270px, 42vw, 580px);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  grid-column: auto;
}
.h-scroll .project__overlay { opacity: 1; transform: none;
  background: linear-gradient(180deg, rgba(20,18,15,0) 45%, rgba(20,18,15,0.72) 100%); }
.h-scroll .project:hover .project__img { transform: scale(1.04); }
.h-scroll .project.is-hidden { display: none; }

/* ============================================================
   Contact — oversized editorial contact block
   ============================================================ */
.contact { }
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.02;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.contact__title .dot { color: var(--gold-deep); }
.contact__sub { margin-top: 1.6rem; max-width: 24rem; color: var(--stone-500); }
.contact__list { border-top: 1px solid var(--line); }
.contact__item {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.4rem, 2.6vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease);
}
.contact__item:hover { padding-left: 0.8rem; }
.contact__item .label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); display: block; margin-bottom: 0.5rem;
}
.contact__item .value {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2rem); color: var(--ink); line-height: 1.2;
}
.contact__item .circle {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.contact__item:hover .circle {
  background: var(--gold-deep); color: #fff; border-color: var(--gold-deep);
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .product-feature { grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 2.5rem); }
  .product-feature__media { order: -1; }
  .product-feature--reverse .product-feature__media { order: -1; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   Back-to-top button
   ============================================================ */
.to-top {
  position: fixed;
  right: clamp(1.1rem, 3vw, 2.2rem);
  bottom: clamp(1.1rem, 3vw, 2.2rem);
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gold-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              visibility 0.4s var(--ease), background 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Event banner (히어로 절반 높이 · 교체용 배너 구간)
   ============================================================ */
.event-banner {
  position: relative;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
  background: var(--ink);
}
.event-banner__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease);
}
.event-banner:hover .event-banner__bg { transform: scale(1.05); }
.event-banner__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24,26,20,0.74) 0%, rgba(24,26,20,0.46) 46%, rgba(24,26,20,0.24) 100%);
}
.event-banner__inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  color: #fff;
}
.event-banner__eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1rem;
}
.event-banner__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; color: #fff;
}
.event-banner__desc {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(0.92rem, 1.4vw, 1.1rem); line-height: 1.7;
  color: rgba(240,236,228,0.85); margin-top: 1rem; max-width: 46ch;
}
.event-banner__cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.9rem;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.02em; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 0.3rem;
  transition: gap 0.35s var(--ease), border-color 0.35s var(--ease);
}
.event-banner:hover .event-banner__cta { gap: 1rem; border-color: #fff; }
@media (max-width: 640px) {
  .event-banner { height: 44vh; min-height: 260px; }
  .event-banner__inner { align-items: center; text-align: center; }
  .event-banner__desc { max-width: none; }
}

/* ============================================================
   Floating side navigation (빠른 메뉴)
   ============================================================ */
.side-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(calc(100% + 14px));
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  display: flex;
  flex-direction: column;
  border-radius: 14px 0 0 14px;
  box-shadow: -8px 12px 36px -16px rgba(20, 24, 18, 0.5);
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
.side-nav.is-in {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.side-nav__item {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-deep);
  color: #f2ede1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.side-nav__item:first-child { border-top-left-radius: 14px; }
.side-nav__item:last-child { border-bottom-left-radius: 14px; }
.side-nav__item + .side-nav__item::after {
  content: "";
  position: absolute; top: 0; left: 11px; right: 11px;
  height: 1px; background: rgba(255, 255, 255, 0.15);
}
.side-nav__item:hover { background: #4b5747; color: #fff; }
.side-nav__ic { display: flex; }
.side-nav__ic svg { width: 21px; height: 21px; }
.side-nav__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--gold-deep);
  padding: 0.5rem 0.95rem;
  border-radius: 7px;
  box-shadow: -5px 7px 22px -12px rgba(20, 24, 18, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.side-nav__item:hover .side-nav__label { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 600px) {
  .side-nav { border-radius: 12px 0 0 12px; }
  .side-nav__item { width: 46px; height: 46px; }
  .side-nav__item:first-child { border-top-left-radius: 12px; }
  .side-nav__item:last-child { border-bottom-left-radius: 12px; }
  .side-nav__ic svg { width: 19px; height: 19px; }
}
/* 모바일: 우측 플로팅 퀵메뉴가 폼·이미지 등 콘텐츠를 가려 숨김 (햄버거 메뉴로 대체) */
@media (max-width: 768px) {
  .side-nav { display: none !important; }
}

/* ============================================================
   고객 문의 접수 알림 (social proof) — 데스크톱 좌하단
   ============================================================ */
.proof {
  position: fixed;
  left: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: min(340px, calc(100vw - 2rem));
  padding: 1.05rem 1.35rem 1.05rem 1.05rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 46px -22px rgba(20, 24, 18, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateX(calc(-100% - 3rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
.proof.is-in { transform: translateX(0); opacity: 1; }
.proof__icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.proof__icon svg { width: 20px; height: 20px; }
.proof__body { min-width: 0; }
.proof__meta {
  display: block;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 0.28rem;
}
.proof__text {
  font-family: var(--sans); font-size: 0.93rem; font-weight: 400;
  line-height: 1.5; color: var(--ink);
}
.proof__text b { font-weight: 600; color: var(--gold-deep); }
.proof__time {
  display: block;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.01em; color: var(--stone-400); margin-top: 0.4rem;
}
@media (max-width: 860px) { .proof { display: none; } }

/* ============================================================
   Case gallery (시공사례) — filtered grid, one rep per product
   ============================================================ */
.case-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.case-filters__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.case-filters__label {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--stone-500);
  margin-right: 0.35rem;
}
.case-filters__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.4vw, 2rem);
}
.case-card {
  position: relative;
  scroll-margin-top: clamp(84px, 12vh, 120px);
}
.case-card.is-hidden { display: none; }
.case-card__media {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ivory-deep);
}
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.case-card__media:hover img { transform: scale(1.05); }
.case-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(15,13,10,0.78));
}
.case-card__cap {
  position: absolute; z-index: 2;
  left: clamp(1.1rem, 2vw, 1.5rem);
  right: clamp(1.1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.4rem);
  color: var(--ivory);
}
.case-card__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 22px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.45);
}

/* Detail page: 문구 없는 깔끔한 사진 */
.case-card--plain .case-card__media::after { display: none; }
.case-card--plain .case-card__media:hover img { transform: scale(1.03); }

.case-empty {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--stone-500);
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
  transition: color 0.35s var(--ease);
}
.case-back svg { width: 16px; height: 16px; }
.case-back:hover { color: var(--ink); }

/* ============================================================
   Nav CTA 색상 변형 — 시공(화이트) · 사업(다크 그레이)
   ============================================================ */
.nav__cta--white,
.site-header .nav__cta--white,
.site-header.is-scrolled .nav__cta--white,
.site-header--solid .nav__cta--white,
.site-header.over-hero .nav__cta--white { background: #fff; border-color: #fff; color: var(--ink); }
.nav__cta--dark,
.site-header .nav__cta--dark,
.site-header.is-scrolled .nav__cta--dark,
.site-header--solid .nav__cta--dark,
.site-header.over-hero .nav__cta--dark { background: #45423f; border-color: #45423f; color: #fff; }
.nav__cta--white:hover,
.site-header.is-scrolled .nav__cta--white:hover,
.nav__cta--dark:hover,
.site-header.is-scrolled .nav__cta--dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 하단 CTA 밴드 — 사업 문의(다크 그레이) */
.btn--charcoal { color: #fff; background: #45423f; border-color: #45423f; }
.btn--charcoal::after { background: var(--ink); }
.btn--charcoal:hover { color: #fff; }

/* ============================================================
   Consultation form (상담 신청)
   ============================================================ */
.cform { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.4rem; }
.cform__types { display: flex; gap: 0.7rem; }
.cform__type { flex: 1; position: relative; }
.cform__type input { position: absolute; opacity: 0; pointer-events: none; }
.cform__type span {
  display: block; text-align: center;
  font-family: var(--serif); font-size: 1.05rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--stone-500); cursor: pointer;
  transition: all 0.35s var(--ease);
}
.cform__type input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.cform__type input:focus-visible + span { border-color: var(--gold-deep); }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.cform__field { display: flex; flex-direction: column; gap: 0.5rem; }
.cform__label { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--stone-500); }
.cform__label em { color: var(--gold-deep); font-style: normal; }
.cform input, .cform textarea, .cform select {
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1rem; width: 100%;
  transition: border-color 0.3s var(--ease);
}
.cform input::placeholder, .cform textarea::placeholder { color: var(--stone-400); }
.cform input:focus, .cform textarea:focus, .cform select:focus { outline: none; border-color: var(--gold-deep); }
.cform select {
  appearance: none; -webkit-appearance: none;
  cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6f56' stroke-width='1.6'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.cform select:required:invalid, .cform select option[value=""] { color: var(--stone-400); }
.cform textarea { resize: vertical; min-height: 130px; }
.cform__consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--stone-500); line-height: 1.5; cursor: pointer; }
.cform__consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--gold-deep); }
.cform__submit { align-self: flex-end; margin-top: 0.4rem; cursor: pointer; }
.cform__note { font-size: 0.9rem; color: var(--gold-deep); margin-top: 0.2rem; }
/* 모바일: 폼 입력 폰트 16px 이상으로 고정해 iOS 포커스 시 자동 확대(줌) 방지 */
@media (max-width: 768px) {
  .cform input, .cform textarea, .cform select { font-size: 16px; }
}
@media (max-width: 560px) {
  .cform__grid { grid-template-columns: 1fr; }
  .cform__types { flex-direction: column; }
  .cform__submit { align-self: stretch; text-align: center; justify-content: center; }
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-card__media { aspect-ratio: 3 / 2; }
  .case-filters { flex-direction: column; align-items: center; gap: 1.1rem; }
}
