/* 새로탄성 홈페이지
   디자인 방향은 site.json 의 design 값(<html data-design>)으로 고른다.
   pearl  — 진주빛 정돈: 탄성코트 진주색 바탕, 깊은 남색 글자, 로고의 금색은 조금만, 큰 제목은 명조.
   record — 시공 기록형: 흰 바탕, 보양 비닐 파랑, 기록표처럼 정리.
   home   — 따뜻한 집: 회베이지 바탕, 짙은 올리브, 둥근 모서리.
   색·글꼴·모서리는 아래 토큰만 바꾸면 사이트 전체가 따라 바뀐다. 외부 라이브러리 없음. */

/* ── 토큰 ─────────────────────────────────────────────────────────── */
:root {
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --font-serif: "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", "Batang", serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.625rem, 1.25rem + 1.4vw, 2.125rem);
  --fs-3xl: clamp(2rem, 1.35rem + 2.6vw, 3.125rem);
  --fs-hero: clamp(2.125rem, 1.3rem + 3.3vw, 3.5rem);
  --space-section: clamp(56px, 7vw, 104px);
  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* pearl (기본) */
  --bg: #F4F4F0;
  --surface: #FFFFFF;
  --tint: #ECEDE7;
  --tint-2: #E2E4DC;
  --ink: #15223A;
  --ink-2: #33415A;
  --muted: #5B6575;
  --line: #DCDDD5;
  --line-2: #C6C8BE;
  --primary: #15223A;
  --primary-ink: #FFFFFF;
  --primary-hover: #24375A;
  --accent: #9A7330;
  --accent-ink: #7A5A22;
  --accent-soft: #F0E8D8;
  --dark: #101B2E;
  --dark-2: #17263F;
  --dark-ink: #EEF1F6;
  --dark-muted: #A9B3C4;
  --dark-accent: #D8BC86;
  --font-display: var(--font-serif);
  --display-weight: 600;
  --display-tracking: -0.012em;
  --radius: 6px;
  --radius-lg: 10px;
  --btn-radius: 6px;
  --chip-radius: 999px;
  --shadow: 0 1px 2px rgba(21, 34, 58, .05), 0 12px 32px -18px rgba(21, 34, 58, .28);
}
:root[data-design="record"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #F3F5F8;
  --tint-2: #E7EBF1;
  --ink: #1B2430;
  --ink-2: #344050;
  --muted: #5D6979;
  --line: #E0E5EC;
  --line-2: #C9D1DC;
  --primary: #1F5FD1;
  --primary-ink: #FFFFFF;
  --primary-hover: #184FB2;
  --accent: #1F5FD1;
  --accent-ink: #1A4FB0;
  --accent-soft: #EAF1FD;
  --dark: #121A26;
  --dark-2: #1A2433;
  --dark-ink: #EEF2F7;
  --dark-muted: #A6B1C1;
  --dark-accent: #8DB4FF;
  --font-display: var(--font-body);
  --display-weight: 760;
  --display-tracking: -0.028em;
  --radius: 4px;
  --radius-lg: 6px;
  --btn-radius: 4px;
  --chip-radius: 4px;
}
:root[data-design="home"] {
  --bg: #EFEBE5;
  --surface: #FBF9F6;
  --tint: #E7E1D8;
  --tint-2: #DDD5C9;
  --ink: #2A2622;
  --ink-2: #463F38;
  --muted: #6A6158;
  --line: #DCD4C9;
  --line-2: #C9BFB1;
  --primary: #2F4A3A;
  --primary-ink: #F6F3EE;
  --primary-hover: #253C2F;
  --accent: #9A7A45;
  --accent-ink: #77592A;
  --accent-soft: #EFE5D3;
  --dark: #24302A;
  --dark-2: #2D3B33;
  --dark-ink: #F2EFE9;
  --dark-muted: #B9BDB2;
  --dark-accent: #D9BE8C;
  --font-display: var(--font-body);
  --display-weight: 680;
  --display-tracking: -0.02em;
  --radius: 14px;
  --radius-lg: 20px;
  --btn-radius: 999px;
  --chip-radius: 999px;
}

/* ── 바탕 ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss05", "tnum" 0;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.32; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--primary);
  color: var(--primary-ink); border-radius: var(--btn-radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.col-narrow { max-width: 760px; }
.icon { width: 20px; height: 20px; flex: none; }

/* ── 버튼 ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--btn-radius); border: 1px solid transparent;
  font-size: var(--fs-sm); font-weight: 650; letter-spacing: -0.005em; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-xs); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-base); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-accent { background: var(--primary); color: var(--primary-ink); }
.btn-kakao { background: #FEE500; color: #191600; }
.btn-kakao:hover { background: #F5DC00; }
.btn-soomgo { background: #00C7AE; color: #062B26; }
.btn-soomgo:hover { background: #00B39C; }
.icon-arrow { width: 16px; height: 16px; transition: transform .15s var(--ease); }
a:hover > .icon-arrow, button:hover > .icon-arrow { transform: translateX(3px); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: var(--fs-sm);
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--accent); }
.icon-ext { width: 14px; height: 14px; }

/* ── 머리글 ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--bg); } }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { display: inline-flex; color: var(--ink); }
.brand-mark svg { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.3125rem;
  letter-spacing: var(--display-tracking); line-height: 1;
}
.brand-logo { height: 34px; width: auto; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list a {
  display: block; padding: 10px 12px; border-radius: var(--radius); text-decoration: none;
  font-size: 0.96875rem; font-weight: 550; color: var(--ink-2);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.has-sub > .sub {
  position: absolute; left: -8px; top: 100%; min-width: 220px; list-style: none; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub > .sub a { padding: 9px 12px; font-weight: 500; }
.has-sub > .sub a:hover { background: var(--tint); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-call {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--ink); font-size: var(--fs-sm);
}
.header-call .icon { width: 18px; height: 18px; color: var(--accent); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--btn-radius);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
[data-open] .nav-toggle-bars { background: transparent; }
[data-open] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
[data-open] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1079px) {
  :root { --header-h: 60px; }
  .header-call span { display: none; }
  .header-call {
    width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line);
    border-radius: var(--btn-radius); background: var(--surface);
  }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 10px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px));
    display: none;
  }
  .no-js .site-nav, [data-open] .site-nav { display: block; }
  .no-js .site-nav { position: static; box-shadow: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list a { padding: 14px 4px; font-size: var(--fs-base); }
  .nav-list > li > a[aria-current="page"] { box-shadow: none; color: var(--accent-ink); }
  .has-sub > .sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 10px 12px; display: grid; grid-template-columns: 1fr 1fr; min-width: 0;
  }
  .has-sub > .sub a { padding: 8px 4px; font-size: var(--fs-sm); color: var(--muted); }
  .nav-extra { display: grid; gap: 10px; margin-top: 18px; }
  .nav-extra .btn { width: 100%; }
}

/* ── 공통 블록 ─────────────────────────────────────────────────────── */
.block { padding-top: var(--space-section); }
main > .block:last-child, main > :last-child { padding-bottom: var(--space-section); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section-title {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--fs-2xl); color: var(--ink);
}
.section-intro { color: var(--muted); font-size: var(--fs-base); max-width: 62ch; }
.section-intro a { color: var(--ink); }
.more-link { margin-top: 32px; }
.empty-note {
  padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.footnote { margin-top: 20px; font-size: var(--fs-xs); color: var(--muted); max-width: 70ch; }
.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--chip-radius);
  background: var(--accent-soft); color: var(--accent-ink); font-size: 0.75rem; font-weight: 650; white-space: nowrap;
}
.chip-soft { background: var(--tint); color: var(--ink-2); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-ink); letter-spacing: 0.01em; }
.mini-title { font-size: var(--fs-base); font-weight: 700; margin-bottom: 12px; }

/* 사진이 오기 전 자리 */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .5) 48%, transparent 60%),
    linear-gradient(160deg, var(--tint) 0%, var(--tint-2) 100%);
  color: color-mix(in srgb, var(--ink) 34%, transparent);
  overflow: hidden;
}
.ph-icon { width: 30%; height: auto; max-width: 96px; stroke-width: 1.1; }
.ph-label { position: absolute; left: 12px; bottom: 10px; font-size: var(--fs-xs); color: var(--muted); }

/* ── 첫 화면 ───────────────────────────────────────────────────────── */
.block-hero {
  position: relative; isolation: isolate; padding-top: 0; color: var(--dark-ink); background: var(--dark);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-poster { position: absolute; inset: 0; transition: opacity .4s; }
.hero-video { position: absolute; inset: 0; }
/* 사진·영상 위 어둡게 깔기(누름은 통과). 흰 벽 사진이어도 글 칸은 .8 이상 → 작은 글 4.5:1, 제목 3:1 넘게.
   글 칸 오른쪽 끝 = 본문 칸 왼쪽(max(여백 40px, 50% - --wrap/2)) + 글 칸 760px + 40px. 그 오른쪽부터 사진이 드러난다.
   max() 를 모르는 옛 브라우저는 첫 줄(80% 까지 진하게)을 쓴다. --wrap 을 바꾸면 590px(= --wrap/2)도 같이. */
.block-hero.has-media::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 18, 32, .9) 0%, rgba(10, 18, 32, .8) 80%, rgba(10, 18, 32, .4) 100%);
  background: linear-gradient(90deg, rgba(10, 18, 32, .9) 0%, rgba(10, 18, 32, .8) calc(max(40px, 50% - 590px) + 800px),
    rgba(10, 18, 32, .3) 100%);
}
/* 사진 위 작은 글은 한 단계 밝게(진한 바탕 위 색 그대로 두면 대비가 모자람) */
.block-hero.has-media .eyebrow { color: color-mix(in srgb, var(--dark-accent) 75%, #FFFFFF); }
.block-hero.has-media .hero-subtitle, .block-hero.has-media .hero-body, .block-hero.has-media .hero-proof {
  color: color-mix(in srgb, var(--dark-muted) 75%, #FFFFFF);
}
.block-hero.has-media .hero-rail { background: rgba(8, 14, 26, .8); }
/* 첫 화면 영상 멈춤·재생 단추(자바스크립트가 켜질 때만 보임) */
.has-media .hero-inner { position: relative; }
.hero-toggle {
  position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 14px;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(8, 14, 26, .78);
  color: #FFFFFF; font-size: var(--fs-xs); font-weight: 600; line-height: 1; cursor: pointer;
}
.hero-toggle[hidden] { display: none; }
.hero-toggle:hover { border-color: #FFFFFF; background: rgba(8, 14, 26, .92); }
.hero-toggle-icon { width: 10px; height: 12px; flex: none; }
.hero-toggle[data-state="playing"] .hero-toggle-icon { border-left: 3px solid; border-right: 3px solid; }
.hero-toggle[data-state="paused"] .hero-toggle-icon { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero-plain {
  background:
    radial-gradient(90% 70% at 88% 0%, rgba(232, 222, 200, .16), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(120, 140, 175, .14), transparent 70%),
    linear-gradient(160deg, var(--dark-2) 0%, var(--dark) 70%);
}
.hero-plain .light {
  position: absolute; inset: -20% -10% -20% 35%;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255, 255, 255, .05) calc(25% - 1px) 25%),
    linear-gradient(105deg, transparent 30%, rgba(246, 240, 226, .10) 46%, rgba(246, 240, 226, .03) 58%, transparent 70%);
  transform: skewX(-8deg);
}
.hero-inner { padding-block: clamp(72px, 11vw, 148px) clamp(56px, 8vw, 104px); }
.hero-text { max-width: 760px; display: grid; gap: 22px; }
.block-hero .eyebrow { color: var(--dark-accent); }
.hero-title {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--fs-hero); line-height: 1.24; color: #FFFFFF; max-width: 17em;
}
@media (max-width: 599px) { .br-wide { display: none; } }
.hero-subtitle { font-size: var(--fs-lg); color: var(--dark-muted); max-width: 40em; line-height: 1.7; }
.hero-body { color: var(--dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.block-hero .btn-primary { background: #FFFFFF; color: var(--dark); }
.block-hero .btn-primary:hover { background: #ECEAE4; }
.block-hero .btn-outline { color: #FFFFFF; border-color: rgba(255, 255, 255, .42); }
.block-hero .btn-outline:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .06); }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 10px; font-size: var(--fs-xs); color: var(--dark-muted); }
.hero-proof li { padding-right: 14px; margin-right: 14px; border-right: 1px solid rgba(255, 255, 255, .22); }
.hero-proof li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
@media (max-width: 599px) {
  .hero-proof { display: grid; gap: 4px; }
  .hero-proof li { border-right: 0; margin-right: 0; padding: 0 0 0 14px; position: relative; }
  .hero-proof li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--dark-accent); }
  .hero-actions .btn { flex: 1 1 100%; }
}
.hero-rail { border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(8, 14, 26, .38); }
.rail-list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rail-list li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.rail-link {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px;
  padding: 20px 18px; text-decoration: none; color: #FFFFFF; height: 100%;
  transition: background-color .15s;
}
.rail-link:hover { background: rgba(255, 255, 255, .06); }
.rail-icon { grid-row: 1 / span 2; width: 26px; height: 26px; color: var(--dark-accent); stroke-width: 1.5; margin-top: 2px; }
.rail-name { font-weight: 650; font-size: var(--fs-sm); }
.rail-short { font-size: var(--fs-xs); color: var(--dark-muted); line-height: 1.5; }
@media (max-width: 899px) {
  /* 좁은 화면은 글이 거의 전체를 덮으므로 위 여백(글 시작 72px 전)만 조금 밝게 */
  .block-hero.has-media::before {
    background: linear-gradient(180deg, rgba(10, 18, 32, .5) 0, rgba(10, 18, 32, .8) 64px, rgba(10, 18, 32, .82) 70%,
      rgba(10, 18, 32, .9) 100%);
  }
  .rail-list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter); scrollbar-width: none;
  }
  .rail-list::-webkit-scrollbar { display: none; }
  .rail-list li { flex: 0 0 auto; scroll-snap-align: start; }
  .rail-link { grid-template-columns: auto auto; grid-template-rows: auto; align-items: center; padding: 16px 16px 16px 0; margin-right: 16px; }
  .rail-list li + li { border-left: 0; }
  .rail-icon { grid-row: auto; width: 22px; height: 22px; margin: 0; }
  .rail-short { display: none; }
}
/* 전후 비교·사진 모음: 글 뒤에 깔지 않고 글 옆(넓은 화면)·글 아래(좁은 화면) 사진 칸에. 글은 진한 바탕 위. */
.block-hero.is-split {
  background:
    radial-gradient(80% 70% at 90% 0%, rgba(232, 222, 200, .12), transparent 60%),
    linear-gradient(160deg, var(--dark-2) 0%, var(--dark) 70%);
}
.is-split .hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.is-split .hero-title { font-size: var(--fs-3xl); }
.is-split .hero-media {
  position: relative; inset: auto; z-index: 0; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--dark-2);
}
@media (max-width: 899px) {
  .is-split .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .is-split .hero-media { aspect-ratio: 4 / 3; }
}
/* 전후 비교: 끌기는 site.js 가 칸 전체에서 받는다(세로로 쓸면 페이지가 그대로 스크롤).
   range 는 키보드·화면 낭독기용으로 투명하게 두고, 초점은 손잡이 둘레로 보인다. */
.ba { position: absolute; inset: 0; --pos: 50%; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 1; width: 2px; margin-left: -1px;
  background: #FFFFFF; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none;
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none;
}
.ba-handle {
  position: absolute; left: var(--pos); top: 50%; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 12px rgba(0, 0, 0, .35); pointer-events: none;
}
.ba-handle::before, .ba-handle::after {
  content: ""; position: absolute; top: 50%; margin-top: -6px; border-block: 6px solid transparent;
}
.ba-handle::before { left: 10px; border-right: 7px solid var(--dark); }
.ba-handle::after { right: 10px; border-left: 7px solid var(--dark); }
.ba-range:focus-visible + .ba-handle { box-shadow: 0 0 0 3px var(--dark), 0 0 0 6px #FFFFFF, 0 2px 12px rgba(0, 0, 0, .35); }
.hero-ba:focus-within { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.ba-tag {
  position: absolute; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600;
  background: rgba(0, 0, 0, .62); color: #FFFFFF; pointer-events: none;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }
/* 사진 모음(1~3장) */
.hero-collage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.hero-collage figure { margin: 0; overflow: hidden; min-height: 0; }
.hero-collage .collage-1 { grid-row: 1 / span 2; }
.hero-collage.n-1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.hero-collage.n-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.hero-collage.n-1 .collage-1, .hero-collage.n-2 .collage-1 { grid-row: auto; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }

/* ── 쪽 머리 ───────────────────────────────────────────────────────── */
.page-head { padding-block: clamp(36px, 6vw, 72px) 0; }
.page-title {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--fs-3xl); line-height: 1.26; max-width: 22em;
}
.page-lead { margin-top: 16px; font-size: var(--fs-lg); color: var(--muted); max-width: 46em; }
.breadcrumbs { margin-bottom: 18px; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.crumb-bar { padding-top: 18px; }
.page-head + .block { padding-top: clamp(40px, 5vw, 64px); }

/* 서비스 상세 머리 */
.svc-hero { padding-block: clamp(28px, 5vw, 56px) 0; }
.svc-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.svc-hero-text { display: grid; gap: 18px; }
.svc-hero-text .page-lead { margin: 0; }
.svc-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 650; color: var(--accent-ink); }
.svc-kicker-icon { width: 22px; height: 22px; }
.svc-hero-media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.svc-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-facts {
  margin: clamp(28px, 4vw, 44px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.svc-facts > div { padding: 16px 20px 16px 0; }
.svc-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.svc-facts dt { font-size: var(--fs-xs); color: var(--muted); }
.svc-facts dd { margin: 4px 0 0; font-weight: 600; font-size: var(--fs-sm); }
.svc-spaces { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-spaces li {
  padding: 4px 11px; border: 1px solid var(--line-2); border-radius: var(--chip-radius); font-size: var(--fs-xs);
  color: var(--ink-2); background: var(--surface);
}
@media (max-width: 859px) {
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-hero-media { order: -1; aspect-ratio: 16 / 10; }
  .svc-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ── 서비스 목록 ───────────────────────────────────────────────────── */
.svc-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line);
}
.svc-feature-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.svc-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-feature:hover .svc-feature-media img { transform: scale(1.02); }
.svc-feature-text { display: grid; gap: 14px; justify-items: start; }
.svc-feature .svc-name {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--fs-2xl);
}
.svc-feature .svc-name a { text-decoration: none; }
.svc-feature .svc-short { color: var(--ink-2); font-size: var(--fs-lg); }
.svc-price { font-size: var(--fs-sm); color: var(--muted); }
.svc-price a { color: var(--ink); }
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(28px, 4vw, 44px); }
.svc-link { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.svc-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-link:hover .svc-media img { transform: scale(1.03); }
.svc-card .svc-name { font-size: var(--fs-lg); font-weight: 700; margin-top: 4px; }
.svc-card .svc-short { color: var(--muted); font-size: var(--fs-sm); }
.svc-card .more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 650; color: var(--ink); }
.svc-link:hover .svc-name { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.svc-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: clamp(28px, 4vw, 40px); padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink-2); font-size: var(--fs-sm);
}
.svc-note .icon { color: var(--accent); margin-top: 3px; }
@media (max-width: 959px) {
  .svc-feature { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) { .svc-grid { grid-template-columns: 1fr; } }

/* ── 숫자 띠 ──────────────────────────────────────────────────────── */
.block-stats { padding-bottom: 0; }
.stats-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.block-stats .section-head { margin-bottom: 24px; }
.block-stats .section-title { font-size: var(--fs-xl); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: grid; gap: 4px; align-content: start; padding: 4px 24px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-label { font-weight: 650; font-size: var(--fs-sm); color: var(--ink-2); }
.stat-note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
@media (max-width: 859px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .stat { padding: 0 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ── 시공 기록 카드 ────────────────────────────────────────────────── */
.post-grid, .case-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.post-card, .case-card { min-width: 0; }
.post-link, .case-link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.post-link:hover, .case-link:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.post-thumb, .case-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--tint); overflow: hidden; }
.case-thumb { aspect-ratio: 4 / 3; }
.post-thumb img, .case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .ph { min-height: 0; }
.pin-badge {
  position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: var(--chip-radius); background: var(--primary);
  color: var(--primary-ink); font-size: 0.75rem; font-weight: 650;
}
.post-body, .case-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.post-meta, .case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: var(--fs-xs); color: var(--muted); }
.post-title, .case-title {
  font-size: var(--fs-sm); font-weight: 650; line-height: 1.55; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.post-out { display: inline-flex; align-items: center; gap: 4px; }
.post-blog { color: var(--ink-2); }
.case-scope { font-size: var(--fs-xs); color: var(--muted); margin-top: auto; }
.thumb-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.post-card[hidden] { display: none; }
.post-filter, .case-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  min-height: 40px; padding: 0 16px; border-radius: var(--chip-radius); border: 1px solid var(--line-2); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer; color: var(--ink-2);
}
.filter-btn span { color: var(--muted); font-weight: 500; margin-left: 2px; font-variant-numeric: tabular-nums; }
.filter-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.filter-btn[aria-pressed="true"] span { color: inherit; opacity: .75; }
@media (max-width: 1099px) { .post-grid, .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  .post-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .post-body, .case-body { padding: 12px; }
  .post-out { display: none; }
}
.case-group + .case-group { margin-top: 48px; }
.case-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.case-group-head h2 { font-size: var(--fs-xl); }
.case-group-head .count { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.block-post-list .section-head { margin-bottom: 24px; }

/* ── 특징 · 순서 ───────────────────────────────────────────────────── */
.block-features { padding-bottom: var(--space-section); background: var(--tint); margin-top: var(--space-section); }
.page-head + .block-features, .svc-hero + .block-features { margin-top: clamp(40px, 5vw, 64px); }
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.feature { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--surface); border-radius: var(--radius-lg); }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-ink);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature-title { font-size: var(--fs-lg); font-weight: 700; }
.feature p { color: var(--muted); font-size: var(--fs-sm); }
.feature p a { color: var(--ink); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; counter-reset: s; }
.step { display: grid; gap: 10px; align-content: start; padding: 22px 22px 0 0; border-top: 2px solid var(--line); position: relative; }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 36px; height: 2px; background: var(--accent);
}
.step-num {
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-xl); color: var(--accent-ink);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.step-title { font-size: var(--fs-base); font-weight: 700; }
.step-text p { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px; }
@media (max-width: 759px) {
  .steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
  .step::before { display: none; }
}

/* ── 영상 ─────────────────────────────────────────────────────────── */
.block-videos { background: var(--dark); color: var(--dark-ink); padding-bottom: var(--space-section); margin-top: var(--space-section); }
.block-videos .section-title { color: #FFFFFF; }
.block-videos .section-intro, .block-videos .empty-note { color: var(--dark-muted); }
.block-videos .empty-note { border-color: rgba(255, 255, 255, .2); background: transparent; margin-top: 18px; }
.block-videos .btn-outline { color: #FFFFFF; border-color: rgba(255, 255, 255, .4); }
.block-videos .text-link { color: #FFFFFF; text-decoration-color: rgba(255, 255, 255, .4); }
.reel-scroller { overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; }
.reel-list { list-style: none; display: flex; gap: 16px; padding-bottom: 8px; }
.reel { flex: 0 0 clamp(200px, 22vw, 250px); scroll-snap-align: start; display: grid; gap: 10px; }
.reel-frame { aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark-2); position: relative; }
.reel-frame iframe, .reel-video { width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.reel-poster {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 35%, rgba(255, 255, 255, .08), transparent 70%), linear-gradient(180deg, #1D2C47, #0D1626);
}
.reel-instagram { background: linear-gradient(160deg, #3B2F5C 0%, #8A3A5C 55%, #C2703D 100%); }
.reel-brand { position: absolute; left: 14px; top: 12px; font-size: var(--fs-xs); font-weight: 650; color: rgba(255, 255, 255, .9); }
.reel-play, .reel-poster > .icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--dark);
}
.reel-poster > .icon { padding: 18px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); }
.reel-play .icon { width: 24px; height: 24px; margin-left: 3px; }
.reel-text { display: grid; gap: 6px; }
.reel-title { font-size: var(--fs-sm); font-weight: 600; color: #FFFFFF; line-height: 1.5; }
.reel-link { font-size: var(--fs-xs); color: var(--dark-muted); display: inline-flex; gap: 4px; align-items: center; }
.reel-profile { margin-top: 20px; }
.reel-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.reel-grid .reel-title { color: var(--ink); }
.reel-grid .reel-link { color: var(--muted); }

/* ── 색 견본 ──────────────────────────────────────────────────────── */
.swatches { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.swatch { display: grid; gap: 8px; align-content: start; }
.swatch-chip {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--chip);
  box-shadow: inset 0 0 0 1px rgba(21, 34, 58, .08); overflow: hidden;
}
.swatch.is-pearl .swatch-chip::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, .45) 52%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(200deg, rgba(214, 226, 236, .35), rgba(240, 222, 226, .25) 60%, rgba(226, 236, 218, .25));
  mix-blend-mode: soft-light;
}
.swatch-name { font-weight: 650; font-size: var(--fs-sm); }
.swatch-note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
@media (max-width: 859px) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 479px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }

/* ── 두 칸 · 대표 소개 ─────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.is-reverse .split-media { order: 2; }
.split-media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); max-height: 560px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text .section-head { margin-bottom: 18px; }
.split-text .prose p { color: var(--ink-2); }
.split-cta { margin-top: 24px; }
.profile { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile-media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); display: grid; place-items: center; }
.profile-media img { width: 100%; height: 100%; object-fit: cover; }
.profile-initial {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--surface);
  font-family: var(--font-display); font-size: 2.25rem; font-weight: var(--display-weight); color: var(--ink);
  border: 1px solid var(--line);
}
.profile-text { display: grid; gap: 14px; }
.profile-name { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-lg); }
.profile-role { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 759px) {
  .split, .profile { grid-template-columns: 1fr; }
  .split.is-reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 16 / 10; }
  .profile-media { aspect-ratio: auto; padding: 24px; justify-content: start; background: transparent; }
}

/* ── 자주 묻는 질문 ────────────────────────────────────────────────── */
.block-faq .col-narrow { max-width: 860px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px;
  cursor: pointer; list-style: none; font-weight: 650; font-size: var(--fs-base);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--ink-2); border-radius: 2px;
  transition: transform .2s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 2px 22px; color: var(--ink-2); }

/* ── 지역 ─────────────────────────────────────────────────────────── */
.region-chips, .chip-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.region-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--chip-radius);
  border: 1px solid var(--line-2); background: var(--surface); font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none;
}
.region-chip .icon { width: 16px; height: 16px; color: var(--accent); }
.region-chip.is-link:hover { border-color: var(--ink); color: var(--ink); }
.region-chip .count { color: var(--muted); font-size: var(--fs-xs); margin-left: 2px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { padding: 3px 10px; border-radius: var(--chip-radius); background: var(--tint); font-size: var(--fs-xs); }
.complex-list { margin-bottom: 28px; }

/* ── 가격 · 비교표 · 보증 ──────────────────────────────────────────── */
.price-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.price-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.price-name { font-size: var(--fs-base); font-weight: 700; }
.price-from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price-label { font-size: var(--fs-xs); color: var(--muted); }
.price-value { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-xl); }
.price-unit { font-size: var(--fs-xs); color: var(--muted); }
.price-note { font-size: var(--fs-xs); color: var(--muted); }
.price-rules { margin-top: 28px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.price-rules-title { font-size: var(--fs-lg); margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check-list .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--tint); font-weight: 650; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; }
.guarantee-card {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.guarantee-seal {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
}
.guarantee-seal .icon { width: 30px; height: 30px; }
.guarantee-text { display: grid; gap: 16px; }
@media (max-width: 559px) { .guarantee-card { grid-template-columns: 1fr; } }
.review-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.review-tag { padding: 8px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); }
.source-note { display: flex; gap: 6px; align-items: center; margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }
.source-note .icon { width: 14px; height: 14px; }

/* ── 글(마크다운) ──────────────────────────────────────────────────── */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--fs-xl); margin-top: 1.9em;
}
.prose h3 { font-size: var(--fs-lg); margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.4em 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2);
}
.prose blockquote > * + * { margin-top: .6em; }
.prose img { border-radius: var(--radius); margin-block: 1.2em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { margin-block: 1.2em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; }
.prose strong { font-weight: 700; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); }
.block-markdown .prose { color: var(--ink-2); }

/* ── 상담 상자(마무리 띠) ──────────────────────────────────────────── */
.block-cta { padding-bottom: var(--space-section); }
.cta-panel {
  display: grid; gap: 16px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(232, 222, 200, .12), transparent 60%),
    var(--dark);
  color: var(--dark-ink);
}
.cta-title {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--fs-2xl); color: #FFFFFF; max-width: 22em;
}
.cta-body { color: var(--dark-muted); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cta-panel .btn-primary { background: #FFFFFF; color: var(--dark); }
.cta-panel .btn-primary:hover { background: #ECEAE4; }
.cta-panel .btn-accent, .cta-panel .btn-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .38); }
.cta-panel .btn-accent:hover, .cta-panel .btn-light:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .06); }
.cta-hours { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--dark-muted); }
.cta-hours .icon { width: 16px; height: 16px; }
main > .block-cta:last-child { padding-bottom: var(--space-section); }

/* ── 상담 신청서 ───────────────────────────────────────────────────── */
.block-inquiry { scroll-margin-top: calc(var(--header-h) + 8px); }
.inq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.inq-form { padding: clamp(20px, 3.5vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.inq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend, .field .label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); padding: 0; }
.req { display: inline-block; margin-left: 4px; font-size: 0.75rem; font-weight: 650; color: var(--accent-ink); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: var(--fs-base); line-height: 1.5; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.field [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field-error { font-size: var(--fs-xs); color: #B3261E; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: var(--chip-radius);
  border: 1px solid var(--line-2); background: var(--surface); font-size: var(--fs-sm); cursor: pointer; user-select: none;
  transition: background-color .12s, border-color .12s, color .12s;
}
.check-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.check-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-pick {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 14px;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--bg); cursor: pointer;
  font-weight: 650; color: var(--ink-2);
}
.photo-pick:hover { border-color: var(--primary); color: var(--ink); }
.photo-pick .icon { color: var(--accent); }
.photo-list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.photo-list:empty { display: none; }
.photo-list li { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.photo-list img { width: 100%; height: 100%; object-fit: cover; }
.photo-list button {
  position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(16, 27, 46, .78); color: #FFFFFF; font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.inq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: 22px; font-size: var(--fs-sm); color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--primary); }
.inq-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.inq-alt { font-size: var(--fs-sm); color: var(--muted); }
.inq-alt a { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.inq-status:empty { display: none; }
.inq-status { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--tint); font-size: var(--fs-sm); }
.inq-status.is-error { background: #FBEDEC; color: #7A1D17; }
.inq-status.is-ok { background: #EAF4EE; color: #1F4D33; }
.inq-status .btn { margin-top: 12px; }
.inq-done { display: grid; gap: 14px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.inq-done h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-2xl); }
.inq-done p { color: var(--ink-2); }
.inq-aside { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--tint); position: sticky; top: calc(var(--header-h) + 20px); }
.mini-steps { list-style: none; display: grid; gap: 14px; counter-reset: m; }
.mini-steps li { display: grid; gap: 2px; padding-left: 34px; position: relative; counter-increment: m; }
.mini-steps li::before {
  content: counter(m); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700;
}
.mini-steps strong { font-size: var(--fs-sm); }
.mini-steps span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }
.inq-call { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); padding-top: 14px; border-top: 1px solid var(--line-2); }
.inq-call .icon { color: var(--accent); }
.inq-call a { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .inq-layout { grid-template-columns: 1fr; }
  .inq-aside { position: static; order: -1; }
}
@media (max-width: 559px) {
  .inq-grid { grid-template-columns: 1fr; }
  .inq-submit .btn { width: 100%; }
  .photo-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 사례 상세 ─────────────────────────────────────────────────────── */
.case-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; font-size: var(--fs-sm); }
.case-facts dt { color: var(--muted); font-size: var(--fs-xs); }
.case-facts dd { margin: 0; font-weight: 600; }
.gallery-group + .gallery-group { margin-top: 40px; }
.gallery-title { margin-bottom: 14px; }
.role-badge { display: inline-block; padding: 3px 12px; border-radius: var(--chip-radius); background: var(--tint); font-size: var(--fs-sm); font-weight: 650; }
.role-after { background: var(--accent-soft); color: var(--accent-ink); }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); width: 100%; }
.gallery figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }

/* ── 칼럼 ─────────────────────────────────────────────────────────── */
.guide-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-link {
  display: grid; gap: 10px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); text-decoration: none; color: inherit; align-content: start;
}
.guide-link:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.guide-meta { display: flex; gap: 10px; align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.guide-title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.45; }
.guide-desc { font-size: var(--fs-sm); color: var(--muted); }
.guide-link .more { display: inline-flex; gap: 6px; align-items: center; font-size: var(--fs-xs); font-weight: 650; margin-top: auto; }
.guide-byline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; font-size: var(--fs-xs); color: var(--muted); }
.guide-cover { margin-top: 32px; }
.guide-cover img { border-radius: var(--radius-lg); }
.block-guide-body { padding-top: 40px; }
.author-box {
  display: flex; gap: 16px; align-items: center; margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); font-size: var(--fs-sm);
}
.author-box .profile-initial { width: 56px; height: 56px; font-size: 1.375rem; }
.author-box span { color: var(--muted); }
.block-related .chip-links { margin-top: -8px; }

.block-notfound { padding-block: var(--space-section); }
.block-notfound .hero-actions { margin-top: 24px; }

/* ── 바닥글 ───────────────────────────────────────────────────────── */
.site-footer { background: #0C1524; color: var(--dark-muted); padding-block: clamp(48px, 6vw, 72px) 28px; font-size: var(--fs-sm); }
[data-design="home"] .site-footer { background: #1D2621; }
[data-design="record"] .site-footer { background: #0F1621; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(32px, 6vw, 80px); }
.footer-brand { display: grid; gap: 14px; justify-items: start; align-content: start; }
.footer-name { color: #FFFFFF; }
.footer-name .brand-mark { color: #FFFFFF; }
.footer-name .brand-name { color: #FFFFFF; font-size: 1.375rem; }
.site-footer .brand-mark, .site-footer .brand-name { display: inline-flex; vertical-align: middle; }
.site-footer .brand-mark { margin-right: 10px; }
.footer-tagline { max-width: 34ch; line-height: 1.7; }
.footer-call { display: inline-flex; gap: 8px; align-items: center; color: #FFFFFF; font-weight: 700; font-size: var(--fs-xl); text-decoration: none; font-variant-numeric: tabular-nums; }
.footer-call .icon { color: var(--dark-accent); }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.footer-col-title { color: #FFFFFF; font-weight: 650; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-bottom { margin-top: 44px; display: grid; gap: 14px; font-size: var(--fs-xs); }
.footer-bottom::before { content: ""; display: block; height: 1px; background: rgba(255, 255, 255, .1); margin-bottom: 10px; }
.footer-info { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.footer-info div { display: flex; gap: 6px; }
.footer-info dt { color: rgba(255, 255, 255, .5); }
.footer-info dd { margin: 0; }
.footer-info a { text-decoration: none; }
.footer-note { color: rgba(255, 255, 255, .55); max-width: 80ch; }
.footer-end { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer-legal a { color: #FFFFFF; font-weight: 650; }
.footer-social { list-style: none; display: flex; gap: 14px; margin-left: auto; }
.footer-social a { text-decoration: none; }
.footer-social a:hover { color: #FFFFFF; }
.site-footer .btn-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .3); }
.site-footer .btn-light:hover { border-color: #FFFFFF; }
@media (max-width: 859px) { .footer-top { grid-template-columns: 1fr; } .footer-social { margin-left: 0; } }

/* ── 휴대폰 아래 고정 상담 줄 ─────────────────────────────────────── */
.contact-bar { display: none; }
@media (max-width: 1079px) {
  .contact-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    gap: 1px; background: var(--line);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(21, 34, 58, .4);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .cb-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px;
    background: var(--surface); text-decoration: none; color: var(--ink); font-size: 0.75rem; font-weight: 650;
  }
  .cb-btn .icon { width: 22px; height: 22px; }
  .cb-call { color: var(--accent-ink); }
  .cb-form { background: var(--primary); color: var(--primary-ink); }
  .cb-kakao { background: #FEE500; color: #191600; }
  body { padding-bottom: calc(61px + env(safe-area-inset-bottom, 0px)); }
}

/* ── 움직임 줄이기 · 인쇄 ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero-video:not(.is-on) { display: none; }   /* 직접 '영상 재생'을 누르면(is-on) 보인다 */
}
@media print {
  .site-header, .contact-bar, .hero-rail, .site-nav, .cta-actions, .inq-form { display: none !important; }
  .block-hero, .block-hero.is-split { color: #000; background: none; }
  .hero-title { color: #000; }
  body { background: #FFFFFF; }
}
