/* =========================================================
   law 테마 — 법무법인·세무법인·회계법인용
   색상은 theme.css(company.json colors)에서 --primary / --ink / --paper 로 들어옴
   ========================================================= */
:root {
  --text: #3a3d44;
  --muted: #7b7e86;
  --line: #e2ded6;
  --white: #fff;
  --hd-h: 88px;
  --wrap: 1320px;
  --gutter: 40px;
  --sec-y: 128px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --ease: cubic-bezier(.25, .7, .2, 1);
}
@media (max-width: 1024px) { :root { --hd-h: 70px; --gutter: 24px; --sec-y: 92px; } }
@media (max-width: 640px)  { :root { --gutter: 18px; --sec-y: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.8; color: var(--text); background: var(--white);
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 18px; background: var(--ink); color: #fff; }
.skip:focus { top: 16px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(900px + var(--gutter) * 2); }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* 타이포 */
.eyebrow { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--primary); }
.eyebrow-light { color: #d9a9ae; }
.h2 { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.4; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.serif-lg { font-size: clamp(26px, 2.6vw, 38px); }
.h3 { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 26px); font-weight: 700; color: var(--ink); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.lead-text { margin-top: 24px; font-size: 18px; line-height: 1.95; }
.link-line { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 600; color: var(--ink); }
.link-line:hover { color: var(--primary); }
.link-line-light { color: #fff; }
.link-line .ico { transition: transform .3s var(--ease); }
.link-line:hover .ico { transform: translateX(5px); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-lg { height: 62px; padding: 0 34px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn:hover { color: var(--primary); }

/* =========================================================
   헤더
   ========================================================= */
.hd { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.hd.is-solid { box-shadow: 0 6px 24px rgba(22,24,29,.06); }
.hd-bar { display: flex; align-items: center; gap: 32px; height: var(--hd-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; font-family: var(--serif); line-height: 1.1; }
.logo-text small { font-size: 12px; font-weight: 600; letter-spacing: .3em; color: var(--muted); }
.logo-text b { font-size: 25px; font-weight: 700; letter-spacing: .2em; }
.logo-img { height: 40px; width: auto; }
.gnb { flex: 1; align-self: stretch; }
.gnb > ul { display: flex; justify-content: center; height: 100%; }
.gnb-item { position: relative; display: flex; }
.gnb-link { display: flex; align-items: center; height: 100%; padding: 0 24px; font-size: 16px; font-weight: 600; color: var(--ink); position: relative; }
.gnb-link::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .3s var(--ease); }
.gnb-item:hover .gnb-link::after, .gnb-item:focus-within .gnb-link::after, .gnb-item.is-active .gnb-link::after { transform: none; }
.gnb-item:hover .gnb-link, .gnb-item.is-active .gnb-link { color: var(--primary); }
.gnb-sub { position: absolute; top: 100%; left: 0; min-width: 180px; padding: 12px 0; background: #fff; border: 1px solid var(--line); border-top: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); }
.gnb-item:hover .gnb-sub, .gnb-item:focus-within .gnb-sub { opacity: 1; visibility: visible; transform: none; }
.gnb-sub a { display: block; padding: 8px 24px; font-size: 15px; color: var(--text); white-space: nowrap; }
.gnb-sub a:hover, .gnb-sub a[aria-current] { color: var(--primary); }
.hd-util { display: flex; align-items: center; gap: 6px; flex: none; }
.hd-cta { margin: 0 6px; }
@media (max-width: 1200px) { .gnb-link { padding: 0 14px; } .gnb-link::after { left: 14px; right: 14px; } }
@media (max-width: 1024px) { .gnb { display: none; } .hd-bar { justify-content: space-between; } .logo-text b { font-size: 21px; } }
@media (max-width: 440px) { .hd-cta { display: none; } }

/* 검색창 */
.search-layer { position: fixed; inset: 0; z-index: 210; background: rgba(22,24,29,.96); color: #fff; animation: fadeIn .25s var(--ease); }
.search-layer[hidden] { display: none; }
.search-layer-in { position: relative; padding-top: 18vh; }
.big-search { display: flex; border-bottom: 2px solid #fff; }
.big-search input { flex: 1; min-width: 0; height: 80px; border: 0; background: transparent; color: #fff; font-family: var(--serif); font-size: clamp(22px, 3vw, 36px); outline: none; }
.big-search input::placeholder { color: rgba(255,255,255,.4); }
.big-search button .ico { width: 34px; height: 34px; }
.search-hint { margin: 40px 0 14px; font-size: 14px; color: rgba(255,255,255,.6); }
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-list a { display: inline-block; padding: 10px 18px; border: 1px solid rgba(255,255,255,.3); font-size: 15px; }
.kw-list a:hover { background: var(--primary); border-color: var(--primary); }
.search-close { position: absolute; right: var(--gutter); top: 32px; color: #fff; }
.search-close .ico { width: 32px; height: 32px; }

/* 전체 메뉴 */
.sitemap { position: fixed; inset: 0; z-index: 200; background: var(--paper); overflow-y: auto; animation: fadeIn .3s var(--ease); }
.sitemap[hidden] { display: none; }
.sitemap-top { display: flex; justify-content: space-between; align-items: center; height: var(--hd-h); border-bottom: 1px solid var(--line); }
.sitemap-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; padding: 56px 0; }
.sitemap-head { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--ink); }
.sitemap-head small { display: block; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.sitemap-sub a { display: block; padding: 5px 0; color: var(--text); }
.sitemap-sub a:hover { color: var(--primary); }
.sitemap-call { padding-bottom: 48px; font-size: 15px; color: var(--muted); }
.sitemap-call a { margin-left: 10px; font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); }
@media (max-width: 860px) { .sitemap-list { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 32px 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   메인
   ========================================================= */
.hero { display: grid; grid-template-columns: 5fr 6fr; min-height: min(calc(100vh - var(--hd-h)), 820px); }
.hero-text { display: flex; align-items: center; justify-content: flex-end; background: var(--ink); color: #fff; padding: 72px var(--gutter); }
.hero-text-in { width: 100%; max-width: 560px; }
.hero-title { font-family: var(--serif); font-size: clamp(34px, 3.8vw, 56px); line-height: 1.35; font-weight: 700; letter-spacing: -.03em; animation: up 1s var(--ease) both; }
.hero-desc { margin: 26px 0 40px; color: rgba(255,255,255,.72); font-size: 17px; animation: up 1s .15s var(--ease) both; }
.hero-search { display: flex; border: 1px solid rgba(255,255,255,.35); animation: up 1s .3s var(--ease) both; }
.hero-search input { flex: 1; min-width: 0; height: 58px; padding: 0 20px; border: 0; background: transparent; color: #fff; outline: none; }
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search button { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; background: var(--primary); font-weight: 600; }
.hero-search:focus-within { border-color: #fff; }
.hero-kw { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.6); animation: up 1s .4s var(--ease) both; }
.hero-kw a:hover { color: #fff; }
.hero-media { position: relative; overflow: hidden; background: #222; }
.hero-img { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--ease), transform 8s linear; filter: grayscale(.25); }
.hero-img.is-active { opacity: 1; transform: scale(1); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,24,29,.35), transparent 40%); }
.hero-count { position: absolute; right: 32px; bottom: 28px; z-index: 1; font-family: var(--serif); color: rgba(255,255,255,.7); font-size: 15px; }
.hero-count b { color: #fff; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero > * { min-width: 0; }
@media (max-width: 1024px) { .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; max-height: none; } .hero-text { justify-content: flex-start; padding: 64px var(--gutter); } .hero-text-in { max-width: none; } .hero-media { height: 320px; } }

.sec { padding: var(--sec-y) 0; }
.sec-paper { background: var(--paper); }
.sec-ink { background: var(--ink); color: rgba(255,255,255,.75); }
.sec-ink .h2 { color: #fff; }

.intro-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.intro-quote { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.65; color: var(--ink); font-weight: 600; margin-bottom: 32px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.stats li { padding: 28px 0 28px 0; border-bottom: 1px solid var(--line); }
.stats li:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(36px, 3.4vw, 50px); font-weight: 700; color: var(--ink); line-height: 1.1; }
.stats span:last-child { font-size: 14px; color: var(--muted); }
@media (max-width: 1024px) { .intro-in { grid-template-columns: 1fr; gap: 48px; } }

.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.practice { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 280px; padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .35s, color .35s; }
.practice-no { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--primary); }
.practice b { margin-top: 18px; font-family: var(--serif); font-size: 22px; color: var(--ink); transition: color .35s; }
.practice small { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.practice-sum { margin-top: 16px; font-size: 15px; line-height: 1.7; }
.practice-arrow { margin-top: auto; padding-top: 20px; width: 22px; height: 22px; box-sizing: content-box; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.practice:hover { background: var(--ink); color: rgba(255,255,255,.7); }
.practice:hover b { color: #fff; }
.practice:hover .practice-no { color: #d9a9ae; }
.practice:hover .practice-arrow { color: #fff; transform: translateX(6px); }
@media (max-width: 1024px) { .practice-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .practice-grid { grid-template-columns: 1fr; } .practice { min-height: 0; } }

.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.person { display: flex; flex-direction: column; }
.person-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); margin-bottom: 18px; }
.person-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transition: filter .5s, transform .8s var(--ease); }
.person:hover .person-img img { filter: none; transform: scale(1.04); }
.person-pos { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--primary); }
.person-name { font-family: var(--serif); font-size: 23px; color: var(--ink); letter-spacing: .06em; }
.person-area { font-size: 14px; color: var(--muted); }
@media (max-width: 1024px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .people-grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; } .person-name { font-size: 19px; } }

.case-rows { border-top: 1px solid rgba(255,255,255,.3); }
.case-rows a { display: grid; grid-template-columns: 160px 1fr auto 70px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.12); transition: padding .3s var(--ease); }
.case-rows a:hover { padding-left: 12px; }
.case-rows b { font-family: var(--serif); font-size: 19px; font-weight: 600; color: #fff; }
.case-cat { font-size: 14px; color: #d9a9ae; }
.case-result { display: inline-block; padding: 4px 12px; border: 1px solid currentColor; font-size: 13px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.sec-ink .case-result { color: #fff; border-color: rgba(255,255,255,.4); }
.case-year { font-family: var(--serif); font-size: 15px; color: var(--muted); text-align: right; }
@media (max-width: 860px) { .case-rows a { grid-template-columns: 1fr auto; gap: 6px 16px; } .case-rows b { grid-column: 1 / -1; } .case-year { text-align: left; } }

.insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.insight { display: flex; flex-direction: column; }
.insight-img { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 16px; }
.insight-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.insight:hover img { transform: scale(1.05); }
.insight-meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.insight-meta em { font-style: normal; font-weight: 700; color: var(--primary); }
.insight b { margin-top: 8px; font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink); }
.insight:hover b { color: var(--primary); }
@media (max-width: 1024px) { .insight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .insight-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.cta-img { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; background: center / cover no-repeat; filter: grayscale(1); opacity: .45; }
.cta-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 60%); }
.cta-in { position: relative; padding-top: 104px; padding-bottom: 104px; }
.cta-title { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.5; font-weight: 700; }
.cta-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.cta-tel { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; }
@media (max-width: 860px) { .cta-img { width: 100%; opacity: .2; } }

/* 푸터 */
.ft { background: #0e0f12; color: rgba(255,255,255,.55); font-size: 14px; padding: 72px 0 48px; }
.ft .logo { color: #fff; }
.ft .logo-text small { color: rgba(255,255,255,.5); }
.ft-top { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ft-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ft-offices li { display: flex; flex-direction: column; gap: 2px; }
.ft-offices b { color: #fff; font-family: var(--serif); font-size: 16px; margin-bottom: 4px; }
.ft-bottom { padding-top: 32px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; }
.ft-links a { color: rgba(255,255,255,.8); }
.ft-links b { color: #fff; }
.ft-info span { display: inline-block; margin-right: 18px; line-height: 2; }
.ft-note { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.4); }
.copy { margin-top: 14px; font-size: 13px; }
@media (max-width: 1024px) { .ft-top { grid-template-columns: 1fr; } .ft-offices { grid-template-columns: 1fr; gap: 20px; } }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; place-items: center; width: 52px; height: 52px; background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transition: .3s var(--ease); }
.to-top.is-show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--primary); }

/* =========================================================
   하위 페이지
   ========================================================= */
.sub-visual { position: relative; padding: 96px 0 80px; background: var(--ink); color: #fff; overflow: hidden; }
.sub-visual-bg { position: absolute; inset: 0; background: center / cover no-repeat; filter: grayscale(1); opacity: .32; animation: subZoom 10s var(--ease) forwards; }
.sub-visual .wrap { position: relative; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 40px; }
.crumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumb a:hover { color: #fff; }
.sub-en { font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #d9a9ae; }
.sub-title { margin-top: 10px; font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; animation: up .9s var(--ease) both; }
.sub-lead { margin-top: 16px; max-width: 720px; color: rgba(255,255,255,.75); font-size: 17px; animation: up .9s .1s var(--ease) both; }
@keyframes subZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (max-width: 640px) { .sub-visual { padding: 56px 0 52px; } .crumb { margin-bottom: 24px; } }
.lnb { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: var(--hd-h); z-index: 50; }
.lnb-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lnb-tabs::-webkit-scrollbar { display: none; }
.lnb-tabs a { position: relative; display: block; padding: 20px 18px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lnb-tabs a[aria-current] { color: var(--ink); }
.lnb-tabs a[aria-current]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--primary); }

/* 인사말 */
.greet { display: grid; grid-template-columns: 1.3fr 1fr; gap: 88px; align-items: start; }
.greet .h2 { margin-bottom: 36px; }
.greet-text > p:not(.eyebrow) { margin-bottom: 18px; font-size: 18px; line-height: 2; }
.sign { margin-top: 48px !important; color: var(--muted); }
.sign strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 26px; color: var(--ink); letter-spacing: .14em; }
.greet-img { position: sticky; top: calc(var(--hd-h) + 40px); }
.greet-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.3); }
@media (max-width: 1024px) { .greet { grid-template-columns: 1fr; gap: 40px; } .greet-img { position: static; order: -1; } .greet-img img { aspect-ratio: 16 / 9; } }
.value-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.value-list li { padding: 36px 28px 40px 0; }
.value-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.value-no { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--primary); }
.value-list small { display: block; margin-top: 20px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.value-list b { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.value-list p { margin-top: 8px; font-size: 15px; }
@media (max-width: 860px) { .value-list { grid-template-columns: 1fr 1fr; } .value-list li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 480px) { .value-list { grid-template-columns: 1fr; } .value-list li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* 연혁 */
.history-period { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 64px 0; border-top: 1px solid var(--line); }
.history-period:first-child { border-top: 1px solid var(--ink); }
.history-side { position: sticky; top: calc(var(--hd-h) + 40px); align-self: start; }
.history-range { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); font-weight: 700; color: var(--ink); line-height: 1.2; }
.history-title { margin-top: 10px; color: var(--primary); font-weight: 600; }
.history-years > li { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding-bottom: 32px; }
.history-year { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.history-years ul li { position: relative; padding-left: 14px; margin-bottom: 6px; }
.history-years ul li::before { content: ""; position: absolute; left: 0; top: 14px; width: 5px; height: 1px; background: var(--primary); }
@media (max-width: 1024px) { .history-period { grid-template-columns: 1fr; gap: 28px; } .history-side { position: static; } }
@media (max-width: 480px) { .history-years > li { grid-template-columns: 1fr; gap: 4px; } }
.award-list { border-top: 1px solid var(--ink); }
.award-list li { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.award-year { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--primary); }
.award-list b { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.award-org { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .award-list li { grid-template-columns: 70px 1fr; } .award-org { grid-column: 2; } }

/* 사무소 */
.map { border: 1px solid var(--line); background: var(--paper); }
.map iframe { display: block; width: 100%; height: 460px; border: 0; filter: grayscale(.5); }
.office-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.office-list li { padding: 32px 28px; border-top: 2px solid var(--line); background: var(--paper); }
.office-list li.is-main { border-top-color: var(--primary); }
.office-name { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 16px; }
.office-list dl > div { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 6px 0; font-size: 15px; }
.office-list dt { color: var(--muted); }
.office-list dd { color: var(--ink); }
@media (max-width: 1024px) { .office-list { grid-template-columns: 1fr; } .map iframe { height: 320px; } }

/* 업무분야 */
.practice-list { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--ink); }
.practice-list a { display: grid; grid-template-columns: 300px 1fr 40px; gap: 40px; align-items: center; padding: 32px 0; background: #fff; transition: background .3s; }
.practice-list a:hover { background: var(--paper); }
.pl-img { aspect-ratio: 3 / 2; overflow: hidden; }
.pl-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6); transition: filter .5s, transform .8s var(--ease); }
.practice-list a:hover .pl-img img { filter: none; transform: scale(1.04); }
.pl-body { display: flex; flex-direction: column; }
.pl-body b { margin-top: 6px; font-family: var(--serif); font-size: 26px; color: var(--ink); }
.pl-body small { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.pl-sum { margin-top: 10px; }
.pl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pl-tags span { padding: 4px 10px; background: var(--paper); font-size: 13px; color: var(--ink); }
.practice-list .practice-arrow { margin: 0; padding: 0; }
@media (max-width: 860px) { .practice-list a { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; } .practice-list .practice-arrow { display: none; } }
.pd { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: start; }
.pd > * { min-width: 0; }
.pd-services { position: sticky; top: calc(var(--hd-h) + 32px); padding: 36px 32px; background: var(--paper); border-top: 2px solid var(--primary); }
.pd-services-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.pd-services ul { margin-bottom: 28px; }
.pd-services li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.pd-services .ico { color: var(--primary); margin-top: 5px; }
@media (max-width: 1024px) { .pd { grid-template-columns: 1fr; gap: 40px; } .pd-services { position: static; } }
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-cards li { display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); }
.case-cards b { margin: 6px 0 12px; font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.5; }
.case-cards p { font-size: 15px; margin-bottom: 20px; }
.case-cards .case-result { margin-top: auto; align-self: flex-start; }
.case-cards .case-year { text-align: left; }
@media (max-width: 1024px) { .case-cards { grid-template-columns: 1fr; } }

/* 구성원 */
.people-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search input { width: 100%; height: 50px; padding: 0 44px 0 16px; border: 1px solid var(--line); background: #fff; }
.search input:focus { outline: none; border-color: var(--ink); }
.search .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.select select { height: 50px; padding: 0 40px 0 16px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b7e86' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; appearance: none; }
.select select:focus { outline: none; border-color: var(--ink); }
.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.sec > .wrap > .filter { margin-bottom: 28px; }
.filter-btn { height: 44px; padding: 0 18px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); transition: .2s; }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.board-count { font-size: 14px; color: var(--muted); padding-bottom: 14px; margin-bottom: 36px; border-bottom: 1px solid var(--ink); }
.board-count b { color: var(--primary); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
[data-filter-list] > [hidden] { display: none !important; }
.profile { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: start; }
.profile > * { min-width: 0; }
.profile-img { position: sticky; top: calc(var(--hd-h) + 32px); }
.profile-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.profile-name { margin-top: 4px; font-family: var(--serif); font-size: clamp(34px, 3.4vw, 48px); color: var(--ink); letter-spacing: .08em; }
.profile-name small { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 15px; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.profile-dl { margin-top: 36px; border-top: 1px solid var(--ink); }
.profile-dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.profile-dl dt { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.profile-dl dd a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.profile-dl li { position: relative; padding-left: 12px; }
.profile-dl li::before { content: ""; position: absolute; left: 0; top: 14px; width: 4px; height: 1px; background: var(--muted); }
.profile-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
@media (max-width: 1024px) { .profile { grid-template-columns: 1fr; gap: 36px; } .profile-img { position: static; max-width: 320px; } }
@media (max-width: 480px) { .profile-dl > div { grid-template-columns: 1fr; gap: 6px; } }

/* 업무사례 */
.case-list { border-top: 1px solid var(--ink); }
.case-list > li { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hd-h) + 20px); }
.case-list summary { display: grid; grid-template-columns: 150px 1fr auto 60px 24px; gap: 20px; align-items: center; padding: 24px 4px; cursor: pointer; list-style: none; }
.case-list summary::-webkit-details-marker { display: none; }
.case-list summary b { font-family: var(--serif); font-size: 18px; color: var(--ink); font-weight: 600; }
.case-list .case-cat { color: var(--primary); }
.case-ico { color: var(--muted); transition: transform .3s; }
.case-list details[open] .case-ico { transform: rotate(45deg); color: var(--primary); }
.case-list details[open] summary b { color: var(--primary); }
.case-body { padding: 0 4px 28px 174px; }
.case-body p { margin-bottom: 14px; }
@media (max-width: 860px) { .case-list summary { grid-template-columns: 1fr auto; gap: 6px 12px; } .case-list summary b { grid-column: 1 / -1; } .case-list .case-year { display: none; } .case-ico { display: none; } .case-body { padding: 0 4px 24px; } }

/* 상담 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); margin-bottom: 72px; }
.steps li { padding: 24px 20px 24px 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--primary); }
.steps b { display: block; margin-top: 6px; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.steps small { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); } }
.consult-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.consult-wrap > * { min-width: 0; }
.consult-side { position: sticky; top: calc(var(--hd-h) + 32px); }
.consult-side > p:not(.eyebrow):not(.consult-lock) { margin: 18px 0 28px; }
.consult-dl { border-top: 1px solid var(--ink); }
.consult-dl > div { display: grid; grid-template-columns: 90px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.consult-dl dt { color: var(--muted); }
.consult-dl dd { color: var(--ink); font-weight: 600; }
.consult-lock { display: flex; gap: 8px; margin-top: 20px; padding: 14px 16px; background: var(--paper); font-size: 14px; color: var(--ink); }
.consult-lock .ico { color: var(--primary); margin-top: 3px; }
@media (max-width: 1024px) { .consult-wrap { grid-template-columns: 1fr; gap: 40px; } .consult-side { position: static; } }
.form { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 10px; }
.field em { color: var(--primary); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: #fff; font-size: 16px; border-radius: 0; }
.field input, .field select { height: 54px; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .is-invalid, .is-invalid { border-color: #b3261e !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.chip span { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.agree input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); }
.agree a { color: var(--primary); text-decoration: underline; }
.form-msg { min-height: 1em; font-size: 15px; color: #b3261e; }
.form-msg.is-ok { color: var(--ink); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* 게시판 (공통 템플릿) */
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.board-top .search { flex: 0 1 320px; }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.news-card { display: block; }
.news-card-img { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 16px; background: var(--paper); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover img { transform: scale(1.05); }
.news-card-img.is-empty { display: grid; place-items: center; background: var(--ink); color: #d9a9ae; font-family: var(--serif); font-size: 24px; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.tag { font-weight: 700; color: var(--primary); }
.tag-line { color: var(--primary); }
.news-card h3 { margin: 8px 0 6px; font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink); }
.news-card:hover h3 { color: var(--primary); }
.news-card p:last-child { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) { .news-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-cards { grid-template-columns: 1fr; } }
.article-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-title { margin-top: 14px; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.45; color: var(--ink); }
.article-img { margin-top: 32px; }
.article-body { padding: 40px 0 56px; }
.article-body p { margin-bottom: 22px; font-size: 18px; line-height: 2; }
.article-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.article-nav a:not(.btn) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.article-nav a span { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.article-nav a b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-nav .is-next { text-align: right; align-items: flex-end; }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } .article-nav .btn { order: 3; } .article-nav .is-next { text-align: left; align-items: flex-start; } }
.policy h2 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 40px 0 12px; }
.policy-date { margin-top: 48px; color: var(--muted); }

/* 스크롤 등장 */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
