/* 브로앤홈 리디자인 — 공통 스타일 */
:root {
  --ink: #2b2622;
  --ink-2: #3d3631;
  --brown: #8a7466;
  --gold: #c9b49a;
  --bg: #ffffff;
  --beige: #f2efea;
  --chip: #f6f3ef;
  --ph: #ebe6df;
  --line: #e6e1da;
  --line-2: #eee9e2;
  --line-3: #d6d1ca;
  --muted: #5f5650;
  --muted-2: #6b625b;
  --muted-3: #8c837b;
  --naver: #03c75a;
  --daangn: #ff6f0f;
  --kakao: #fee500;
  --kakao-ink: #3c1e1e;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', system-ui, sans-serif;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
input::placeholder, textarea::placeholder { color: #a39b93; }

.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph-label { font-size: 14px; line-height: 1.6; color: var(--muted-3); text-align: center; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 로고 ---------- */
.logo { display: flex; align-items: center; gap: 12px; line-height: 1; }
.logo svg { flex-shrink: 0; overflow: visible; }
.logo-word { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- 헤더 ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in { height: 84px; display: flex; align-items: center; }
.gnb { margin-left: 56px; display: flex; gap: 40px; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.gnb a { position: relative; padding: 8px 0; white-space: nowrap; }
.gnb a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.gnb a:hover::after, .gnb a[aria-current="page"]::after { transform: scaleX(1); }
.search { margin-left: auto; width: 280px; height: 40px; padding: 0 6px 0 16px; display: flex; align-items: center; background: var(--chip); border-radius: 12px; }
.search input { flex-grow: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 13px; padding: 0; }
.search input::placeholder { color: #9a928a; }
.search button { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.utils { margin-left: 28px; display: flex; gap: 22px; }
.util { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.util span { font-size: 11px; color: #4a4540; }
.util:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gnb-m { display: none; }

/* ---------- 공통 애니메이션 (스크롤 진입 시 재생) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(115%); } to { transform: none; } }
@keyframes fillX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes blink { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.line { display: block; overflow: hidden; padding: .06em 0; }
.line > span { display: inline-block; }
.js .rv .line > span { transform: translateY(115%); }
.js .rv.in .line > span { animation: lineUp 950ms var(--ease-out) both; }
.js .rv .rise { opacity: 0; }
.js .rv.in .rise { animation: rise 800ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.js .rv .fill-x { transform: scaleX(0); }
.js .rv.in .fill-x { animation: fillX var(--dur, 1600ms) var(--d, 400ms) cubic-bezier(.6, 0, .2, 1) both; }
.fill-x { transform-origin: left center; }

.card-hover { transition: transform .35s ease, box-shadow .35s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(43, 38, 34, .08); }

/* ---------- 히어로 ---------- */
.hero { height: calc(100vh - 85px); min-height: 636px; padding: 40px 0; display: flex; }
.hero-stage { position: relative; flex-grow: 1; overflow: hidden; background: #7d736a; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.on { opacity: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 26, 22, .66) 0%, rgba(30, 26, 22, .4) 40%, rgba(30, 26, 22, .05) 68%); }
.slide-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, .25); }
.slide-bar i { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, .85); }
.slide.on .slide-bar i { animation: barfill 5s linear forwards; }
.hero.paused .slide-bar i { animation-play-state: paused; }
@keyframes barfill { from { width: 0; } to { width: 100%; } }
.hero-copy { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.hero-copy h1 { font-size: 54px; line-height: 1.32; letter-spacing: -0.04em; font-weight: 700; white-space: pre-line; }
.hero-copy p { margin-top: 28px; font-size: 18px; line-height: 1.65; font-weight: 500; white-space: pre-line; opacity: .92; }
.btn-dark { height: 56px; padding: 0 28px; display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; font-size: 16px; font-weight: 700; transition: filter .2s, background-color .2s; }
.btn-dark:hover { filter: brightness(.9); }
.btn-dark { background: var(--ink); color: #fff; }
.cta-row { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta-row p { font-size: 18px; font-weight: 500; color: var(--muted); }
.sec-sub { margin-top: 14px; font-size: 17px; color: var(--muted); }
.hero-ctrl { position: absolute; right: 0; bottom: 44px; display: flex; align-items: center; gap: 8px; }
.hero-count { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; background: rgba(30, 26, 22, .55); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-count i { width: 1px; height: 10px; background: rgba(255, 255, 255, .5); }
.ctrl { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(30, 26, 22, .55); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ctrl:hover { background: rgba(30, 26, 22, .75); }
.ctrl .ic-play { display: none; }
.hero.paused .ctrl .ic-play { display: block; }
.hero.paused .ctrl .ic-pause { display: none; }

/* ---------- 소개 ---------- */
.about { position: relative; background: var(--beige); padding-bottom: 120px; }
.fab { position: fixed; right: 40px; bottom: 40px; z-index: 25; transition: opacity .3s ease, transform .3s ease, visibility .3s; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.4; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.fab:hover { filter: brightness(.88); }
/* 히어로가 보이는 동안은 숨김 */
.fab.off { opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); pointer-events: none; }
.band { padding: 76px 40px 80px; background: var(--ink); color: #fff; text-align: center; font-size: 52px; line-height: 1.25; font-weight: 700; letter-spacing: -0.04em; }
.band + .wrap, .band-body { padding-top: 96px; }
.pain-list { display: flex; flex-direction: column; gap: 24px; }
.pain { min-height: 360px; display: flex; gap: 24px; padding: 24px; background: #fff; border-radius: 16px; }
.pain:nth-child(even) { flex-direction: row-reverse; }
.pain-img { position: relative; width: 52%; flex-shrink: 0; overflow: hidden; border-radius: 12px; background: var(--ph); display: flex; align-items: center; justify-content: center; }
.pain-txt { flex: 1; min-width: 0; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.tag-fail { align-self: flex-start; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 6px; background: #f3e3df; color: #b4473a; font-size: 13px; font-weight: 600; }
.pain-txt h3 { margin-top: 16px; font-size: 32px; line-height: 1.3; font-weight: 700; letter-spacing: -0.04em; }
.pain-txt p { margin-top: 14px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.dots { margin-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: blink 1.2s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: 250ms; }
.dots span:nth-child(3) { animation-delay: 500ms; }
.about .band-2 { margin-top: 48px; }
.about .band-3, .about .band-4 { margin-top: 120px; }
.lead { margin: 0 auto; max-width: 720px; text-align: center; font-size: 22px; line-height: 1.7; font-weight: 500; }
.promise { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.promise > div { padding: 40px 36px; background: #fff; border-radius: 16px; }
.art { height: 168px; margin: -12px -8px 0; padding: 14px 0 8px; border-radius: 12px; background: #f6f2ec; display: flex; align-items: center; justify-content: center; }
.art svg { width: 100%; height: 100%; overflow: visible; }
/* 일러스트 애니메이션: 화면에 들어오면 한 번 재생 + 은은한 반복 */
.art g, .art path, .art circle { transform-box: view-box; }
.a-drop { transform-origin: 100px 100px; }
.js .rv .a-drop { opacity: 0; transform: translateY(-46px); }
.js .rv.in .a-drop { animation: aDrop 700ms cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(500ms + var(--i) * 180ms); }
@keyframes aDrop { 0% { opacity: 0; transform: translateY(-46px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.a-needle { transform-origin: 186px 50px; }
.rv.in .a-needle { animation: aStitch 1.6s 1.4s ease-in-out infinite; }
@keyframes aStitch { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-4px, 10px) rotate(-8deg); } }
.rv.in .a-thread { stroke-dasharray: 6 4; animation: aThread 1.2s linear infinite; }
@keyframes aThread { to { stroke-dashoffset: -20; } }
.a-curtain { transform-origin: 100px 13px; }
.js .rv .a-curtain { transform: scaleY(.08); }
.js .rv.in .a-curtain { animation: aCurtain 1100ms cubic-bezier(.2, .9, .3, 1.15) both, aSway 3.6s 1.9s ease-in-out infinite; animation-delay: calc(500ms + var(--i) * 150ms), 1.9s; }
@keyframes aCurtain { from { transform: scaleY(.08); } to { transform: scaleY(1); } }
@keyframes aSway { 0%, 100% { transform: scaleY(1) skewX(0); } 50% { transform: scaleY(1) skewX(1.8deg); } }
.a-tape { transform-origin: 168px 104px; }
.js .rv .a-tape { transform: scaleY(0); }
.js .rv.in .a-tape { animation: aTape 900ms 1300ms cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes aTape { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.js .rv .a-arrow { opacity: 0; }
.js .rv.in .a-arrow { animation: aFade 400ms 2100ms ease both, aPulse 1.8s 2.5s ease-in-out infinite; }
@keyframes aFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.rv.in .a-glow { animation: aPulse 3s ease-in-out infinite; }
.a-fan { transform-origin: 100px 106px; transform: rotate(var(--r)); }
.js .rv .a-fan { transform: rotate(0); }
.js .rv.in .a-fan { animation: aFan 1000ms cubic-bezier(.3, 1.35, .5, 1) both; animation-delay: calc(600ms + var(--i) * 90ms); }
@keyframes aFan { from { transform: rotate(0); } to { transform: rotate(var(--r)); } }
.a-sun { transform-origin: 168px 26px; }
.rv.in .a-sun { animation: aSpin 14s linear infinite; }
@keyframes aSpin { to { transform: rotate(360deg); } }
.js .rv.in .promise > div:hover .a-fan { animation: aFanHover 650ms ease both; animation-delay: calc(var(--i) * 40ms); }
@keyframes aFanHover { 0%, 100% { transform: rotate(var(--r)); } 45% { transform: rotate(calc(var(--r) * 1.25)); } }
.js .rv.in .promise > div:hover .a-drop { animation: aBounce 500ms ease both; animation-delay: calc(var(--i) * 80ms); }
@keyframes aBounce { 0%, 100% { opacity: 1; transform: none; } 40% { opacity: 1; transform: translateY(-7px); } }

.promise h3 { margin-top: 28px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.promise p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--muted); }

.ba-list { display: flex; flex-direction: column; gap: 32px; }
.ba { background: #fff; border-radius: 16px; padding: 24px; }
.ba-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ba-pic { position: relative; height: 440px; overflow: hidden; border-radius: 12px; background: var(--ph); display: flex; align-items: center; justify-content: center; }
.ba-pic.after { background: #e3ddd4; }
.ba-tag { position: absolute; left: 16px; top: 16px; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--muted); font-size: 14px; font-weight: 600; }
.after .ba-tag { background: var(--ink); color: #fff; }
.ba-foot { padding: 28px 8px 4px; display: flex; align-items: center; gap: 24px; }
.ba-foot > div { flex: 1; min-width: 0; }
.ba-foot h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; }
.ba-foot p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.steps-card { position: relative; padding: 56px 48px 60px; background: #fff; border-radius: 16px; }
.steps-line { position: absolute; left: calc(48px + 12.5% - 12px); right: calc(48px + 12.5% - 12px); top: 84px; height: 1px; background: #d9d1c6; }
.steps-line.fill-x { background: var(--ink); }
.steps { position: relative; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.steps b { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.steps li:last-child b { background: var(--brown); }
.steps strong { margin-top: 20px; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.steps span { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- 시공사례 (블로그 글) ---------- */
.cases { background: #fff; padding: 120px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; }
.sec-head h2 { font-size: 40px; line-height: 1.3; font-weight: 700; letter-spacing: -0.04em; }
.link-u { font-size: 15px; font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.post-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.post { display: block; }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--ph); display: flex; align-items: center; justify-content: center; }
.thumb img { transition: transform .5s ease; }
.post:hover .thumb img { transform: scale(1.04); }
.post h3 { margin-top: 18px; font-size: 18px; line-height: 1.45; font-weight: 500; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.post-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-2); min-height: 1.4em; }
.post-date { color: var(--muted-3); font-size: 13px; }
.post-src { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-3); }
.sep { width: 1px; height: 11px; background: var(--line-3); }
.badge { width: 16px; height: 16px; border-radius: 3px; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge.n { background: var(--naver); }
.badge.d { background: var(--daangn); }
.badge.img { background: #fff; }
.badge.img img { width: 80%; height: 80%; object-fit: contain; }
.badge.ig { background: linear-gradient(45deg, #f9a825, #e1306c 55%, #833ab4); }
.more-wrap { margin-top: 72px; display: flex; justify-content: center; }
.more { height: 56px; padding: 0 40px; border-radius: 12px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); font-size: 16px; font-weight: 500; transition: background-color .2s, color .2s; }
.more:hover { background: var(--ink); color: #fff; }
.skeleton .thumb { animation: blink 1.6s ease-in-out infinite; }
.skeleton h3, .skeleton .post-meta { background: var(--chip); color: transparent; border-radius: 4px; }

/* ---------- 후기 ---------- */
.beige { background: var(--beige); padding-bottom: 120px; }
.sec-title { padding-top: 120px; font-size: 44px; line-height: 1.25; font-weight: 700; letter-spacing: -0.04em; }
.reviews { overflow: hidden; }
.rv-cards { padding-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rv-card { padding: 40px; background: #fff; border-radius: 16px; display: flex; flex-direction: column; }
.rv-logo img { width: 100%; height: 100%; display: block; }
.rv-logo.daangn { background: #fff4ec; }
.rv-logo.daangn img { width: 34px; height: 34px; }
.mini-logo { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
.rv-head { display: flex; align-items: center; gap: 14px; }
.rv-logo { overflow: hidden; width: 48px; height: 48px; border-radius: 8px; color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rv-head p:first-child { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.rv-head p + p { margin-top: 4px; font-size: 14px; color: var(--muted-3); }
.rv-stats { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rv-stats > div { padding: 24px; background: var(--chip); border-radius: 12px; }
.rv-stats p:first-child { font-size: 14px; color: var(--muted-2); }
.rv-stats p + p { margin-top: 8px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.rv-stats small { font-size: 16px; font-weight: 500; margin-left: 2px; }
.kw-title { margin-top: 28px; font-size: 15px; font-weight: 600; }
.kw { margin-top: 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.kw li { position: relative; height: 40px; border-radius: 6px; background: var(--chip); overflow: hidden; }
.kw li > i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: #e3eee6; }
.kw li > span { position: relative; height: 100%; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.out { margin-top: auto; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--ink); font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s; }
.rv-card .rv-stats, .rv-card .kw, .rv-card .rating { margin-bottom: 24px; }
.rv-card .rv-stats + .rating { margin-top: -12px; }
.rating { margin-top: 12px; padding: 20px 24px; background: var(--chip); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rating-label { font-size: 14px; color: var(--muted-2); }
.rating-val { display: flex; align-items: center; gap: 10px; }
.rating-val b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.rating-val small { font-size: 14px; color: var(--muted-3); margin-left: -4px; }
.stars { display: inline-flex; gap: 2px; }
.out:hover { background: var(--ink); color: #fff; }
.marquee { margin-top: 72px; display: flex; flex-direction: column; gap: 20px; }
.mq-row { overflow: hidden; }
.mq-track { display: flex; gap: 20px; width: max-content; }
.mq-left { animation: mqLeft 60s linear infinite; }
.mq-right { animation: mqRight 60s linear infinite; }
.mq-row:hover .mq-track { animation-play-state: paused; }
@keyframes mqLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mqRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.rv-item { width: 360px; flex-shrink: 0; padding: 28px; background: #fff; border-radius: 12px; }
.rv-item .who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.rv-item .who em { font-style: normal; font-weight: 400; color: var(--muted-3); }
.rv-item .badge { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; }
.rv-item p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-grid { padding-top: 48px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.qlist { display: flex; flex-direction: column; gap: 8px; }
.qbtn { min-height: 64px; padding: 0 24px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .55); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.qbtn:hover { background: #fff; }
.qbtn[aria-selected="true"] { background: var(--ink); color: #fff; }
.qbtn svg { flex-shrink: 0; }
.chat { min-height: 440px; padding: 32px; background: #fff; border-radius: 16px; display: flex; flex-direction: column; gap: 20px; }
.bub-q { align-self: flex-end; max-width: 80%; padding: 16px 20px; border-radius: 14px 14px 4px 14px; background: var(--beige); font-size: 16px; line-height: 1.6; animation: up 400ms ease both; }
.bub-a { display: flex; gap: 12px; align-items: flex-start; max-width: 88%; animation: up 400ms 450ms ease both; }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.bub-a .name { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.bub-a .txt { padding: 16px 20px; border-radius: 4px 14px 14px 14px; background: var(--ink); color: #fff; font-size: 16px; line-height: 1.7; }
.chat-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted-3); }
.chat-foot a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 견적 문의 ---------- */
.ct-grid { padding-top: 48px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.ct-info { padding: 36px; background: #fff; border-radius: 16px; }
.ct-info h3 { font-size: 26px; line-height: 1.35; font-weight: 700; letter-spacing: -0.04em; }
.ct-info { display: flex; flex-direction: column; }
.ct-lead { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.ch-list { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.ch { padding: 18px 20px; border-radius: 12px; display: flex; align-items: center; gap: 14px; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.ch:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 38, 34, .12); }
.ch-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ch-txt { flex: 1; min-width: 0; }
.ch small { display: block; font-size: 13px; opacity: .75; }
.ch strong { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.ch-go { flex-shrink: 0; opacity: .6; transition: transform .2s ease, opacity .2s ease; }
.ch:hover .ch-go { transform: translateX(3px); opacity: 1; }
.ch-tel { background: var(--ink); color: #fff; }
.ch-tel .ch-ic { background: rgba(255, 255, 255, .14); }
.ch-kakao { background: var(--kakao); color: var(--kakao-ink); }
.ch-kakao .ch-ic { background: rgba(60, 30, 30, .1); }
.ch-naver { background: var(--naver); color: #fff; }
.ch-naver .ch-ic { background: #fff; }
.ct-dl { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; font-size: 15px; line-height: 1.5; }
.ct-dl dt { color: var(--muted-3); }
.ct-dl dd { font-weight: 500; }
.ct-form-card { position: relative; padding: 40px; background: #fff; border-radius: 16px; overflow: hidden; }
.qform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.qform .full { grid-column: 1 / -1; }
.qform label.f { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.req { color: #b4473a; margin-left: 2px; }
.fld { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #e1dbd3; border-radius: 8px; background: #faf8f5; font-size: 16px; font-weight: 400; outline: none; }
.fld:focus { border-color: var(--ink); background: #fff; }
textarea.fld { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.qform fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.qform legend { padding: 0; font-size: 14px; font-weight: 600; }
.qform legend span { font-weight: 400; color: var(--muted-3); }
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid #e1dbd3; background: #fff; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.agree { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.agree-more { color: var(--muted-3); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.agree-detail { padding: 14px 16px; border-radius: 8px; background: var(--chip); font-size: 13px; line-height: 1.7; color: var(--muted); }
.form-err { font-size: 14px; color: #b4473a; }
.send { height: 60px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.send:hover { filter: brightness(.88); }
.send:disabled { opacity: .6; cursor: progress; }
.done { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.done .big-check { width: 96px; height: 96px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; animation: pop 700ms cubic-bezier(.3, 1.1, .5, 1) both; }
.done h3 { margin-top: 32px; font-size: 30px; font-weight: 700; letter-spacing: -0.04em; animation: up 500ms 500ms ease both; }
.done p { margin-top: 12px; font-size: 17px; line-height: 1.7; color: var(--muted); animation: up 500ms 500ms ease both; }
.done button { margin-top: 32px; height: 48px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; animation: up 500ms 500ms ease both; }

/* ---------- 푸터 ---------- */
.ftr { background: var(--beige); }
.ftr-in { background: var(--ink); color: #b8afa6; overflow: hidden; }
.ftr-top { padding-top: 80px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 48px; }
.ftr .logo { color: #fff; display: inline-flex; }
.ftr-tag { margin-top: 20px; font-size: 15px; line-height: 1.7; }
.sns-list { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.sns { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #57504a; border-radius: 12px; font-size: 13px; color: #e6dfd6; transition: background-color .2s, color .2s; }
.sns:hover { background: #fff; color: var(--ink); }
.sns .badge { font-size: 9px; border-radius: 4px; }
.fl { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.fl a:hover, .ftr-legal a:hover { color: #fff; }
.ftr-call small { display: block; font-size: 14px; color: #8f867d; }
.ftr-call .tel { display: block; margin-top: 8px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.ftr-call p { margin-top: 8px; font-size: 14px; }
.kakao-btn { margin-top: 20px; height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; background: var(--kakao); color: var(--kakao-ink); font-size: 15px; font-weight: 700; }
.ftr-biz { margin-top: 64px; padding: 28px 0; border-top: 1px solid #423b35; display: flex; justify-content: space-between; gap: 40px; font-size: 13px; line-height: 1.8; }
.ftr-biz .bar { color: #57504a; }
.ftr-legal { display: flex; gap: 20px; white-space: nowrap; }
.ftr-legal a:first-child { color: #e6dfd6; font-weight: 600; }
.ftr-copy { padding-bottom: 24px; font-size: 12px; color: #8f867d; }
.ftr-big { text-align: center; line-height: .78; font-size: 236px; font-weight: 700; letter-spacing: -0.05em; color: #38312c; white-space: nowrap; margin-bottom: -26px; }
.ftr-big span { display: inline-block; }
.js .ftr-big:not(.in) span { opacity: 0; transform: translateY(60%); }
.js .ftr-big.in span { animation: ftRise 1100ms var(--ease-out) both; }
@keyframes ftRise { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 시공사례 전체 페이지 ---------- */
.cp { padding: 72px 0 120px; }
.crumb { font-size: 14px; color: var(--muted-3); }
.crumb a:hover { color: var(--ink); }
.cp h1 { margin-top: 16px; font-size: 44px; line-height: 1.3; font-weight: 700; letter-spacing: -0.04em; }
.cp-sub { margin-top: 12px; font-size: 16px; color: var(--muted-2); }
.filters { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.fsel { position: relative; }
.fsel select, .fbtn, .sort select { height: 44px; padding: 0 40px 0 18px; border: 1px solid var(--line-3); border-radius: 10px; background: #fff; font-size: 15px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.fsel select:hover, .fbtn:hover, .sort select:hover { border-color: var(--ink); }
.fsel select.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.fsel::after, .sort::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.fsel:has(select.on)::after { color: #fff; }
.fbtn { padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.cp-bar { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cp-bar p { font-size: 15px; }
.sort { position: relative; }
.sort select { width: 130px; padding: 0 36px 0 14px; font-size: 14px; }
.cp .post-grid { margin-top: 16px; }
.empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: var(--muted-3); font-size: 15px; }
.pager { margin-top: 80px; display: flex; justify-content: center; gap: 6px; }
.pager button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--ink); }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.pager button:disabled { opacity: .35; cursor: default; }

/* ---------- 개인정보처리방침 · 이용약관 ---------- */
.legal { max-width: 800px; }
.legal-date { margin-top: 12px; font-size: 15px; color: var(--muted-2); }
.legal-tabs { margin-top: 28px; display: flex; gap: 8px; }
.legal-tabs a { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--line-3); border-radius: 999px; font-size: 15px; }
.legal-tabs a:hover { border-color: var(--ink); }
.legal-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.legal-intro { margin-top: 40px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.legal-sum { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.legal-sum div { padding: 20px; border-radius: 14px; background: var(--beige); }
.legal-sum dt { font-size: 14px; color: var(--muted-3); }
.legal-sum dd { margin-top: 6px; font-size: 15px; line-height: 1.6; font-weight: 600; }
.legal-toc { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 14px; }
.legal-toc h2 { font-size: 15px; font-weight: 700; }
.legal-toc ol { margin-top: 12px; list-style: none; padding: 0; columns: 2; column-gap: 32px; font-size: 15px; line-height: 2; }
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal-body section { margin-top: 56px; scroll-margin-top: 120px; }
.legal-body h2 { font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; }
.legal-body h3 { margin-top: 24px; font-size: 16px; font-weight: 700; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.legal-body p { margin-top: 14px; }
.legal-body ul, .legal-body ol { margin-top: 12px; padding-left: 22px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li + li { margin-top: 6px; }
.legal-body a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.legal-body .tbl { margin-top: 16px; overflow-x: auto; }
.legal-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.legal-body th, .legal-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body thead th { border-top: 2px solid var(--ink); background: var(--chip); font-weight: 600; white-space: nowrap; }
.guide .legal-intro b { font-weight: 700; color: var(--ink); }
.nf { padding: 120px 0 160px; text-align: center; }
.nf-links { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }
.nf-alt { font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.nf-alt:hover { color: var(--ink); }
.legal-body .note {margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: var(--chip); font-size: 15px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .search { width: 200px; }
  .gnb { margin-left: 40px; gap: 28px; }
  .ftr-big { font-size: 18vw; }
}

@media (max-width: 1023px) {
  html { scroll-padding-top: 116px; }
  .hdr-in { height: 64px; }
  .gnb, .search { display: none; }
  .utils { margin-left: auto; gap: 18px; }
  .gnb-m { display: flex; gap: 24px; height: 44px; align-items: center; overflow-x: auto; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; letter-spacing: -0.03em; scrollbar-width: none; }
  .gnb-m::-webkit-scrollbar { display: none; }
  .gnb-m a { white-space: nowrap; }
  .gnb-m a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .hero { height: calc(100vh - 109px); height: calc(100svh - 109px); min-height: 540px; padding: 16px 0; }
  .hero-copy h1 { font-size: 42px; }
  .band { font-size: 38px; padding: 56px 24px 60px; }
  .band + .wrap, .band-body { padding-top: 64px; }
  .about .band-3, .about .band-4 { margin-top: 88px; }
  .fab { bottom: 20px; right: 16px; }
  .pain { flex-direction: column !important; min-height: 0; }
  .pain-img { width: 100%; aspect-ratio: 4 / 3; }
  .pain-txt { padding: 8px 8px 16px; }
  .promise { grid-template-columns: 1fr; gap: 16px; }
  .ba-pic { height: 340px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .rv-cards, .faq-grid, .ct-grid { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .util span { display: none; }
  .hero { padding: 0; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy p { margin-top: 18px; font-size: 16px; }
  .slide::after { background: linear-gradient(180deg, rgba(30, 26, 22, .7) 0%, rgba(30, 26, 22, .35) 55%, rgba(30, 26, 22, .1) 100%); }
  .btn-dark { height: 50px; padding: 0 22px; font-size: 15px; }
  .cta-row p { font-size: 16px; }
  .hero-ctrl { bottom: 24px; right: auto; left: 0; }
  .band { font-size: 28px; padding: 44px 16px 48px; }
  .band + .wrap, .band-body { padding-top: 40px; }
  .about { padding-bottom: 80px; }
  .about .band-3, .about .band-4 { margin-top: 64px; }
  .pain, .ba { padding: 16px; border-radius: 12px; }
  .pain-txt h3 { font-size: 24px; }
  .pain-txt p { font-size: 16px; }
  .lead { font-size: 18px; }
  .lead br { display: none; }
  .promise > div { padding: 28px 24px; border-radius: 12px; }
  .promise h3 { margin-top: 20px; font-size: 21px; }
  .ba-pics { gap: 8px; }
  .ba-pic { height: 220px; border-radius: 8px; }
  .ba-tag { left: 8px; top: 8px; height: 28px; padding: 0 10px; font-size: 12px; }
  .ba-foot { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 4px 4px; }
  .ba-foot h3 { font-size: 22px; }
  .steps-card { padding: 32px 20px; border-radius: 12px; }
  .steps-line { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 8px; }
  .steps strong { margin-top: 14px; font-size: 18px; }
  .cases { padding: 80px 0; }
  .sec-head h2, .sec-title, .cp h1 { font-size: 30px; }
  .sec-title { padding-top: 80px; }
  .beige { padding-bottom: 80px; }
  .post-grid { grid-template-columns: 1fr; gap: 36px; }
  .more-wrap { margin-top: 48px; }
  .rv-card, .ct-info, .ct-form-card { padding: 24px; border-radius: 12px; }
  .rv-stats > div { padding: 18px; }
  .rv-stats p + p { font-size: 24px; }
  .marquee { margin-top: 48px; }
  .rv-item { width: 290px; padding: 22px; }
  .qbtn { min-height: 56px; padding: 0 18px; font-size: 16px; border-radius: 10px; }
  .chat { min-height: 0; padding: 20px; border-radius: 12px; }
  .bub-q, .bub-a { max-width: 100%; }
  .qform { grid-template-columns: 1fr; }
  .done { min-height: 420px; }
  .ftr-top { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .ftr-biz { flex-direction: column; gap: 16px; margin-top: 48px; }
  .cp { padding: 40px 0 80px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .fsel select { padding-right: 36px; }
  .legal-sum { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .legal-body section { margin-top: 44px; }
  .legal-body h2 { font-size: 20px; }
}

/* ---------- 모바일 최적화 ---------- */
.mbar { display: none; }
@media (max-width: 640px) {
  /* 하단 고정 상담 버튼 (동그란 견적 버튼 대신) */
  .fab { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transition: transform .3s ease; }
  .mbar.off { transform: translateY(110%); }
  .mbar a { height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; border: 1px solid var(--line-3); background: #fff; }
  .mbar .mbar-kakao { background: var(--kakao); border-color: var(--kakao); color: var(--kakao-ink); }
  .mbar .mbar-main { background: var(--ink); border-color: var(--ink); color: #fff; }
  .hero { height: calc(100svh - 109px - 64px); min-height: 480px; }

  /* 누르기 쉬운 크기 (44px 이상) */
  .utils { gap: 4px; margin-right: -10px; }
  .util { width: 44px; height: 44px; justify-content: center; }
  .gnb-m { gap: 20px; }
  .gnb-m a { height: 44px; display: flex; align-items: center; }
  .fl { gap: 2px; }
  .fl a { padding: 8px 0; }
  .ftr-legal a { padding: 8px 0; }
  .agree-more { padding: 8px 4px; margin: -8px 0; }

  /* 섹션 여백 줄이기 */
  .band { font-size: 24px; padding: 32px 16px 36px; }
  .band + .wrap, .band-body { padding-top: 28px; }
  .about { padding-bottom: 56px; }
  .about .band-2, .about .band-3, .about .band-4 { margin-top: 48px; }
  .dots { display: none; }
  .sec-title { padding-top: 56px; font-size: 26px; }
  .sec-head h2 { font-size: 26px; }
  .beige { padding-bottom: 56px; }
  .cases { padding: 56px 0; }
  .faq-grid { padding-top: 28px; }
  .lead { font-size: 16px; }
  .lead br { display: inline; }
  .ctrl { width: 40px; height: 40px; }
  .link-u { padding: 10px 0 2px; }
  .promise { margin-top: 28px; }
  .more-wrap { margin-top: 32px; }
  .more { height: 52px; padding: 0 32px; }

  /* 고민 카드, 약속 카드, 시공 전·후: 세로로 쌓되 카드는 작게 */
  .pain-list, .promise, .ba-list { display: flex; flex-direction: column; gap: 12px; }
  .pain { flex-direction: column !important; }
  .pain-img { aspect-ratio: 16 / 10; }
  .pain-txt { padding: 4px 4px 8px; }
  .pain-txt h3 { margin-top: 12px; font-size: 20px; }
  .pain-txt p { margin-top: 8px; font-size: 15px; }
  .promise > div { padding: 20px; }
  .art { height: 120px; margin: 0; }
  .promise h3 { margin-top: 16px; font-size: 19px; }
  .promise p { font-size: 15px; }
  .ba-pic { height: 200px; }
  .ba-foot h3 { font-size: 19px; }
  .ba-foot p { font-size: 15px; }

  .fbtn { white-space: nowrap; flex-shrink: 0; }

  /* 시공사례: 두 줄 바둑판 */
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; margin-top: 24px; }
  .thumb { aspect-ratio: 1 / 1; border-radius: 10px; }
  .post h3 { margin-top: 10px; font-size: 15px; line-height: 1.4; }
  .post-meta { margin-top: 6px; font-size: 12px; gap: 6px; flex-wrap: wrap; }
  .post-date { font-size: 12px; }

  /* 자주 묻는 질문: 누른 질문 바로 아래에 답 */
  .faq-grid > .chat { display: none; }
  .qlist .chat { display: flex; margin: 0 0 4px; padding: 18px; gap: 14px; }
  .qlist .chat .bub-q { display: none; }
  .qbtn[aria-selected="true"] svg { transform: rotate(90deg); }
  .qbtn svg { transition: transform .2s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .mq-track { animation: none !important; }
  .mq-row { overflow-x: auto; }
}
