/* 디자인스튜디오 리홈 — 공통 스타일
   레이아웃: 최대 1600px, 좌우 여백 20px(모바일) / 40px(태블릿 이상), 섹션 위아래 12~14vh */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  --ivory: #f7f4ef;
  --sand: #ede6dc;
  --night: #1d1915;
  --ink: #2b2620;
  --ink-soft: #6b6157;
  --wood: #7b5d41;
  --wood-light: #c49e78;
  --stone: #d9cfc1;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro KR", "SF Pro Display", "SF Pro Text", "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1600px;
  --gutter: 20px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--wood-light); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 12px; letter-spacing: .35em; color: var(--wood); text-transform: uppercase; }
@media (min-width: 768px) { .eyebrow { font-size: 14px; } }
/* 섹션 제목 크기 (2026-11-12 사용자 요청으로 전체 약 80%로 줄임: 9vw/4.2vw → 7.2vw/3.4vw, 최대 52px) */
.h-display { font-weight: 300; line-height: 1.15; font-size: 7.2vw; letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 768px) { .h-display { font-size: min(3.4vw, 52px); } }

/* 밑줄이 왼쪽에서 그려지는 링크 */
.link-u {
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link-u:hover { background-position: 0 100%; background-size: 100% 1px; }

/* 알약 버튼 */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 16px 28px; font-size: 15px; line-height: 1;
  transition: background-color .4s, color .4s, border-color .4s;
}
.pill--light { background: var(--ivory); color: var(--ink); font-weight: 500; }
.pill--light:hover { background: #c8642a; color: #fff; } /* 2026-11-15: 마우스 올리면 주황색 (첫 화면 견적문의 버튼) */
.pill--ghost-light { border: 1px solid rgba(247,244,239,.5); color: var(--ivory); }
.pill--ghost-light:hover { border-color: var(--ivory); background: rgba(247,244,239,.1); }
.pill--line { border: 1px solid rgba(43,38,32,.3); }
.pill--line:hover { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.pill--dark { background: var(--ink); color: var(--ivory); }
.pill--dark:hover { background: var(--wood); }

/* 위에서 아래로 줄 단위로 올라오는 제목 */
.line-mask { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-in .line-mask > span, .line-mask.is-in > span { transform: none; }
.line-mask:nth-child(2) > span { transition-delay: .08s; }
.line-mask:nth-child(3) > span { transition-delay: .16s; }

/* 아래에서 살짝 올라오며 나타나기 */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.fade-up.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .line-mask > span, .fade-up { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* ───────── 헤더 ───────── */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ink);
  transition: color .5s, background-color .5s;
}
.hd.is-dark { color: var(--ivory); }
.hd.is-scrolled:not(.is-dark) { background: rgba(247,244,239,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hd__in { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .hd__in { height: 80px; } }
.hd__logo { display: block; height: 16px; width: 74px; position: relative; }
@media (min-width: 768px) { .hd__logo { height: 19px; width: 88px; } }
.hd__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .5s; }
.hd__logo .logo-w { opacity: 0; }
.hd.is-dark .hd__logo .logo-w { opacity: 1; }
.hd.is-dark .hd__logo .logo-d { opacity: 0; }
/* 메뉴: 영어 이름만, 로고 옆 왼쪽에 모음 / 오른쪽에 Search + 작은 네모 견적문의 버튼 (2026-11-15 사용자 요청) */
.hd__nav { display: none; gap: 28px; margin-left: clamp(48px, 9vw, 160px); margin-right: auto; }
@media (min-width: 1024px) { .hd__nav { display: flex; } }
/* 메뉴 밑줄: 주황색, 왼쪽에서 오른쪽으로 그어짐 (2026-11-15 사용자 요청) */
.hd__link { font-size: 17px; letter-spacing: -.01em; background: linear-gradient(#c8642a, #c8642a) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.hd__link:hover, .hd__link:focus-visible { background-size: 100% 1px; }
/* 글씨도 밑줄과 함께 왼쪽→오른쪽으로 주황색이 채워짐 (같은 글자를 주황색으로 겹쳐 폭을 늘림) */
.hd__link { position: relative; }
.hd__link::before { content: attr(data-t); position: absolute; left: 0; top: 0; width: 0; overflow: hidden; white-space: nowrap; color: #c8642a; transition: width .6s var(--ease); pointer-events: none; }
.hd__link:hover::before, .hd__link:focus-visible::before { width: 100%; }
.hd__right { display: flex; align-items: center; gap: clamp(16px, 4vw, 64px); margin-left: auto; }
/* 견적문의 버튼: 평소 흰색, 마우스 올리면 주황색 (2026-11-15 사용자 요청) */
.hd__cta { display: none; border: 1px solid #fff; border-radius: 2px; padding: 5px 11px; font-size: 13px; line-height: 1.3; letter-spacing: .02em; background: #fff; color: var(--ink); transition: background-color .4s, border-color .4s, color .4s; }
.hd:not(.is-dark) .hd__cta { border-color: var(--stone); }

/* 현장 검색 (넓은 화면: 헤더 / 휴대폰: 메뉴 안) */
.sr { position: relative; display: none; align-items: center; gap: 10px; }
@media (min-width: 1024px) { .sr { display: flex; } }
.sr__btn { font-size: 17px; letter-spacing: -.01em; }
.sr__in { width: 0; padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 14px; outline: none; opacity: 0; transition: width .5s var(--ease), opacity .3s; }
.sr__in::placeholder { color: currentColor; opacity: .5; }
.sr__in::-webkit-search-cancel-button, .menu__search::-webkit-search-cancel-button { -webkit-appearance: none; }
.sr.is-open .sr__in { width: 190px; opacity: 1; }
.sr__list { position: absolute; top: calc(100% + 14px); right: 0; width: 320px; max-height: 70vh; overflow-y: auto; background: var(--ivory); color: var(--ink); border-radius: 8px; box-shadow: 0 12px 40px rgba(29,25,21,.15); }
.sr__list:empty { display: none; }
.sr__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; transition: background-color .2s; }
.sr__item:hover { background: var(--sand); }
.sr__item img { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; }
.sr__item span { display: flex; flex-direction: column; font-size: 15px; line-height: 1.35; }
.sr__item small { font-size: 12px; color: var(--ink-soft); }
.sr__none { padding: 14px 16px; font-size: 14px; color: var(--ink-soft); }
.menu__search { width: 100%; margin-bottom: 8px; padding: 10px 0; border: 0; border-bottom: 1px solid #fff; background: transparent; color: #fff; font: inherit; font-size: 16px; outline: none; }
.menu__search::placeholder { color: rgba(255,255,255,.85); }
.menu__results { margin-bottom: 24px; }
.menu__results .sr__item { padding: 8px 0; }
.menu__results .sr__item:hover { background: none; }
.menu__results .sr__item small, .menu__results .sr__none { color: rgba(247,244,239,.6); }
.menu__results .sr__none { padding: 8px 0; }
@media (min-width: 768px) { .hd__cta { display: block; } }
.hd .hd__cta:hover { background: #c8642a; border-color: #c8642a; color: #fff; }
.hd__burger { position: relative; z-index: 60; width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
@media (min-width: 1024px) { .hd__burger { display: none; } }
.hd__burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.hd__progress { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; opacity: .4; transform-origin: left; transform: scaleX(0); }

/* 모바일 전체 메뉴 */
.menu {
  /* 2026-11-15 사용자 요청: 완전 검정 대신 반투명 검정 + 살짝 흐림 → 뒤의 화면이 비침 */
  position: fixed; inset: 0; z-index: 55; background: rgba(29,25,21,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-shadow: 0 1px 8px rgba(0,0,0,.35); /* 더 밝게(50%) — 밝은 화면 위에서도 글씨가 읽히게 옅은 그림자 */ color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
/* 2026-11-15 사용자 요청: 메뉴 글씨 줄임(11vw → 7vw), 검색칸 흰색으로 잘 보이게, 아래는 전화·주소만 */
.menu a.menu__item { font-size: 5.6vw; font-weight: 300; line-height: 1.6; letter-spacing: .04em; } /* 7vw → 5.6vw (2026-11-15) */
.menu__foot { margin-top: 40px; font-size: 14px; display: grid; gap: 8px; color: rgba(247,244,239,.85); }
.menu__foot dt { display: inline; margin-right: 12px; color: rgba(247,244,239,.55); }
.menu__foot dd { display: inline; margin: 0; }
/* 메뉴를 열면 머리글(로고·닫기 X)이 메뉴 위로 보이게: 예전엔 메뉴 뒤에 가려져 닫기 버튼이 안 보였음 */
body.menu-open .hd { z-index: 60; background: transparent !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .hd { color: var(--ivory); }
body.menu-open .hd .logo-w { opacity: 1; }
body.menu-open .hd .logo-d { opacity: 0; }
body.menu-open .hd__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .hd__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ───────── 프로젝트 카드 (공통) ───────── */
.card { display: block; }
.card__img { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--sand); }
@media (min-width: 768px) { .card__img { border-radius: 24px; } }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__meta { margin-top: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card__sub { font-size: 12px; color: var(--ink-soft); }
.card__title { margin-top: 4px; font-size: 18px; font-weight: 400; }
@media (min-width: 768px) { .card__sub { font-size: 14px; } .card__title { font-size: 24px; } }
.card__arrow { margin-top: 4px; font-size: 14px; color: var(--wood); transition: transform .5s; }
.card:hover .card__arrow { transform: translateX(4px); }

/* 분류 버튼 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { flex-shrink: 0; border: 1px solid var(--stone); border-radius: 999px; padding: 10px 20px; font-size: 14px; transition: border-color .3s, background-color .3s, color .3s; }
@media (min-width: 768px) { .tab { font-size: 15px; } }
.tab:hover { border-color: var(--ink); }
.tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.tab em { font-style: normal; margin-left: 4px; opacity: .5; }
@keyframes tabfade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tabfade { animation: tabfade .6s var(--ease); }

/* ───────── 상담 섹션 + 푸터 (공통, 어두운 배경) ───────── */
.contact { position: relative; background: var(--night); color: var(--ivory); padding-block: 14vh; }
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: repeat(12, 1fr); } .contact__l { grid-column: span 5; } .contact__r { grid-column: 7 / span 6; } }
.contact .eyebrow { color: var(--wood-light); margin-bottom: 20px; }
.contact__h { font-weight: 300; font-size: 8vw; line-height: 1.12; letter-spacing: -.01em; }
@media (min-width: 768px) { .contact__h { font-size: min(4vw, 60px); } }
.phr { display: inline-block; } /* 구절이 한 줄에 들어가면 통째로, 안 들어갈 때만 안에서 줄바꿈 */
.contact__p { margin-top: 32px; max-width: 28rem; font-size: 15px; line-height: 1.7; opacity: .7; }
@media (min-width: 768px) { .contact__p { font-size: 18px; } }
/* 2026-11-15: 견적상담 신청서 페이지와 같은 3문단 문구, 줄마다 한 줄 고정 (칸이 좁으면 글자를 줄임) */
.contact__l { container-type: inline-size; }
.contact__p.contact__p { max-width: none; font-size: min(17px, 3.6cqi); }
/* 제목 "어떤 공간에서의 일상을 / 꿈꾸고 계신가요?" 두 줄 고정 */
.contact__h.contact__h { font-size: min(4vw, 60px, 8cqi); }
@media (max-width: 767px) { .contact__h.contact__h { font-size: min(8vw, 8cqi); } }
.contact__h .line-mask { white-space: nowrap; }
.contact__p p + p { margin-top: 1.2em; }
.contact__p span { display: block; white-space: nowrap; }
/* 휴대폰에서만 정해진 곳에서 줄바꿈 (2026-11-15 사용자 요청: 시공 범위를 / 라이프스타일과 / 살피고, / 조율을 위해 뒤) */
br.m { display: none; }
@media (max-width: 639px) { br.m { display: inline; } }
@media (max-width: 639px) { .contact__p.contact__p { font-size: 15px; } .contact__p span { white-space: normal; } } /* 휴대폰: 글자가 너무 작아지지 않게 줄바꿈 허용 */
.contact__dl { margin-top: 48px; display: grid; gap: 20px; font-size: 15px; }
.contact__dl div { display: flex; gap: 24px; }
.contact__dl dt { width: 64px; flex-shrink: 0; opacity: .5; }
.contact__card { min-height: 420px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(247,244,239,.15); border-radius: 28px; padding: 32px; }
@media (min-width: 768px) { .contact__card { padding: 48px; } }
.contact__card-k { font-size: 24px; font-weight: 400; line-height: 1.3; }
@media (min-width: 768px) { .contact__card-k { font-size: 2rem; } }
.contact__card-t { margin-top: 20px; font-size: 24px; line-height: 1.4; }
@media (min-width: 768px) { .contact__card-t { font-size: 2.2rem; } }
/* 상담신청서에 적을 항목 5개: 번호 + 구분선으로 또렷하게 */
.contact__card ul { margin-top: 28px; border-top: 1px solid rgba(247,244,239,.25); }
.contact__card li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(247,244,239,.15); font-size: 16px; line-height: 1.5; }
@media (min-width: 768px) { .contact__card li { font-size: 18px; padding: 18px 0; } }
.contact__card li > span { flex-shrink: 0; font-size: 12px; letter-spacing: .1em; color: var(--wood-light); font-variant-numeric: tabular-nums; }
.contact__card .pill { margin-top: 40px; align-self: center; /* 2026-11-15 가운데로 */ padding: 20px 36px; font-size: 16px; font-weight: 500; background: var(--ivory); color: var(--ink); }
.contact__card .pill:hover { background: #c8642a; color: #fff; } /* 2026-11-15: 마우스 올리면 주황색 */

/* 푸터: 얇은 한 줄 (2026-11-15 사용자 요청, 예전의 큰 로고·여러 칸 푸터는 없앰) */
.ft { background: var(--ivory); color: var(--ink-soft); border-top: 1px solid var(--stone); font-size: 12px; }
.ft__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 16px; }
.ft__c { color: var(--ink); letter-spacing: .02em; }
.ft__info { display: flex; flex-wrap: wrap; gap: 4px 18px; font-style: normal; }
.ft__info a { transition: color .3s; }
.ft__info a:hover { color: var(--ink); }
@media (max-width: 767px) { .ft__bar { flex-direction: column; align-items: flex-start; padding-block: 20px; } .ft__info { gap: 4px 14px; } }

/* 크게 보기 */
/* 사진 크게 보기 (2026-11-15 사용자 요청): 검은 배경 대신 밝은 반투명 배경 뒤로 페이지가 흐릿하게 비침, 얇은 선 아이콘 */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(247,244,239,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .4s; }
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb img { max-width: calc(100vw - 160px); max-height: 100vh; width: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(29,25,21,.12); }
.lb button { position: absolute; color: var(--ink); width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; opacity: .75; transition: opacity .3s; }
.lb button:hover { opacity: 1; }
.lb button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lb .lb__x { top: 24px; right: 32px; width: 44px; height: 44px; }
.lb .lb__prev { left: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 48px; }
.lb .lb__next { right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 48px; }
.lb__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--ink-soft); font-size: 13px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .lb img { max-width: 100vw; max-height: 80vh; }
  .lb .lb__x { top: 12px; right: 12px; width: 36px; height: 36px; }
  .lb .lb__prev, .lb .lb__next { top: auto; bottom: 12px; transform: none; }
}
