/* 온결 인테리어 — 웜 베이지 · 테라코타, 매거진 콘셉트 */
:root {
  --brand: #a8582f; --brand-ink: #fff;
  --bg: #f4efe7; --paper: #ebe3d6; --card: #fbf8f3; --line: #d9cebe; --soft: #f3e4d8;
  --ink: #2b2520; --sub: #7a6e62; --radius: 2px; --field: #fff;
  --serif: 'Noto Serif KR', serif;
  --latin: 'Cormorant Garamond', 'Noto Serif KR', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pretendard Variable', system-ui, sans-serif; line-height: 1.75; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 12px; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.muted { color: var(--sub); }
.eyebrow { font-family: var(--latin); font-style: italic; font-size: 19px; color: var(--brand); margin: 0 0 10px; }
.btn { display: inline-flex; justify-content: center; padding: 15px 26px; background: var(--ink); color: #fff; border: 0; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; letter-spacing: .02em; transition: background .2s; }
.btn:hover { background: var(--brand); }
.link-btn { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; margin-right: 18px; }
.link-btn span { transition: transform .2s; }
.link-btn:hover span { transform: translateX(4px); }

/* header — 가운데 로고 */
.head { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .3s, color .3s; }
.head.is-scrolled { background: rgba(244,239,231,.95); color: var(--ink); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: grid; grid-template-columns: 1fr 1fr 1fr auto 1fr 1fr 1fr; align-items: center; gap: 8px; width: min(1200px, 100% - 48px); margin: 0 auto; height: 78px; }
.nav a { text-decoration: none; font-family: var(--latin); font-size: 18px; letter-spacing: .04em; text-align: center; }
.nav a:hover { color: var(--brand); }
.logo { font-family: var(--latin); font-size: 30px !important; font-weight: 600; letter-spacing: .02em !important; line-height: 1; text-decoration: none; text-align: center; padding: 0 30px; }
.logo small { display: block; font-size: 11px; letter-spacing: .4em; text-transform: uppercase; font-family: 'Pretendard Variable', sans-serif; margin-top: 4px; opacity: .75; }
.nav__cta { font-family: 'Pretendard Variable', sans-serif !important; font-size: 14px !important; border: 1px solid currentColor; padding: 8px 0; }
.logo--m, .burger { display: none; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 620px; color: #fff; overflow: hidden; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s, transform 6s linear; }
.hero__slides img.is-on { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,16,.45), rgba(30,22,16,.1) 35%, rgba(30,22,16,.55)); }
.hero__copy { position: absolute; z-index: 1; left: max(24px, calc((100vw - 1200px) / 2)); bottom: 16vh; max-width: 560px; }
.hero__no { font-family: var(--latin); font-style: italic; font-size: 20px; margin: 0 0 12px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6vw, 76px); line-height: 1.22; margin: 0 0 18px; letter-spacing: -.02em; }
.hero__copy p:not(.hero__no) { font-size: 17px; margin: 0 0 26px; opacity: .9; }
.hero__cap { position: absolute; z-index: 1; right: max(24px, calc((100vw - 1200px) / 2)); bottom: 46px; margin: 0; font-size: 14px; }
.hero__dots { position: absolute; z-index: 1; right: max(24px, calc((100vw - 1200px) / 2)); bottom: 86px; display: flex; gap: 8px; }
.hero__dots button { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.hero__dots [aria-selected=true] { background: #fff; }

/* intro */
.intro { padding: clamp(80px, 11vw, 150px) 0 40px; }
.intro__in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: end; }
.intro__lead { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.7; margin: 0; }
.intro__lead em { font-style: normal; color: var(--brand); border-bottom: 1px solid; }
.intro__nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.intro__nums li { padding-top: 16px; }
.intro__nums b { font-family: var(--latin); font-size: 52px; font-weight: 500; line-height: 1; }
.intro__nums small { font-family: 'Pretendard Variable', sans-serif; font-size: 15px; margin-left: 2px; }
.intro__nums span { display: block; color: var(--sub); font-size: 13.5px; margin-top: 6px; }

/* sections */
.sec { padding: clamp(80px, 10vw, 130px) 0; }
.sec--paper { background: var(--paper); }
.sec--dark { background: #2b2520; color: #f4efe7; }
.sec__head { margin-bottom: 44px; }
.sec h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 46px); margin: 0; letter-spacing: -.02em; line-height: 1.3; }
.sec__head > p:not(.eyebrow) { color: var(--sub); max-width: 620px; margin: 12px 0 0; font-size: 16.5px; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* works */
.tabs { display: flex; gap: 22px; margin-top: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { padding: 10px 0; border: 0; background: none; font: inherit; font-size: 15.5px; color: var(--sub); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs [aria-selected=true] { color: var(--ink); border-color: var(--brand); font-weight: 600; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.work { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.work--big { grid-column: span 2; grid-row: span 2; }
.work__img { display: block; overflow: hidden; aspect-ratio: 4 / 5; }
.work--big .work__img { aspect-ratio: auto; height: calc(100% - 66px); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.work:hover img { transform: scale(1.05); }
.work__meta { display: block; padding-top: 12px; }
.work__meta small { display: block; color: var(--sub); font-size: 13px; }
.work__meta b { font-family: var(--serif); font-size: 19px; font-weight: 600; }

/* modal */
.modal { width: min(1080px, 100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 0; background: var(--card); color: var(--ink); display: none; overflow: auto; }
.modal[open] { display: grid; grid-template-columns: 1.4fr 1fr; }
.modal::backdrop { background: rgba(30,22,16,.7); backdrop-filter: blur(3px); }
.modal__x { position: absolute; right: 10px; top: 6px; z-index: 2; border: 0; background: none; font-size: 34px; cursor: pointer; color: var(--ink); }
.modal__media img#wm-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.modal__thumbs { display: flex; gap: 6px; padding: 8px; }
.modal__thumbs button { padding: 0; border: 2px solid transparent; width: 84px; cursor: pointer; background: none; }
.modal__thumbs button[aria-pressed=true] { border-color: var(--brand); }
.modal__thumbs img { aspect-ratio: 1; object-fit: cover; }
.modal__body { padding: 40px 34px; }
.modal__body h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 12px; }
.modal__body dl { display: grid; gap: 0; margin: 22px 0 26px; border-top: 1px solid var(--line); }
.modal__body dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.modal__body dt { color: var(--sub); }
.modal__body dd { margin: 0; font-weight: 600; }

/* estimate */
.est { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: start; }
.est__form { background: var(--card); padding: clamp(22px, 3vw, 38px); }
.est__row + .est__row { margin-top: 30px; }
.est__label { display: block; font-weight: 700; margin: 0 0 12px; font-size: 15px; }
.est__label output { font-family: var(--latin); font-size: 44px; font-weight: 600; color: var(--brand); margin: 0 4px 0 10px; line-height: 1; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; background: linear-gradient(90deg, var(--brand) var(--p, 36%), var(--line) var(--p, 36%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: pointer; }
.est__scale { display: flex; justify-content: space-between; color: var(--sub); font-size: 12px; margin-top: 8px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.seg button { padding: 11px 4px; border: 0; border-right: 1px solid var(--ink); background: none; font: inherit; font-size: 14.5px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg [aria-checked=true] { background: var(--ink); color: #fff; }
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grades button { text-align: left; padding: 14px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.grades b { display: block; font-family: var(--serif); font-size: 16px; }
.grades small { color: var(--sub); font-size: 12.5px; line-height: 1.45; display: block; margin-top: 2px; }
.grades [aria-checked=true] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--soft); }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.item input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.item > i { width: 10px; height: 10px; flex: none; }
.stepper { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.stepper button { width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; line-height: 1; }
.est__result { position: sticky; top: 96px; background: var(--ink); color: #f4efe7; padding: clamp(24px, 3vw, 38px); }
.est__rk { margin: 0; font-family: var(--latin); font-style: italic; font-size: 19px; color: #d9a27f; }
.est__total { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; margin: 4px 0; line-height: 1.35; }
.est__per { color: #bdb0a2; margin: 0 0 22px; font-size: 14px; }
.est__bar { display: flex; height: 14px; gap: 2px; margin-bottom: 14px; }
.est__bar i { transition: flex .4s; }
.est__legend { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; font-size: 13px; color: #d8cdc0; }
.est__legend li { display: flex; align-items: center; gap: 7px; }
.est__legend i { width: 8px; height: 8px; flex: none; }
.est__legend b { margin-left: auto; font-weight: 500; color: #fff; }
.est__meta { margin: 0 0 22px; border-top: 1px solid #4a4038; }
.est__meta div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #4a4038; }
.est__meta dt { color: #bdb0a2; }
.est__meta dd { margin: 0; font-weight: 600; }
.est__result .btn { width: 100%; background: var(--brand); }
.est__result .btn:hover { background: #8e4624; }
.est__note { font-size: 12px; color: #a3968a; margin: 14px 0 0; }

/* process */
.process { list-style: none; margin: 0 0 80px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ink); }
.process li { padding: 22px 18px 0 0; }
.process__no { font-family: var(--latin); font-size: 42px; line-height: 1; color: var(--brand); }
.process h3 { font-family: var(--serif); font-size: 19px; margin: 12px 0 8px; }
.process p { color: var(--sub); font-size: 14.5px; margin: 0 0 8px; }
.process small { font-size: 12.5px; background: var(--paper); padding: 2px 8px; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.promises div { padding: 30px 30px 30px 0; border-right: 1px solid var(--line); margin-right: 30px; }
.promises div:last-child { border: 0; margin: 0; }
.promises h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 10px; }
.promises p { color: var(--sub); margin: 0; }

/* review */
.review { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.review figure { margin: 0; }
.review img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.review .eyebrow { color: #d9a27f; }
.quotes { display: grid; }
.quotes blockquote { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.quotes blockquote.is-on { opacity: 1; pointer-events: auto; }
.quotes p { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 30px); line-height: 1.7; margin: 0 0 20px; }
.quotes p::before { content: '“'; display: block; font-family: var(--latin); font-size: 90px; line-height: .6; color: var(--brand); margin-bottom: 14px; }
.quotes footer { color: #bdb0a2; }
.quotes__nav { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.quotes__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #6a5d52; background: none; color: #fff; cursor: pointer; font-size: 18px; }
.quotes__nav button:hover { border-color: var(--brand); background: var(--brand); }
.quotes__nav span { font-family: var(--latin); font-size: 18px; }

/* consult */
.consult { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.consult__info { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.consult__info li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.consult__info b { width: 44px; color: var(--sub); font-weight: 500; }
.consult__info a { text-decoration: none; }
#lead-form .lead__form, #lead-form .lead__done { border: 0; }
#lead-form .lead__kinds button { border-radius: 0; background: transparent; }
#lead-form .lead__kinds button[aria-selected=true] { background: var(--card); }
#lead-form .lead__submit { border-radius: 0; background: var(--ink); }
#lead-form .lead__submit:hover { background: var(--brand); filter: none; }

/* showroom */
.showroom { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.showroom figure { margin: 0; }
.showroom img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.showroom__addr { font-family: var(--serif); font-size: 19px; margin: 18px 0 4px; }
.hours { list-style: none; margin: 22px 0; padding: 0; font-size: 14.5px; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours li.is-today { color: var(--brand); font-weight: 600; }
.hours li.note { display: block; border: 0; color: var(--sub); font-size: 13px; }

/* footer */
.foot { background: #221d19; color: #9f9387; padding: 60px 0 90px; font-size: 13.5px; }
.foot .logo { color: #f4efe7; text-align: left; padding: 0; margin: 0 0 20px; }
.foot a { color: #e2d7ca; }
.foot__notice { border: 1px dashed #4a4038; padding: 12px 14px; }
.foot__links, .foot__samples { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__samples span { display: contents; }
.foot__samples a { color: #d9a27f; }

.mcta { display: none; }

@media (max-width: 1000px) {
  .head { color: var(--ink); background: rgba(244,239,231,.95); border-bottom: 1px solid var(--line); }
  .logo--m { display: block; padding: 0; font-size: 26px !important; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); }
  .burger { display: block; position: absolute; left: 14px; top: 16px; width: 44px; height: 44px; border: 0; background: none; padding: 12px 10px; cursor: pointer; }
  .burger i { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; }
  .head { height: 74px; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; width: auto; height: auto; grid-template-columns: 1fr; background: var(--bg); padding: 10px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: grid; }
  .nav .logo { display: none; }
  .nav a { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  .nav__cta { border: 0 !important; color: var(--brand); }
  .hero { height: 88svh; }
  .intro__in, .est, .review, .consult, .showroom { grid-template-columns: 1fr; }
  .est__result { position: static; }
  .process { grid-template-columns: repeat(3, 1fr); gap: 30px 0; }
  .modal[open] { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .works { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .work--big { grid-column: span 2; grid-row: auto; }
  .work--big .work__img { aspect-ratio: 4 / 3; height: auto; }
  .work__meta b { font-size: 16px; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .seg button:nth-child(2) { border-right: 0; }
  .seg button:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .grades, .items, .promises { grid-template-columns: 1fr; }
  .promises div { border-right: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 22px 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .hero__cap, .hero__dots { right: 16px; }
  .hero__copy { left: 16px; right: 16px; bottom: 140px; }
  .intro__nums b { font-size: 40px; }
  .mcta { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; text-align: center; padding: 15px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
}
