:root {
  --ink: #172033;
  --ink-2: #1f2b45;
  --paper: #f6f7f8;
  --mist: #dde1e6;
  --text: #4a5260;
  --wine: #7b2d3b;
  --wine-dark: #62222f;
  --white: #fff;
  --head: "SUIT Variable", "Pretendard Variable", Pretendard, system-ui, "Malgun Gothic", sans-serif;
  --sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1180px;
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 19px/1.75 var(--sans); word-break: keep-all; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.4; letter-spacing: -0.025em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol, dl { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 6px; border: 1.5px solid transparent; font: 600 18px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn--accent { background: var(--wine); color: #fff; }
.btn--accent:hover { background: var(--wine-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- 상단 유틸바 + 헤더 + 메뉴 ---------- */
.util { background: var(--ink); color: #b9c1cf; font-size: 15px; }
.util__in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.util__links { display: flex; gap: 20px; }
.util__links a { text-decoration: none; }
.util__links a:last-child { color: #fff; font-weight: 600; }
.util__links a:hover { text-decoration: underline; }

.head { position: sticky; top: 0; z-index: 90; background: var(--white); border-bottom: 1px solid var(--mist); }
.head.is-stuck { box-shadow: 0 2px 14px rgba(23, 32, 51, .08); }
.head__in { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1.2; }
.brand b { font: 700 22px/1.2 var(--head); color: var(--ink); }
.brand small { font-size: 14px; color: var(--text); margin-top: 2px; }
.gnb__list { display: flex; list-style: none; }
.gnb__item { position: relative; }
.gnb__item > a { display: flex; align-items: center; height: var(--head-h); padding: 0 18px; text-decoration: none; font-size: 18px; font-weight: 600; color: var(--ink); }
.gnb__item > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--wine); transform: scaleX(0); transition: transform .2s; }
.gnb__item:hover > a::after, .gnb__item.is-on > a::after, .gnb__item:focus-within > a::after { transform: scaleX(1); }
.gnb__sub { position: absolute; left: 0; top: 100%; min-width: 190px; list-style: none; background: var(--white); border: 1px solid var(--mist); border-top: 0; box-shadow: 0 10px 24px rgba(23, 32, 51, .1); padding: 8px 0; visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.gnb__item:hover .gnb__sub, .gnb__item:focus-within .gnb__sub { visibility: visible; opacity: 1; transform: none; }
.gnb__sub a { display: block; padding: 10px 20px; font-size: 17px; text-decoration: none; color: var(--text); white-space: nowrap; }
.gnb__sub a:hover { background: var(--paper); color: var(--ink); }
.head__cta { min-height: 42px; padding: 0 20px; font-size: 17px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.drawer { border-top: 1px solid var(--mist); background: var(--white); max-height: calc(100vh - var(--head-h)); overflow: auto; padding: 8px var(--gutter) 24px; }
.drawer[hidden] { display: none; }
.drawer ul { list-style: none; }
.drawer > ul > li { border-bottom: 1px solid var(--mist); padding: 12px 0; }
.drawer .d1 { font: 600 18px/1.5 var(--head); color: var(--ink); text-decoration: none; display: block; }
.drawer li ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.drawer li ul a { font-size: 17px; color: var(--text); text-decoration: none; }
.drawer__tel { margin: 16px 0 0; }
.drawer__tel a { font-weight: 700; color: var(--wine); }

/* ---------- 홈: 첫 화면 ---------- */
.hero { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); color: #d3d9e4; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: end; padding-top: clamp(48px, 7vw, 96px); }
.hero__text { padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; font-size: clamp(28px, 3.5vw, 46px); font-weight: 700; }
.hero__sub { margin-top: 22px; max-width: 32em; font-size: 18px; color: #c4ccda; }
.search { display: flex; max-width: 620px; margin-top: 36px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-radius: 8px; overflow: hidden; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 18px; min-height: 54px; font: 400 18px var(--sans); color: var(--ink); background: transparent; }
.search input:focus-visible { outline-offset: -3px; }
.search button { border: 0; padding: 0 26px; background: var(--wine); color: #fff; font: 600 18px var(--sans); cursor: pointer; }
.search button:hover { background: var(--wine-dark); }
.search--light { border: 1.5px solid var(--ink); max-width: none; margin: 0 0 20px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.hero__chips a { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 16px; text-decoration: none; color: #e6eaf2; }
.hero__chips a:hover { background: rgba(255, 255, 255, .12); }
.hero__photo { margin: 0; align-self: end; background: radial-gradient(circle at 50% 45%, #3a4a6b 0, transparent 66%); }
.hero__photo img { display: block; width: 100%; max-width: 480px; margin: 0 auto; height: auto; }
.hero__text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(2) { animation-delay: .1s; }
.hero__text > :nth-child(3) { animation-delay: .2s; }
.hero__text > :nth-child(4) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--mist); border-radius: 10px; margin-top: -1px; box-shadow: 0 10px 30px rgba(23, 32, 51, .08); transform: translateY(-36px); margin-bottom: -12px; }
.stats div { padding: 22px 24px; border-right: 1px solid var(--mist); }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: 15px; color: var(--text); }
.stats dd { margin: 4px 0 0; font: 700 24px/1.3 var(--head); color: var(--ink); }
.stats dd a { text-decoration: none; color: var(--wine); }

/* 홈 공통 섹션 */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec--tint { background: #eceef1; }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.sec h2, .band h2 { font-size: clamp(25px, 2.8vw, 36px); font-weight: 700; }
.more { font-size: 17px; font-weight: 600; color: var(--wine); text-underline-offset: 4px; white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile { position: relative; display: block; background: var(--white); border: 1px solid var(--mist); border-radius: 10px; padding: 24px 22px 56px; text-decoration: none; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--ink); transform: translateY(-3px); }
.tile h3 { font-size: 22px; margin-bottom: 8px; }
.tile p { font-size: 16.5px; line-height: 1.65; margin: 0; }
.tile i { position: absolute; right: 20px; bottom: 16px; font-style: normal; font-size: 20px; color: var(--wine); }

.intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.photo { margin: 0; border-radius: 12px; overflow: hidden; background: #c9d0d9; }
.photo img { display: block; width: 100%; height: auto; }
.intro h2 { margin-bottom: 18px; }
.lead { font-family: var(--head); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(21px, 2.2vw, 26px); color: var(--ink); line-height: 1.65; }

.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ccard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--mist); border-radius: 10px; padding: 24px; text-decoration: none; transition: border-color .2s, transform .2s; }
.ccard:hover { border-color: var(--ink); transform: translateY(-3px); }
.tag { align-self: flex-start; display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; }
.ccard h3 { font-size: 19px; margin-bottom: 10px; }
.ccard p { font-size: 17px; line-height: 1.7; flex: 1; }
.ccard__f { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; color: var(--wine); border-top: 1px solid var(--mist); padding-top: 12px; }
.ccard__f i { font-style: normal; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.two .sec__head h2 { font-size: 24px; }
.posts { list-style: none; border-top: 1px solid var(--ink); }
.posts a { display: block; padding: 20px 4px; border-bottom: 1px solid var(--mist); text-decoration: none; transition: background .2s, padding .2s; }
.posts a:hover { background: rgba(255, 255, 255, .6); padding-left: 14px; }
.posts time { font-size: 15px; }
.posts h3 { font-size: 18px; margin: 4px 0 6px; }
.posts p { margin: 0; font-size: 16.5px; line-height: 1.7; }

.index { list-style: none; border-top: 1px solid var(--ink); }
.index a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--mist); text-decoration: none; color: var(--ink); font-size: 19px; font-weight: 500; line-height: 1.5; transition: background .2s, padding .2s; }
.index a:hover { background: rgba(255, 255, 255, .6); padding-left: 14px; }
.index em { font-style: normal; font-size: 15px; color: var(--text); flex: none; white-space: nowrap; }
.index .empty { padding: 28px 4px; border-bottom: 1px solid var(--mist); }

.band { background: var(--ink); color: #c9d0da; padding: clamp(56px, 8vw, 96px) 0; text-align: left; }
.band h2 { color: #fff; }
.band p { margin: 14px 0 0; }
.band__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.band__cards a { display: block; padding: 28px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; text-decoration: none; transition: background .2s; }
.band__cards a:hover { background: rgba(255, 255, 255, .08); }
.band__cards b { display: block; color: #fff; font: 600 19px var(--head); }
.band__cards span { display: block; margin-top: 6px; color: #fff; font-size: 22px; font-weight: 700; }
.band__cards a:nth-child(n+2) span { font-size: 18px; font-weight: 500; color: #c9d0da; }

/* ---------- 서브 페이지 ---------- */
.subvis { background: var(--ink); color: #fff; padding: clamp(32px, 5vw, 56px) 0; background-image: linear-gradient(160deg, var(--ink), var(--ink-2)); }
.subvis h1 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.crumb { margin: 10px 0 0; font-size: 16px; color: #aab3c4; }
.crumb a { text-decoration: none; }
.subbody { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 112px); align-items: start; }
.subbody:not(:has(.side)) { grid-template-columns: 1fr; }
.side { position: sticky; top: calc(var(--head-h) + 20px); }
.side h2 { font-size: 20px; padding: 18px 20px; background: var(--ink); color: #fff; border-radius: 8px 8px 0 0; }
.side ul { list-style: none; border: 1px solid var(--mist); border-top: 0; border-radius: 0 0 8px 8px; background: var(--white); }
.side a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--mist); text-decoration: none; color: var(--text); font-weight: 500; }
.side li:last-child a { border-bottom: 0; }
.side a:hover { color: var(--ink); background: var(--paper); }
.side a[aria-current="true"] { color: var(--wine); font-weight: 700; background: var(--paper); box-shadow: inset 3px 0 0 var(--wine); }
.subbody__content { min-width: 0; max-width: 860px; }
.subbody__content > * + *, .panel > * + * { margin-top: 0; }
.panel[hidden] { display: none; }
.panel h2, .caseview h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 20px; }
.panel h2 small { display: block; font: 500 17px/1.5 var(--sans); color: var(--text); margin-top: 6px; letter-spacing: 0; }
.h3 { font-size: 21px; margin: 36px 0 14px; }

.prof { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.photo--ph { background: linear-gradient(165deg, #dfe4ea, #b9c2cd); }
.cv { border-top: 1px solid var(--ink); }
.cv div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--mist); }
.cv dt { font-weight: 600; color: var(--ink); }
.cv dd { margin: 0; }

.principles { list-style: none; display: grid; gap: 16px; }
.principles li { background: var(--white); border: 1px solid var(--mist); border-radius: 10px; padding: 28px; }
.principles h3 { font-size: 20px; margin-bottom: 10px; }
.principles p { margin: 0; font-size: 18px; }
.timeline { list-style: none; border-left: 2px solid var(--mist); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--wine); }
.timeline b { display: block; color: var(--ink); margin-bottom: 2px; }

.check-list { list-style: none; border-top: 1px solid var(--ink); }
.check-list li { padding: 14px 4px 14px 28px; border-bottom: 1px solid var(--mist); position: relative; font-size: 18px; }
.check-list li::before { content: ""; position: absolute; left: 6px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); }

.work { border-top: 1px solid var(--ink); }
.work div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--mist); font-size: 17.5px; line-height: 1.75; }
.work dt { color: var(--ink); font-weight: 600; }
.work dd { margin: 0; }

.subbody .cgrid { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }

/* 사례 상세 */
.caseview .meta { color: var(--text); margin-top: -8px; }
.steps2 { list-style: none; counter-reset: s; border-top: 1px solid var(--ink); }
.steps2 li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--mist); }
.steps2 li::before { content: counter(s); grid-row: span 2; font: 700 22px/1.3 var(--head); color: var(--wine); }
.steps2 h4 { font-size: 18px; }
.steps2 p { margin: 6px 0 0; font-size: 18px; }
.outcome { padding: 20px 24px; background: var(--white); border-left: 4px solid var(--wine); border-radius: 0 8px 8px 0; color: var(--ink); font-weight: 500; }
.fine { font-size: 15.5px; margin-top: 24px; }
.nextcase { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--mist); font-size: 17px; }
.nextcase a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* 이야기 */
.quote { margin: 0 0 40px; font: 600 clamp(22px, 2.6vw, 30px)/1.5 var(--head); color: var(--ink); padding-left: 24px; border-left: 4px solid var(--wine); }
.quote footer { margin-top: 14px; font: 400 17.5px/1.75 var(--sans); color: var(--text); }
.posts--page h3 { font-size: 20px; }

/* 칼럼 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { font: 500 16px/1 var(--sans); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--mist); background: var(--white); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.count { font-size: 16px; margin: 8px 0 12px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pg { min-width: 40px; height: 40px; border: 1px solid var(--mist); border-radius: 6px; background: var(--white); font: 500 17px var(--sans); color: var(--ink); cursor: pointer; }
.pg[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 상담 */
.ctel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 36px; }
.ctel a { display: block; padding: 18px 20px; background: var(--white); border: 1px solid var(--mist); border-radius: 10px; text-decoration: none; }
.ctel a:hover { border-color: var(--ink); }
.ctel b { display: block; font-size: 16px; color: var(--text); font-weight: 500; }
.ctel span { display: block; margin-top: 2px; font: 700 19px var(--head); color: var(--ink); word-break: break-all; }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 36px); background: var(--white); border: 1px solid var(--mist); border-radius: 12px; }
.form label { display: grid; gap: 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; font: 400 18px var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--mist); border-radius: 6px; padding: 12px 14px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); line-height: 1.55; }
.form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--wine); }
.form .btn { justify-self: start; min-width: 180px; }
.form__msg { margin: 0; min-height: 1.5em; font-size: 17px; color: var(--wine); }
.steps { list-style: none; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--mist); }
.steps li::before { content: counter(s); grid-row: span 2; font: 700 22px/1.3 var(--head); color: var(--wine); }
.steps h3 { font-size: 20px; }
.steps p { margin: 6px 0 0; font-size: 18px; }
.info { border-top: 1px solid var(--ink); }
.info div { display: grid; grid-template-columns: 96px 1fr; padding: 16px 4px; border-bottom: 1px solid var(--mist); }
.info dt { color: var(--ink); font-weight: 600; }
.info dd { margin: 0; }

/* ---------- 푸터, 퀵메뉴, 모바일 하단 바 ---------- */
.foot { background: #0f1726; color: #98a2b3; padding: 48px 0 56px; font-size: 16px; line-height: 1.75; }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.foot p { margin: 0 0 .4em; }
.foot__name { font: 700 19px var(--head); color: #fff; margin-bottom: 10px !important; }
.foot__fine { font-size: 15px; }
.foot__links { list-style: none; display: grid; gap: 6px; align-content: start; }
.foot__links a { text-decoration: none; color: #c9d0da; }
.foot__links a:hover { text-decoration: underline; }

.quick { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 80; display: grid; width: 76px; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(23, 32, 51, .22); }
.quick a { display: grid; place-content: center; text-align: center; min-height: 68px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14.5px; line-height: 1.35; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.quick a:first-child { background: var(--wine); }
.quick a:last-child { border-bottom: 0; }
.quick a:hover { background: var(--ink-2); }
.quick a:first-child:hover { background: var(--wine-dark); }
.quick b { font-size: 16px; }
.dock { display: none; }

@media (max-width: 1100px) {
  .gnb, .head__cta { display: none; }
  .burger { display: block; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cgrid { grid-template-columns: repeat(2, 1fr); }
  .quick { display: none; }
}

@media (max-width: 860px) {
  body { font-size: 18px; padding-bottom: 56px; }
  :root { --head-h: 64px; }
  .util__in > span:first-child { display: none; }
  .util__in { justify-content: flex-end; }
  .hero__grid, .intro, .two, .subbody, .prof, .foot__in { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
  .hero__photo img { max-width: 300px; }
  .hero__text { padding-bottom: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); transform: translateY(-24px); }
  .stats div { padding: 16px; border-bottom: 1px solid var(--mist); }
  .stats div:nth-child(2n) { border-right: 0; }
  .stats div:nth-last-child(-n+2) { border-bottom: 0; }
  .band__cards, .ctel { grid-template-columns: 1fr; }
  .tiles, .cgrid, .subbody .cgrid { grid-template-columns: 1fr; }
  .side { position: static; }
  .side ul { display: flex; overflow-x: auto; border-radius: 0 0 8px 8px; }
  .side li { flex: none; }
  .side a { border-bottom: 0; border-right: 1px solid var(--mist); white-space: nowrap; }
  .side a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--wine); }
  .prof .photo { max-width: 260px; }
  .cv div, .work div, .info div { grid-template-columns: 1fr; gap: 2px; }
  .index a { flex-direction: column; gap: 2px; font-size: 18px; }
  .index em { white-space: normal; }
  .dock { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; inset: auto 0 0 0; z-index: 100; background: var(--white); border-top: 1px solid var(--mist); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { display: grid; place-items: center; min-height: 56px; text-decoration: none; font-weight: 600; font-size: 17px; color: var(--ink); }
  .dock .dock__main { background: var(--wine); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text > * { animation: none; }
  .tile, .ccard, .posts a, .index a, .gnb__sub { transition: none; }
}

/* ---------- 홈 첫 화면: 사진 + 제목 + 검색창 ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: max(560px, calc(100vh - var(--head-h) - 36px)); background: var(--ink); overflow: hidden; }
.hero__img { position: absolute; right: 0; top: 0; height: 100%; width: auto; min-width: 64%; max-width: none; object-fit: cover; object-position: 58% 18%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, rgba(23, 32, 51, .6) 52%, rgba(23, 32, 51, 0) 78%); }
.hero__in { position: relative; z-index: 2; width: 100%; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.3; }
.hero .search { max-width: 600px; }

/* ---------- 업무분야: 가로 탭 (YK 방식) ---------- */
.subbody--wide { grid-template-columns: 1fr; }
.subbody--wide .subbody__content { max-width: none; }
.atabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--ink); margin-bottom: 36px; }
.atabs a { padding: 14px 22px; text-decoration: none; font-weight: 600; color: var(--text); border: 1px solid transparent; border-bottom: 0; margin-bottom: -2px; border-radius: 8px 8px 0 0; }
.atabs a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.atabs a[aria-selected="true"] { background: var(--ink); color: #fff; }
.apanel[hidden] { display: none; }
.apanel h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }
.alead { font-family: var(--head); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(20px, 2vw, 24px); line-height: 1.7; color: var(--ink); }
.apanel > p { max-width: 46em; }
.agrid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.agrid a, .agrid div { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; height: 100%; min-height: 92px; padding: 18px 20px; background: var(--white); border: 1px solid var(--mist); border-radius: 10px; text-decoration: none; }
.agrid a:hover { border-color: var(--ink); }
.agrid b { font: 600 18px/1.5 var(--sans); color: var(--ink); }
.agrid span { font-size: 15px; font-weight: 600; color: var(--wine); }
.apanel .cgrid { grid-template-columns: repeat(2, 1fr); }

.prof .photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%; }

@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero__img { position: static; display: block; width: 100%; height: 300px; min-width: 0; object-position: 62% 15%; }
  .hero::after { inset: auto 0 auto 0; top: 140px; height: 160px; background: linear-gradient(180deg, rgba(23, 32, 51, 0), var(--ink)); }
  .hero__in { padding-top: 12px; padding-bottom: 48px; }
  .agrid, .apanel .cgrid { grid-template-columns: 1fr; }
  .atabs { flex-wrap: nowrap; overflow-x: auto; }
  .atabs a { flex: none; padding: 12px 16px; }
}

/* 카카오톡 상담 신청 배너 */
.kakao { display: inline-flex; align-items: center; margin-top: 8px; padding: 10px 18px; border-radius: 6px; background: #fee500; color: #191919; font-weight: 700; font-size: 17px; text-decoration: none; }
.kakao:hover { background: #f2d900; }
.ctel .ctel__kakao { background: #fee500; border-color: #fee500; }
.ctel .ctel__kakao b, .ctel .ctel__kakao span { color: #191919; }
.foot__in { grid-template-columns: 1fr; }

/* ---------- 업무분야: 많은 분야 탭 + 목차별 세부 업무분야 ---------- */
.atabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 0; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--mist); }
.atabs a { padding: 10px 18px; margin: 0; border: 1.5px solid var(--mist); border-radius: 999px; background: var(--white); font-size: 16px; font-weight: 600; color: var(--ink); }
.atabs a:hover { background: var(--white); border-color: var(--ink); }
.atabs a[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toc { list-style: none; counter-reset: g; border-top: 2px solid var(--ink); }
.toc > li { counter-increment: g; display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--mist); }
.toc h4 { font-size: 20px; }
.toc h4::before { content: counter(g, decimal-leading-zero); display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; color: var(--wine); letter-spacing: 0; }
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc ul li { padding: 8px 14px; background: var(--white); border: 1px solid var(--mist); border-radius: 8px; font-size: 17px; line-height: 1.5; color: var(--ink); }

/* 업무분야 드롭다운: 분야가 많아 3열로 */
.gnb__item.k-practice .gnb__sub { display: grid; grid-template-columns: repeat(3, auto); min-width: 0; width: max-content; column-gap: 8px; padding: 12px; }
.gnb__item.k-practice .gnb__sub a { padding: 8px 14px; }

@media (max-width: 860px) {
  .atabs { gap: 6px; }
  .atabs a { padding: 8px 14px; font-size: 15px; }
  .toc > li { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- 변호사 소개: 사진 + 프로필 (왼쪽 사진, 오른쪽 이름·학력·경력·목록) ---------- */
.prof2 { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.prof2__photo { margin: 0; border-radius: 8px; overflow: hidden; background: #aab4c6; position: sticky; top: calc(var(--head-h) + 20px); }
.prof2__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%; }
.prof2__role { margin: 0 0 4px; font-size: 16px; letter-spacing: .08em; color: var(--text); }
.prof2__name { font-size: clamp(40px, 5vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.prof2__quote { margin: 14px 0 28px; font: 500 clamp(19px, 2vw, 22px)/1.6 var(--head); letter-spacing: -0.02em; color: var(--text); }
.pdl { border-top: 1px solid var(--mist); padding-top: 8px; }
.pdl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; }
.pdl dt { font-size: 16px; font-weight: 700; color: var(--ink); }
.pdl dd { margin: 0; color: var(--text); font-size: 18px; line-height: 1.7; }
.pgroup { margin: 36px 0 6px; padding-top: 28px; border-top: 1px solid var(--mist); font: 700 16px/1.4 var(--sans); letter-spacing: .04em; color: var(--ink); }
.plist { list-style: none; }
.plist li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; font-size: 17px; line-height: 1.6; }
.plist time { font-size: 15px; color: var(--text); padding-top: 2px; }
.plist a { text-decoration: none; color: var(--ink); background-image: linear-gradient(var(--mist), var(--mist)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; justify-self: start; }
.plist a:hover { background-image: linear-gradient(var(--wine), var(--wine)); color: var(--wine); }

@media (max-width: 1000px) {
  .prof2 { grid-template-columns: 1fr; }
  .prof2__photo { position: static; max-width: 320px; }
}
@media (max-width: 560px) {
  .pdl > div, .plist li { grid-template-columns: 1fr; gap: 2px; }
}

/* 프로필 사진: HTML height 속성이 aspect-ratio를 덮어쓰지 않도록 높이를 자동으로, 상반신이 모두 보이게 */
.prof2 { grid-template-columns: 340px 1fr; }
.prof2__photo img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
@media (max-width: 1000px) { .prof2 { grid-template-columns: 1fr; } .prof2__photo { max-width: 340px; } }

/* 변호사 소개: 탭을 조금 좁혀 프로필에 더 넓은 자리를 줌 */
body[data-page="lawyer"] .subbody { grid-template-columns: 190px 1fr; gap: 40px; }
body[data-page="lawyer"] .subbody__content { max-width: none; }
body[data-page="lawyer"] .prof2 { grid-template-columns: 340px 1fr; gap: 44px; }
@media (max-width: 860px) { body[data-page="lawyer"] .subbody { grid-template-columns: 1fr; } }

/* ---------- 업무사례: 썸네일 카드, 필터, 본문 ---------- */
.ccard__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 14px; background: var(--mist); }
.ccard__f time { font-weight: 500; color: var(--text); }
.chips--sub { margin-bottom: 4px; }
.chips--sub .chip { font-size: 15px; padding: 8px 14px; }
.empty { padding: 24px 4px; }
.lbody { font-size: 18px; line-height: 1.85; }
.lbody h3 { font-size: 22px; margin: 40px 0 14px; padding-top: 24px; border-top: 1px solid var(--mist); }
.lbody h3:first-of-type { border-top: 0; padding-top: 0; }
.lbody h4 { font-size: 19px; margin: 24px 0 8px; }
.lbody p { margin: 0 0 14px; }
.lbody ul { margin: 0 0 16px; padding-left: 22px; }
.lbody li { margin-bottom: 6px; }
.lbody img { display: block; max-width: 100%; height: auto; margin: 0 0 24px; border-radius: 8px; border: 1px solid var(--mist); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.pn a { display: block; padding: 16px 18px; border: 1px solid var(--mist); border-radius: 10px; background: var(--white); text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.5; }
.pn a:hover { border-color: var(--ink); }
.pn small { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
@media (max-width: 860px) { .pn { grid-template-columns: 1fr; } }

/* 업무사례 카드: 본문 이미지(판결문 등)의 윗부분이 보이도록 */
.ccard__img { aspect-ratio: 16 / 10; object-position: top center; border: 1px solid var(--mist); }

/* 업무분야 목차: 항목 칩 아래 여백 없이, 구분선은 각 목차 위에만 */
.toc { border-top: 2px solid var(--ink); }
.toc > li { padding: 20px 4px 0; border-bottom: 0; }
.toc > li + li { margin-top: 20px; border-top: 1px solid var(--mist); }
.toc ul li { margin: 0; }

/* 네이버 지도 */
.navermap { width: 100%; height: 420px; margin: 24px 0 0; border: 1px solid var(--mist); border-radius: 10px; overflow: hidden; background: var(--mist); }
.navermap[hidden] { display: none; }
@media (max-width: 860px) { .navermap { height: 320px; } }

/* 업무분야 목차: 칩이 옆 칩의 높이에 맞춰 늘어나 아래쪽에 빈 공간이 생기지 않도록 */
.toc ul { align-items: flex-start; align-content: flex-start; }
.toc ul li { display: inline-flex; align-items: center; }

/* 목차 번호를 제목 옆에 한 줄로 두어, 제목 칸이 칩 줄보다 높아져 생기는 아래쪽 빈 공간을 없앰 */
.toc h4 { line-height: 44px; font-size: 20px; }
.toc h4::before { display: inline; margin: 0 10px 0 0; }
.toc h4 { height: 44px; }
.toc h4::before { line-height: 1; vertical-align: middle; }
.toc > li { align-items: start; }

/* ---------- 블로그 글 상세 ---------- */
.postview h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.4; margin-bottom: 12px; }
.tag--soft { background: var(--mist); color: var(--ink); }
.pbody { margin-top: 28px; font-size: 19px; line-height: 1.95; color: #2f3745; }
.pbody p { margin: 0 0 18px; }
.pbody h3 { font-size: 23px; margin: 44px 0 14px; padding-left: 14px; border-left: 4px solid var(--wine); }
.pbody strong { color: var(--ink); }

.pimg { margin: 28px 0 0; max-width: 560px; }
.pimg img { display: block; width: 100%; height: auto; border: 1px solid var(--mist); border-radius: 8px; background: #fff; }

/* 블로그 글: 여러 줄 인용 상자 */
.util__in { justify-content: flex-end; }
.pq { margin: 30px 0; padding: 8px 0 4px 24px; border-left: 4px solid var(--wine); }
.pq p { margin: 0 0 14px; font-size: 18px; line-height: 1.85; color: var(--ink); }
.pq .pq__head { font-weight: 700; font-size: 19px; margin-bottom: 16px; }

/* 헤더: 법무법인 울림 로고 */
.brand__logo { display: block; height: 24px; width: auto; margin-top: 4px; }

/* 헤더 브랜드: 로고 + 이름 가로 배치 */
.brand { flex-direction: row; align-items: center; gap: 0; }
.brand__logo { order: -1; height: 32px; margin: 0 14px 0 0; }
.brand b { padding-left: 14px; border-left: 1px solid var(--mist); font-size: 21px; line-height: 1; white-space: nowrap; }
@media (max-width: 560px) {
  .brand__logo { height: 24px; margin-right: 10px; }
  .brand b { padding-left: 10px; font-size: 17px; }
}

/* 오른쪽 빠른 메뉴: 전화상담은 눌러서 걸지 않고 번호를 그대로 보여 줌 */
.quick { width: 92px; }
.quick .quick__tel { display: grid; place-content: center; text-align: center; min-height: 68px; padding: 6px 4px; background: var(--wine); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .15); line-height: 1.35; }
.quick .quick__tel b { font-size: 14px; }
.quick .quick__tel span { font-size: 13px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.quick { width: 108px; }
.quick .quick__tel span { font-size: 13px; }
