/* 자오선 건축사사무소 · 공통 스타일
   색: 콘크리트 종이(--paper) · 먹(--ink) · 하늘(--sky) · 삼나무(--wood) · 해(--sun, 선과 큰 숫자에만)
   글꼴: Pretendard(한글) + Jost(영문 · 숫자 · 치수) */
:root {
  --paper: #EDEBE6; --paper-2: #E4E1DA; --paper-3: #D9D5CC; --white: #F7F6F2;
  --ink: #1C1F22; --ink-2: #43484D; --ink-3: #5E6368; --line: rgba(28, 31, 34, .16); --line-2: rgba(28, 31, 34, .32);
  --sky: #7FA3BD; --sky-l: #C9D8E2; --sky-d: #35607C; --wood: #A9805B; --sun: #C46A28; --sun-l: #E3A35E;
  --night: #14191E; --night-2: #1E252C; --on-d: #EEF0EF; --on-d-2: rgba(238, 240, 239, .78); --line-d: rgba(238, 240, 239, .18);
  --kr: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --en: "Jost", "Pretendard Variable", Pretendard, sans-serif;
  --gut: clamp(20px, 4.2vw, 68px); --gap: clamp(14px, 2vw, 32px); --sec: clamp(96px, 12vw, 200px); --hd: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1); --io: cubic-bezier(.76, 0, .24, 1);
  --cur: #1C1F22; --pt-bg: #1C1F22; --pt-ink: #EDEBE6;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.8 var(--kr); letter-spacing: -.012em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.en { font-family: var(--en); letter-spacing: .005em; }
.num { font-family: var(--en); font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; }
.wrap { padding: 0 var(--gut); max-width: 1680px; margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
::selection { background: var(--sky-l); color: var(--ink); }

/* ── 등장 ── */
html.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-r].in { opacity: 1; transform: none; }
html.js [data-r-line] { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-r-line].in { transform: none; }
html.js .ph-r { clip-path: inset(0 0 12% 0); transition: clip-path 1.5s var(--ease); }
html.js .in > .ph-r, html.js .ph-r.in { clip-path: inset(0); }

/* ── 머리글 ── */
.hd { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hd); color: var(--on-d); transition: background .5s var(--ease), color .5s, box-shadow .5s, transform .6s var(--ease); }
.hd.solid { background: rgba(237, 235, 230, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px); }
.hd.hide { transform: translateY(-100%); }
.hd-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.brand small { display: block; font: 400 13px/1.2 var(--en); letter-spacing: .06em; opacity: .82; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; opacity: .88; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover { opacity: 1; } .nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current] { opacity: 1; }
.hd-r { display: flex; align-items: center; gap: 18px; }
.hd-tel { font: 400 15px var(--en); letter-spacing: .02em; opacity: .9; }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px; border-radius: 0; background: var(--ink); color: var(--paper); font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; transition: background .4s, color .4s, box-shadow .4s; }
.btn:hover { background: var(--sky-d); }
.btn svg { width: 18px; height: 10px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.line:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: var(--sky-l); }
.hd:not(.solid) .btn.sm { background: rgba(247, 246, 242, .94); color: var(--ink); }
.hd:not(.solid) .btn.sm:hover { background: #fff; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 26px; }
.menu-open .burger i:first-child { top: 21.5px; transform: rotate(45deg); } .menu-open .burger i:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu-open .hd { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; }

/* ── 모바일 메뉴: 대표 작업 카드 + 일조 분석 + 상담 ── */
.mnav { position: fixed; inset: 0; z-index: 55; background: var(--paper); color: var(--ink); padding: 78px var(--gut) calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--io), visibility 0s .8s; }
.menu-open .mnav { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--io); }
.mnav > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu-open .mnav > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 200ms); }
.mn-k { display: flex; justify-content: space-between; font: 500 13px var(--en); letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.mn-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mn-card { display: block; }
.mn-card .ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.mn-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.mn-card b { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.mn-card small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.mn-links a { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 400; letter-spacing: -.04em; line-height: 1.45; }
.mn-links a .en { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.mn-foot { margin-top: auto; display: grid; gap: 12px; }
.mn-foot .btn { width: 100%; justify-content: space-between; }
.mn-foot p { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.mn-foot p a { font: 500 16px var(--en); color: var(--ink); }

/* ── 섹션 머리 (도면 표제란처럼) ── */
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 13.5px; color: var(--ink-2); }
.sh .no { font: 500 13.5px var(--en); letter-spacing: .1em; color: var(--ink); }
.sh .no b { font-weight: 500; margin-right: 14px; }
.sh .meta { font: 400 13.5px var(--en); letter-spacing: .06em; color: var(--ink-3); }
.dark .sh { border-color: var(--on-d); color: var(--on-d-2); } .dark .sh .no { color: var(--on-d); } .dark .sh .meta { color: var(--on-d-2); }
.h2 { font-size: clamp(34px, 4.6vw, 76px); font-weight: 300; line-height: 1.16; letter-spacing: -.055em; }
.h2 b { font-weight: 650; }
.h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: 1.35; letter-spacing: -.04em; }
.lead { font-size: clamp(16.5px, 1.2vw, 19px); line-height: 1.85; color: var(--ink-2); max-width: 34em; }
.lead + .lead { margin-top: 1em; }
.dark { background: var(--night); color: var(--on-d); }
.dark .lead { color: var(--on-d-2); }
.cap { display: flex; gap: 12px; margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.cap .en { font-style: italic; color: var(--ink); white-space: nowrap; }
.dark .cap { color: var(--on-d-2); } .dark .cap .en { color: var(--on-d); }
.ph { position: relative; overflow: hidden; background: var(--paper-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.more { display: inline-flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.more svg { width: 18px; height: 10px; transition: transform .5s var(--ease); }
.more:hover svg { transform: translateX(5px); }

/* 치수선 (양 끝 사선 표시) */
.dimln { position: relative; display: flex; align-items: center; justify-content: center; height: 22px; font: 400 13px var(--en); letter-spacing: .06em; color: var(--ink-2); }
.dimln::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: .55; }
.dimln::after { content: ""; position: absolute; inset: 4px 0; border-left: 1px solid currentColor; border-right: 1px solid currentColor; opacity: .55; }
.dimln span { position: relative; z-index: 1; padding: 0 10px; background: var(--bg, var(--paper)); }

/* ── 첫 화면: 스크롤 시퀀스 ── */
.seq.hero { position: relative; height: 560vh; background: #2A3036; color: #fff; }
.seq-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.seq-cv, .seq-still, .rm-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seq-cv { opacity: 0; transition: opacity .6s; }
.seq-on .seq-cv { opacity: 1; }
.seq-on .seq-still { visibility: hidden; }
.rm-still { display: none; }
.hero-sh { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14, 18, 22, .38) 0%, rgba(14, 18, 22, .06) 16%, rgba(14, 18, 22, 0) 40%, rgba(14, 18, 22, .2) 68%, rgba(14, 18, 22, .62) 100%); }
.seq-cv, .seq-still, .rm-still { filter: saturate(1.08) contrast(1.03); }
.hero-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--hd); padding-bottom: clamp(26px, 4vh, 48px); }
.h-kick { display: flex; gap: 14px; align-items: center; font-size: clamp(14px, 1.05vw, 16px); font-weight: 500; color: rgba(255, 255, 255, .9); }
.h-kick i { width: 34px; height: 1px; background: currentColor; opacity: .7; }
.h-ttl { margin-top: clamp(14px, 2.2vh, 26px); font-size: clamp(46px, 8.6vw, 150px); font-weight: 300; line-height: 1.04; letter-spacing: -.065em; margin-left: -.05em; text-shadow: 0 0 80px rgba(10, 14, 18, .25); }
.h-ttl b { font-weight: 600; }
.h-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: clamp(18px, 3vh, 34px); }
.h-lead { max-width: 33em; font-size: clamp(15px, 1.12vw, 17.5px); line-height: 1.8; color: rgba(255, 255, 255, .9); }
.h-clock { text-align: right; min-width: 15em; }
.h-clock .t { font: 300 clamp(44px, 5vw, 84px)/1 var(--en); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h-clock .d { margin-top: 10px; font: 400 14px var(--en); letter-spacing: .08em; color: rgba(255, 255, 255, .86); }
.h-clock .d span { font-family: var(--kr); letter-spacing: -.01em; }
.h-cap { position: absolute; z-index: 2; left: var(--gut); bottom: calc(clamp(26px, 4vh, 48px) + 92px); width: min(40em, 62vw); height: 1px; }
.h-st { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.h-st.on { opacity: 1; transform: none; }
.h-st b { display: block; font-size: clamp(26px, 3.1vw, 50px); font-weight: 300; line-height: 1.22; letter-spacing: -.05em; }
.h-st b strong { font-weight: 600; }
.h-st p { margin-top: 14px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.75; color: rgba(255, 255, 255, .88); max-width: 30em; }
.h-intro { transition: opacity .7s var(--ease), transform .9s var(--ease); }
.hero .h-intro.off { opacity: 0 !important; transform: translateY(-16px) !important; pointer-events: none; }
.h-ruler { position: relative; margin-top: clamp(18px, 3vh, 30px); height: 40px; border-top: 1px solid rgba(255, 255, 255, .35); }
.h-ruler i { position: absolute; top: 0; width: 1px; height: 7px; background: rgba(255, 255, 255, .5); }
.h-ruler i.m { height: 13px; background: rgba(255, 255, 255, .8); }
.h-ruler span { position: absolute; top: 16px; transform: translateX(-50%); font: 400 13px var(--en); letter-spacing: .04em; color: rgba(255, 255, 255, .84); white-space: nowrap; }
.h-ruler .now { position: absolute; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--sun-l); box-shadow: 0 0 0 4px rgba(227, 163, 94, .25); transition: left .2s linear; }
.h-ruler .now.night { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.h-sun { position: absolute; z-index: 2; right: var(--gut); top: calc(var(--hd) + 26px); text-align: right; font: 400 13.5px/1.7 var(--en); letter-spacing: .06em; color: rgba(255, 255, 255, .86); }
.h-sun b { font-weight: 500; color: #fff; }
.h-vert { position: absolute; z-index: 2; left: var(--gut); top: calc(var(--hd) + 26px); font: 500 13.5px var(--en); letter-spacing: .12em; color: rgba(255, 255, 255, .86); }
html.js .h-f { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); transition-delay: var(--d, 0ms); }
html.js .ready .h-f { opacity: 1; transform: none; }
/* 애니메이션 줄이기: 한 장(해 질 녘) + 하루 기록을 아래에 펼친다 */
.seq.hero.seq-rm { height: auto; }
.seq-rm .seq-stick { position: relative; height: 100vh; height: 100svh; min-height: 640px; }
.seq-rm .seq-still, .seq-rm .seq-cv { display: none; }
.seq-rm .rm-still { display: block; }
.seq-rm .h-cap, .seq-rm .h-ruler .now { display: none; }
.h-log { display: none; }
.seq-rm .h-log { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); padding: 34px var(--gut) 56px; background: var(--night); color: var(--on-d); }
.h-log li { border-top: 1px solid var(--line-d); padding-top: 14px; }
.h-log .t { font: 300 34px/1 var(--en); letter-spacing: -.01em; }
.h-log b { display: block; margin-top: 12px; font-size: 16px; font-weight: 600; letter-spacing: -.03em; line-height: 1.45; }
.h-log p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--on-d-2); }

/* ── 사무소 소개 ── */
.about { padding: var(--sec) 0 calc(var(--sec) * .8); }
.ab-big { margin-top: clamp(48px, 6vw, 96px); grid-column: 1 / 10; font-size: clamp(28px, 3.5vw, 58px); font-weight: 300; line-height: 1.38; letter-spacing: -.05em; }
.ab-big b { font-weight: 600; }
/* 사무소: 실제 스케치 영상(Pexels) 띠 */
.ab-film { margin-top: clamp(72px, 9vw, 150px); }
.af-v { position: relative; height: clamp(420px, 50vw, 760px); overflow: hidden; background: var(--paper-3); }
.af-v img, .af-v video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.af-v video { opacity: 0; transition: opacity .8s; }
.af-v video.ready { opacity: 1; }
.af-v::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 25, 30, .55) 0%, rgba(20, 25, 30, 0) 46%); pointer-events: none; }
.af-t { position: absolute; left: var(--gut); bottom: clamp(28px, 4vw, 60px); z-index: 1; font-size: clamp(32px, 4.4vw, 74px); line-height: 1.16; font-weight: 300; letter-spacing: -.05em; color: var(--white); }
.af-t b { font-weight: 650; }
.ab-film .cap { max-width: 1440px; }
@media (max-width: 767px) {
  .af-v { height: 72svh; }
  .af-v img { object-position: 45% 50%; }
  .af-v::after { background: linear-gradient(0deg, rgba(20, 25, 30, .66) 0%, rgba(20, 25, 30, 0) 55%); }
  .af-t { font-size: 32px; right: var(--gut); }
  .ab-film .cap { flex-direction: column; gap: 2px; }
}
.ab-row { margin-top: clamp(56px, 7vw, 120px); align-items: start; }
.ab-ph { grid-column: 1 / 6; }
.ab-ph .ph { aspect-ratio: 4 / 5; }
.ab-txt { grid-column: 7 / 12; }
.ab-txt .lead { max-width: 30em; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin-top: 48px; }
.stats div { padding: 18px 0 20px; border-top: 1px solid var(--line-2); }
.stats dt { font-size: 14px; color: var(--ink-3); }
.stats dd { margin-top: 6px; font: 300 clamp(36px, 3.4vw, 56px)/1 var(--en); letter-spacing: -.02em; }
.stats dd small { font: 500 15px var(--kr); letter-spacing: -.02em; margin-left: 6px; color: var(--ink-2); }
.sign { margin-top: 34px; display: flex; align-items: baseline; gap: 14px; font-size: 14px; color: var(--ink-3); }
.sign b { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }

/* ── 작업 ── */
.works { padding: 0 0 var(--sec); }
.feat { margin-top: clamp(36px, 4vw, 64px); }
.feat .ph { aspect-ratio: 16 / 8.2; }
.feat-row { margin-top: 26px; align-items: start; }
.feat-row .h3 { grid-column: 1 / 5; font-size: clamp(30px, 3vw, 48px); font-weight: 300; letter-spacing: -.05em; line-height: 1.2; }
.feat-row .h3 b { font-weight: 600; }
.feat-row .lead { grid-column: 5 / 9; font-size: 16px; }
.feat-row .spec { grid-column: 9 / 13; }
.spec { display: grid; font-size: 14.5px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--ink-3); }
.spec dd { text-align: right; font-weight: 500; }
.spec dd .num { font-size: 15.5px; }
.others { margin-top: clamp(80px, 9vw, 150px); align-items: start; row-gap: 64px; }
.wk { grid-column: span 4; display: block; }
.wk:nth-child(2) { margin-top: clamp(40px, 6vw, 110px); }
.wk:nth-child(3) { margin-top: clamp(20px, 3vw, 54px); }
.wk .ph { aspect-ratio: 4 / 5; }
.wk .ph img { transition: transform 1.6s var(--ease); }
.wk-lab { position: absolute; left: 14px; bottom: 12px; font: 500 13px var(--en); letter-spacing: .04em; color: var(--ink-2); background: rgba(247, 246, 242, .82); padding: 3px 8px; }
.wk:hover .ph img { transform: scale(1.035); }
.wk-t { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.wk-t b { font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
.wk-t span { font: 400 14px var(--en); letter-spacing: .06em; color: var(--ink-3); }
.wk p { margin-top: 6px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.wk .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-3); }

/* ── 일조 분석 (시그니처 2) ── */
.sun { position: relative; padding: var(--sec) 0 calc(var(--sec) * .7); background: var(--paper-2); }
.sun-head { align-items: end; margin-top: clamp(40px, 5vw, 80px); }
.sun-head .h2 { grid-column: 1 / 8; }
.sun-head .lead { grid-column: 8 / 13; font-size: 16px; }
.st-wrap { margin-top: clamp(36px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 420px); gap: 0; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.st-stage { position: relative; min-height: clamp(520px, 68vh, 760px); overflow: hidden; background: linear-gradient(180deg, var(--sky-a, #BFD3E0) 0%, var(--sky-b, #E9EEF0) 62%, #E7E4DD 100%); touch-action: pan-y; }
.st-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.st-stage .st-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.st-live .st-poster { opacity: 0; pointer-events: none; }
.st-loading { position: absolute; left: 20px; bottom: 20px; z-index: 3; font: 400 13.5px var(--en); letter-spacing: .06em; color: var(--ink-2); }
.st-live .st-loading { display: none; }
.st-hud { position: absolute; z-index: 3; left: 20px; top: 18px; right: 20px; display: flex; justify-content: space-between; pointer-events: none; font: 400 13.5px/1.6 var(--en); letter-spacing: .05em; color: var(--ink-2); }
.st-hud b { font-weight: 500; color: var(--ink); }
.st-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.st-labels span { position: absolute; transform: translate(-50%, -140%); font: 500 13px var(--en); letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; }
.st-labels span.cur { color: var(--sun); font-weight: 600; }
.st-labels span.nesw { transform: translate(-50%, -50%); font-weight: 500; color: var(--ink-3); }
.st-views { position: absolute; z-index: 3; left: 20px; bottom: 18px; display: flex; gap: 6px; }
.st-views button, .st-tg { height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 500; background: rgba(247, 246, 242, .9); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s; }
.st-views button[aria-pressed=true], .st-tg[aria-pressed=true] { background: var(--ink); color: var(--paper); box-shadow: none; }
.st-panel { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 18px; border-left: 1px solid var(--line); }
.st-f > label, .st-f > .lb { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.st-f > label .num, .st-f > .lb .num { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { height: 40px; font-size: 14.5px; font-weight: 500; transition: background .3s, color .3s; }
.seg button + button { box-shadow: -1px 0 0 var(--line-2); }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.rng { width: 100%; margin: 12px 0 0; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; }
.rng::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--line-2) var(--p, 50%)); }
.rng::-moz-range-track { height: 2px; background: var(--line-2); }
.rng::-moz-range-progress { height: 2px; background: var(--ink); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.rng::-moz-range-thumb { width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.rng:focus-visible { outline: 2px solid var(--sky-d); outline-offset: 4px; }
.rng-s { display: flex; justify-content: space-between; margin-top: 2px; font: 400 13px var(--en); color: var(--ink-3); }
.st-res { padding-top: 18px; border-top: 1px solid var(--ink); }
.st-res .k { font-size: 14px; color: var(--ink-2); }
.st-res .k b { color: var(--ink); font-weight: 600; }
.st-res .big { margin-top: 6px; font: 300 clamp(34px, 2.9vw, 46px)/1.1 var(--en); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-res .big.none { font: 300 clamp(26px, 2.2vw, 34px)/1.25 var(--kr); letter-spacing: -.04em; }
.st-res .dur { margin-top: 6px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.st-res .dur span { color: var(--ink-3); font-weight: 400; font-size: 14px; margin-left: 6px; }
.tl { margin-top: 18px; display: grid; gap: 9px; }
.tl-r { display: grid; grid-template-columns: 34px minmax(0, 1fr) 82px; align-items: center; gap: 10px; font-size: 13.5px; }
.tl-r > span:first-child { font-weight: 600; }
.tl-r.on > span:first-child { color: var(--sun); }
.tl-bar { position: relative; height: 12px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 16)); box-shadow: inset 0 -1px 0 var(--line-2); }
.tl-bar i { position: absolute; top: 2px; bottom: 2px; background: var(--sun-l); }
.tl-r.on .tl-bar i { background: var(--sun); }
.tl-bar b { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--ink); }
.tl-r .num { text-align: right; color: var(--ink-2); white-space: nowrap; font-size: 13.5px; }
.tl-ax { display: flex; justify-content: space-between; margin-left: 44px; margin-right: 92px; font: 400 13px var(--en); color: var(--ink-3); }
.st-cta { margin-top: auto; display: grid; gap: 10px; }
.st-cta .btn { justify-content: space-between; width: 100%; }
.st-note { font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }
.st-foot { margin-top: 22px; align-items: start; }
.st-foot p { grid-column: span 4; font-size: 14px; line-height: 1.75; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); }
.st-foot p b { color: var(--ink); font-weight: 600; }
.no-gl .st-hud, .no-gl .st-views, .no-gl .st-loading { display: none; }

/* ── 땅 고르기 ── */
.land { padding: var(--sec) 0; }
.land-row { margin-top: clamp(40px, 5vw, 80px); align-items: start; }
.land-row .h2 { grid-column: 1 / 7; }
.land-ph { grid-column: 7 / 13; }
.land-ph .ph { aspect-ratio: 3 / 2; }
.chk { grid-column: 1 / 13; margin-top: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); counter-reset: c; }
.chk li { padding: 22px 0 26px; border-top: 1px solid var(--line-2); counter-increment: c; }
.chk li::before { content: counter(c, decimal-leading-zero); display: block; font: 400 13.5px var(--en); letter-spacing: .1em; color: var(--ink-3); }
.chk b { display: block; margin-top: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.chk p { margin-top: 6px; font-size: 15px; line-height: 1.75; color: var(--ink-2); max-width: 26em; }
.land-fee { grid-column: 1 / 13; margin-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.land-fee p { font-size: 17px; letter-spacing: -.02em; }
.land-fee p b { font-weight: 600; }
.land-fee .num { font-size: 26px; font-weight: 400; margin: 0 4px; }

/* ── 설계 과정 ── */
.proc { padding: var(--sec) 0; }
.proc-head { margin-top: clamp(40px, 5vw, 80px); align-items: end; }
.proc-head .h2 { grid-column: 1 / 8; }
.proc-head .lead { grid-column: 8 / 13; font-size: 16px; }
.gantt { margin-top: clamp(40px, 5vw, 72px); }
.g-ax { position: relative; height: 30px; margin-left: 32%; border-bottom: 1px solid var(--ink); }
.g-ax span { position: absolute; bottom: 8px; transform: translateX(-50%); font: 400 13px var(--en); color: var(--ink-3); white-space: nowrap; }
.g-ax i { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--ink); }
.g-r { display: grid; grid-template-columns: 32% minmax(0, 1fr); align-items: stretch; border-bottom: 1px solid var(--line); }
.g-l { padding: 20px 20px 22px 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 0; }
.g-l .n { font: 400 14px var(--en); color: var(--ink-3); padding-top: 3px; }
.g-l b { font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.g-l p { grid-column: 2; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.g-l .w { grid-column: 2; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.g-t { position: relative; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / var(--cols, 14))); }
.g-t i { position: absolute; top: 50%; height: 12px; margin-top: -6px; left: var(--a); width: var(--w); background: var(--ink); transform-origin: left; }
.g-t i.lt { background: var(--sky); }
.g-t i.hatch { background: repeating-linear-gradient(135deg, var(--ink-3) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--ink-3); }
html.js .gantt [data-r] i { transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--k, 0) * 90ms + 200ms); }
html.js .gantt [data-r].in i { transform: none; }
.g-sum { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 30px; padding-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.g-sum span { white-space: nowrap; }
.g-sum b { font: 400 22px var(--en); color: var(--ink); margin-left: 6px; }

/* ── 설계비 요약 / 띠 ── */
.feeband { padding: clamp(80px, 9vw, 140px) 0; }
.fb-row { align-items: end; }
.fb-row .h2 { grid-column: 1 / 7; }
.fb-n { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.fb-n div { border-top: 1px solid var(--line-d); padding-top: 14px; }
.fb-n dt { font-size: 14px; color: var(--on-d-2); }
.fb-n dd { margin-top: 8px; font: 300 clamp(34px, 3.2vw, 52px)/1 var(--en); letter-spacing: -.02em; }
.fb-n dd small { font: 500 15px var(--kr); margin-left: 4px; color: var(--on-d-2); letter-spacing: -.02em; }
.fb-cta { margin-top: clamp(40px, 5vw, 72px); display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 오시는 길 ── */
.visit { padding: var(--sec) 0; }
.vs-row { margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.vs-map { grid-column: 1 / 8; }
.vs-map svg { width: 100%; height: auto; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.vs-txt { grid-column: 9 / 13; }
.vs-txt .h3 { font-weight: 600; }
.vs-txt dl { margin-top: 26px; display: grid; }
.vs-txt dl div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.65; }
.vs-txt dt { color: var(--ink-3); }
.vs-txt dd a { border-bottom: 1px solid var(--line-2); }
.map text { font-family: var(--kr); }

/* ── 바닥글 ── */
.ft { padding: clamp(64px, 7vw, 110px) 0 calc(36px + env(safe-area-inset-bottom)); background: var(--night); color: var(--on-d); }
.ft-big { font-size: clamp(36px, 6vw, 104px); font-weight: 300; letter-spacing: -.06em; line-height: 1.08; }
.ft-big b { font-weight: 600; }
.ft-row { margin-top: clamp(40px, 5vw, 80px); align-items: start; row-gap: 28px; }
.ft-row > div { grid-column: span 3; font-size: 14.5px; line-height: 1.8; color: var(--on-d-2); }
.ft-row b { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: var(--on-d); letter-spacing: .02em; }
.ft-row a:hover { color: #fff; }
.ft-note { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; line-height: 1.7; color: var(--on-d-2); }
.ft-note p { max-width: 60em; }

/* ── 모바일 하단 띠 ── */
.mbar { display: none; }

/* ── 페이지 머리(상세 · 상담) ── */
.ph-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: #fff; background: #2A3036; overflow: hidden; }
.ph-hero > .ph { position: absolute; inset: 0; background: #2A3036; }
.ph-hero > .ph img { transform: scale(1.06); transition: transform 2.6s var(--ease); }
.ready .ph-hero > .ph img { transform: none; }
.ph-hero .hero-in { justify-content: flex-end; }

/* ── 폼 ── */
.fld { display: grid; gap: 8px; }
.fld > span { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.fld > span em { font-style: normal; color: var(--sun); margin-left: 3px; }
.fld input, .fld select, .fld textarea { width: 100%; height: 50px; padding: 0 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; font-size: 16px; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.fld select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1F22' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 26px; }
.fld textarea { height: 104px; padding: 12px 2px; resize: vertical; line-height: 1.65; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--ink); }
.fld.bad input, .fld.bad select { border-color: #B23B2A; }
.fld .err { display: none; font-size: 13.5px; color: #A8321F; }
.fld.bad .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--sky-d); outline-offset: 2px; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .hd-tel { display: none; }
}
@media (max-width: 900px) {
  :root { --hd: 62px; }
  body { font-size: 16px; }
  .hd .btn.sm { display: none; }
  .brand b { font-size: 15.5px; } .brand small { font-size: 13px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1 !important; }
  .seq.hero { height: 460vh; }
  .h-ttl { font-size: clamp(42px, 12.4vw, 84px); line-height: 1.08; }
  .h-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .h-clock { text-align: left; display: flex; align-items: baseline; gap: 14px; min-width: 0; }
  .h-clock .t { font-size: 42px; }
  .h-clock .d { margin-top: 0; }
  .h-cap { bottom: calc(clamp(26px, 4vh, 48px) + 112px); width: auto; right: var(--gut); }
  .h-st b { font-size: clamp(25px, 7vw, 34px); }
  .h-st p { font-size: 15px; }
  .h-ruler span:not(.k) { display: none; }
  .h-sun { display: none; }
  .seq-rm .h-log { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .h-log li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 2px 14px; padding: 14px 0; }
  .h-log li > * { grid-column: 2; } .h-log .t { grid-column: 1; grid-row: 1 / 3; font-size: 22px; }
  .h-log b { margin-top: 0; }
  .ab-big { font-size: clamp(25px, 6.6vw, 36px); }
  .ab-txt { margin-top: 40px; }
  .feat .ph { aspect-ratio: 4 / 3.4; }
  .feat-row > * + * { margin-top: 20px; }
  .others { row-gap: 48px; }
  .wk:nth-child(n) { margin-top: 0; }
  .wk .ph { aspect-ratio: 4 / 3.6; }
  .sun-head .lead, .proc-head .lead { margin-top: 20px; }
  .st-wrap { grid-template-columns: minmax(0, 1fr); margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); }
  .st-stage { min-height: 0; height: 64vh; height: 64svh; }
  .st-panel { border-left: 0; border-top: 1px solid var(--line); padding: 22px var(--gut) 26px; }
  .st-foot p { margin-top: 0; }
  .st-views { left: 12px; bottom: 12px; }
  .st-hud { left: 14px; right: 14px; top: 12px; font-size: 13px; }
  .land-ph { margin-top: 32px; }
  .chk { grid-template-columns: minmax(0, 1fr); }
  .g-ax { margin-left: 0; }
  .g-r { grid-template-columns: minmax(0, 1fr); }
  .g-l { padding: 18px 0 8px; }
  .g-t { height: 26px; margin-bottom: 16px; }
  .g-sum { justify-content: flex-start; gap: 6px 22px; }
  .g-sum b { font-size: 19px; }
  .fb-n { margin-top: 36px; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fb-n div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; }
  .fb-n dd { margin-top: 0; font-size: 34px; }
  .vs-txt { margin-top: 32px; }
  .ft-row > div { grid-column: 1 / -1; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.25fr; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); color: var(--paper); transform: translateY(110%); transition: transform .6s var(--ease); }
  .mbar.on { transform: none; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
  .mbar a + a { box-shadow: -1px 0 0 rgba(237, 235, 230, .18); }
  .mbar a.go { background: var(--paper); color: var(--ink); }
  .mbar svg { width: 17px; height: 17px; }
  .ft { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .mn-links a { font-size: 21px; padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) [data-r], html:not(.motion-on) [data-r-line], html:not(.motion-on) .ph-r, html:not(.motion-on) .h-f { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ── premium.css 에서 가져온 것: 자석 버튼 · 글자 나누기 · 페이지 전환 ── */
[data-magnetic] { transition: transform .6s cubic-bezier(.16,1,.3,1), background .4s, color .4s, box-shadow .4s; will-change: transform; }
[data-magnetic-inner] { display: inline-flex; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.sp { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sp-i { display: inline-block; }
html.js [data-split] .sp-i { transform: translateY(108%); transition: transform 1.2s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 70ms + var(--d, 120ms)); }
html.js [data-split].in .sp-i { transform: none; }
html.pt-pending::before { content: ""; position: fixed; inset: 0; z-index: 9600; background: var(--pt-bg); }
.pt { position: fixed; inset: 0; z-index: 9500; pointer-events: none; visibility: hidden; }
.pt-in { position: absolute; inset: 0; background: var(--pt-bg); color: var(--pt-ink); display: grid; place-items: center; transform: translateY(100%); }
.pt-in span { font: 500 14px/1 var(--en); letter-spacing: .32em; opacity: 0; transition: opacity .3s .25s; }
.pt.enter, .pt.cover { visibility: visible; pointer-events: auto; }
.pt.enter .pt-in { transform: none; transition: transform .7s cubic-bezier(.76,0,.24,1); }
.pt.enter .pt-in span, .pt.cover .pt-in span { opacity: 1; }
.pt.cover .pt-in { transform: none; transition: none; }
.pt.cover.leave .pt-in { transform: translateY(-100%); transition: transform .8s cubic-bezier(.76,0,.24,1) .1s; }
.pt.cover.leave .pt-in span { opacity: 0; transition: opacity .2s; }
.g-t .g-more { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding-left: 12px; font-size: 13.5px; color: var(--ink-2); background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html:not(.motion-on) [data-split] .sp-i { transform: none; transition: none; } }
