/* ==========================================================
   김수민 변호사 | 법무법인 건영
   색 규칙: 딥 네이비 · 스틸 블루 · 아이스 블루 · 쿨 화이트 · 화이트
   레드(--result)는 성공 사례 결과(.case-result)에만 사용한다.
   ========================================================== */

:root {
  --navy: #0b2a3f;
  --navy-deep: #071d2c;
  --navy-soft: #1b3d55;
  --steel: #2f6e8e;
  --steel-light: #6f9bb4;
  --ice: #e3eef5;
  --ice-strong: #cfe0eb;
  --cool: #f5f8fb;
  --white: #ffffff;

  --text: #0b2a3f;
  --muted: #4d6577;
  --line: #d8e4ec;

  --result: #c4372c; /* 성공 사례 결과 전용 */

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 42, 63, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 42, 63, 0.14);
  --container: 1160px;
  --header-h: 72px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--steel-light); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section--cool { background: var(--cool); }
.section--ice { background: var(--ice); }
.section--navy { background: var(--navy); color: var(--white); }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.section--navy .eyebrow, .page-hero .eyebrow { color: var(--steel-light); }

.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-title { margin-top: 16px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section-desc { margin-top: 18px; font-size: 17px; color: var(--muted); }
.section--navy .section-desc { color: rgba(255, 255, 255, 0.72); }

.hl { background: linear-gradient(transparent 62%, var(--ice-strong) 62%); padding: 0 2px; }
.section--navy .hl, .page-hero .hl { background: linear-gradient(transparent 62%, rgba(111, 155, 180, 0.45) 62%); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(11, 42, 63, 0.18); }
.btn--primary:hover { background: var(--navy-soft); }
.btn--steel { background: var(--steel); color: var(--white); }
.btn--steel:hover { background: #285f7b; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--ice); }
.btn--ghost-white { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--ghost-white:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--steel); border-bottom: 1.5px solid transparent;
  transition: gap .2s, border-color .2s;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 10px; border-color: currentColor; }
.section--navy .link-arrow { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11, 42, 63, 0.05); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.brand-text strong { font-size: 18px; font-weight: 800; }

.gnb { display: flex; align-items: center; gap: 36px; }
.gnb ul { display: flex; gap: 32px; }
.gnb ul a { font-weight: 600; font-size: 16px; color: var(--muted); padding: 8px 0; position: relative; transition: color .2s; }
.gnb ul a:hover, .gnb ul a[aria-current="page"] { color: var(--navy); }
.gnb ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--steel);
}
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: transform .25s, background-color .25s;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (main) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--cool) 0%, var(--white) 100%);
}
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, var(--ice) 0%, rgba(227, 238, 245, 0) 100%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: end; }
.hero-copy { padding: 96px 0 112px; }
.hero-photo-m { display: none; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 14px; font-weight: 700; color: var(--navy); box-shadow: 0 4px 14px rgba(11, 42, 63, 0.06);
}
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--steel); box-shadow: 0 0 0 4px var(--ice); }
.hero-badge b { color: var(--line); font-weight: 400; }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.25; letter-spacing: -0.03em; }
.hero-sub { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 520px; }
.hero .btn-row { margin-top: 36px; }
.hero-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--ice); color: var(--steel); font-size: 14px; font-weight: 600;
}
.hero-visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; padding-top: 56px; }
.hero-photo {
  position: relative; width: min(100%, 460px); isolation: isolate; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 230px 230px 0 0; box-shadow: 0 -10px 40px rgba(11, 42, 63, 0.06);
}
.hero-photo img { width: 100%; height: auto; transform: translateY(4%); }
/* ---------- Promise / quote ---------- */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quote {
  margin-top: 28px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.55;
}
.quote-mark { font-size: 64px; line-height: 0.6; color: var(--steel-light); font-family: Georgia, serif; display: block; height: 28px; }
.quote-by { margin-top: 24px; color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.promise-list { margin-top: 32px; display: grid; gap: 14px; }
.promise-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.86); }
.promise-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- About summary (main) ---------- */
.about-summary { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.about-photo .frame { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); aspect-ratio: 4 / 4.4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.about-photo .badge {
  position: absolute; right: -20px; bottom: 32px; background: var(--navy); color: var(--white);
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); line-height: 1.4;
}
.about-photo .badge strong { display: block; font-size: 20px; }
.about-photo .badge span { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.career-list { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.career-list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.career-list .k { font-size: 14px; font-weight: 700; color: var(--steel); padding-top: 2px; }
.career-list .v { font-weight: 600; }
.career-list .v small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* ---------- Practice cards ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.practice-card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.practice-card:nth-child(4), .practice-card:nth-child(5) { grid-column: span 3; }
.practice-card:hover { border-color: var(--steel); box-shadow: var(--shadow); transform: translateY(-4px); }
.practice-num { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--steel); }
.practice-icon {
  margin-top: 18px; width: 52px; height: 52px; border-radius: 14px; background: var(--ice); color: var(--navy);
  display: grid; place-items: center;
}
.practice-icon svg { width: 26px; height: 26px; }
.practice-card h3 { margin-top: 20px; font-size: 22px; font-weight: 800; }
.practice-card p { margin-top: 10px; color: var(--muted); font-size: 15px; flex: 1; }
.practice-card .link-arrow { margin-top: 22px; font-size: 15px; }
.practice-card .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.practice-card .tags .tag { font-size: 13px; padding: 4px 10px; }

/* ---------- Case cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.case-card:hover { border-color: var(--steel); box-shadow: var(--shadow); transform: translateY(-4px); }
.case-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--ice); overflow: hidden; }
.case-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .case-thumb img { transform: scale(1.04); }
.case-thumb .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy) 0%, var(--steel) 100%); color: var(--white);
  font-weight: 800; font-size: 20px; letter-spacing: -0.01em;
}
.case-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.case-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.case-area { font-weight: 700; color: var(--steel); background: var(--ice); padding: 3px 10px; border-radius: 999px; }
.case-results { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.case-result {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 6px;
  color: var(--result); border: 1.5px solid var(--result); background: var(--white);
  font-weight: 800; font-size: 15px; letter-spacing: -0.01em;
}
.case-title { margin-top: 12px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.case-summary {
  margin-top: 10px; font-size: 14px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.case-more { margin-top: auto; padding-top: 18px; font-size: 14px; }
.case-card--compact .case-thumb { display: none; }

.case-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.case-filter button {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.case-filter button:hover { border-color: var(--steel); color: var(--navy); }
.case-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.case-filter .count { margin-left: 4px; font-size: 13px; opacity: 0.7; }
.case-status { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: right; }
.case-empty { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.case-more-row { margin-top: 32px; display: flex; justify-content: center; }

.skeleton { border-radius: var(--radius); border: 1px solid var(--line); min-height: 360px; background: linear-gradient(90deg, var(--cool) 25%, var(--ice) 50%, var(--cool) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Blog banner */
.blog-banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px;
}
.blog-banner .icon { width: 64px; height: 64px; border-radius: 18px; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.blog-banner .icon svg { width: 30px; height: 30px; }
.blog-banner h3 { font-size: 22px; font-weight: 800; }
.blog-banner p { margin-top: 6px; color: var(--muted); }

/* ---------- Reviews marquee ---------- */
.reviews { overflow: hidden; }
.reviews .section-head { margin-bottom: 44px; }
.marquee {
  overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; width: max-content; animation: marquee 120s linear infinite; }
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 130s; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.shot {
  flex: none; height: 360px; margin-right: 20px; padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  background: var(--white); box-shadow: 0 10px 26px rgba(11, 42, 63, 0.1); cursor: zoom-in;
  transition: transform .25s, box-shadow .25s;
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11, 42, 63, 0.16); }
.shot img { height: 100%; width: auto; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(7, 29, 44, 0.82); }
.lightbox img { max-width: min(92vw, 760px); max-height: 88vh; width: auto; height: auto; border-radius: 12px; background: var(--white); }
.lightbox-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(111, 155, 180, 0.12); pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-top: 16px; }
.cta-band p { margin-top: 16px; color: rgba(255, 255, 255, 0.75); font-size: 17px; }
.cta-actions { display: grid; gap: 12px; }
.cta-actions .btn { width: 100%; min-height: 60px; font-size: 17px; justify-content: space-between; padding: 0 28px; }
.cta-actions .btn span { display: inline-flex; align-items: center; gap: 10px; }
.cta-actions .btn em { font-style: normal; font-weight: 600; opacity: 0.8; font-size: 15px; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -6%; bottom: -60%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 110, 142, 0.55), rgba(47, 110, 142, 0));
}
.page-hero .container { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; }
.page-hero h1 { margin-top: 16px; font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.page-hero p { margin-top: 16px; max-width: 640px; color: rgba(255, 255, 255, 0.75); font-size: 17px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }

/* ---------- About page ---------- */
.profile { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.profile-photo { position: relative; }
.profile-photo .frame { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.profile-photo img { width: 100%; height: auto; }
.profile-name { margin-top: 24px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.profile-name strong { font-size: 28px; font-weight: 800; }
.profile-name span { color: var(--muted); font-weight: 600; }
.greeting h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-top: 16px; }
.greeting p { margin-top: 20px; font-size: 17px; color: var(--muted); }
.greeting p strong { color: var(--navy); }
.signature { margin-top: 28px; font-weight: 700; color: var(--navy); }
.signature span { font-size: 22px; margin-left: 8px; }

.timeline-group { margin-top: 56px; }
.timeline-group h3 { font-size: 15px; font-weight: 800; letter-spacing: 0.12em; color: var(--steel); text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.timeline-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.timeline { margin-top: 20px; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-size: 14px; font-weight: 700; color: var(--steel); padding-top: 2px; }
.timeline .what { font-weight: 700; font-size: 17px; }
.timeline .what small { display: block; font-weight: 500; font-size: 14px; color: var(--muted); margin-top: 2px; }
.timeline .now { display: inline-block; margin-left: 8px; font-size: 12px; background: var(--navy); color: var(--white); padding: 2px 8px; border-radius: 4px; vertical-align: 2px; }

.why-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 64px; align-items: center; }
.why-photo { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.why-photo img { width: 100%; height: auto; }
.why-layout .section-head { margin-bottom: 32px; }
.why-layout .reasons { grid-template-columns: 1fr; gap: 14px; }
.why-layout .reason { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 26px 28px; }
.why-layout .reason .num { grid-row: span 2; font-size: 36px; }
.why-layout .reason h3 { margin-top: 0; }
.why-layout .reason p { margin-top: 6px; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason { background: var(--white); border-radius: var(--radius); padding: 36px 30px; border: 1px solid var(--line); }
.reason .num { font-size: 40px; font-weight: 800; color: var(--ice-strong); line-height: 1; }
.reason h3 { margin-top: 18px; font-size: 20px; font-weight: 800; }
.reason p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Practice page ---------- */
.practice-nav { position: sticky; top: var(--header-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.practice-nav ul { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: none; }
.practice-nav ul::-webkit-scrollbar { display: none; }
.practice-nav a { display: block; padding: 18px 18px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.practice-nav a:hover, .practice-nav a.is-active { color: var(--navy); border-color: var(--steel); }
.practice-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 96px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 64px); }
.practice-detail:last-child { border-bottom: 0; }
.practice-detail .lead h2 { margin-top: 14px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; }
.practice-detail .lead p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.point-list { display: grid; gap: 16px; }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 28px; border-radius: var(--radius); background: var(--cool); border: 1px solid var(--line); }
.point .n { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.point h3 { font-size: 18px; font-weight: 800; }
.point p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.practice-detail .btn-row { margin-top: 28px; }
.ruling { margin: 0 0 36px; }
.ruling-frame {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 400px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); cursor: zoom-in;
  background: linear-gradient(160deg, var(--ice) 0%, var(--cool) 100%); overflow: hidden;
}
.ruling-frame img {
  max-height: 100%; width: auto; max-width: 100%; object-fit: contain; background: var(--white);
  box-shadow: 0 14px 34px rgba(11, 42, 63, 0.16); transition: transform .3s;
}
.ruling-frame:hover img { transform: scale(1.03); }
.ruling-zoom {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700;
}
.ruling-zoom svg { width: 15px; height: 15px; }
.ruling figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ruling figcaption .case-result { font-size: 13px; padding: 2px 10px; }
.ruling.is-missing .ruling-frame { cursor: default; }
.ruling.is-missing .ruling-frame img, .ruling.is-missing .ruling-zoom { display: none; }
.ruling.is-missing .ruling-frame::after { content: "판결문 이미지 준비 중"; color: var(--muted); font-weight: 600; }

/* ---------- Contact page ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.channel {
  display: flex; flex-direction: column; gap: 6px; padding: 32px 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.channel:hover { border-color: var(--steel); box-shadow: var(--shadow); transform: translateY(-3px); }
.channel .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--white); margin-bottom: 14px; }
.channel .ic svg { width: 24px; height: 24px; }
.channel:nth-child(2) .ic { background: var(--steel); }
.channel:nth-child(3) .ic { background: var(--ice); color: var(--navy); }
.channel span { font-size: 14px; color: var(--muted); font-weight: 600; }
.channel strong { font-size: 21px; font-weight: 800; }
.channel em { font-style: normal; margin-top: 10px; font-size: 14px; color: var(--steel); font-weight: 700; }

.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: stretch; }
.steps { margin-top: 32px; display: grid; gap: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 32px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--ice-strong); }
.steps .n { width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 2px solid var(--steel); color: var(--steel); display: grid; place-items: center; font-weight: 800; }
.steps h3 { font-size: 18px; font-weight: 800; padding-top: 8px; }
.steps p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.office { margin-top: 8px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--navy); }
.office strong { display: block; font-size: 13px; font-weight: 800; color: var(--steel); letter-spacing: 0.04em; margin-bottom: 2px; }
.notice-box { margin-top: 12px; padding: 20px 22px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.form-card { background: var(--white); border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-card h3 { font-size: 24px; font-weight: 800; }
.form-card > p { margin-top: 8px; color: var(--muted); }
.nform { display: flex; flex-direction: column; justify-content: center; padding: 64px 60px; }
.nform h3 { font-size: clamp(26px, 2.6vw, 34px); }
.nform-ic { width: 68px; height: 68px; border-radius: 20px; background: var(--navy); color: var(--white); display: grid; place-items: center; margin-bottom: 26px; }
.nform-ic svg { width: 32px; height: 32px; }
.nform > p { margin-top: 14px; font-size: 18px; line-height: 1.7; }
.nform-list { margin: 32px 0 36px; display: grid; gap: 16px; padding: 28px 30px; background: var(--cool); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.nform-list li { position: relative; padding-left: 30px; font-size: 17px; color: var(--muted); }
.nform-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.nform .btn { width: 100%; min-height: 68px; font-size: 18px; }
.nform-sub { margin-top: 18px; font-size: 15px; color: var(--muted); text-align: center; }
.nform-sub a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Privacy page ---------- */
.policy { max-width: 820px; margin: 0 auto; }
.policy .intro { font-size: 17px; color: var(--muted); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.policy section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.policy h2 { font-size: 20px; font-weight: 800; }
.policy p, .policy li { margin-top: 10px; color: var(--muted); }
.policy ul { margin-top: 6px; padding-left: 0; }
.policy ul li { position: relative; padding-left: 16px; }
.policy ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--steel); }
.policy table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
.policy th, .policy td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy th { background: var(--cool); font-weight: 700; color: var(--navy); width: 30%; }
.policy td { color: var(--muted); }
.policy .effective { margin-top: 32px; font-weight: 700; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.site-footer .container { padding-top: 64px; padding-bottom: 40px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand img { width: 140px; height: auto; }
.footer-brand p { margin-top: 18px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.04em; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a:hover { color: var(--white); }
.footer-bottom { padding-top: 28px; padding-right: 180px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }
.footer-bottom .disclaimer { color: rgba(255, 255, 255, 0.5); max-width: 640px; }
.footer-bottom a { color: var(--white); font-weight: 700; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-contact a {
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px rgba(7, 29, 44, 0.22);
  transition: transform .2s, box-shadow .2s;
}
.float-contact a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(7, 29, 44, 0.28); }
.float-contact svg { width: 22px; height: 22px; flex: none; }
.float-contact .fc-phone { background: var(--navy); color: var(--white); }
.float-contact .fc-kakao { background: var(--steel); color: var(--white); }
.float-contact .fc-form { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { overflow-x: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .gnb { gap: 20px; }
  .gnb ul { gap: 20px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-card, .practice-card:nth-child(4), .practice-card:nth-child(5) { grid-column: span 1; }
  .practice-card:nth-child(5) { grid-column: 1 / -1; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .about-photo .badge { right: 16px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .section { padding: 80px 0; }
  .menu-toggle { display: inline-flex; }
  .gnb {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 120px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    overflow-y: auto;
  }
  .menu-open .gnb { opacity: 1; transform: none; visibility: visible; }
  .gnb ul { flex-direction: column; gap: 0; }
  .gnb ul a { display: block; padding: 18px 4px; font-size: 20px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
  .gnb ul a[aria-current="page"]::after { display: none; }
  .gnb ul a[aria-current="page"] { color: var(--steel); }
  .gnb .btn { margin-top: 24px; min-height: 56px; }
  .menu-open { overflow: hidden; }

  .hero .container { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 56px 0 24px; }
  /* 모바일: 프로필 사진을 버튼 위로 (오른쪽 사진 영역은 숨김) */
  .hero-visual { display: none; }
  .hero-copy { padding: 48px 0 56px; }
  .hero-photo-m {
    display: block; width: min(80%, 320px); margin: 32px auto 4px; overflow: hidden;
    aspect-ratio: 4 / 4.9; border-radius: 160px 160px 20px 20px;
    background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(11, 42, 63, 0.1);
  }
  .hero-photo-m img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
  .hero .btn-row { margin-top: 28px; }

  .promise, .about-summary, .profile, .contact-layout, .practice-detail, .cta-band .container, .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .profile-photo { position: static; max-width: 480px; }
  .why-layout { grid-template-columns: 1fr; gap: 32px; }
  .why-photo { max-width: 420px; }
  .practice-detail { padding: 64px 0; }
  .reasons, .channels { grid-template-columns: 1fr; }
  .blog-banner { grid-template-columns: 1fr; text-align: left; padding: 28px; gap: 18px; }
  .cta-band .container { padding-top: 72px; padding-bottom: 72px; }

  /* 모바일: 하단 고정 문의 바 */
  body { padding-bottom: 68px; }
  .footer-bottom { padding-right: 0; }
  .float-contact {
    left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(7, 29, 44, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .float-contact a {
    flex: 1; height: 68px; border-radius: 0; box-shadow: none; padding: 0;
    flex-direction: column; justify-content: center; gap: 4px; font-size: 13px;
  }
  .float-contact a:hover { transform: none; box-shadow: none; }
  .float-contact .fc-form { border: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .brand img { width: 32px; height: 32px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 11px; }
  .hero-sub { font-size: 16px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .practice-grid, .case-grid { grid-template-columns: 1fr; }
  .practice-card:nth-child(5) { grid-column: auto; }
  .form-card { padding: 28px 20px; }
  .nform { padding: 36px 22px; }
  .nform > p, .nform-list li { font-size: 16px; }
  .nform-list { padding: 22px 20px; }
  .why-layout .reason { grid-template-columns: 1fr; padding: 22px; }
  .why-layout .reason .num { grid-row: auto; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .career-list li, .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .about-photo .badge { right: 12px; bottom: 12px; padding: 14px 16px; }
  .page-hero .container { padding-top: 56px; padding-bottom: 56px; }
  .point { grid-template-columns: 1fr; padding: 22px; }
  .policy th { width: 36%; }
  .cta-actions .btn { padding: 0 20px; }
  .link-arrow { padding: 10px 0; }
  .shot { height: 280px; margin-right: 14px; }
  .ruling-frame { height: 340px; padding: 18px; }
  .channel { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 0; align-items: center; padding: 20px; }
  .channel .ic { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .channel strong { font-size: 17px; }
  .channel em { display: none; }
}
