/* 디코 합동법률사무소 디자인 샘플 — 옥스블러드 · 본 · 잡지형 명조 */
:root {
  --bone: #EFE7DA;
  --bone-2: #E5DACA;
  --paper: #F8F4EC;
  --blood: #4A1519;
  --blood-2: #5E1E22;
  --brass: #B38A4E;
  --ink: #2A1F1D;
  --text: #2E2725;
  --sub: #6F6259;
  --line: #CDBFAA;
  --head-h: 76px;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Nanum Myeongjo", "Noto Serif KR", serif;
  --latin: "Cormorant", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.75; word-break: keep-all; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--blood); color: var(--bone); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.ph { display: inline-block; padding: 0 6px; border: 1px dashed var(--brass); color: #7A5A2C; font-size: .94em; background: rgba(179,138,78,.07); font-family: var(--font); }
.ph--dark { border-color: rgba(239,231,218,.45); color: #E3D3B8; background: none; }

/* 샘플 배너 */
.sample-banner { background: var(--blood); color: #E3D3B8; font-size: 13.5px; }
.sample-banner__inner { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.sample-banner__tag { flex: none; padding: 1px 9px; border: 1px solid #E3D3B8; font-size: 12px; font-weight: 700; }
.sample-banner a { color: #fff; font-weight: 700; text-underline-offset: 3px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: .01em; transition: background .25s, color .25s, border-color .25s; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn--blood { background: var(--blood); color: var(--bone); }
.btn--blood:hover { background: var(--ink); }
.btn--bone { background: var(--bone); color: var(--blood); }
.btn--bone:hover { background: #fff; }
.btn--line { border-color: rgba(239,231,218,.5); color: var(--bone); }
.btn--line:hover { border-color: var(--bone); }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow span { display: inline-block; transition: transform .25s; }
.link-arrow:hover span { transform: translateX(4px); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: rgba(248,244,236,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blood); color: var(--bone); font-family: var(--latin); font-size: 24px; font-style: italic; }
.logo__text { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 800; font-size: 18px; line-height: 1.2; }
.logo__text small { font-family: var(--latin); font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--sub); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; background: linear-gradient(var(--blood), var(--blood)) left bottom / 0 1px no-repeat; transition: background-size .3s; }
.site-nav ul a:hover, .site-nav ul a.is-active { background-size: 100% 1px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s; content: ""; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* 히어로 */
.hero { min-height: calc(100svh - 41px - var(--head-h)); display: flex; flex-direction: column; justify-content: center; padding: 56px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.issue { display: flex; gap: 14px; font-family: var(--latin); font-size: 15px; letter-spacing: .14em; color: var(--sub); border-top: 1px solid var(--ink); padding-top: 12px; }
.issue span + span::before { content: "/"; margin-right: 14px; color: var(--line); }
.hero__title { margin-top: 30px; font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 5vw, 70px); line-height: 1.25; letter-spacing: -0.04em; color: var(--ink); }
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--blood); background: linear-gradient(transparent 70%, rgba(179,138,78,.35) 70%); }
.has-motion .hero__title .ln > span { transform: translateY(110%); transition: transform 1s cubic-bezier(.2,.7,.1,1); }
.has-motion .hero__title .ln:nth-child(2) > span { transition-delay: .15s; }
.has-motion .hero.is-ready .hero__title .ln > span { transform: none; }
.hero__lead { margin-top: 26px; max-width: 32em; font-size: 18px; color: var(--sub); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 36px; }
.scales { margin: 0; text-align: center; }
.scales svg { width: min(420px, 100%); margin-inline: auto; }
.beam { transform-origin: 210px 110px; transform-box: view-box; }
.pan--l { transform-origin: 80px 110px; transform-box: view-box; }
.pan--r { transform-origin: 340px 110px; transform-box: view-box; }
.has-motion .hero.is-ready .beam { animation: settle 3.2s cubic-bezier(.3,.1,.3,1) .4s both; }
.has-motion .hero.is-ready .pan--l, .has-motion .hero.is-ready .pan--r { animation: counter 3.2s cubic-bezier(.3,.1,.3,1) .4s both; }
@keyframes settle { 0% { transform: rotate(-14deg); } 30% { transform: rotate(8deg); } 55% { transform: rotate(-4deg); } 75% { transform: rotate(1.5deg); } 100% { transform: rotate(0); } }
@keyframes counter { 0% { transform: rotate(14deg); } 30% { transform: rotate(-8deg); } 55% { transform: rotate(4deg); } 75% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }
.scales__cap { margin-top: 10px; font-size: 14px; color: var(--sub); }
.scales__cap i { font-family: var(--latin); font-size: 17px; color: var(--blood); }
.hero__index { display: flex; align-items: baseline; gap: 30px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
.hero__index p { flex: none; font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--sub); }
.hero__index ol { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.hero__index a { text-decoration: none; font-weight: 600; }
.hero__index b { font-family: var(--latin); font-size: 18px; color: var(--blood); margin-right: 8px; }

/* 섹션 공통 */
.section { padding: 130px 0; }
.section--blood { background: var(--blood); color: var(--bone); }
.section--bone { background: var(--bone); }
.sec-head { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: end; max-width: 900px; margin-bottom: 60px; }
.sec-head__no { grid-row: span 2; font-family: var(--latin); font-size: 110px; line-height: .8; color: var(--blood); }
.sec-head h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.04em; color: var(--ink); }
.sec-head > p { grid-column: 2; margin-top: 10px; color: var(--sub); font-size: 17px; }
.sec-head--light .sec-head__no { color: var(--brass); }
.sec-head--light h2 { color: var(--bone); }
.sec-head--light > p { color: #D6C3AE; }
.has-motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.1,1); }
.has-motion .reveal.is-in { opacity: 1; transform: none; }

/* 상황별 안내 */
.situation__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.sit-list { border-top: 1px solid var(--ink); counter-reset: s; }
.sit-list li { counter-increment: s; border-bottom: 1px solid var(--line); }
.sit-list button { width: 100%; display: flex; align-items: center; gap: 18px; padding: 20px 4px; border: 0; background: none; text-align: left; font-size: 17px; font-weight: 600; color: var(--sub); transition: color .25s, padding .3s; }
.sit-list button::before { content: counter(s, lower-roman) "."; flex: none; width: 34px; font-family: var(--latin); font-size: 20px; color: var(--line); transition: color .25s; }
.sit-list button::after { content: "→"; margin-left: auto; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s; color: var(--blood); }
.sit-list button:hover { color: var(--ink); }
.sit-list button[aria-pressed="true"] { color: var(--blood); padding-left: 14px; }
.sit-list button[aria-pressed="true"]::before { color: var(--blood); }
.sit-list button[aria-pressed="true"]::after { opacity: 1; transform: none; }
.dossier { position: sticky; top: calc(var(--head-h) + 30px); padding: 48px 44px 36px; background: #fff; border: 1px solid var(--line); box-shadow: 14px 14px 0 var(--bone-2); }
.dossier__tab { position: absolute; top: -1px; right: 36px; transform: translateY(-100%); padding: 6px 16px; background: var(--blood); color: var(--bone); font-family: var(--latin); font-size: 13px; letter-spacing: .2em; }
.dossier__field { font-family: var(--latin); font-size: 16px; letter-spacing: .1em; color: var(--brass); }
.dossier__title { margin-top: 4px; font-family: var(--serif); font-weight: 800; font-size: 30px; color: var(--ink); }
.dossier.is-swap .dossier__title, .dossier.is-swap .dossier__cols { animation: page .5s ease; }
@keyframes page { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.dossier__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.dossier h4 { font-size: 14px; color: var(--sub); font-weight: 600; margin-bottom: 10px; }
.dossier__check li, .dossier__docs li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 15.5px; }
.dossier__check li::before { content: "§"; position: absolute; left: 0; color: var(--blood); font-family: var(--latin); }
.dossier__docs li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 12px; border: 1.5px solid var(--brass); }
.dossier__note { margin-top: 24px; font-size: 13px; color: var(--sub); }

/* 업무 분야: 목차 */
.toc { border-top: 1px solid rgba(239,231,218,.35); }
.toc__item { border-bottom: 1px solid rgba(239,231,218,.2); }
.toc summary { list-style: none; display: flex; align-items: baseline; gap: 22px; padding: 26px 0; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc__no { flex: none; width: 60px; font-family: var(--latin); font-size: 26px; color: var(--brass); }
.toc__name { font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); transition: color .25s, letter-spacing .3s; }
.toc__dots { flex: 1; border-bottom: 1px dotted rgba(239,231,218,.35); transform: translateY(-6px); }
.toc__en { font-family: var(--latin); font-style: italic; font-size: 20px; color: #D6C3AE; }
.toc summary:hover .toc__name, .toc details[open] .toc__name { color: #fff; letter-spacing: .02em; }
.toc details p { padding: 0 0 28px 82px; color: #E3D3B8; font-size: 16.5px; max-width: 46em; }
.toc details[open] p { animation: page .4s ease; }

/* 진행 과정 */
.process__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.process .sec-head { display: block; position: sticky; top: calc(var(--head-h) + 30px); }
.process .sec-head__no { display: block; margin-bottom: 18px; }
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 6px; top: 8px; width: 3px; height: calc(100% - 16px); background: var(--blood); transform-origin: top; transform: scaleY(var(--p, 1)); transition: transform 2.4s cubic-bezier(.4,0,.2,1); }
.has-motion .timeline:not(.is-played)::after { --p: 0; }
.timeline li { position: relative; padding-bottom: 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -40px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blood); z-index: 1; }
.timeline__when { font-family: var(--latin); font-size: 15px; letter-spacing: .14em; color: var(--brass); }
.timeline h3 { margin-top: 2px; font-family: var(--serif); font-weight: 800; font-size: 25px; color: var(--ink); }
.timeline p { margin-top: 6px; color: var(--sub); }

/* 변호사 */
.lawyers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.profile__photo { position: relative; align-self: start; }
.profile__photo .ph { position: absolute; left: 10px; bottom: 10px; font-size: 12px; }
.profile__role { font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--blood); }
.profile h3 { margin-top: 6px; font-size: 24px; }
.profile blockquote { margin: 18px 0 0; padding-left: 16px; border-left: 2px solid var(--blood); font-family: var(--serif); font-size: 17px; line-height: 1.7; color: var(--ink); }
.profile dl { margin: 20px 0 0; font-size: 14.5px; }
.profile dl div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.profile dt { color: var(--sub); }
.profile dd { margin: 0; }

/* 비용 */
.fee__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.fee__card { padding: 34px 28px 38px; border-left: 1px solid var(--line); }
.fee__card:first-child { border-left: 0; padding-left: 0; }
.fee__no { font-family: var(--latin); font-style: italic; font-size: 30px; color: var(--brass); }
.fee__card h3 { margin-top: 10px; font-family: var(--serif); font-weight: 800; font-size: 26px; color: var(--ink); }
.fee__card p { margin-top: 8px; color: var(--sub); font-size: 15px; }
.fee__val { margin-top: 18px !important; }
.fee__card--note { background: var(--bone); padding-right: 24px; }

/* 질문 */
.faq__grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 50px; }
.faq .sec-head { display: block; }
.faq .sec-head__no { display: block; margin-bottom: 14px; }
.faq__list details { border-top: 1px solid var(--ink); }
.faq__list details:last-child { border-bottom: 1px solid var(--ink); }
.faq__list summary { list-style: none; display: flex; align-items: baseline; gap: 14px; padding: 24px 0; font-family: var(--serif); font-weight: 800; font-size: 19px; color: var(--ink); cursor: pointer; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; margin-left: auto; font-family: var(--latin); font-size: 28px; line-height: 1; color: var(--blood); transition: transform .3s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.q { font-family: var(--latin); font-size: 22px; color: var(--blood); }
.faq__list details p { padding: 0 40px 26px 38px; color: var(--sub); }

/* 상담 */
.contact { padding: 130px 0; background: var(--ink); color: var(--bone); }
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
.contact .sec-head__no { display: block; font-family: var(--latin); font-size: 110px; line-height: .8; color: var(--brass); }
.contact__title { margin-top: 24px; font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 4.2vw, 58px); letter-spacing: -0.04em; line-height: 1.3; }
.contact__title em { font-style: normal; color: #E3C28A; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact__note { margin-top: 14px; font-size: 13px; color: #A8998A; }
.contact__info { margin: 0; border-top: 1px solid rgba(239,231,218,.3); }
.contact__info div { display: grid; grid-template-columns: 100px 1fr; padding: 18px 0; border-bottom: 1px solid rgba(239,231,218,.18); }
.contact__info dt { font-family: var(--serif); font-weight: 700; color: #D6C3AE; }
.contact__info dd { margin: 0; }

/* 푸터 */
.site-footer { padding: 44px 0 60px; background: #1E1615; color: #A8998A; font-size: 13.5px; }
.site-footer p + p { margin-top: 8px; }
.site-footer__brand { font-family: var(--serif); font-weight: 800; font-size: 18px; color: var(--bone); }
.site-footer__brand span { font-family: var(--latin); font-weight: 500; font-size: 13px; letter-spacing: .2em; color: #8C7D70; margin-left: 8px; }
.site-footer__credit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.site-footer__credit a { display: inline-flex; padding: 3px 6px; background: #fff; }

/* 반응형 */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: var(--nav-top, 76px); right: 0; bottom: 0; width: min(340px, 100%); flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 26px; background: var(--paper); border-left: 1px solid var(--line); clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .35s ease, visibility 0s .35s; }
  .site-nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .35s ease; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-family: var(--serif); font-weight: 800; font-size: 20px; border-bottom: 1px solid var(--line); background: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .scales svg { width: min(320px, 80%); }
  .situation__grid, .process__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .dossier, .process .sec-head { position: static; }
  .lawyers__grid { grid-template-columns: 1fr; }
  .fee__grid { grid-template-columns: 1fr 1fr; }
  .fee__card:nth-child(3) { border-left: 0; padding-left: 0; }
  .fee__card:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --head-h: 64px; }
  .wrap { width: calc(100% - 32px); }
  .sample-banner { font-size: 12.5px; }
  .sample-banner__inner { align-items: flex-start; }
  .logo__text { font-size: 16px; }
  .hero { padding-top: 36px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__index { flex-direction: column; gap: 8px; }
  .hero__index ol { gap: 6px 20px; }
  .section, .contact { padding: 84px 0; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .sec-head__no { grid-row: auto; font-size: 72px; margin-bottom: 8px; }
  .sec-head > p { grid-column: 1; }
  .sit-list button { font-size: 15.5px; padding: 16px 2px; gap: 12px; }
  .dossier { padding: 36px 22px 26px; box-shadow: 8px 8px 0 var(--bone-2); }
  .dossier__tab { right: 18px; }
  .dossier__title { font-size: 24px; }
  .dossier__cols { grid-template-columns: 1fr; gap: 20px; }
  .toc summary { gap: 12px; padding: 20px 0; }
  .toc__no { width: 40px; font-size: 20px; }
  .toc__en { display: none; }
  .toc details p { padding-left: 52px; font-size: 15px; }
  .profile { grid-template-columns: 1fr; }
  .profile__photo { max-width: 220px; }
  .fee__grid { grid-template-columns: 1fr; }
  .fee__card, .fee__card:first-child, .fee__card:nth-child(3) { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fee__card:first-child { border-top: 0; }
  .fee__card--note { padding: 26px 18px !important; }
  .faq__list summary { font-size: 17px; }
  .faq__list details p { padding: 0 0 22px 0; }
  .contact .sec-head__no { font-size: 72px; }
  .contact__info div { grid-template-columns: 86px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
