@charset "UTF-8";
/* =====================================================================
   남양주수목장 레이아웃 스타일
   - 원본 style.css + sub.css 를 합친 파일입니다.
   - Rhymix 관리 화면, 게시판 스킨 등 다른 스타일을 건드리지 않도록
     모든 규칙을 레이아웃 바깥 상자(.nm) 아래로 묶었습니다.
       .nm        : 레이아웃 전체 상자 (메인이면 .nm-main, 서브면 .nm-sub 가 함께 붙음)
       .nm-ui     : 헤더 · 메뉴 · 푸터 등 레이아웃이 직접 그리는 부분
       .nm-page   : pages/ 폴더의 본문 조각(페이지 모듈에 붙여 넣는 HTML)
       .nm-content: 모듈 본문({$content}) 자리. 게시판 스킨 등은 이 안에서 원래 모양 그대로
   - 전체 초기화(* { margin:0 })는 하지 않고, 위 세 영역 안에서만 우선순위 0 으로 초기화합니다.
   ===================================================================== */

/* ---------- 색 · 글꼴 변수 ---------- */
.nm {
  --cream: #f6f1e8;
  --cream-2: #efe7da;
  --ink: #1d2420;
  --ink-soft: #4a514c;
  --gold: #b8996a;
  --white: #ffffff;
  --serif-en: "Cormorant Garamond", "Noto Serif KR", serif;
  --serif-ko: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);

  position: relative;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;   /* 오래된 브라우저용 */
  overflow-x: clip;     /* sticky 탭이 동작하도록 clip 우선 */
}
.nm-main { background: var(--ink); }
.nm-sub { background: var(--cream); font-variant-numeric: lining-nums; }

/* 이 레이아웃을 쓰는 페이지의 body 만 (Context::addBodyClass 로 붙임) */
body.nm-body { margin: 0; background: #f6f1e8; }
html.nm-snap body.nm-body { background: #1d2420; }

/* 메인 원페이지: 화면 단위 스크롤 (js 가 html 에 nm-snap 클래스를 붙임) */
html.nm-snap { scroll-behavior: smooth; scroll-snap-type: y mandatory; }

/* ---------- 영역 한정 초기화 (우선순위 0) ---------- */
:where(.nm-ui, .nm-main-wrap > .sec:not(.main-content), .nm-page),
:where(.nm-ui, .nm-main-wrap > .sec:not(.main-content), .nm-page) *,
:where(.nm-ui, .nm-main-wrap > .sec:not(.main-content), .nm-page) *::before,
:where(.nm-ui, .nm-main-wrap > .sec:not(.main-content), .nm-page) *::after { box-sizing: border-box; margin: 0; padding: 0; }
:where(.nm-ui, .nm-main-wrap > .sec:not(.main-content), .nm-page) a { color: inherit; text-decoration: none; }
:where(.nm-ui, .nm-main-wrap > .sec:not(.main-content), .nm-page) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.nm-ui, .nm-main-wrap > .sec:not(.main-content), .nm-page) img { display: block; max-width: 100%; }
:where(.nm-ui, .nm-main-wrap > .sec:not(.main-content), .nm-page) ul { list-style: none; }

/* ---------- 섹션 공통 ---------- */
.nm-main .sec { position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; overflow: hidden; }
.nm-main .display { font-family: var(--serif-en); font-weight: 500; letter-spacing: .01em; line-height: 1.02; }
.nm .eyebrow { font-family: var(--serif-en); letter-spacing: .25em; font-size: 14px; opacity: .85; margin-bottom: 18px; }

.nm-main .reveal, .nm-page .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.nm-main .reveal.is-in, .nm-page .reveal.is-in { opacity: 1; transform: none; }
/* 스크립트가 꺼져 있으면 숨기지 않음 */
.nm.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 헤더 ---------- */
.nm > .header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: flex-start; padding: 26px var(--gutter); color: var(--white); transition: color .4s; pointer-events: none; }
.nm > .header > * { pointer-events: auto; }
.nm > .header.on-light { color: var(--ink); }
.nm .logo { display: flex; align-items: center; gap: 10px; }
.nm .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nm .logo-ko { font-family: var(--serif-ko); font-size: 20px; font-weight: 600; letter-spacing: .12em; }
.nm .logo-en { font-family: var(--serif-en); font-size: 10px; letter-spacing: .32em; opacity: .8; }
.nm .header-right { display: flex; align-items: flex-start; gap: 26px; }
.nm .header-link { font-size: 14px; padding-top: 6px; opacity: .9; }
.nm .header-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nm .menu-btn { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: 34px; padding-top: 6px; position: relative; z-index: 2; }
.nm .menu-btn span { display: block; height: 1.5px; width: 100%; background: currentColor; transition: transform .4s, opacity .3s; }
.nm .menu-btn em { font-style: normal; font-size: 9px; letter-spacing: .2em; margin-top: 2px; }
.nm.menu-open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nm.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.nm.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nm.menu-open > .header { color: var(--white); }
.nm .menu-btn:focus-visible, .nm .fullmenu a:focus-visible, .nm .quick a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- 전체 메뉴 ---------- */
.nm > .fullmenu { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(18, 24, 20, .94); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; overflow-y: auto; padding: 100px 16px 60px; }
.nm .fullmenu-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.nm.menu-open > .fullmenu { opacity: 1; visibility: visible; }
.nm .fullmenu .fm-list { position: relative; list-style: none; text-align: center; }
.nm .fullmenu .fm-list > li { margin: 14px 0; }
.nm .fullmenu .fm-list > li > a { font-family: var(--serif-ko); font-size: clamp(24px, 4vw, 40px); color: var(--white); display: inline-flex; align-items: baseline; gap: 18px; transition: color .3s; }
.nm .fullmenu .fm-list > li > a span { font-family: var(--serif-en); font-size: 15px; color: var(--gold); }
.nm .fullmenu .fm-list > li > a:hover,
.nm .fullmenu .fm-list > li.is-active > a { color: var(--gold); }
/* 2단계 메뉴 */
.nm .fullmenu .fm-sub { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; margin-top: 8px; }
.nm .fullmenu .fm-sub a { font-size: 15px; color: rgba(255,255,255,.72); transition: color .3s; }
.nm .fullmenu .fm-sub a:hover, .nm .fullmenu .fm-sub li.is-active a { color: var(--gold); }

/* ---------- 점 내비 ---------- */
.nm .dots { position: fixed; right: calc(var(--gutter) - 6px); top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; gap: 14px; color: #fff; }
.nm .dots a { position: relative; display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: all .35s; }
.nm .dots a.is-active { background: transparent; box-shadow: 0 0 0 1.5px #fff; transform: scale(1.6); }
.nm .dots a span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--serif-en); font-size: 11px; letter-spacing: .2em; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.nm .dots a.is-active span, .nm .dots a:hover span { opacity: 1; }
.nm .dots.on-light { color: var(--ink); }
.nm .dots.on-light a { background: rgba(29,36,32,.4); }
.nm .dots.on-light a.is-active { background: transparent; box-shadow: 0 0 0 1.5px var(--ink); }

/* ---------- 빠른 링크 ---------- */
.nm .quick { position: fixed; right: var(--gutter); bottom: 28px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #fff; transition: color .4s; }
.nm .quick > a:not(.quick-call) { display: flex; justify-content: space-between; gap: 30px; min-width: 150px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid currentColor; opacity: .9; transition: opacity .3s; }
.nm .quick > a:not(.quick-call):hover { opacity: 1; }
.nm .quick i { font-style: normal; }
.nm .quick-call { margin-top: 14px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .3s; }
.nm .quick-call:hover { transform: scale(1.06); }
.nm .quick-call svg { width: 22px; height: 22px; }
.nm .quick.on-light { color: var(--ink); }
.nm .quick.hide-links > a:not(.quick-call) { opacity: 0; pointer-events: none; }

/* ---------- 01 히어로 ---------- */
.nm-main .hero { color: #fff; }
.nm-main .hero-slides, .nm-main .slide { position: absolute; inset: 0; }
.nm-main .slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s linear; }
.nm-main .slide.is-active { opacity: 1; transform: scale(1); }
.nm-main .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.nm-main .hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 150px; }
.nm-main .wordmark { font-family: var(--serif-en); font-weight: 400; font-size: clamp(30px, 10vw, 168px); line-height: .9; letter-spacing: .02em; display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; animation: nmRise 1.6s cubic-bezier(.2,.7,.2,1) both .2s; }
.nm-main .wordmark small { font-size: clamp(11px, 1.1vw, 16px); letter-spacing: .22em; line-height: 1.5; padding-bottom: 1.2em; }
.nm-main .hero-sub { margin-top: 18px; font-family: var(--serif-ko); font-size: clamp(14px, 1.3vw, 18px); opacity: .92; animation: nmRise 1.6s cubic-bezier(.2,.7,.2,1) both .5s; }
@keyframes nmRise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.nm-main .consult-bar { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 180px); bottom: 36px; display: grid; grid-template-columns: repeat(3, 1fr) auto; background: rgba(246, 241, 232, .96); color: var(--ink); border-radius: 4px; overflow: hidden; animation: nmRise 1.6s cubic-bezier(.2,.7,.2,1) both .8s; }
/* 템플릿이 form 안에 자동으로 넣는 hidden input 이 격자를 밀지 않도록 */
.nm-main .consult-bar input[type="hidden"] { display: none; }
.nm-main .consult-bar label { display: flex; flex-direction: column; gap: 4px; padding: 14px 22px; border-right: 1px solid rgba(29,36,32,.12); }
.nm-main .cb-title { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.nm-main .consult-bar select, .nm-main .consult-bar input { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--ink); outline: none; padding: 2px 0; height: auto; box-shadow: none; }
.nm-main .consult-bar select:focus-visible, .nm-main .consult-bar input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nm-main .cb-btn { align-self: center; margin: 0 14px; padding: 12px 26px; background: var(--ink); color: var(--cream); font-size: 14px; border-radius: 3px; transition: background .3s; white-space: nowrap; }
.nm-main .cb-btn:hover { background: #38433c; }
.nm-main .hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.2); }
.nm-main .hero-progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* ---------- 02 소개 ---------- */
.nm-main .intro { background: var(--cream); display: flex; flex-direction: column; }
.nm-main .intro-head { padding: 140px var(--gutter) 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.nm-main .intro-head .display { font-size: clamp(40px, 6vw, 92px); }
.nm-main .intro-text { font-family: var(--serif-ko); font-size: clamp(14px, 1.2vw, 17px); line-height: 1.95; color: var(--ink-soft); }
.nm-main .intro-img { flex: 1; min-height: 46vh; background-size: cover; background-position: center 60%; position: relative; }
.nm-main .intro-facts { position: absolute; left: var(--gutter); bottom: 30px; display: flex; gap: 14px; list-style: none; }
.nm-main .intro-facts li { background: rgba(246,241,232,.92); padding: 14px 20px; border-radius: 3px; display: flex; flex-direction: column; min-width: 110px; }
.nm-main .intro-facts b { font-family: var(--serif-ko); font-size: 18px; }
.nm-main .intro-facts span { font-size: 12px; color: var(--ink-soft); }
.nm-main .intro-more { position: absolute; right: calc(var(--gutter) + 180px); bottom: 34px; display: inline-flex; gap: 30px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.8); color: #fff; font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.nm-main .intro-more i { font-style: normal; transition: transform .3s; }
.nm-main .intro-more:hover i { transform: translateX(6px); }

/* ---------- 03~05 특징 ---------- */
.nm-main .feature { color: #fff; display: flex; align-items: flex-end; }
.nm-main .feature-bg { position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; transform: scale(1.06); transition: transform 2.5s cubic-bezier(.2,.7,.2,1); }
.nm-main .feature.is-current .feature-bg { transform: scale(1); }
.nm-main .feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,12,.62) 0%, rgba(10,14,12,.15) 55%, rgba(10,14,12,0) 100%), linear-gradient(0deg, rgba(10,14,12,.45), transparent 50%); }
.nm-main .feature-copy { position: relative; z-index: 1; padding: 0 var(--gutter) 120px; max-width: 760px; }
.nm-main .feature-copy .display { font-family: var(--serif-ko); font-weight: 600; font-size: clamp(34px, 4.6vw, 64px); margin-bottom: 22px; }
.nm-main .feature-copy p:not(.eyebrow) { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.9; opacity: .92; }
.nm-main .line-link { display: inline-flex; gap: 40px; margin-top: 32px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.7); font-size: 14px; }
.nm-main .line-link i { font-style: normal; transition: transform .3s; }
.nm-main .line-link:hover i { transform: translateX(6px); }

/* ---------- 06 갤러리 ---------- */
.nm-main .gallery { background: var(--cream-2); display: flex; flex-direction: column; justify-content: center; padding: 120px 0 80px; }
.nm-main .gallery-head { padding: 0 var(--gutter); display: flex; align-items: flex-end; gap: 28px; margin-bottom: 36px; flex-wrap: wrap; }
.nm-main .gallery-head .display { font-size: clamp(44px, 6vw, 92px); }
.nm-main .gallery-head p { font-family: var(--serif-ko); color: var(--ink-soft); padding-bottom: 14px; }
.nm-main .gallery-nav { margin-left: auto; display: flex; gap: 10px; padding-bottom: 10px; margin-right: 40px; }
.nm-main .gallery-nav button { width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; transition: all .3s; }
.nm-main .gallery-nav button:hover { background: var(--ink); color: var(--cream); }
.nm-main .gallery-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
.nm-main .gallery-track::-webkit-scrollbar { display: none; }
.nm-main .g-item { flex: 0 0 auto; height: clamp(220px, 52vh, 560px); max-width: 82vw; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; scroll-snap-align: start; }
.nm-main .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.nm-main .g-item:hover img { transform: scale(1.05); }

/* ---------- (선택) 메인 모듈 본문 섹션 ---------- */
.nm-main .main-content { background: var(--cream); color: var(--ink); min-height: 0; overflow: visible; padding-top: 80px; }

/* ---------- 07 상담 ---------- */
.nm-main .contact { color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.nm-main .contact-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.nm-main .contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(14, 19, 16, .7); }
.nm-main .contact-inner { position: relative; z-index: 2; padding: 150px var(--gutter) 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end; flex: 1; }
.nm-main .contact-copy .display { font-family: var(--serif-ko); font-weight: 600; font-size: clamp(32px, 4vw, 56px); margin-bottom: 20px; }
.nm-main .contact-copy p:not(.eyebrow) { line-height: 1.9; opacity: .9; }
.nm-main .big-tel { display: inline-block; margin-top: 30px; font-family: var(--serif-en); font-size: clamp(40px, 5vw, 72px); letter-spacing: .03em; font-variant-numeric: lining-nums; border-bottom: 1px solid var(--gold); }
.nm-main .contact-info { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.3); margin-right: 60px; }
.nm-main .contact-info div { display: grid; grid-template-columns: 100px 1fr; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 15px; }
.nm-main .contact-info dt { color: var(--gold); }
.nm-main .contact-info a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nm-main .footer { position: relative; z-index: 2; padding: 24px var(--gutter) 30px; font-size: 12px; opacity: .65; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); margin-right: 0; }

/* ---------- 라이트박스 ---------- */
.nm > .lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,9,.92); display: grid; place-items: center; padding: 40px 16px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.nm > .lightbox.is-open { opacity: 1; visibility: visible; }
.nm > .lightbox img { max-width: min(1400px, 100%); max-height: 86vh; object-fit: contain; border-radius: 3px; }
.nm .lb-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 26px; }

/* =====================================================================
   서브 페이지 (원본 sub.css)
   ===================================================================== */

/* 헤더: 스크롤하면 크림색 배경 */
.nm-sub > .header { transition: color .4s, background .4s, padding .4s, box-shadow .4s; }
.nm-sub > .header.scrolled { background: rgba(246, 241, 232, .96); color: var(--ink); padding-top: 16px; padding-bottom: 14px; box-shadow: 0 1px 0 rgba(29,36,32,.08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nm-sub.menu-open > .header { background: transparent; box-shadow: none; color: var(--white); }

/* 상단 비주얼 */
.nm .sub-hero { position: relative; height: 78vh; min-height: 520px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.nm .sub-hero-bg { position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; transform: scale(1.08); animation: nmHeroZoom 2.6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes nmHeroZoom { to { transform: scale(1); } }
.nm .sub-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,12,.45), rgba(10,14,12,.35) 50%, rgba(10,14,12,.6)); }
.nm .sub-hero-copy { position: relative; z-index: 1; padding: 0 var(--gutter); animation: nmRise 1.4s cubic-bezier(.2,.7,.2,1) both .2s; }
.nm .sub-hero .eyebrow { margin-bottom: 14px; }
/* 제목은 메뉴 이름(한글)이 들어가므로 한글 명조로 */
.nm .sub-hero h1 { font-family: var(--serif-ko); font-weight: 600; font-size: clamp(34px, 5.4vw, 80px); line-height: 1.15; letter-spacing: .02em; }
.nm .sub-hero p.lead { margin-top: 22px; font-family: var(--serif-ko); font-size: clamp(14px, 1.3vw, 18px); line-height: 1.9; opacity: .92; }
.nm .crumb { position: absolute; z-index: 1; left: var(--gutter); bottom: 28px; font-size: 12px; letter-spacing: .08em; opacity: .85; }
.nm .crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nm .scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 0; width: 1px; height: 70px; background: rgba(255,255,255,.35); overflow: hidden; }
.nm .scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: nmCue 2s ease-in-out infinite; }
@keyframes nmCue { to { top: 100%; } }

/* 서브 탭 */
.nm .sub-tabs { position: sticky; top: 64px; z-index: 20; background: var(--cream); border-bottom: 1px solid rgba(29,36,32,.12); display: flex; justify-content: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.nm .sub-tabs::-webkit-scrollbar { display: none; }
.nm .sub-tabs a { flex: 0 0 auto; padding: 20px 28px; font-size: 15px; color: var(--ink-soft); position: relative; transition: color .3s; white-space: nowrap; }
.nm .sub-tabs a::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .4s; }
.nm .sub-tabs a:hover { color: var(--ink); }
.nm .sub-tabs a.is-active { color: var(--ink); font-weight: 500; }
.nm .sub-tabs a.is-active::after { transform: scaleX(1); }

/* 모듈 본문 자리 */
.nm .nm-content { position: relative; }
.nm .nm-content.is-boxed { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gutter); }

/* ---------- 본문 조각(.nm-page) 블록 ---------- */
.nm-page .block { padding: clamp(80px, 11vw, 150px) var(--gutter); }
.nm-page .block.alt { background: var(--cream-2); }
.nm-page .block.dark { background: var(--ink); color: var(--cream); }
.nm-page .wrap { max-width: 1240px; margin: 0 auto; }
.nm-page .sec-title { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.nm-page .sec-title .eyebrow { color: #8f7044; opacity: 1; }
.nm-page .dark .sec-title .eyebrow { color: var(--gold); }
.nm-page .sec-title h2 { font-family: var(--serif-ko); font-weight: 600; font-size: clamp(26px, 3vw, 42px); line-height: 1.4; }
.nm-page .sec-title p { margin-top: 18px; color: var(--ink-soft); line-height: 1.9; font-size: clamp(14px, 1.1vw, 16px); }
.nm-page .dark .sec-title p { color: rgba(246,241,232,.75); }

.nm-page .quote { text-align: center; font-family: var(--serif-ko); font-size: clamp(20px, 2.4vw, 32px); line-height: 1.75; }
.nm-page .quote::before { content: "\201C"; display: block; font-family: var(--serif-en); font-size: 80px; line-height: .6; color: var(--gold); margin-bottom: 18px; }
.nm-page .quote + p { text-align: center; margin-top: 30px; color: var(--ink-soft); line-height: 2; }

/* 이미지 + 글 교차 배치 */
.nm-page .split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.nm-page .split + .split { margin-top: clamp(70px, 9vw, 130px); }
.nm-page .split.rev > .split-img { order: 2; }
.nm-page .split-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.nm-page .split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.nm-page .split-img:hover img { transform: scale(1.04); }
.nm-page .split-copy .num { font-family: var(--serif-en); font-size: 15px; font-weight: 600; letter-spacing: .25em; color: #8f7044; }
.nm-page .split-copy h3 { font-family: var(--serif-ko); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); margin: 14px 0 20px; line-height: 1.4; }
.nm-page .split-copy p { color: var(--ink-soft); line-height: 1.95; font-size: clamp(14px, 1.1vw, 16px); }

/* 3단 카드 */
.nm-page .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nm-page .card { background: var(--cream); border-radius: 3px; overflow: hidden; }
.nm-page .alt .card { background: var(--cream); }
.nm-page .block:not(.alt) .card { background: var(--cream-2); }
.nm-page .card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.nm-page .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.nm-page .card:hover .card-img img { transform: scale(1.05); }
.nm-page .card-body { padding: 28px 28px 32px; }
.nm-page .card-body .num { font-family: var(--serif-en); color: #9a7b4c; letter-spacing: .2em; font-size: 16px; font-weight: 600; }
.nm-page .card-body h3 { font-family: var(--serif-ko); font-weight: 600; font-size: 21px; margin: 10px 0 12px; }
.nm-page .card-body p { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); }

/* 정보 표 */
.nm-page .spec { border-top: 1.5px solid var(--ink); margin-top: 28px; }
.nm-page .spec div { display: grid; grid-template-columns: 120px 1fr; padding: 15px 4px; border-bottom: 1px solid rgba(29,36,32,.14); font-size: 15px; }
.nm-page .spec dt { color: var(--ink-soft); }
.nm-page .spec dd { color: var(--ink); }

/* 절차 */
.nm-page .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.nm-page .step { position: relative; padding: 34px 22px 0; border-top: 1px solid rgba(246,241,232,.25); }
.nm-page .step::before { content: ""; position: absolute; top: -5px; left: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.nm-page .step .num { font-family: var(--serif-en); font-size: 44px; color: var(--gold); line-height: 1; }
.nm-page .step h3 { font-family: var(--serif-ko); font-size: 19px; font-weight: 600; margin: 16px 0 10px; }
.nm-page .step p { font-size: 14px; line-height: 1.8; color: rgba(246,241,232,.72); }

/* 안치 안내 탭 */
.nm-page .type-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 56px; flex-wrap: wrap; }
.nm-page .type-tabs button { padding: 12px 30px; border: 1px solid var(--ink); border-radius: 40px; font-size: 15px; transition: all .3s; }
.nm-page .type-tabs button.is-active, .nm-page .type-tabs button:hover { background: var(--ink); color: var(--cream); }
.nm-page .type-panel { display: none; }
.nm-page .type-panel.is-active { display: grid; animation: nmFadeUp .7s cubic-bezier(.2,.7,.2,1); }
@keyframes nmFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.nm-page .note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.nm-page .btn { display: inline-flex; align-items: center; gap: 30px; margin-top: 30px; padding: 15px 30px; background: var(--ink); color: var(--cream); border-radius: 3px; font-size: 14.5px; transition: background .3s; }
.nm-page .btn:hover { background: #38433c; }
.nm-page .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.nm-page .btn.ghost:hover { background: var(--ink); color: var(--cream); }

/* 갤러리 페이지 */
.nm-page .filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 44px; flex-wrap: wrap; }
.nm-page .filter button { padding: 10px 24px; font-size: 14.5px; color: var(--ink-soft); border-bottom: 1.5px solid transparent; transition: all .3s; }
.nm-page .filter button.is-active, .nm-page .filter button:hover { color: var(--ink); border-color: var(--ink); }
.nm-page .masonry { columns: 3 320px; column-gap: 18px; }
.nm-page .masonry .m-item { display: block; width: 100%; margin-bottom: 18px; break-inside: avoid; overflow: hidden; border-radius: 3px; position: relative; }
.nm-page .masonry .m-item img { width: 100%; height: auto; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.nm-page .masonry .m-item:hover img { transform: scale(1.04); }
.nm-page .masonry .m-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; text-align: left; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .4s; }
.nm-page .masonry .m-item:hover span, .nm-page .masonry .m-item:focus-visible span { opacity: 1; }
.nm-page .masonry .m-item.is-hidden { display: none; }

/* 상담 페이지 */
.nm-page .contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nm-page .c-card { background: var(--cream-2); padding: 40px 34px; border-radius: 3px; scroll-margin-top: 140px; }
.nm-page .c-card .eyebrow { color: #8f7044; opacity: 1; margin-bottom: 12px; font-weight: 600; }
.nm-page .c-card h3 { font-family: var(--serif-ko); font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.nm-page .c-card p { color: var(--ink-soft); line-height: 1.85; font-size: 15px; }
.nm-page .c-card .tel { font-family: var(--serif-en); font-variant-numeric: lining-nums; font-size: 44px; color: var(--ink); letter-spacing: .02em; line-height: 1.1; display: inline-block; margin-bottom: 8px; }
.nm-page .faq { max-width: 920px; margin: 0 auto; border-top: 1.5px solid var(--ink); }
.nm-page .faq details { border-bottom: 1px solid rgba(29,36,32,.15); }
.nm-page .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 6px; font-family: var(--serif-ko); font-size: clamp(16px, 1.4vw, 19px); }
.nm-page .faq summary::-webkit-details-marker { display: none; }
.nm-page .faq summary b { font-family: var(--serif-en); color: var(--gold); font-weight: 500; margin-right: 14px; font-size: 20px; }
.nm-page .faq summary::after { content: "+"; font-family: var(--serif-en); font-size: 28px; line-height: 1; transition: transform .3s; }
.nm-page .faq details[open] summary::after { transform: rotate(45deg); }
.nm-page .faq .ans { padding: 0 6px 26px 40px; color: var(--ink-soft); line-height: 1.9; font-size: 15px; }

/* ---------- 하단 CTA ---------- */
.nm .cta { position: relative; padding: clamp(90px, 12vw, 160px) var(--gutter); text-align: center; color: #fff; overflow: hidden; }
.nm .cta-bg { position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; }
.nm .cta::after { content: ""; position: absolute; inset: 0; background: rgba(12,17,14,.62); }
.nm .cta > *:not(.cta-bg) { position: relative; z-index: 1; }
.nm .cta h2 { font-family: var(--serif-ko); font-weight: 600; font-size: clamp(24px, 3vw, 40px); line-height: 1.5; }
.nm .cta p { margin-top: 14px; opacity: .85; }
.nm .cta .tel { display: inline-block; margin-top: 26px; font-family: var(--serif-en); font-variant-numeric: lining-nums; font-size: clamp(40px, 5vw, 68px); border-bottom: 1px solid var(--gold); }

/* ---------- 푸터 ---------- */
.nm .site-footer { background: #232a25; color: rgba(246,241,232,.75); padding: 64px var(--gutter) 0; overflow: hidden; }
.nm .site-footer .f-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(246,241,232,.14); }
.nm .site-footer .f-logo { font-family: var(--serif-ko); font-size: 22px; color: var(--cream); letter-spacing: .1em; }
.nm .site-footer .f-info { font-size: 13px; line-height: 2; }
.nm .site-footer .f-links { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 0 30px; align-self: start; }
.nm .site-footer .f-links a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(246,241,232,.2); font-size: 13.5px; color: var(--cream); }
.nm .site-footer .f-copy { padding: 22px 0; font-size: 12px; opacity: .7; }
.nm .site-footer .f-mark { font-family: var(--serif-en); font-size: clamp(48px, 12.5vw, 220px); line-height: .78; color: rgba(246,241,232,.92); letter-spacing: .02em; white-space: nowrap; margin-bottom: -0.06em; }

/* 공통 하단 안내 + 자라는 소나무 */
.nm .cta-common { padding-bottom: calc(clamp(90px, 12vw, 160px) + 150px); }
.nm .cta > .tree-row { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 190px; }

/* ---------- 하단 소나무 자라는 애니메이션 (js/trees.js) ---------- */
.nm .tree-row { display: block; width: 100%; height: 170px; color: var(--cream); pointer-events: none; }
.nm .tree-row svg { display: block; overflow: visible; }
.nm .tree-row .trunk { fill: none; stroke: #c4b496; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.45,.05,.25,1) var(--d, 0s); }
.nm .tree-row .leaf { transform: scale(0); transform-box: fill-box; transform-origin: 50% 85%; transition: transform 1s cubic-bezier(.3,1.35,.5,1) var(--d, 0s); }
.nm .tree-row .ground { stroke: currentColor; stroke-width: 1; opacity: .45; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease; }
.nm .tree-row .pine { transform-box: fill-box; transform-origin: 50% 100%; }
.nm .tree-row.grow .trunk, .nm .tree-row.grow .ground { stroke-dashoffset: 0; }
.nm .tree-row.grow .leaf { transform: scale(1); }
.nm .tree-row.grow:not(.still) .pine { animation: nmSway var(--sw, 5s) ease-in-out var(--sd, 3s) infinite alternate; }
.nm .tree-row .pad { transform-box: fill-box; transform-origin: 50% 100%; }
.nm .tree-row.grow:not(.still) .pad { animation: nmRustle var(--pw, 3s) ease-in-out var(--pd, 0s) infinite alternate; }
@keyframes nmRustle { 0% { transform: rotate(calc(var(--pa, 2deg) * -1)) translateX(-1px); } 100% { transform: rotate(var(--pa, 2deg)) translateX(1.5px); } }
@keyframes nmSway { 0% { transform: rotate(calc(var(--amp, 1.2deg) * -0.6)); } 45% { transform: rotate(var(--amp, 1.2deg)); } 100% { transform: rotate(calc(var(--amp, 1.2deg) * 0.2)); } }
.nm .tree-row.still .trunk, .nm .tree-row.still .leaf, .nm .tree-row.still .ground { transition: none; }
.nm-main .contact .tree-row { position: relative; z-index: 2; height: 130px; margin-top: 10px; opacity: .9; }
.nm .tree-row .leaf .shade { fill: #6f8a6a; }
.nm .tree-row .leaf .lite { fill: #a3bb94; }

/* =====================================================================
   반응형
   ===================================================================== */
@media (max-width: 900px) {
  html.nm-snap { scroll-snap-type: none; }
  .nm .header-link { display: none; }
  .nm .dots { display: none; }
  .nm .quick > a:not(.quick-call) { display: none; }
  .nm .quick { bottom: 20px; }
  .nm-main .hero-copy { bottom: 250px; }
  .nm-main .wordmark { gap: 8px; }
  .nm-main .wordmark small { padding-bottom: 0; }
  .nm-main .consult-bar { right: var(--gutter); grid-template-columns: 1fr 1fr; bottom: 24px; }
  .nm-main .consult-bar label { border-bottom: 1px solid rgba(29,36,32,.12); padding: 10px 14px; }
  .nm-main .consult-bar label:nth-of-type(2) { border-right: 0; }
  .nm-main .consult-bar label:nth-of-type(3) { grid-column: 1 / -1; border-right: 0; }
  .nm-main .cb-btn { grid-column: 1 / -1; margin: 10px 12px 12px; text-align: center; }
  .nm-main .intro-head { grid-template-columns: 1fr; padding-top: 110px; gap: 20px; }
  .nm-main .intro-text br { display: none; }
  .nm-main .intro-facts { gap: 8px; bottom: 16px; }
  .nm-main .intro-facts li { min-width: 0; padding: 10px 14px; }
  .nm-main .intro-more { right: var(--gutter); bottom: auto; top: 18px; }
  .nm-main .feature-copy { padding-bottom: 90px; }
  .nm-main .feature-copy p br { display: none; }
  .nm-main .gallery-nav { display: none; }
  .nm-main .contact-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 120px; }
  .nm-main .contact-info { margin-right: 0; }
  .nm-main .contact-info div { grid-template-columns: 80px 1fr; font-size: 14px; }
  .nm-main .footer { padding-bottom: 90px; }
  .nm .tree-row { height: 120px; }
  .nm-main .contact .tree-row { height: 96px; }

  .nm .sub-hero { height: 70vh; min-height: 440px; }
  .nm .sub-hero p.lead br { display: none; }
  .nm .sub-tabs { top: 58px; justify-content: flex-start; }
  .nm .sub-tabs a { padding: 16px 18px; font-size: 14px; }
  .nm .sub-tabs a::after { left: 18px; right: 18px; }
  .nm-page .split { grid-template-columns: 1fr; gap: 28px; }
  .nm-page .split.rev > .split-img { order: 0; }
  .nm-page .cards, .nm-page .contact-cards { grid-template-columns: 1fr; }
  .nm-page .steps { grid-template-columns: 1fr; }
  .nm-page .step { padding: 26px 0 26px 34px; border-top: 0; border-left: 1px solid rgba(246,241,232,.25); }
  .nm-page .step::before { left: -5px; top: 34px; }
  .nm-page .spec div { grid-template-columns: 96px 1fr; font-size: 14px; }
  .nm-page .faq .ans { padding-left: 6px; }
  .nm .site-footer .f-links { grid-template-columns: 1fr 1fr; width: 100%; }
  .nm .cta-common { padding-bottom: calc(clamp(90px, 12vw, 160px) + 100px); }
  .nm .cta > .tree-row { height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html.nm-snap { scroll-behavior: auto; }
  .nm-main .reveal, .nm-page .reveal, .nm-main .slide, .nm-main .feature-bg { transition: none; }
  .nm-main .wordmark, .nm-main .hero-sub, .nm-main .consult-bar, .nm .sub-hero-bg, .nm .sub-hero-copy { animation: none; }
  .nm .sub-hero-bg { transform: none; }
}
