@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* ============================================================
   모던하우징 — Design tokens
   ============================================================ */
:root {
  --ink:        #17140f;
  --ink-2:      #3b342c;
  --muted:      #7c7267;
  --line:       #e6e0d7;
  --line-soft:  #f0ebe4;
  --base:       #fbf9f6;
  --surface:    #ffffff;
  --accent:     #8a6a45;
  --accent-dk:  #6d5335;
  --accent-sf:  #f3ece3;

  --max:        1240px;
  --gut:        24px;
  --radius:     2px;
  --ease:       cubic-bezier(.22,.61,.36,1);
  --header-h:   76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--base);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============================================================ Typography */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.28; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 18px;
}
.h-display { font-size: clamp(34px, 5.6vw, 66px); font-weight: 600; line-height: 1.16; }
.h-section { font-size: clamp(26px, 3.4vw, 42px); }
.h-card    { font-size: 19px; font-weight: 600; }
.lead  { font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-2); line-height: 1.85; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ============================================================ Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(72px, 10vw, 132px) 0; }
.section--tight { padding: clamp(56px, 7vw, 92px) 0; }
.section--soft { background: var(--surface); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin: 16px 0 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: all .25s var(--ease); white-space: nowrap;
}
.btn--solid  { background: var(--ink); color: #fff; }
.btn--solid:hover  { background: var(--accent-dk); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); }
.btn--ghost  { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover  { border-color: var(--ink); }
.btn--light  { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--light:hover  { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
  transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: 13px; }

/* ============================================================ Header */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251,249,246,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand b { font-size: 21px; font-weight: 700; letter-spacing: -0.04em; }
.brand span { font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--ink); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-tel { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }

.burger { display: none; width: 42px; height: 42px; background: none; border: 0; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 80;
  background: var(--base); padding: 28px var(--gut);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease); overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a.m-link {
  display: block; padding: 16px 0; font-size: 22px; font-weight: 600;
  letter-spacing: -0.03em; border-bottom: 1px solid var(--line);
}
.mobile-menu .m-foot { margin-top: 30px; display: grid; gap: 10px; }

/* ============================================================ Hero
   현장 사진은 대부분 세로(포트레이트)라, 와이드로 잘라내면 무엇을 찍었는지
   안 보입니다. 그래서 사진은 원래 비율대로 오른쪽에 두고 글은 왼쪽에 둡니다. */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60%; height: 90%;
  background: radial-gradient(circle at 60% 40%, rgba(138,106,69,.28), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2; color: #fff;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 80px); align-items: center;
  padding: clamp(64px, 8vw, 108px) 0;
}
.hero-copy .eyebrow { color: #d8bf9d; }
.hero-copy h1 { max-width: 14em; }
.hero-copy p { max-width: 30em; margin: 24px 0 0; color: rgba(255,255,255,.8); font-size: clamp(15px,1.5vw,18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-shot { margin: 0; position: relative; }
.hero-shot img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center;
  border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}
.hero-shot figcaption {
  margin-top: 14px; font-size: 13px; letter-spacing: .02em;
  color: rgba(255,255,255,.55); text-align: right;
}

.hero-strip { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-strip div { padding: 26px 0; color: rgba(255,255,255,.72); }
.hero-strip strong { display: block; color: #fff; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.hero-strip span { font-size: 13.5px; }

.page-hero { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 120px) 0 clamp(56px,8vw,96px); }
.page-hero p { color: rgba(255,255,255,.72); max-width: 40em; margin: 18px 0 0; }

/* ============================================================ Cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -22px rgba(23,20,15,.34); border-color: #d9d1c5; }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--line-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; }
.card-body p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.card-tag { font-size: 12px; letter-spacing: .12em; color: var(--accent); font-weight: 600; }

.value { padding: 32px 0; border-top: 1px solid var(--line); }
.value .n { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.value h3 { margin: 12px 0 10px; font-size: 21px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }

.process .step { padding: 30px 26px; border: 1px solid var(--line); background: var(--surface); }
.process .step .n { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: 14px; }
.process .step h3 { font-size: 18px; margin-bottom: 8px; }
.process .step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ============================================================ Works */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  padding: 9px 18px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  color: var(--ink-2); transition: all .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.work-media { aspect-ratio: 4/3; overflow: hidden; background: var(--line-soft); cursor: zoom-in; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work:hover .work-media img { transform: scale(1.05); }
.work-meta { padding: 16px 2px 0; }
.work-meta .t { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.work-meta .s { font-size: 13.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.work-meta .s em { font-style: normal; color: var(--accent); }
.work-store { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--accent); }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(14,12,9,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; object-fit: contain; }
.lightbox .lb-cap { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 14px; }
.lightbox .lb-x { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 20px; border-radius: 50%; }

/* ============================================================ 후기 */
.review { padding: 28px 26px; border: 1px solid var(--line); background: var(--surface); }
.review .stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.review p { margin: 14px 0 16px; font-size: 15px; line-height: 1.8; }
.review .who { font-size: 13.5px; color: var(--muted); }

/* ============================================================ 입주예정 단지 */
.apt-list { display: grid; gap: 12px; }
.apt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s, transform .25s var(--ease);
}
.apt-row:hover { border-color: var(--ink); transform: translateX(3px); }
.apt-row .n { font-size: 17px; font-weight: 600; letter-spacing: -0.025em; }
.apt-row .d { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.apt-row .go { font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ============================================================ Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin-top: 4px; }
.form-msg { margin-top: 14px; padding: 14px 16px; font-size: 14px; border-radius: 2px; display: none; }
.form-msg.ok { display: block; background: #edf5ed; color: #2c5c32; }
.form-msg.err { display: block; background: #fbeeea; color: #8c3620; }

.info-row { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-row .k { width: 88px; flex: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.info-row .v { font-size: 15.5px; }

/* ============================================================ 지도 */
.map-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); background: var(--line-soft); overflow: hidden;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* 소개 인트로 */
.intro-lead { font-size: clamp(19px, 2.1vw, 27px); line-height: 1.62; letter-spacing: -0.03em; font-weight: 500; }
.intro-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.intro-facts div { padding: 24px 20px 0 0; }
.intro-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.intro-facts dd { margin: 0; font-size: 15.5px; line-height: 1.7; }

@media (max-width: 720px) {
  .intro-facts { grid-template-columns: 1fr; }
  .intro-facts div { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
  .map-embed { aspect-ratio: 4 / 3; }
}

/* ============================================================ CTA / Footer */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 40px); }
.cta-band p { color: rgba(255,255,255,.72); margin: 16px auto 34px; max-width: 34em; }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.site-footer { background: #100e0b; color: rgba(255,255,255,.6); padding: 64px 0 40px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer b.f-brand { color: #fff; font-size: 20px; letter-spacing: -0.04em; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.footer-biz { padding-top: 26px; font-size: 12.5px; line-height: 1.9; color: rgba(255,255,255,.42); }
.footer-biz span { margin-right: 16px; white-space: nowrap; }

.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 0; font-size: 13px; font-weight: 600; border-radius: var(--radius); border: 1px solid var(--line);
}
.mobile-cta a.is-key { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================ Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ============================================================ Responsive */
@media (max-width: 1100px) { .nav { gap: 22px; } .nav a { font-size: 14.5px; } }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 940px) {
  :root { --header-h: 64px; --gut: 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 64px; }
  .hero-shot img { aspect-ratio: 3 / 4; }
  .hero-shot figcaption { text-align: left; }
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 68px; }
  .lightbox { padding-bottom: 80px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid { gap: 18px; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: baseline; gap: 12px; }
  .hero-strip div:last-child { border: 0; }
  .hero-strip strong { font-size: 21px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .apt-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
