/* ===========================================================
   청계백상앨리츠 — 다중 페이지 사이트
   제목 마루 부리(네이버) · 본문 Pretendard(SIL OFL 1.1). 둘 다 자체 호스팅 서브셋.
   =========================================================== */

@font-face{font-family:MaruBuri;font-style:normal;font-weight:200;font-display:swap;
  src:url(fonts/MaruBuri-ExtraLight.woff2) format('woff2')}
@font-face{font-family:MaruBuri;font-style:normal;font-weight:300;font-display:swap;
  src:url(fonts/MaruBuri-Light.woff2) format('woff2')}
@font-face{font-family:MaruBuri;font-style:normal;font-weight:400;font-display:swap;
  src:url(fonts/MaruBuri-Regular.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-style:normal;font-weight:300;font-display:swap;
  src:url(fonts/Pretendard-Light.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-style:normal;font-weight:400;font-display:swap;
  src:url(fonts/Pretendard-Regular.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-style:normal;font-weight:500;font-display:swap;
  src:url(fonts/Pretendard-Medium.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-style:normal;font-weight:600;font-display:swap;
  src:url(fonts/Pretendard-SemiBold.woff2) format('woff2')}

:root{
  /* 웜 아이보리 지반 — research/06 T1 「딥 차콜 / 웜 아이보리」 중 후자 */
  --bg:#F7F4EE;
  --bg-2:#FFFFFF;
  --surface:#FFFFFF;
  --surface-2:#F0EAE0;
  --line:#E4DDD0;
  --line-strong:#CFC5B4;
  --fg:#191C22;
  --fg-2:#4C5361;
  --muted:#656C7A;
  --gold:#8E6A2C;
  --gold-soft:#F5EEE1;
  --gold-line:#D6C4A0;
  --navy:#10304F;
  --accent-fg:#FFFFFF;

  /* 히어로·페이지헤더 위에 얹히는 투명 내비용 */
  --nav-fg:#FFFFFF;
  --nav-fg-2:rgba(255,255,255,.82);
  --nav-gold:#E2C288;

  --serif:MaruBuri,'Nanum Myeongjo','Apple SD Gothic Neo',serif;
  --sans:Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;

  --container:1300px;
  --gutter:clamp(1.1rem,4.5vw,3rem);
  --nav-h:78px;
  --sp-1:.25rem; --sp-2:.5rem; --sp-3:.75rem; --sp-4:1rem; --sp-5:1.5rem;
  --sp-6:2rem; --sp-8:3rem; --sp-10:4.5rem; --sp-12:6rem;
  --dur:.65s; --ease:cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:clamp(17px,16.2px + .12vw,18.5px);-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 12px)}
body{
  background:var(--bg); color:var(--fg);
  font-family:var(--sans); font-weight:400;
  font-size:1rem;
  line-height:1.75; letter-spacing:-.005em;
  word-break:keep-all; overflow-wrap:break-word;
}
/* height:auto 가 반드시 있어야 한다. build.py 가 CLS 때문에 width/height 속성을 박는데,
   CSS 에서 폭만 100% 로 주면 높이는 속성값(원본 픽셀)이 그대로 쓰여 이미지가 세로로 늘어난다.
   실제로 지도·평면도·대지지분이 전부 늘어나 있었다. object-fit 을 쓰는 쪽은 아래 클래스 규칙이 덮는다. */
img,video{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button,input,select,textarea{font:inherit;color:inherit;background:none;border:none}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
::selection{background:var(--gold);color:#fff}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.link{color:var(--gold);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}

@media (max-height:760px){ .hero__scroll{display:none} }

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;scroll-behavior:auto !important}
}

.container{width:min(100% - var(--gutter)*2,var(--container));margin-inline:auto}
.section{padding-block:clamp(3.25rem,8vw,6.5rem)}
.section--tint{background:var(--bg-2)}

/* ---------- 타이포 ---------- */
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.36;letter-spacing:-.01em;text-wrap:balance}
.eyebrow{
  font-family:var(--sans);font-size:.6875rem;font-weight:500;
  letter-spacing:.3em;text-transform:uppercase;color:var(--gold);
}
.shead{margin-bottom:clamp(1.9rem,4vw,3rem)}
.shead__ko{margin-top:var(--sp-3);font-size:clamp(1.55rem,1.15rem + 1.7vw,2.5rem)}
.shead__lead{margin-top:var(--sp-4);color:var(--fg-2);max-width:56ch;font-size:.9375rem;line-height:1.85}
.shead--center{text-align:center}
.shead--center .shead__lead{margin-inline:auto}
.rule{width:48px;height:1px;background:var(--gold);margin-top:var(--sp-5)}
.shead--center .rule{margin-inline:auto}
.copy{margin-top:var(--sp-5);font-size:.8125rem;color:var(--muted);line-height:1.75}

/* ---------- 내비 ---------- */
.nav{position:fixed;inset:0 0 auto 0;z-index:70;height:var(--nav-h);display:flex;align-items:center;
  border-bottom:1px solid transparent;transition:background .35s,border-color .35s,backdrop-filter .35s}
.nav.is-solid,.nav.is-open{background:rgba(247,244,238,.95);backdrop-filter:blur(16px);
  border-bottom-color:var(--line);--nav-fg:var(--fg);--nav-fg-2:var(--fg-2);--nav-gold:var(--gold)}
.nav__inner{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-5);
  width:min(100% - var(--gutter)*2,var(--container));margin-inline:auto}
.brand{display:flex;flex-direction:column;line-height:1.05;flex:0 0 auto}
/* 회사 공식 워드마크. 내비가 투명(사진 위)일 땐 반전본, 아이보리 지반으로 바뀌면 원본을 쓴다 —
   로고는 고정 색이라 --nav-fg 를 못 따라온다. 두 장을 겹쳐두고 보이는 쪽만 바꾼다. */
.brand__mark{display:grid;line-height:0}
.brand__logo{grid-area:1/1;height:1.55rem;width:auto;transition:opacity .35s}
.nav .brand__logo--pos{opacity:0}
.nav.is-solid .brand__logo--pos,.nav.is-open .brand__logo--pos{opacity:1}
.nav.is-solid .brand__logo--rev,.nav.is-open .brand__logo--rev{opacity:0}
.footer__logo{height:1.5rem;width:auto;display:block}
.brand__ko{font-size:.625rem;letter-spacing:.32em;color:var(--nav-fg-2);margin-top:.4rem}

.menu{display:none;align-items:center;gap:clamp(.5rem,1.6vw,1.4rem)}
.menu__i{position:relative}
.menu__a{display:flex;align-items:center;gap:.32em;height:var(--nav-h);padding-inline:.35rem;
  font-size:.9375rem;color:var(--nav-fg-2);transition:color .25s;white-space:nowrap}
.menu__a::after{content:'';position:absolute;left:.35rem;right:.35rem;bottom:18px;height:1px;background:var(--nav-gold);
  transform:scaleX(0);transform-origin:left;transition:transform .32s var(--ease)}
.menu__i:hover .menu__a,.menu__a:focus-visible,.menu__a.is-active{color:var(--nav-fg)}
.menu__a.is-active::after,.menu__i:hover .menu__a::after{transform:scaleX(1)}
.menu__cv{width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;
  rotate:45deg;translate:0 -2px;opacity:.55;transition:rotate .3s var(--ease)}
.menu__i:hover .menu__cv{rotate:225deg;translate:0 1px}

.drop{position:absolute;top:100%;left:50%;translate:-50% 0;min-width:12.5rem;padding:.4rem 0;
  background:#fff;border:1px solid var(--line);box-shadow:0 18px 40px rgba(25,28,34,.16);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .26s var(--ease),transform .26s var(--ease),visibility .26s}
.menu__i:hover .drop,.menu__i:focus-within .drop{opacity:1;visibility:visible;transform:none}
.drop a{display:block;padding:.66rem 1.15rem;font-size:.875rem;color:var(--fg-2);white-space:nowrap;
  transition:background .2s,color .2s,padding-left .24s var(--ease)}
.drop a:hover,.drop a:focus-visible{background:var(--gold-soft);color:var(--gold);padding-left:1.45rem}

.nav__right{display:flex;align-items:center;gap:var(--sp-3);flex:0 0 auto}
.nav__toggle{display:grid;place-items:center;width:48px;height:48px;color:var(--nav-fg)}
.nav__toggle span{display:block;width:20px;height:1px;background:currentColor;position:relative;transition:background .2s}
.nav__toggle span::before,.nav__toggle span::after{content:'';position:absolute;left:0;width:20px;height:1px;
  background:currentColor;transition:transform .3s var(--ease)}
.nav__toggle span::before{top:-6px}.nav__toggle span::after{top:6px}
.nav__toggle[aria-expanded="true"] span{background:transparent}
.nav__toggle[aria-expanded="true"] span::before{transform:translateY(6px) rotate(45deg)}
.nav__toggle[aria-expanded="true"] span::after{transform:translateY(-6px) rotate(-45deg)}

/* 모바일 서랍 — <details> 아코디언 */
.drawer{position:fixed;inset:var(--nav-h) 0 0 0;z-index:69;background:var(--bg);overflow-y:auto;padding:var(--sp-5) var(--gutter) var(--sp-10);
  opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s}
.drawer.is-open{opacity:1;visibility:visible}
.dnav{display:grid}
.dnav__solo,.dnav > details > summary{display:flex;align-items:center;justify-content:space-between;
  padding:1.05rem .2rem;border-bottom:1px solid var(--line);
  font-family:var(--serif);font-size:1.1rem;font-weight:300;color:var(--fg);cursor:pointer;list-style:none}
.dnav > details > summary::-webkit-details-marker{display:none}
.dnav > details > summary::after{content:'';width:7px;height:7px;border-right:1px solid var(--gold);
  border-bottom:1px solid var(--gold);rotate:45deg;translate:0 -2px;transition:rotate .3s var(--ease)}
.dnav > details[open] > summary{color:var(--gold)}
.dnav > details[open] > summary::after{rotate:225deg;translate:0 2px}
.dnav__sub{display:grid;padding:.35rem 0 .9rem;border-bottom:1px solid var(--line)}
.dnav__sub a{padding:.62rem .2rem .62rem 1.1rem;font-size:.9rem;color:var(--fg-2)}
.dnav__sub a:first-child{color:var(--gold)}
.drawer__tel{display:block;margin-top:var(--sp-6);text-align:center;font-family:var(--serif);
  font-size:1.6rem;letter-spacing:.06em;color:var(--gold)}

/* ---------- 버튼 ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  min-height:54px;padding:0 1.7em;font-size:1rem;font-weight:500;letter-spacing:.01em;
  border:1px solid var(--gold-line);color:var(--gold);border-radius:1px;
  transition:background .32s var(--ease),color .32s var(--ease),border-color .32s}
.btn:hover{background:var(--gold);color:var(--accent-fg);border-color:var(--gold)}
.btn--sm{min-height:46px;padding:0 1.25em;font-size:.875rem}
.btn--fill{background:var(--gold);color:var(--accent-fg);border-color:var(--gold)}
.btn--fill:hover{filter:brightness(1.12)}
.btn--ghost{border-color:rgba(255,255,255,.5);color:#fff}
.btn--ghost:hover{background:#fff;color:var(--fg);border-color:#fff}
.btn--lg{min-height:64px;padding:0 2.1em}
.btn--block{width:100%}

/* ---------- 홈 히어로 ---------- */
.hero{position:relative;min-height:100svh;display:grid;align-items:center;overflow:hidden}
.hero__media{position:absolute;inset:0}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:center 40%;
  animation:heroZoom 20s var(--ease) forwards}
@keyframes heroZoom{from{scale:1.08}to{scale:1}}
.hero__scrim{position:absolute;inset:0;
  background:
    radial-gradient(120% 78% at 50% 52%,rgba(7,9,11,.55) 0%,rgba(7,9,11,0) 72%),
    linear-gradient(180deg,rgba(7,9,11,.72) 0%,rgba(7,9,11,.46) 40%,rgba(7,9,11,.9) 100%)}
.hero__body{position:relative;text-align:center;padding-top:var(--nav-h);color:#fff;
  text-shadow:0 1px 3px rgba(5,7,9,.55),0 2px 30px rgba(5,7,9,.85)}
.hero__eyebrow{color:#E4C68F}
.js .hero__body>*{opacity:0}
.hero__eyebrow{animation:fadeUp 1.1s var(--ease) .25s forwards}
.hero__title{margin-top:var(--sp-5);color:#fff;font-size:clamp(2.1rem,1.2rem + 4.4vw,4.4rem);font-weight:300;
  letter-spacing:.01em;line-height:1.24;animation:fadeUp 1.2s var(--ease) .45s forwards}
.hero__title b{font-weight:400;color:#E4C68F}
.hero__sub{margin-top:var(--sp-5);color:rgba(233,228,219,.88);font-size:clamp(.95rem,.88rem + .4vw,1.15rem);
  letter-spacing:.05em;animation:fadeUp 1.2s var(--ease) .68s forwards}
.hero__chips{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:var(--sp-6);
  animation:fadeUp 1.2s var(--ease) .86s forwards}
.hero__chips span{border:1px solid rgba(233,228,219,.26);border-radius:999px;padding:.5em 1.15em;
  font-size:.875rem;letter-spacing:.02em;color:rgba(233,228,219,.88);backdrop-filter:blur(3px)}
.hero__cta{display:flex;flex-wrap:wrap;justify-content:center;gap:.7rem;margin-top:var(--sp-8);
  animation:fadeUp 1.2s var(--ease) 1s forwards}
@keyframes fadeUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.hero__scroll{position:absolute;left:50%;bottom:1.8rem;translate:-50% 0;text-align:center;
  font-size:.6875rem;letter-spacing:.34em;color:rgba(233,228,219,.55)}
.hero__scroll i{display:block;width:1px;height:42px;margin:.7rem auto 0;
  background:linear-gradient(180deg,var(--gold),transparent);animation:scrollPulse 2.4s ease-in-out infinite}
@keyframes scrollPulse{0%,100%{opacity:.3;transform:scaleY(.5);transform-origin:top}50%{opacity:1;transform:scaleY(1)}}

/* ---------- 하위 페이지 헤더 ---------- */
.phead{position:relative;min-height:clamp(280px,42vh,420px);display:grid;align-items:end;overflow:hidden}
.phead--short{min-height:clamp(240px,34vh,340px)}
.phead__media{position:absolute;inset:0}
.phead__media img{width:100%;height:100%;object-fit:cover;filter:saturate(.72) brightness(.85)}
.phead__scrim{position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(7,9,11,.9) 0%,rgba(7,9,11,.6) 45%,rgba(20,23,28,.97) 100%)}
.phead__body{position:relative;padding-block:var(--sp-8) clamp(2rem,4vw,3.2rem);color:#fff;
  text-shadow:0 1px 3px rgba(5,7,9,.5),0 2px 26px rgba(5,7,9,.8)}
.phead__body .eyebrow{color:#E4C68F}
.phead__t{margin-top:var(--sp-4);color:#fff;font-size:clamp(1.75rem,1.3rem + 2.2vw,3rem);font-weight:300;letter-spacing:.01em}
.phead__d{margin-top:var(--sp-3);color:rgba(255,255,255,.84);font-size:.9375rem;letter-spacing:.03em}

/* ---------- 키넘버 ---------- */
.keynums{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;
  background:var(--line);border-block:1px solid var(--line)}
.keynums__i{background:var(--bg);padding:clamp(1.4rem,3vw,2.2rem) var(--sp-4);text-align:center}
.keynums__l{font-size:.6875rem;letter-spacing:.22em;color:var(--muted)}
.keynums__v{font-family:var(--serif);font-weight:400;font-size:clamp(1.15rem,.9rem + 1vw,1.7rem);
  margin-top:.45rem;font-variant-numeric:tabular-nums}
.keynums__v b{color:var(--gold);font-weight:400}
.keynums__s{font-size:.8125rem;color:var(--muted);margin-top:.25rem}

/* ---------- 홈: 페이지 카드 ---------- */
.navcards{display:grid;grid-template-columns:1fr;gap:1px;
  background:var(--line);border:1px solid var(--line)}
.navcard{display:flex;flex-direction:column;background:var(--bg-2);transition:background .35s}
.navcard:hover{background:var(--gold-soft)}
.navcard__img{display:block;aspect-ratio:16/9;overflow:hidden}
.navcard__img img{width:100%;height:100%;object-fit:cover;filter:saturate(.85);transition:scale 1.1s var(--ease),filter .5s}
.navcard:hover .navcard__img img{scale:1.06;filter:saturate(1)}
.navcard__b{display:block;padding:clamp(1.15rem,2.4vw,1.6rem)}
.navcard__en{display:block;font-size:.6875rem;letter-spacing:.28em;text-transform:uppercase;color:var(--gold)}
.navcard__t{display:block;margin-top:.55rem;font-family:var(--serif);font-size:1.3rem;font-weight:400}
.navcard__d{display:block;margin-top:.7rem;font-size:.9375rem;color:var(--fg-2);line-height:1.72}

/* ---------- CTA 띠 ---------- */
.cta{display:grid;gap:var(--sp-6);align-items:center;padding:clamp(1.8rem,4vw,3rem);
  border:1px solid var(--gold-line);background:var(--gold-soft)}
.cta__t{margin-top:var(--sp-3);font-size:clamp(1.3rem,1rem + 1.3vw,2rem);font-weight:400}
.cta__act{display:flex;flex-wrap:wrap;gap:.7rem}

/* ---------- 표 ---------- */
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line)}
table{border-collapse:collapse;width:100%;min-width:600px}
th,td{padding:1rem 1.25rem;border-bottom:1px solid var(--line);font-size:.9375rem;text-align:left;
  font-weight:400;vertical-align:top}
thead th{background:var(--surface-2);color:var(--fg);font-weight:500;letter-spacing:.03em;white-space:nowrap;font-size:.8125rem}
tbody th{background:var(--surface);color:var(--fg-2);font-weight:400;white-space:nowrap;width:1%}
.tb-group{background:var(--surface-2);color:var(--gold);font-weight:500;white-space:nowrap;
  border-right:1px solid var(--line);letter-spacing:.05em}
td.num,th.num{font-variant-numeric:tabular-nums}
td.note{color:var(--muted);font-size:.8125rem}
tbody tr:last-child th,tbody tr:last-child td{border-bottom:none}

/* ---------- 그림 ---------- */
.figure{border:1px solid var(--line);background:var(--surface);overflow:hidden}
.figure img{width:100%}
.figure figcaption{padding:.8rem 1.1rem;font-size:.8125rem;color:var(--muted);border-top:1px solid var(--line);line-height:1.6}
.grid{display:grid;gap:clamp(1.1rem,2.4vw,1.9rem);align-items:start}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(20rem,1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}
.grid--4{grid-template-columns:repeat(2,1fr)}

/* ---------- 입지 카드 ---------- */
.locard{border:1px solid var(--line);background:var(--surface);padding:clamp(1.3rem,2.6vw,1.8rem)}
.locard__h{padding-bottom:.85rem;border-bottom:1px solid var(--line)}
.locard__t{font-family:var(--serif);font-size:1.15rem;font-weight:400;color:var(--gold)}
.locard ul{margin-top:1rem;display:grid;gap:.55rem}
.locard li{display:flex;gap:.7rem;font-size:.875rem;color:var(--fg-2);line-height:1.65}
.locard li::before{content:'';flex:0 0 auto;width:3px;height:3px;border-radius:50%;background:var(--gold);margin-top:.68em}
.locard li b{color:var(--fg);font-weight:500}

/* ---------- 타입 ---------- */
.jumpbar{position:sticky;top:var(--nav-h);z-index:50;background:rgba(255,255,255,.95);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.jumpbar__in{display:flex;gap:.35rem;overflow-x:auto;scrollbar-width:none;padding-block:.5rem}
.jumpbar__in::-webkit-scrollbar{display:none}
.jumpbar a{flex:0 0 auto;padding:.7rem 1.1rem;font-size:.875rem;color:var(--fg-2);white-space:nowrap;
  border:1px solid transparent;border-radius:1px;transition:color .25s,border-color .25s}
.jumpbar a:hover{color:var(--gold);border-color:var(--gold-line)}
.typerow{display:grid;gap:clamp(1.3rem,3vw,2.4rem);align-items:start;
  grid-template-columns:repeat(auto-fit,minmax(21rem,1fr))}
.plan{background:#fff;border:1px solid var(--line);padding:.5rem}
.plan img{width:100%}
.typemeta{display:grid;gap:var(--sp-4);align-content:start}
.typemeta__h{font-size:clamp(1.5rem,1.1rem + 1.4vw,2.1rem);font-weight:400}
.typemeta__h b{color:var(--gold);font-weight:400}
.typemeta__sub{color:var(--fg-2);font-size:.875rem;margin-top:.4rem}
.lotfig{background:#fff;border:1px solid var(--line);padding:.6rem;max-width:220px}
.lotfig figcaption{margin-top:.5rem;font-size:.75rem;color:#555;text-align:center}
.badges{display:flex;flex-wrap:wrap;gap:.4rem}
.badge{border:1px solid var(--gold-line);color:var(--gold);border-radius:999px;padding:.4em 1.05em;font-size:.8125rem;letter-spacing:.02em}

/* ---------- 호수 배치도 ---------- */
.dh{overflow-x:auto;border:1px solid var(--line);background:var(--surface)}
.dh table{min-width:520px;border-collapse:separate;border-spacing:3px;padding:3px}
.dh th{background:transparent;border:none;color:var(--muted);font-size:.8125rem;text-align:center;padding:.4rem;font-weight:400}
.dh td{border:none;padding:0}
.dhcell{display:grid;place-items:center;min-height:42px;border-radius:1px;font-size:.8125rem;
  font-variant-numeric:tabular-nums;color:#12151a;font-weight:500}
.dhcell[data-t="81A"]{background:#a9dcd8}
.dhcell[data-t="81B"]{background:#f2c0a8}
.dhcell[data-t="76"]{background:#c9c2e6}
.dhcell[data-t="75"]{background:#f5e69a}
.dhlegend{display:flex;flex-wrap:wrap;gap:1.1rem;margin-top:var(--sp-4);font-size:.875rem;color:var(--fg-2)}
.dhlegend span{display:inline-flex;align-items:center;gap:.45rem}
.dhlegend i{width:13px;height:13px;border-radius:1px;display:inline-block}

/* ---------- 갤러리 ---------- */
.gal{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.gal button{position:relative;overflow:hidden;aspect-ratio:16/10;border:1px solid var(--line)}
.gal img{width:100%;height:100%;object-fit:cover;transition:scale .9s var(--ease)}
.gal button:hover img{scale:1.06}
.gal figcaption{position:absolute;left:0;right:0;bottom:0;padding:.65rem .8rem;font-size:.8125rem;
  color:#e9e4db;text-align:left;background:linear-gradient(0deg,rgba(7,9,11,.85),transparent)}
.lightbox{position:fixed;inset:0;z-index:90;background:rgba(5,6,8,.96);display:grid;place-items:center;
  padding:clamp(1rem,4vw,3rem);opacity:0;visibility:hidden;transition:opacity .3s}
.lightbox.is-open{opacity:1;visibility:visible}
.lightbox img{max-width:100%;max-height:82vh;object-fit:contain}
.lightbox__cap{margin-top:1rem;text-align:center;font-size:.85rem;color:rgba(255,255,255,.75)}
.lightbox__x{position:absolute;top:1rem;right:1rem;width:52px;height:52px;font-size:1.6rem;color:#fff}
.lightbox__nav{position:absolute;top:50%;translate:0 -50%;width:58px;height:58px;font-size:2rem;color:rgba(255,255,255,.7)}
.lightbox__nav:hover{color:#fff}
.lightbox__nav--p{left:.4rem}.lightbox__nav--n{right:.4rem}

/* ---------- 개발호재 ---------- */
.dev{display:grid;grid-template-columns:1fr;gap:1px;background:var(--line);border:1px solid var(--line)}
.devcard{background:var(--bg-2);padding:clamp(1.3rem,2.6vw,1.85rem)}
.devcard__t{font-family:var(--serif);font-size:1.2rem;font-weight:400}
.devcard__v{font-family:var(--serif);font-size:1.7rem;color:var(--gold);font-weight:400;margin-top:.55rem;
  font-variant-numeric:tabular-nums}
.devcard__d{margin-top:.6rem;font-size:.9375rem;color:var(--fg-2);line-height:1.7}
.devsum{text-align:center;margin-top:var(--sp-6);padding:var(--sp-6) var(--sp-4);
  border:1px solid var(--gold-line);background:var(--gold-soft)}
.devsum b{font-family:var(--serif);font-size:clamp(1.5rem,1.1rem + 1.6vw,2.3rem);color:var(--gold);font-weight:400;display:block}
.devsum span{display:block;margin-top:.7rem;font-size:.9375rem;color:var(--fg-2)}

/* ---------- 오시는길 ---------- */
.wayrow{display:grid;gap:var(--sp-5);align-items:start;
  grid-template-columns:repeat(auto-fit,minmax(20rem,1fr))}
.waylist{display:grid;gap:var(--sp-4)}
.wayitem{border-top:1px solid var(--line);padding-top:var(--sp-4)}
.wayitem dt{font-size:.6875rem;letter-spacing:.26em;color:var(--gold);font-weight:500}
.wayitem dd{margin-top:.45rem;font-size:.9375rem;color:var(--fg)}
.wayitem dd small{display:block;color:var(--muted);font-size:.875rem;margin-top:.3rem;line-height:1.6}
.wayacts{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:var(--sp-2)}

/* ---------- 폼 ---------- */
.form{display:grid;gap:var(--sp-4);max-width:600px;margin-inline:auto}
.field label{display:block;font-size:.875rem;letter-spacing:.05em;color:var(--fg-2);margin-bottom:.45rem}
.field label i{color:var(--gold);font-style:normal}
.field input,.field select,.field textarea{width:100%;min-height:58px;padding:.95rem 1.1rem;
  background:var(--surface);border:1px solid var(--line-strong);border-radius:1px;font-size:.9375rem;transition:border-color .25s}
.field textarea{min-height:130px;resize:vertical;line-height:1.65}
.field select{appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 20px) 23px,calc(100% - 14px) 23px;background-size:6px 6px;background-repeat:no-repeat}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold);outline:none}
.field input::placeholder,.field textarea::placeholder{color:#5c584f}
.field__err{display:none;margin-top:.45rem;font-size:.875rem;color:#e08163}
.field.is-bad input,.field.is-bad select{border-color:#e08163}
.field.is-bad .field__err{display:block}
.consent{display:flex;gap:.8rem;align-items:flex-start;font-size:.875rem;color:var(--fg-2);line-height:1.65}
.consent input{width:22px;height:22px;min-height:0;accent-color:var(--gold);margin-top:.2rem;flex:0 0 auto;padding:0}
.formmsg{padding:1rem 1.15rem;border:1px solid var(--gold-line);background:var(--gold-soft);
  font-size:.875rem;line-height:1.7;display:none}
.formmsg.is-on{display:block}

/* ---------- 페이지 이동 ---------- */
.pagerail{border-top:1px solid var(--line);background:var(--bg-2)}
.pagerail__in{display:flex;justify-content:space-between;gap:var(--sp-4);padding-block:var(--sp-5)}
.pagerail a{font-size:.875rem;color:var(--fg-2);transition:color .25s}
.pagerail a:hover{color:var(--gold)}

/* ---------- 하단 고정바 ---------- */
.bottombar{position:fixed;inset:auto 0 0 0;z-index:60;display:grid;grid-template-columns:1fr 1fr;
  background:#fff;box-shadow:0 -6px 24px rgba(25,28,34,.14);border-top:1px solid var(--line);
  padding-bottom:env(safe-area-inset-bottom)}
.bottombar a{display:grid;place-items:center;min-height:62px;font-size:1rem}
.bottombar a:first-child{color:var(--fg);border-right:1px solid var(--line);font-weight:500}
.bottombar a:last-child{background:var(--gold);color:#fff;font-weight:500}
body{padding-bottom:62px}

/* ---------- 푸터 ---------- */
.footer{background:#14171C;padding-block:var(--sp-8) var(--sp-6);
  --fg:#EDE9E1;--fg-2:#A9A79F;--muted:#7C7A73;--line:rgba(237,233,225,.13);--gold:#D2B074;
  color:var(--fg)}
.footer__top{display:grid;gap:var(--sp-5);padding-bottom:var(--sp-6);border-bottom:1px solid var(--line)}
.footer__name{margin-top:.55rem;font-size:.9375rem;color:var(--fg-2)}
.footer__addr{margin-top:.25rem;font-size:.875rem;color:var(--muted)}
.footer__hours{font-size:.8125rem;color:var(--muted);margin-top:.35rem}
.footer__nav{display:flex;flex-wrap:wrap;gap:var(--sp-5) var(--sp-6);
  padding-block:var(--sp-6);border-bottom:1px solid var(--line)}
.fcol{flex:1 1 8rem}
.fcol__t{font-size:.8125rem;letter-spacing:.16em;color:var(--fg);font-weight:500;font-family:var(--sans)}
.fcol ul{margin-top:.8rem;display:grid;gap:.45rem}
.fcol a{font-size:.875rem;color:var(--muted);transition:color .25s}
.fcol a:hover{color:var(--gold)}
.notice{margin-top:var(--sp-6)}
.notice h2{font-size:.8125rem;letter-spacing:.2em;color:var(--fg-2);font-family:var(--sans);font-weight:500}
.notice ol{margin-top:var(--sp-4);padding-left:1.15rem;display:grid;gap:.5rem;list-style:decimal}
.notice li{font-size:.8125rem;color:var(--muted);line-height:1.72}


/* ---------- 대표번호 (research/07 — 데스크톱은 번호를 크게 텍스트로) ---------- */
.telbig{display:none;text-align:right;line-height:1.15}
.telbig__l{display:block;font-size:.6875rem;letter-spacing:.24em;color:var(--nav-fg-2);font-weight:500}
.telbig__n{display:block;margin-top:.2rem;font-size:1.5rem;font-weight:600;letter-spacing:.02em;
  color:var(--nav-gold);font-variant-numeric:tabular-nums;transition:color .35s}
.telcopy{margin-left:.5rem;font-size:.5625rem;letter-spacing:.08em;color:var(--nav-fg-2);opacity:.7;
  border:1px solid currentColor;border-radius:1px;padding:.25em .45em;vertical-align:middle;transition:opacity .25s}
.telcopy:hover{opacity:1}
.telcopy:hover{color:var(--nav-gold)}

/* ---------- 프리미엄 4블록 (research/03 S05) ---------- */
.pcards{display:grid;grid-template-columns:1fr;gap:1px;
  background:var(--line);border:1px solid var(--line)}
.pcard{position:relative;display:block;background:var(--surface);overflow:hidden}
.pcard__img{aspect-ratio:4/3;overflow:hidden}
.pcard__img img{width:100%;height:100%;object-fit:cover;transition:scale 1.2s var(--ease)}
.pcard:hover .pcard__img img{scale:1.05}
.pcard__b{padding:clamp(1.4rem,3vw,2.2rem)}
.pcard:not(:has(.pcard__img)) .pcard__b{border-top:2px solid var(--gold)}
.pcard__en{font-size:.6875rem;letter-spacing:.3em;color:var(--gold);font-weight:500}
.pcard__ko{margin-top:.65rem;font-family:var(--serif);font-size:clamp(1.15rem,.95rem + .7vw,1.5rem);
  font-weight:400;line-height:1.45}
.pcard__d{margin-top:.8rem;font-size:.9375rem;color:var(--fg-2);line-height:1.75}

/* ---------- 중간 전환 띠 (research/07 — 스크롤 40% 지점) ---------- */
.ctastrip{display:grid;gap:var(--sp-4);align-items:center;text-align:center;
  padding:clamp(1.6rem,3.5vw,2.4rem);border:1px solid var(--gold-line);background:var(--gold-soft)}
.ctastrip__t{font-family:var(--serif);font-size:clamp(1.1rem,.95rem + .8vw,1.5rem);font-weight:400}
.ctastrip__n{display:block;margin-top:.4rem;font-size:clamp(1.5rem,1.2rem + 1.4vw,2.1rem);
  font-weight:600;color:var(--navy);letter-spacing:.01em;font-variant-numeric:tabular-nums}
.ctastrip__a{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap}

/* ---------- 푸터 대표번호 ---------- */
.footer__tel{display:block;font-size:clamp(1.9rem,1.5rem + 1.4vw,2.6rem);font-weight:600;
  letter-spacing:.02em;color:var(--gold);font-variant-numeric:tabular-nums;line-height:1.15;font-family:var(--sans)}


.dl__meta{margin-top:.6rem;font-size:.9375rem;color:var(--fg-2);line-height:1.7}

/* ---------- 영상 ---------- */
.videowrap{border:1px solid var(--line);background:#000;overflow:hidden}
.videowrap video{width:100%;height:auto;display:block;aspect-ratio:16/9;background:#000}
.videowrap figcaption{padding:.8rem 1.1rem;font-size:.8125rem;color:var(--muted);
  background:var(--surface);border-top:1px solid var(--line)}

.videowrap--still img{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover}
/* ---------- 필수 옵션 ---------- */
.optlist{display:flex;flex-wrap:wrap;gap:1px;
  background:var(--line);border:1px solid var(--line)}
.optlist li{flex:1 1 13rem;background:var(--surface);padding:.95rem 1.15rem;font-size:.9375rem;color:var(--fg-2);
  display:flex;align-items:baseline;gap:.6rem}
.optlist li::before{content:'';flex:0 0 auto;width:4px;height:4px;border-radius:50%;
  background:var(--gold);translate:0 -2px}
.optlist li b{color:var(--fg);font-weight:500}
.legal-note{display:block;margin-top:.3rem;font-size:.8125rem;color:var(--muted)}

/* ---------- 본문 바로가기 ---------- */
.skip{position:absolute;left:.6rem;top:-3.5rem;z-index:100;padding:.7rem 1.1rem;
  background:var(--gold);color:var(--accent-fg);font-size:.875rem;border-radius:1px;transition:top .2s}
.skip:focus{top:.6rem}

/* ---------- 약관·방침 본문 ---------- */
.policy h2{font-size:clamp(1.05rem,.95rem + .4vw,1.3rem);font-weight:400;margin-top:var(--sp-8);
  padding-bottom:.6rem;border-bottom:1px solid var(--line)}
.policy h2:first-child{margin-top:0}
.policy p{margin-top:var(--sp-4);color:var(--fg-2);font-size:.9375rem;line-height:1.85}
.policy p b{color:var(--fg);font-weight:500}
.policy ul{margin-top:var(--sp-4);display:grid;gap:.5rem}
.policy li{display:flex;gap:.7rem;font-size:.9375rem;color:var(--fg-2);line-height:1.7}
.policy li::before{content:'';flex:0 0 auto;width:3px;height:3px;border-radius:50%;
  background:var(--gold);margin-top:.72em}
.policy li b{color:var(--fg);font-weight:500}
.consent__note{margin-top:1rem;font-size:.8125rem;color:var(--muted);line-height:1.7}
/* ---------- 리빌 ---------- */
/* JS 가 <html> 에 .js 를 붙였을 때만 숨긴다 — JS 를 끈 환경에서 본문이 사라지면 안 된다. */
.js .reveal{opacity:0;transform:translateY(24px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.js .reveal.is-in{opacity:1;transform:none}
.js .reveal[data-d="1"]{transition-delay:.1s}.js .reveal[data-d="2"]{transition-delay:.2s}
.js .reveal[data-d="3"]{transition-delay:.3s}.js .reveal[data-d="4"]{transition-delay:.4s}


/* ---------- 고정 개수 묶음의 접힘 ----------
   개수의 약수로만 접는다. 6장은 2·3·6, 4장은 2·4.
   auto-fit 은 마지막 줄에 빈 칸을 남기고, flex+grow 는 한 칸만 남으면 통째로 늘어난다. */
@media (min-width:34rem){
  .navcards,.pcards,.dev,.grid--4{grid-template-columns:repeat(2,1fr)}
  .keynums{grid-template-columns:repeat(3,1fr)}
  .gal{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:58rem){
  .navcards{grid-template-columns:repeat(3,1fr)}
  .dev,.grid--4{grid-template-columns:repeat(4,1fr)}
  .keynums{grid-template-columns:repeat(6,1fr)}
}

/* ---------- 반응형 ---------- */
@media (min-width:640px){
}
@media (min-width:1000px){
  .menu{display:flex}
  .telbig{display:block}
  .ctastrip{grid-template-columns:1fr auto;text-align:left}
  .ctastrip__a{justify-content:flex-end}
  .nav__toggle{display:none}
  .drawer{display:none}
  .cta{grid-template-columns:1fr auto}
  .bottombar{display:none}
  body{padding-bottom:0}
  .footer__top{grid-template-columns:1fr auto;align-items:center}
}

/* ---------- 분양홍보관 ----------
   홈 상단의 큰 안내 블록. 방문이 가장 값어치 큰 행동이라 접히지 않게 크게 둔다. */
.showroom{display:grid;gap:0;align-items:stretch;
  border:1px solid var(--gold-line);border-radius:4px;overflow:hidden;background:var(--surface)}
@media (min-width:820px){.showroom{grid-template-columns:1.05fr .95fr}}
.showroom__media{position:relative;min-height:220px}
.showroom__media img{width:100%;height:100%;object-fit:cover;display:block}
.showroom__media figcaption{position:absolute;left:0;right:0;bottom:0;
  padding:.5em .9em;font-size:.75rem;letter-spacing:.02em;
  color:rgba(255,255,255,.9);background:linear-gradient(180deg,rgba(9,11,13,0),rgba(9,11,13,.72))}
.showroom__body{padding:clamp(1.5rem,3.4vw,2.6rem);display:flex;flex-direction:column;gap:var(--sp-4)}
.showroom__t{font-family:var(--serif);font-weight:400;
  font-size:clamp(1.5rem,1.15rem + 1.5vw,2.2rem);line-height:1.3;margin:0}
.showroom__addr{margin:0;font-size:clamp(1.02rem,.95rem + .5vw,1.32rem);line-height:1.6;
  font-weight:500;color:var(--fg)}
.showroom__addr small{display:block;margin-top:.25em;font-size:.8125rem;font-weight:400;color:var(--muted)}
.showroom__tel{display:block;font-family:var(--serif);font-size:clamp(1.6rem,1.2rem + 1.9vw,2.5rem);
  line-height:1.1;color:var(--gold);text-decoration:none;letter-spacing:.01em}
.showroom__acts{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:var(--sp-2)}
.showroom__acts .btn{flex:1 1 8.5rem}

/* ---------- 안내 팝업 ----------
   기본값은 display:none 이다. JS 가 켜야만 뜬다 — JS 를 끈 환경에서
   닫을 수 없는 검은 막이 남는 사고를 막는다. */
.popup{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;padding:var(--sp-4)}
.popup.is-on{display:flex}
.popup__bd{position:absolute;inset:0;background:rgba(9,11,13,.74)}
.popup__box{position:relative;width:100%;max-width:26rem;max-height:calc(100dvh - 2rem);
  overflow-y:auto;background:var(--bg);border-radius:4px;
  box-shadow:0 24px 70px rgba(9,11,13,.45);animation:popIn .32s var(--ease) both}
@keyframes popIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.popup__img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.popup__body{padding:var(--sp-5) var(--sp-5) var(--sp-4);display:flex;flex-direction:column;gap:var(--sp-3);text-align:center}
.popup__t{margin:0;font-family:var(--serif);font-weight:400;font-size:1.45rem;line-height:1.35}
.popup__addr{margin:0;font-size:1.02rem;line-height:1.6;font-weight:500}
.popup__addr small{display:block;margin-top:.2em;font-size:.8125rem;font-weight:400;color:var(--muted)}
.popup__tel{font-family:var(--serif);font-size:1.9rem;color:var(--gold);text-decoration:none;line-height:1.1}
.popup__acts{display:flex;gap:.5rem;margin-top:var(--sp-2)}
.popup__acts .btn{flex:1}
.popup__foot{display:flex;border-top:1px solid var(--line);background:var(--surface-2)}
.popup__foot button{flex:1;padding:.95em .5em;background:none;border:0;cursor:pointer;
  font:inherit;font-size:.875rem;color:var(--fg-2)}
.popup__foot button + button{border-left:1px solid var(--line)}
.popup__foot button:hover{color:var(--fg)}
.popup__x{position:absolute;top:.45rem;right:.45rem;width:2.1rem;height:2.1rem;border:0;cursor:pointer;
  border-radius:999px;background:rgba(9,11,13,.5);color:#fff;font-size:1.1rem;line-height:1}
