/* 레이아웃: 흰 벽과 검은 글자. 색은 쓰지 않고 여백과 글자 굵기로 위계를 만든다. */
:root {
  color-scheme: light;
  --ink: #ffffff;          /* 바탕 */
  --ink-2: #f6f5f2;        /* 한 단 밝은 면 */
  --ink-3: #efeeea;        /* 카드·사진 틀 */
  --line: rgba(20, 20, 22, 0.1);
  --line-2: rgba(20, 20, 22, 0.24);
  --text: #141416;
  --mute: #66645f;
  --dim: #9a9892;
  --light: #141416;        /* 검정: 유일한 강조 */
  --glow: rgba(20, 20, 22, 0.28);

  --f-mark: "Michroma", "Pretendard Variable", sans-serif;      /* 로고·영문 라벨·번호 */
  --f-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --gut: max(24px, env(safe-area-inset-left, 0px));
  --wrap: 1240px;
  --sec: clamp(96px, 13vw, 180px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--light); outline-offset: 4px; }
::selection { background: var(--light); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* 공통 타이포 */
.label {
  font-family: var(--f-mark);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mute);
}
.h2 {
  font-size: clamp(30px, 4.3vw, 56px);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 b { font-weight: 500; }
.lead { color: var(--mute); max-width: 34em; font-size: clamp(15px, 1.25vw, 17px); }

/* 헤더 */
.head {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.head.on { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mark { display: flex; align-items: baseline; gap: 14px; }
.mark strong { font-family: var(--f-mark); font-weight: 400; font-size: 19px; letter-spacing: 0.42em; }
.mark span { font-family: var(--f-mark); font-size: 8px; letter-spacing: 0.4em; color: var(--mute); }
.nav { display: flex; align-items: center; gap: 36px; font-size: 14px; color: var(--mute); }
.nav a { transition: color .25s; }
.nav a:hover { color: var(--text); }
.nav .pill { color: var(--text); border: 1px solid var(--line-2); padding: 9px 20px; border-radius: 99px; transition: background .3s, color .3s, box-shadow .3s; }
.nav .pill:hover { background: var(--light); color: var(--ink); }

/* 히어로 */
.hero { position: relative; padding-top: 72px; overflow: hidden; }
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 128px);
}

.hero h1 {
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 300; line-height: 1.12; letter-spacing: -0.05em;
  margin-block: 30px 34px;
}
.hero h1 em { font-style: normal; font-weight: 500; color: var(--light); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 99px; font-size: 15px; font-weight: 400;
  border: 1px solid var(--line-2); transition: background .3s, color .3s, box-shadow .3s, border-color .3s;
}
.btn::after { content: "→"; font-weight: 300; transition: translate .3s; }
.btn:hover::after { translate: 4px 0; }
.btn:hover { border-color: var(--light); }
.btn.fill { background: var(--light); color: var(--ink); border-color: var(--light); font-weight: 500; box-shadow: 0 18px 44px -20px var(--glow); }
.btn.fill:hover { box-shadow: 0 22px 50px -18px var(--glow); }

/* 비교 슬라이더: 경계선이 빛 */
.cmp {
  --pos: 50%;
  position: relative; aspect-ratio: 3 / 4; width: 100%; overflow: hidden;
  background: var(--ink-3); border-radius: 2px; user-select: none; touch-action: pan-y;
}
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp .after { clip-path: inset(0 0 0 var(--pos)); }
.cmp .bar {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; translate: -0.5px 0;
  background: #fff; box-shadow: 0 0 14px 1px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.cmp .bar::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; translate: -50% -50%;
  border-radius: 50%; border: 1px solid #fff; background: rgba(9, 9, 10, 0.45); backdrop-filter: blur(6px);
}
.cmp .bar::before {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -54%; z-index: 1;
  font-size: 15px; letter-spacing: 3px; color: #fff; white-space: nowrap;
}
.cmp .tag {
  position: absolute; bottom: 16px; font-family: var(--f-mark); font-size: 9px; letter-spacing: 0.3em;
  padding: 7px 11px 6px; background: rgba(9, 9, 10, 0.6); backdrop-filter: blur(8px); color: #fff; pointer-events: none;
}
.cmp .tag.b { left: 16px; }
.cmp .tag.a { right: 16px; color: #141416; background: rgba(255, 255, 255, 0.9); }
.cmp input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.cmp:has(input:focus-visible) { outline: 1px solid var(--light); outline-offset: 4px; }
.hero .shot { justify-self: end; width: min(100%, 470px); }
.hero .shot figcaption, .cap { margin-top: 14px; font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; gap: 16px; }

/* 약속 띠 */
.vows { border-block: 1px solid var(--line); }
.vows ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.vows li { padding: 34px 24px 32px 0; }
.vows li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.vows b { display: block; font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; letter-spacing: -0.03em; margin-top: 10px; }

/* 섹션 공통 */
.sec { padding-block: var(--sec); }
[id] { scroll-margin-top: 72px; }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 84px); }

/* 소개 */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 128px); align-items: center; }
.about .txt { display: grid; gap: 26px; }
.about p { color: var(--mute); max-width: 30em; }
.about p strong { color: var(--text); font-weight: 400; }
.about figure { position: relative; }
.about figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* 시공 범위: 이미지 카드 3열 */
.scope ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 2.6vw, 36px); }
.scope li { display: grid; gap: 10px; align-content: start; }
.scope figure { overflow: hidden; background: var(--ink-3); margin-bottom: 12px; }
.scope figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.scope li:hover figure img { transform: scale(1.045); }
.scope .en { font-family: var(--f-mark); font-size: 10px; letter-spacing: 0.3em; color: var(--dim); }
.scope h3 { font-size: clamp(19px, 1.9vw, 25px); font-weight: 400; letter-spacing: -0.035em; }
.scope p { color: var(--mute); font-size: 15px; }

/* 시공 사례 */
.case { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 110px); align-items: start; padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); }
.case.flip .info { order: 2; }
.case .info { display: grid; gap: 30px; position: sticky; top: 104px; }
.case h3 { font-size: clamp(25px, 3vw, 40px); font-weight: 300; line-height: 1.28; letter-spacing: -0.04em; margin-top: 12px; }
.case .meta { display: grid; grid-template-columns: 84px 1fr; row-gap: 14px; font-size: 15px; padding-block: 24px; border-block: 1px solid var(--line); }
.case .meta dt { color: var(--dim); font-size: 13px; padding-top: 2px; }
.case .meta dd { color: var(--text); }
.film { display: flex; align-items: center; gap: 14px; }
.film img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.film small { display: block; color: var(--mute); font-size: 13px; }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; }
.pairs button { font-size: 14px; font-weight: 300; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line); color: var(--mute); transition: all .25s; }
.pairs button:hover { color: var(--text); border-color: var(--line-2); }
.pairs button[aria-pressed="true"] { background: var(--light); color: var(--ink); border-color: var(--light); font-weight: 500; }
.more { font-size: 14px; color: var(--mute); border-bottom: 1px solid var(--line-2); justify-self: start; padding-bottom: 3px; transition: color .25s, border-color .25s; }
.more:hover { color: var(--light); border-color: var(--light); }
.view { display: grid; gap: 0; }
.view .cmp { max-width: 600px; }
.case.flip .view .cmp { margin-left: auto; }
.note { margin-top: 18px; max-width: 600px; color: var(--mute); font-size: 15px; min-height: 5.25em; }
.case.flip .note, .case.flip .steps { margin-left: auto; width: 100%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 600px; margin-top: 20px; }
.steps figure img { aspect-ratio: 1; width: 100%; object-fit: cover; filter: saturate(.85); transition: filter .4s; }
.steps figure:hover img { filter: none; }
.steps figcaption { font-size: 12.5px; color: var(--dim); margin-top: 8px; line-height: 1.5; }

/* 시공 과정 */
.process { background: var(--ink-2); position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; top: -40%; left: -8%; width: 46vw; height: 140%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent 70%); transform: skewX(-21deg); filter: blur(40px); pointer-events: none; }
.process .wrap { position: relative; }
.process ol { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-2); }
.process li { padding: 26px 18px 0 0; position: relative; }
.process li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--light); }
.process .n { font-family: var(--f-mark); font-size: 10px; letter-spacing: 0.2em; color: var(--dim); }
.process h3 { font-size: 18px; font-weight: 400; letter-spacing: -0.03em; margin-block: 12px 8px; }
.process li p { font-size: 14px; color: var(--mute); line-height: 1.65; }
.process .foot { margin-top: 56px; color: var(--mute); max-width: 40em; font-size: 15px; }

/* 상담 */
.contact { position: relative; overflow: hidden; text-align: left; }
.contact::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: 120vw; height: 100%; translate: -50% 0; background: radial-gradient(closest-side, rgba(70, 60, 48, 0.07), transparent); pointer-events: none; }
.contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 7vw, 110px); align-items: end; }
.contact .h2 { font-size: clamp(34px, 5.4vw, 72px); margin-block: 22px 28px; }
.ways { border-top: 1px solid var(--line-2); }
.ways a { display: grid; grid-template-columns: 96px 1fr auto; align-items: baseline; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .35s, color .3s; }
.ways a:hover { padding-left: 12px; color: var(--light); }
.ways span { font-size: 13px; color: var(--dim); }
.ways b { font-size: clamp(18px, 2vw, 24px); font-weight: 300; letter-spacing: -0.02em; }
.ways i { font-style: normal; color: var(--mute); transition: translate .3s; }
.ways a:hover i { translate: 4px 0; color: var(--light); }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* 푸터 */
.foot-bar { border-top: 1px solid var(--line); padding-block: 36px 44px; color: var(--dim); font-size: 13px; }
.foot-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: baseline; }
.foot-bar .mark strong { font-size: 14px; color: var(--mute); }

/* 모바일 하단 상담 바 */
.dock { display: none; }

@media (max-width: 960px) {
  :root { --gut: max(20px, env(safe-area-inset-left, 0px)); }
  .nav a:not(.pill) { display: none; }
  .hero .wrap, .about .wrap, .case, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .shot { justify-self: stretch; width: 100%; }
  .case .info { position: static; }
  .case.flip .info { order: 0; }
  .case.flip .view .cmp { margin-left: 0; }
  .vows ul { grid-template-columns: repeat(2, 1fr); }
  .vows li:nth-child(3) { padding-left: 0; border-left: 0; }
  .vows li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scope ul { grid-template-columns: minmax(0, 1fr); }
  .process ol { grid-template-columns: repeat(2, 1fr); row-gap: 40px; border-top: 0; }
  .process li { border-top: 1px solid var(--line-2); }
  .about figure { order: -1; }
  .note { min-height: 0; }
  .ways a { grid-template-columns: 78px 1fr auto; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 60;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .dock a { height: 64px; display: grid; place-items: center; font-size: 15px; font-weight: 400; }
  .dock a + a { background: var(--light); color: var(--ink); font-weight: 500; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 견적 문의 폼 */
.contact .wrap { align-items: start; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.contact .side { display: grid; gap: 0; }
.contact .side .ways { margin-top: 44px; }
.form { display: grid; gap: 26px; background: var(--ink); border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 40px 80px -60px var(--glow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 9px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; color: var(--mute); padding: 0; }
.field legend { margin-bottom: 9px; }
.field em, .agree em { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 4px; }
.field small { color: var(--dim); font-size: 12px; margin-left: 6px; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 9px 0 11px; transition: border-color .25s;
}
.form textarea { resize: vertical; min-height: 104px; line-height: 1.65; }
.form ::placeholder { color: var(--dim); }
.form input:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--light); box-shadow: 0 1px 0 var(--light); }
.form.tried input:invalid, .form.tried textarea:invalid { border-bottom-color: #b3261e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: block; font-size: 14px; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line); color: var(--mute); transition: all .2s; }
.chips label:hover span { border-color: var(--line-2); color: var(--text); }
.chips input:checked + span { background: var(--light); border-color: var(--light); color: var(--ink); font-weight: 500; }
.chips input:focus-visible + span { outline: 1px solid var(--light); outline-offset: 3px; }
.drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 18px 20px; border: 1px dashed var(--line-2); cursor: pointer; transition: border-color .25s, background .25s; }
.drop:hover, .drop.over { border-color: var(--light); background: var(--ink-2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--text); }
.drop small { margin: 0; font-size: 13px; color: var(--mute); }
.drop:has(input:focus-visible) { outline: 1px solid var(--light); outline-offset: 3px; }
.agree { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--mute); cursor: pointer; line-height: 1.6; }
.agree input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--light); }
.form.tried .agree input:invalid + span { color: #b3261e; }
.form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.form .btn[disabled] { opacity: .5; cursor: default; }
.status { font-size: 14px; padding: 14px 16px; background: var(--ink-2); border-left: 2px solid var(--light); color: var(--text); }
.status.err { border-left-color: #b3261e; }
@media (max-width: 960px) {
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .form .row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; justify-content: center; }
}

/* 카카오톡 연결 안내 */
.hint { font-size: 13px; color: var(--mute); line-height: 1.6; }
div.status { display: grid; gap: 12px; }
.form .status textarea { min-height: 0; box-shadow: none; font-size: 13px; line-height: 1.6; color: var(--mute); border: 1px solid var(--line); padding: 10px 12px; background: var(--ink); resize: none; }


/* 모션: 첫 화면은 순서대로 떠오르고, 아래 구역은 화면에 들어올 때 나타난다 */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(1.04); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
.hero .wrap > div > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero .wrap > div > :nth-child(1) { animation-delay: .1s; }
.hero .wrap > div > :nth-child(2) { animation-delay: .22s; }
.hero .wrap > div > :nth-child(3) { animation-delay: .38s; }
.hero .wrap > div > :nth-child(4) { animation-delay: .5s; }
.hero .shot { animation: unveil 1.3s cubic-bezier(.2, .7, .2, 1) .25s both; }
.head { animation: rise .8s ease both; }

.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .95s cubic-bezier(.2, .7, .2, 1), transform .95s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.img { transform: scale(1.03); clip-path: inset(0 0 14% 0); transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1), clip-path 1.2s cubic-bezier(.2, .7, .2, 1); }
.js .rv.img.in { clip-path: inset(0 0 0 0); }
/* 시공 과정: 선이 왼쪽에서 그어지고 점이 차례로 찍힌다 */
.js .process ol { border-top-color: transparent; position: relative; }
.js .process ol::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.js .process ol.in::before { transform: scaleX(1); }
.js .process li::before { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--d, 0s) + .2s); }
.js .process li.in::before { transform: scale(1); }
/* 메뉴 밑줄, 사진 확대 */
.nav a:not(.pill) { position: relative; }
.nav a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.nav a:not(.pill):hover::after { transform: scaleX(1); transform-origin: left; }
.steps figure { overflow: hidden; }
.steps figure img { transition: filter .4s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.steps figure:hover img { transform: scale(1.05); }
.cmp img { transition: opacity .35s; }
.cmp.swap img { opacity: 0; }
@media (max-width: 960px) { .js .process ol::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .wrap > div > *, .hero .shot, .head { animation: none; }
  .js .rv, .js .rv.img { opacity: 1; transform: none; clip-path: none; }
  .js .process ol::before, .js .process li::before { transform: none; }
}
/* 안내 상자는 누른 즉시 보여야 하므로 스크롤 모션에서 뺀다 */
.js .status.rv { opacity: 1; transform: none; transition: none; }

@media (min-width: 620px) and (max-width: 960px) { .scope ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
