/* Theme B — "Night villa × orange" (2026-11-28, user's choice from Pinterest references).
   Night navy-black hero/bands/footer, deep-navy cards on dark, company orange #1B2721 for actions,
   light orange #D9C7A2 for italic key words, numbers and hairlines on dark, warm white content sections.
   Loaded after site.css; only overrides. */

:root {
  --p-bg: #F4F0E8; --p-surface: #FFFFFF; --p-ink: #1B2721; --p-muted: #5E6A62;
  --p-accent: #765629;            /* orange for small text on light grounds (4.99:1) */
  --p-accent-ink: #FFFFFF;
  --p-action: #1B2721; --p-action-ink: #FFFFFF;
  --p-inv-bg: #14211B; --p-inv-surface: #1D2E26; --p-inv-ink: #F4F0E8; --p-inv-muted: #B3BCB2;
  --p-inv-accent: #D9C7A2; --p-inv-accent-ink: #14211B; --p-inv-action: #1B2721; --p-inv-action-ink: #FFFFFF;
  --orange: #1B2721; --orange-lt: #D9C7A2;
  --hl: #1B2721;                  /* the italic key phrase on light grounds (large text, 3.7:1) */
}
.ground-inverse { --hl: var(--orange-lt); --line: rgba(246, 243, 238, .12); --line-strong: rgba(246, 243, 238, .22); }
::selection { background: rgba(218, 78, 53, .28); }

/* ---------- headlines: serif, one key phrase in orange italic with a drawn underline ---------- */
h1, h2 { letter-spacing: -0.02em; }
em.hl { font-style: italic; color: var(--hl); position: relative; white-space: nowrap; font-synthesis: style; }
html[data-lang="ko"] em.hl { white-space: normal; }
em.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 2px; background: currentColor; opacity: .7; transform-origin: left; transform: scaleX(1); }
html.js-motion em.hl::after { transform: scaleX(0); transition: transform 900ms var(--ease-io) 500ms; }
html.js-motion .is-in em.hl::after, html.js-motion .hero.is-up em.hl::after, html.motion-safe em.hl::after { transform: scaleX(1); }
.hero em.hl { color: var(--orange-lt); }
.kicker { color: var(--accent); letter-spacing: .08em; text-transform: none; }
.ground-inverse .kicker { color: var(--orange-lt); }
.kicker::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }

/* ---------- buttons: pills; orange filled + ghost ---------- */
html[data-buttons="pill"] .btn { border-radius: 999px; }
.btn--primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--primary:hover { background: #2A3A31; border-color: #2A3A31; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ground-inverse .btn--secondary, .hero .btn--secondary { color: #F4F0E8; border-color: rgba(246, 243, 238, .55); background: transparent; }
.ground-inverse .btn--secondary:hover, .hero .btn--secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.hero--film .btn--primary, .nav .nav__actions .btn--primary, .nav.is-condensed .nav__actions .btn--primary, .nav.is-open .nav__actions .btn--primary { background: var(--orange); color: #fff; }
.hero--film .btn--primary:hover { background: #2A3A31; }

/* ---------- nav: transparent over the night hero, solid navy once the page moves ---------- */
.nav { color: #F4F0E8; }
.nav.is-condensed, .nav.is-open { background: #14211B; color: #F4F0E8; border-bottom-color: rgba(246, 243, 238, .1); }
.nav .lang__btn[aria-pressed="true"], .nav.is-condensed .lang__btn[aria-pressed="true"], .nav.is-open .lang__btn[aria-pressed="true"] { background: #F4F0E8; color: #14211B; }
.nav .nav__link::before { background: var(--orange-lt); }
.nav.is-open .nav__links, .nav.is-open .nav__actions { background: #14211B; }
.nav.is-open .nav__item { border-bottom-color: rgba(246, 243, 238, .12); }

/* ---------- hero: night navy over the dusk film ---------- */
.hero--film { background: #14211B; }
#hero::after {
  background:
    linear-gradient(180deg, rgba(20, 33, 27, .72) 0%, rgba(20, 33, 27, .25) 30%, rgba(20, 33, 27, .35) 55%, rgba(20, 33, 27, .92) 100%),
    linear-gradient(90deg, rgba(20, 33, 27, .85) 0%, rgba(20, 33, 27, .45) 50%, rgba(20, 33, 27, .1) 85%);
}
.hero--film h1 { font-size: clamp(36px, 3vw + 22px, 72px); line-height: 1.1; }
.kicker--inv { color: var(--orange-lt); }
.hero__foot { border-top: 0; padding-top: 0; }
.hero-stats > div { border-top: 1px solid var(--orange-lt); padding-top: var(--s-4); }
.hero-stats dd { color: #fff; }
/* word-by-word rise (site.js wraps words in .w > .w__i) */
.hero h1 .w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w__i { display: inline-block; }
html.js-motion .hero:not(.is-up) h1 .w__i { transform: translateY(105%); }
html.js-motion .hero h1 .w__i { transition: transform 900ms var(--ease-out); transition-delay: calc(150ms + var(--wi, 0) * 55ms); }
html.motion-safe .hero h1 .w__i { transform: none; }
html.js-motion .hero h1[data-enter-item] { opacity: 1 !important; transform: none !important; }

/* ---------- light sections ---------- */
.ground-surface { background: #FFFFFF; }
.stat { border-top-color: var(--line-strong); }
.stat__num, .counts__n { color: var(--ink); }
.ground-inverse .stat__num, .ground-inverse .counts__n { color: var(--orange-lt); }
.stats--big .stat { border-top: 1px solid var(--orange); }
.chip + .chip::before { color: var(--orange); }
.chain::before { background: var(--orange); }
.chain__n { border-color: var(--orange); color: var(--accent); }
html.js-motion [data-chain].is-in .chain__step:last-child .chain__n, .chain__step:last-child .chain__n { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ---------- transport on navy: orange rings, glowing dots ---------- */
#transport .iso { color: var(--orange-lt); }
#transport .iso__area { fill: var(--orange-lt); fill-opacity: .035; }
#transport .iso__line { stroke: var(--orange-lt); stroke-width: 1.2; }
#transport .iso__label { fill: #B3BCB2; }
#transport .iso__dot circle { fill: #14211B; stroke: var(--orange-lt); }
#transport .iso__dot { filter: drop-shadow(0 0 6px rgba(240, 117, 86, .55)); }
#transport .iso__ring.is-active .iso__dot circle { fill: var(--orange-lt); }
#transport .iso__ring.is-active .iso__dot text { fill: #14211B; }
#transport .iso__core { fill: var(--orange); }
#transport .iso__pulse { stroke: var(--orange-lt); }
#transport .iso__name { fill: #F4F0E8; }
#transport .iso__glow { color: var(--orange-lt); }
#transport .iso-list__h, #transport .iso-list__n { color: var(--orange-lt); border-color: var(--orange-lt); }
.rows__n { color: var(--accent); }
.ground-inverse .rows__n { color: var(--orange-lt); }
.ground-inverse .rows__text { color: var(--muted); }

/* ---------- project (light) ---------- */
.facts > div { border-color: var(--line); }
.blvd__bar { background: var(--line); }
.blvd__bar i { background: var(--orange); }
.blvd__m { color: var(--accent); }
.value__n { color: var(--accent); }
.photo--plan { background: #14211B; }

/* ---------- amenities band on navy ---------- */
#amenities .service { background: #1D2E26; }
#amenities .service__t { color: #F4F0E8; }
#amenities .counts li, #amenities .stat { border-top-color: rgba(240, 117, 86, .6); }

/* ---------- products: contrasting zone cards, type cards with orange tabs ---------- */
.zone--1 { background: #FFFFFF; color: var(--p-ink); border-color: var(--line-strong); --accent: #765629; }
.zone--2 { background: #14211B; color: #F4F0E8; --muted: #B3BCB2; --accent: var(--orange-lt); }
.zone__units { color: var(--accent); }
.filter { gap: 0; border-bottom: 1px solid var(--line-strong); }
.filter__btn { border: 0; border-radius: 0; background: none; height: 48px; padding: 0 var(--s-5); position: relative; color: var(--muted); }
.filter__btn::after { content: ""; position: absolute; left: var(--s-5); right: var(--s-5); bottom: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform 260ms var(--ease-out); }
.filter__btn[aria-pressed="true"] { background: none; color: var(--ink); }
.filter__btn[aria-pressed="true"]::after { transform: scaleX(1); }
.filter__btn:hover { color: var(--ink); }
.types { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.type { grid-template-columns: 1fr; gap: 2px; padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #FFFFFF; position: relative; overflow: hidden; }
.type:first-child { border-top: 1px solid var(--line-strong); }
.type::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); }
.type__code { grid-row: auto; font-size: 22px; color: var(--orange); }
.type__main { grid-row: auto; }
.type .type__spec, .type .type__spec:last-of-type { grid-column: 1; font-size: 14px; color: var(--muted); }
@media (max-width: 639px) { .types { grid-template-columns: 1fr; } .type__code { grid-row: auto; } }

/* ---------- progress on navy: orange bars ---------- */
#progress .prog__item { border-color: rgba(246, 243, 238, .14); }
#progress .prog__chip { border-color: var(--orange-lt); color: var(--orange-lt); }
#progress .prog__chip.is-done { background: var(--orange); border-color: var(--orange); color: #fff; }
#progress .prog__bar { background: rgba(246, 243, 238, .12); }
#progress .prog__bar i { background: linear-gradient(90deg, var(--orange), var(--orange-lt)); box-shadow: 0 0 10px rgba(240, 117, 86, .5); }

/* ---------- faq (white) ---------- */
.acc__n { color: var(--accent); }
.acc__item[open] .acc__icon { color: var(--orange); }
.acc__q:hover .acc__t { color: var(--accent); }

/* ---------- enquiry + footer (dark) ---------- */
#enquiry .field :is(input, select, textarea) { background: #1D2E26; border-color: rgba(246, 243, 238, .18); color: #F4F0E8; }
#enquiry .field :is(input, select, textarea):focus { border-color: var(--orange-lt); box-shadow: 0 0 0 3px rgba(240, 117, 86, .25); }
#enquiry .enq__card { background: #1D2E26; border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); }
#enquiry .enq__after { border-left-color: var(--orange-lt); }
#enquiry .contact__lines > div { border-top-color: rgba(246, 243, 238, .12); }
#enquiry .copybtn { color: #F4F0E8; border-color: rgba(246, 243, 238, .35); }

/* ---------- cards lift with an orange glow on hover ---------- */
@media (hover: hover) and (pointer: fine) {
  .zone:hover, .type:hover, .service:hover, .value:hover, .prog__item:hover { border-color: rgba(218, 78, 53, .7); box-shadow: 0 0 0 1px rgba(218, 78, 53, .35), 0 18px 40px -22px rgba(218, 78, 53, .45); }
  .type, .service, .value { transition: transform 220ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 220ms var(--ease-out); }
  .type:hover, .service:hover { transform: translateY(-2px); }
}

/* ---------- mobile bar: navy with the orange call button ---------- */
.actionbar { background: #14211B; border-top-color: rgba(246, 243, 238, .12); }
.actionbar .btn--secondary { color: #F4F0E8; border-color: rgba(246, 243, 238, .4); background: transparent; }

@media (prefers-reduced-motion: reduce) {
  em.hl::after { transform: none !important; }
  .hero h1 .w__i { transform: none !important; }
}

/* fixes after the first B shots */
html[data-buttons] .hero .btn--secondary, html[data-buttons] .ground-inverse .btn--secondary { background: transparent; color: #F4F0E8; border-color: rgba(246, 243, 238, .55); }
html[data-buttons] .hero .btn--secondary:hover, html[data-buttons] .ground-inverse .btn--secondary:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
html[data-buttons] .btn--secondary { background: transparent; }
.types-wrap > .types, .types-wrap > .types__media { grid-column: 1 / -1; }
.types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.types__media { min-height: 0; height: clamp(200px, 26svh, 280px); margin-top: var(--s-5); flex: none; }
.types-wrap.fill { align-content: start; }
@media (max-width: 1023px) { .types { grid-template-columns: 1fr 1fr; } .types__media { height: auto; } }
@media (max-width: 639px) { .types { grid-template-columns: 1fr; } }
.type__code { color: var(--accent); }
.type .type__spec, .type .type__spec:last-of-type { color: var(--ink); }
@media (max-width: 639px) { #hero::after { background: linear-gradient(180deg, rgba(20, 33, 27, .82) 0%, rgba(20, 33, 27, .8) 45%, rgba(20, 33, 27, .9) 75%, rgba(20, 33, 27, .95) 100%); } }

/* detail fixes 2026-11-28 */
section h2 + .lead, .head h2 + .lead { margin-top: 1.1rem; }
.chips { gap: .35em 1.4em; }
.chip + .chip::before { content: none; }
.enq__form .field--message { grid-column: 1 / -1; }
.enq__form textarea { min-height: 7.5rem; resize: vertical; }
.enq__form .field--interest, .enq__form .field--message { grid-column: 1 / -1 !important; }
.enq__form .field--message textarea { min-height: 7.5rem !important; height: auto !important; }

.hero .btn--primary,.ground-inverse .btn--primary,.nav:not(.is-condensed) .btn--primary,.hero--film .btn--primary{background:#E9DFC9!important;border-color:#E9DFC9!important;color:#1B2721!important}
/* FAQ·상담: 내용이 늘어나면 섹션도 같이 늘어남 (펼침 시 겹침 방지) */
main > section#faq, footer.closing { height: auto !important; min-height: calc(var(--h, 1) * 100svh); }
main > section#faq > .wrap, footer.closing > .wrap { height: auto !important; }

/* 모바일·태블릿: 교통 섹션은 고정(pin) 없이 내용 높이만큼 */
@media (max-width: 1023px) { main > section#transport { height: auto !important; min-height: 0 !important; } main > section#transport > .wrap { height: auto !important; } }

/* 세대 타입: 선택된 카드 표시 */
.type { cursor: pointer; }
.type.is-sel { border-color: var(--accent, #765629) !important; box-shadow: inset 0 0 0 1px var(--accent, #765629); }
.type:focus-visible { outline: 2px solid var(--accent, #765629); outline-offset: 2px; }

.types__media .photo img { object-position: center 65%; }

/* 사진은 잘리지 않게: 프레임 높이를 사진 비율에 맞춤 (2026-11-28) */
main .photo:not(.zone__media):not(.types__media .photo) { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; }
main .photo:not(.zone__media):not(.types__media .photo) > img { position: static !important; width: 100% !important; height: auto !important; object-fit: contain !important; display: block; }
.photo-pair { grid-template-rows: none !important; align-content: start; }
footer.closing .photo, .contact__media, .enq__media { height: auto !important; aspect-ratio: auto !important; }
footer.closing .photo > img, .contact__media img, .enq__media img { position: static !important; height: auto !important; object-fit: contain !important; }
.types__media { aspect-ratio: 1300 / 551 !important; min-height: 0 !important; height: auto !important; align-self: start; }
.types__media .photo img { object-position: center !important; }
/* 사진이 커진 만큼 섹션도 늘어남 (히어로·교통 고정 섹션 제외) */
main > section:not(#hero):not(#transport) { height: auto !important; min-height: 100svh; }
main > section:not(#hero):not(#transport) > .wrap { height: auto !important; }

main > section.g2:not(#transport) > .wrap { grid-template-rows: auto auto !important; }
main > section.g2:not(#transport) > .wrap > * { min-height: auto !important; }

main > section:not(#hero):not(#transport) .fill { flex: none !important; min-height: auto !important; height: auto !important; }

.prog__media { grid-template-rows: auto !important; align-items: start; }
.prog__photo--2 { grid-column: 1 !important; grid-row: auto !important; } .prog__photo--3 { grid-column: 2 !important; grid-row: auto !important; } .prog__photo--4 { grid-column: 1 / -1 !important; grid-row: auto !important; }

#progress .split { grid-template-rows: none !important; grid-auto-rows: auto !important; height: auto !important; }
#progress .prog__media { height: auto !important; min-height: auto !important; }

.prog__media { grid-auto-rows: auto !important; }

/* 편의시설 갤러리: 두 사진 같은 높이, 잘림 없음 */
.gallery { display: flex !important; gap: var(--gutter); align-items: flex-start; }
.gallery > .photo { grid-column: auto !important; min-width: 0; margin: 0 !important; }
.gallery > .photo:nth-child(1) { flex: 2.96 1 0; }
.gallery > .photo:nth-child(2) { flex: 2.88 1 0; }
@media (max-width: 639px) { .gallery { flex-direction: column; } .gallery > .photo { flex: none; width: 100%; } }

/* 떠 있는 상담 버튼 */
.actionbar { display: none !important; }
.fab { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__btn { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #765629; color: #F4F0E8; box-shadow: 0 10px 28px -8px rgba(20, 33, 27, .55); transition: transform 220ms cubic-bezier(.23,1,.32,1), background-color 200ms; position: relative; }
.fab__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #765629; animation: fabPulse 2.6s cubic-bezier(.23,1,.32,1) infinite; }
.fab__btn[aria-expanded="true"]::after { animation: none; opacity: 0; }
.fab__btn:hover { transform: translateY(-2px); background: #8A6733; }
.fab__btn:active { transform: scale(.96); }
.fab__btn:focus-visible { outline: 3px solid #D9C7A2; outline-offset: 3px; }
.fab__ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; transition: opacity 180ms, transform 220ms cubic-bezier(.23,1,.32,1); }
.fab__ico--close { opacity: 0; transform: rotate(-45deg); }
.fab__btn[aria-expanded="true"] .fab__ico--open { opacity: 0; transform: rotate(45deg); }
.fab__btn[aria-expanded="true"] .fab__ico--close { opacity: 1; transform: none; }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.fab__panel { width: min(320px, calc(100vw - 40px)); background: #F4F0E8; color: #1B2721; border-radius: 18px; padding: 18px; box-shadow: 0 24px 60px -18px rgba(20, 33, 27, .55); transform-origin: bottom right; animation: fabIn 260ms cubic-bezier(.23,1,.32,1); }
.fab__panel[hidden] { display: none; }
@keyframes fabIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.fab__who { margin: 0; font: 400 22px/1.2 var(--font-display, serif); }
.fab__role { margin: 4px 0 12px; font-size: 13px; color: #5E6A62; }
.fab__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; margin-top: 6px; border: 1px solid rgba(27, 39, 33, .14); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; font: inherit; text-align: left; cursor: pointer; transition: border-color 180ms, transform 180ms; }
.fab__item:hover { border-color: #765629; transform: translateY(-1px); }
.fab__item svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #765629; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.fab__item span { display: flex; flex-direction: column; }
.fab__item b { font-weight: 500; font-size: 15px; }
.fab__item small { font-size: 13px; color: #5E6A62; }
.fab__item.is-done { border-color: #765629; }
@media (prefers-reduced-motion: reduce) { .fab__btn::after, .fab__panel { animation: none; } }

.fab__item b > *, .fab__item small > * { display: inline !important; }

/* 평면도 보기 버튼 */
.type__plan { margin-top: 10px; align-self: flex-start; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid #765629; background: transparent; color: #765629; font: 500 13px/1 var(--font-text, sans-serif); cursor: pointer; transition: background-color 180ms, color 180ms; }
.type__plan:hover { background: #765629; color: #F4F0E8; }
.type__plan:focus-visible { outline: 2px solid #765629; outline-offset: 2px; }
/* 평면도 창 */
.plan-dlg { width: min(1200px, 96vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #F4F0E8; color: #1B2721; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); display: none; }
.plan-dlg[open] { display: flex; flex-direction: column; animation: fabIn 240ms cubic-bezier(.23,1,.32,1); }
.plan-dlg::backdrop { background: rgba(20, 33, 27, .72); }
.plan-dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.plan-dlg__title { margin: 0; font: 400 22px/1.2 var(--font-display, serif); }
.plan-dlg__tools { display: flex; gap: 8px; }
.plan-dlg__zoom, .plan-dlg__close { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(27,39,33,.2); background: #fff; color: #1B2721; cursor: pointer; font: 500 14px/1 var(--font-text, sans-serif); padding: 0 14px; }
.plan-dlg__close { padding: 0; display: grid; place-items: center; }
.plan-dlg__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.plan-dlg__zoom .z-out { display: none; } .plan-dlg__zoom[aria-pressed="true"] .z-in { display: none; } .plan-dlg__zoom[aria-pressed="true"] .z-out { display: inline; }
.plan-dlg__tabs { display: flex; gap: 6px; padding: 4px 20px 12px; overflow-x: auto; }
.plan-dlg__tabs button { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(27,39,33,.18); background: transparent; color: #1B2721; font: 500 14px/1 var(--font-text, sans-serif); cursor: pointer; white-space: nowrap; }
.plan-dlg__tabs button[aria-selected="true"] { background: #1B2721; color: #F4F0E8; border-color: #1B2721; }
.plan-dlg__stage { flex: 1; min-height: 0; overflow: auto; background: #fff; margin: 0 20px; border-radius: 12px; }
.plan-dlg__stage img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.plan-dlg__stage.is-zoom img { width: 220%; max-width: none; cursor: zoom-out; }
.plan-dlg__note { margin: 10px 20px 16px; font-size: 12px; color: #5E6A62; }
@media (max-width: 639px) { .plan-dlg { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; } .plan-dlg__stage.is-zoom img { width: 320%; } }
