/* =========================================================
   법무법인(유) KNC — Design System & Styles
   Palette : Ink Navy / Brass Gold / Ivory
   Type    : Noto Serif KR (display) + Pretendard (body)
   ========================================================= */

:root {
  /* Brand */
  --ink-900: #0a1626;
  --ink-800: #0e1e34;
  --ink-700: #14263f;
  --ink-600: #1d3550;
  --navy: #12243d;

  --brass-600: #9a7638;
  --brass: #b8904e;
  --brass-300: #d4b473;
  --brass-100: #efe2c6;

  --ivory: #f7f4ee;
  --paper: #fbfaf7;
  --line: #e6e0d5;

  --text: #1a2233;
  --muted: #5b6472;
  --muted-2: #8a919c;
  --white: #ffffff;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(12, 22, 38, 0.06);
  --shadow: 0 18px 50px rgba(12, 22, 38, 0.12);
  --shadow-lg: 0 30px 80px rgba(12, 22, 38, 0.22);

  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  word-break: keep-all; /* 한글 어절(단어) 단위 줄바꿈 — 단어 중간에서 끊기지 않도록 */
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.serif { font-family: var(--serif); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass-600);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--brass);
}
.eyebrow.center::after {
  content: ""; width: 28px; height: 1px; background: var(--brass);
}
.section { padding: clamp(64px, 10vw, 130px) 0; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.25;
  color: var(--ink-800);
  margin: 18px 0 16px;
  letter-spacing: -0.02em;
}
.section-desc { color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.3s, color 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brass); color: #1a1204; box-shadow: 0 12px 30px rgba(184, 144, 78, 0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(184, 144, 78, 0.45); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn-dark { background: var(--ink-800); color: var(--white); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; width: auto; display: block; transition: opacity 0.3s; }
.brand-logo--dark { display: none; }
.site-header.scrolled .brand-logo--light { display: none; }
.site-header.scrolled .brand-logo--dark { display: block; }
/* legacy monogram (kept for any fallback) */
.brand-mark {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-600) 100%);
  color: #1a1204; font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(184, 144, 78, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--white); transition: color 0.4s; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.65); transition: color 0.4s; }
.footer-logo-img { height: 40px; width: auto; margin-bottom: 16px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 16px; font-size: 0.96rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.85); border-radius: 8px; transition: color 0.25s;
}
.nav a:hover { color: var(--white); }
.header-cta {
  margin-left: 14px; padding: 11px 22px; border-radius: 999px;
  background: var(--brass); color: #1a1204; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184, 144, 78, 0.4); }

/* scrolled state */
.site-header.scrolled {
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled .brand-name { color: var(--ink-800); }
.site-header.scrolled .brand-sub { color: var(--muted-2); }
.site-header.scrolled .nav a { color: var(--text); }
.site-header.scrolled .nav a:hover { color: var(--brass-600); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(184, 144, 78, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, var(--ink-900) 0%, var(--ink-700) 55%, var(--ink-800) 100%);
  color: var(--white); overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 80% at 30% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-mono {
  position: absolute; right: -4%; bottom: -10%;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(16rem, 40vw, 44rem); line-height: 0.8;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none; user-select: none;
}
.hero-inner { position: relative; z-index: 2; padding: 120px 0 80px; max-width: 860px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(212, 180, 115, 0.35);
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--brass-300); margin-bottom: 30px;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-300); box-shadow: 0 0 0 4px rgba(212, 180, 115, 0.2); }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 4.4rem); line-height: 1.18; letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero h1 em { font-style: normal; color: var(--brass-300); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255, 255, 255, 0.8); max-width: 640px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.5);
}
.hero-scroll .line { width: 1px; height: 46px; background: linear-gradient(var(--brass-300), transparent); animation: scrollLine 2s infinite; }
@keyframes scrollLine { 0% { opacity: 0.2; transform: scaleY(0.3); } 50% { opacity: 1; } 100% { opacity: 0.2; transform: scaleY(0.3); } }

/* trust strip */
.trust-strip {
  position: relative; z-index: 3; margin-top: -1px;
  background: var(--ink-800); border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.trust-item { padding: 30px 22px; text-align: center; color: var(--white); }
.trust-item .num { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--brass-300); font-weight: 700; }
.trust-item .lab { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-copy p { color: var(--muted); font-size: 1.06rem; margin-bottom: 18px; }
.about-copy p strong { color: var(--ink-800); font-weight: 600; }
.about-sign { margin-top: 30px; font-family: var(--serif); font-size: 1.15rem; color: var(--ink-700); }
.about-sign span { display: block; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.15em; color: var(--brass-600); margin-top: 4px; }

.about-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
  color: var(--white); padding: 46px 40px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.about-visual::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(184, 144, 78, 0.35), transparent 70%);
}
.about-visual .quote-mark { font-family: var(--serif); font-size: 5rem; color: var(--brass-300); line-height: 0.5; }
.about-visual blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.6; position: relative; z-index: 1; }
.about-visual .founded { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px; }
.about-visual .founded b { font-family: var(--serif); font-size: 2.4rem; color: var(--brass-300); }
.about-visual .founded span { font-size: 0.92rem; color: rgba(255,255,255,0.65); }

/* ---------- Strengths ---------- */
.strengths { background: var(--ink-900); color: var(--white); }
.strengths .section-title { color: var(--white); }
.strengths .section-desc { color: rgba(255,255,255,0.7); }
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.strength-card {
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius); padding: 34px 30px; transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.strength-card:hover { transform: translateY(-6px); border-color: rgba(212, 180, 115, 0.4); background: rgba(255, 255, 255, 0.06); }
.strength-card .idx { font-family: var(--serif); font-size: 0.95rem; color: var(--brass-300); letter-spacing: 0.1em; }
.strength-card h3 { font-family: var(--serif); font-size: 1.4rem; margin: 14px 0 12px; }
.strength-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.98rem; }

/* ---------- Practices ---------- */
.practices { background: var(--ivory); }
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.practice-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  position: relative; overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
}
.practice-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: 0.85rem; font-weight: 600; color: var(--brass-600); opacity: 0; transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.practice-more svg { width: 15px; height: 15px; transition: transform 0.3s; }
.practice-card:hover .practice-more { opacity: 1; transform: none; }
.practice-card:hover .practice-more svg { transform: translateX(3px); }
.practice-tags { margin-top: auto; }
.practice-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brass), var(--brass-300)); transition: width 0.45s var(--ease);
}
.practice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.practice-card:hover::before { width: 100%; }
.practice-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--ivory); color: var(--brass-600); margin-bottom: 20px; transition: background 0.4s, color 0.4s;
}
.practice-card:hover .practice-icon { background: var(--ink-800); color: var(--brass-300); }
.practice-icon svg { width: 26px; height: 26px; }
.practice-card h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-800); margin-bottom: 10px; }
.practice-card p { font-size: 0.94rem; color: var(--muted); margin-bottom: 16px; }
.practice-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.practice-tags span { font-size: 0.78rem; color: var(--brass-600); background: var(--brass-100); padding: 4px 11px; border-radius: 999px; }

/* ---------- Attorneys ---------- */
.attorneys { background: var(--paper); }
.attorney-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.attorney-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
  cursor: pointer; display: flex; flex-direction: column;
}
.attorney-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.attorney-portrait {
  position: relative; aspect-ratio: 1 / 1;
  background: linear-gradient(155deg, var(--ink-700) 0%, var(--ink-900) 100%);
  display: grid; place-items: center; overflow: hidden;
}
.attorney-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 70% 20%, rgba(184, 144, 78, 0.25), transparent 60%);
}
.attorney-monogram {
  font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 6vw, 4.6rem);
  color: rgba(255, 255, 255, 0.92); position: relative; z-index: 1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.attorney-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  object-fit: cover; object-position: 50% 12%; opacity: 0; transition: opacity 0.5s var(--ease);
}
.attorney-portrait.photo-ok .attorney-photo { opacity: 1; }
.attorney-portrait.photo-ok::after { opacity: 0.35; }
.attorney-portrait.photo-ok .attorney-monogram { opacity: 0; }
.attorney-card:hover .attorney-portrait.photo-ok .attorney-photo { transform: scale(1.04); transition: transform 0.6s var(--ease), opacity 0.5s; }
.attorney-badge {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-900); background: var(--brass-300); padding: 5px 12px; border-radius: 999px;
}
.attorney-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.attorney-role { font-size: 0.82rem; letter-spacing: 0.05em; color: var(--brass-600); font-weight: 600; }
.attorney-name { font-family: var(--serif); font-size: 1.55rem; color: var(--ink-800); margin: 4px 0 2px; }
.attorney-name-en { font-size: 0.8rem; color: var(--muted-2); letter-spacing: 0.06em; margin-bottom: 14px; }
.attorney-lead { font-size: 0.92rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.attorney-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.attorney-tags span { font-size: 0.75rem; color: var(--muted); background: var(--ivory); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.attorney-more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink-800); }
.attorney-more svg { width: 16px; height: 16px; transition: transform 0.3s; }
.attorney-card:hover .attorney-more svg { transform: translateX(4px); }
.attorney-more { color: var(--brass-600); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 22, 38, 0.6);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--paper); border-radius: var(--radius-lg); width: min(920px, 100%);
  max-height: 88vh; overflow: hidden; display: grid; grid-template-columns: 300px 1fr;
  grid-template-rows: minmax(0, 1fr);
  box-shadow: var(--shadow-lg); transform: translateY(24px) scale(0.98); transition: transform 0.4s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal-side {
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900)); color: var(--white);
  padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; position: relative;
}
.modal-mono {
  position: relative; width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(212, 180, 115, 0.4);
  font-family: var(--serif); font-size: 2.6rem; color: var(--brass-300); overflow: hidden; flex: none;
}
.modal-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%;
  opacity: 0; transition: opacity 0.4s var(--ease); z-index: 1;
}
.modal-mono.photo-ok .modal-photo { opacity: 1; }
.modal-mono.photo-ok .modal-mono-initial { opacity: 0; }
.modal-side .m-role { font-size: 0.82rem; color: var(--brass-300); letter-spacing: 0.05em; font-weight: 600; }
.modal-side .m-name { font-family: var(--serif); font-size: 2rem; }
.modal-side .m-name-en { font-size: 0.85rem; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; margin-top: -6px; }
.modal-side .m-badge { font-size: 0.82rem; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); }
.modal-side .m-contact { margin-top: auto; font-size: 0.85rem; color: rgba(255,255,255,0.75); display: flex; flex-direction: column; gap: 6px; }
.modal-side .m-contact a { color: var(--brass-300); }
.modal-body { padding: 40px 38px; overflow-y: auto; min-height: 0; }
.modal-body .m-lead { font-size: 1.02rem; color: var(--ink-700); line-height: 1.7; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.m-block { margin-bottom: 26px; }
.m-block h4 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-600); margin-bottom: 12px; font-weight: 700; }
.m-block ul { display: flex; flex-direction: column; gap: 8px; }
.m-block li { position: relative; padding-left: 18px; font-size: 0.94rem; color: var(--muted); line-height: 1.6; }
.m-block li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.modal-close {
  position: absolute; right: 18px; top: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white); display: grid; place-items: center; transition: background 0.3s;
}
.modal-close:hover { background: rgba(255,255,255,0.25); }
.modal-close svg { width: 20px; height: 20px; }

/* ---------- Practice Modal ---------- */
.pmodal {
  position: relative; background: var(--paper); border-radius: var(--radius-lg);
  width: min(760px, 100%); max-height: 88vh; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: translateY(24px) scale(0.98); transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.pmodal-overlay.open .pmodal { transform: none; }
.pmodal .modal-close { background: rgba(10,22,38,0.08); color: var(--ink-800); }
.pmodal .modal-close:hover { background: rgba(10,22,38,0.16); }
.pmodal-body { overflow-y: auto; padding: 0; min-height: 0; flex: 1 1 auto; }
.pm-hero {
  display: flex; align-items: center; gap: 20px; padding: 40px 40px 30px;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900)); color: var(--white);
}
.pm-icon {
  flex: none; width: 66px; height: 66px; border-radius: 17px; display: grid; place-items: center;
  background: rgba(212,180,115,0.15); color: var(--brass-300); border: 1px solid rgba(212,180,115,0.35);
}
.pm-icon svg { width: 32px; height: 32px; }
.pm-eyebrow { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-300); font-weight: 700; }
.pm-title { font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2rem); margin-top: 4px; }
.pm-lead { padding: 28px 40px 6px; font-size: 1.02rem; color: var(--ink-700); line-height: 1.85; }
.pm-section { padding: 22px 40px; }
.pm-section h4 {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-600);
  font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.pm-services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.pm-service { display: flex; gap: 12px; }
.pm-service-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: linear-gradient(var(--brass), var(--brass-600)); }
.pm-service b { display: block; color: var(--ink-800); font-size: 0.98rem; margin-bottom: 3px; }
.pm-service span { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.pm-cases { display: flex; flex-direction: column; gap: 10px; }
.pm-cases li { position: relative; padding: 12px 16px 12px 40px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-size: 0.93rem; color: var(--muted); line-height: 1.6; }
.pm-cases li::before {
  content: "✓"; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brass-100); color: var(--brass-600); font-size: 0.7rem; font-weight: 700; display: grid; place-items: center;
}
.pm-attorneys { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-attorney {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.pm-attorney:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pm-att-mono { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(155deg, var(--ink-700), var(--ink-900)); color: var(--brass-300); font-family: var(--serif); font-weight: 700; }
.pm-att-info { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.pm-att-info b { color: var(--ink-800); font-size: 0.96rem; }
.pm-att-info span { font-size: 0.78rem; color: var(--muted); }
.pm-cta {
  margin: 14px 40px 40px; padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ivory), var(--brass-100));
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.pm-cta p { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-800); }

@media (max-width: 620px) {
  .pm-hero { padding: 34px 24px 24px; }
  .pm-lead, .pm-section, .pm-cta { padding-left: 24px; padding-right: 24px; }
  .pm-cta { margin-left: 24px; margin-right: 24px; }
  .pm-services { grid-template-columns: 1fr; }
}

/* ---------- Consult ---------- */
.consult { background: linear-gradient(165deg, var(--ink-900) 0%, var(--ink-700) 100%); color: var(--white); position: relative; overflow: hidden; }
.consult::before {
  content: ""; position: absolute; left: -10%; bottom: -20%; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,144,78,0.22), transparent 65%);
}
.consult-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); position: relative; z-index: 1; }
.consult-intro .section-title { color: var(--white); }
.consult-intro .section-desc { color: rgba(255,255,255,0.75); }
.consult-points { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.consult-point { display: flex; gap: 14px; align-items: flex-start; }
.consult-point .cp-ic { flex: none; width: 42px; height: 42px; border-radius: 11px; background: rgba(212,180,115,0.15); color: var(--brass-300); display: grid; place-items: center; }
.consult-point .cp-ic svg { width: 20px; height: 20px; }
.consult-point b { display: block; font-size: 1.02rem; }
.consult-point span { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.consult-phone { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.15); }
.consult-phone .cp-label { font-size: 0.8rem; letter-spacing: 0.14em; color: var(--brass-300); }
.consult-phone .cp-num { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }

.consult-form-wrap { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 46px); box-shadow: var(--shadow-lg); }
.consult-form-wrap h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink-800); margin-bottom: 6px; }
.consult-form-wrap .cf-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }
.field label .req { color: var(--brass-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); font-family: inherit; font-size: 0.96rem; color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184,144,78,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { font-size: 0.78rem; color: #c0392b; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d05b4a; }
.field.invalid .err { display: block; }
.form-agree { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 22px; font-size: 0.86rem; color: var(--muted); }
.form-agree input { margin-top: 4px; accent-color: var(--brass-600); width: 16px; height: 16px; }
.form-agree a { color: var(--brass-600); text-decoration: underline; }
.form-submit { width: 100%; }
.form-note { font-size: 0.8rem; color: var(--muted-2); text-align: center; margin-top: 14px; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .fs-ic { width: 68px; height: 68px; border-radius: 50%; background: var(--brass-100); color: var(--brass-600); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .fs-ic svg { width: 34px; height: 34px; }
.form-success h4 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink-800); margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Location ---------- */
.location { background: var(--ivory); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.loc-map { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--white); }
.loc-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-facade {
  width: 100%; height: 100%; min-height: 380px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(184,144,78,0.14), transparent 60%),
    linear-gradient(160deg, var(--ink-700), var(--ink-900));
  color: var(--white); cursor: pointer; transition: filter 0.3s;
}
.map-facade:hover { filter: brightness(1.08); }
.map-pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,180,115,0.16); color: var(--brass-300); }
.map-pin svg { width: 30px; height: 30px; }
.map-addr { font-size: 0.98rem; color: rgba(255,255,255,0.85); max-width: 320px; }
.map-cta { font-weight: 600; color: var(--brass-300); font-size: 0.92rem; }
.loc-info { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(30px, 4vw, 46px); box-shadow: var(--shadow-sm); }
.loc-info h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink-800); margin-bottom: 24px; }
.loc-list { display: flex; flex-direction: column; gap: 20px; }
.loc-item { display: flex; gap: 16px; }
.loc-item .li-ic { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--ivory); color: var(--brass-600); display: grid; place-items: center; }
.loc-item .li-ic svg { width: 21px; height: 21px; }
.loc-item .li-label { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--brass-600); font-weight: 700; }
.loc-item .li-text { color: var(--muted); font-size: 0.96rem; }
.loc-item .li-text b { color: var(--ink-800); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255, 255, 255, 0.7); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand .brand-mark { margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.92rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--brass-300); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
/* 관리자 은닉 링크 — 주변 텍스트와 동일하게 보이며 밑줄 없음 */
.admin-link { color: inherit !important; text-decoration: none !important; cursor: text; }
.admin-link:hover { color: inherit; text-decoration: none; }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.4s;
}
.float-cta.show { opacity: 1; transform: none; }
.float-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow); transition: transform 0.3s var(--ease);
}
.float-btn:hover { transform: translateY(-3px) scale(1.02); }
.float-btn.call { background: var(--white); color: var(--ink-800); border: 1px solid var(--line); }
.float-btn.consult-fab { background: var(--brass); color: #1a1204; }
.float-btn svg { width: 18px; height: 18px; }

/* ---------- Reveal Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- Mobile Nav ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--ink-900); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; padding: 40px var(--gut);
  transform: translateX(100%); transition: transform 0.45s var(--ease); gap: 8px;
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--serif); font-size: 1.8rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu .mm-close { position: absolute; right: var(--gut); top: 28px; width: 46px; height: 46px; display: grid; place-items: center; }
.mobile-menu .mm-close svg { width: 26px; height: 26px; }
.mobile-menu .mm-cta { margin-top: 24px; }

/* ---------- Legal / Policy pages ---------- */
.legal-hero {
  position: relative; padding: 150px 0 60px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(184,144,78,0.2) 0%, transparent 55%),
    linear-gradient(160deg, var(--ink-900) 0%, var(--ink-700) 60%, var(--ink-800) 100%);
  color: var(--white);
}
.legal-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 80% at 30% 40%, #000 0%, transparent 75%); pointer-events: none;
}
.legal-hero .wrap { position: relative; z-index: 1; }
.legal-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.legal-breadcrumb a { color: var(--brass-300); }
.legal-breadcrumb span { color: rgba(255,255,255,0.4); }
.legal-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
.legal-hero .sub { color: rgba(255,255,255,0.72); margin-top: 12px; max-width: 640px; font-size: 1.02rem; }

.legal-main { background: var(--ivory); padding: clamp(50px, 7vw, 90px) 0; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.legal-nav {
  position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.legal-nav h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-600); margin-bottom: 14px; font-weight: 700; }
.legal-nav ul { display: flex; flex-direction: column; gap: 2px; }
.legal-nav a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; color: var(--muted); transition: background 0.2s, color 0.2s; }
.legal-nav a:hover, .legal-nav a.active { background: var(--ivory); color: var(--ink-800); }
.legal-nav .other { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-nav .other a { font-size: 0.86rem; color: var(--brass-600); }

.legal-doc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 60px); box-shadow: var(--shadow-sm); min-width: 0;
}
.legal-doc .doc-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 22px; margin-bottom: 30px;
  border-bottom: 2px solid var(--ink-800); font-size: 0.86rem; color: var(--muted);
}
.legal-doc .doc-meta b { color: var(--ink-800); }
.legal-doc .intro { font-size: 1.02rem; color: var(--muted); line-height: 1.85; margin-bottom: 34px; padding: 22px 24px; background: var(--ivory); border-radius: var(--radius); border-left: 3px solid var(--brass); }
.legal-doc h2 {
  font-family: var(--serif); font-size: 1.4rem; color: var(--ink-800); margin: 40px 0 8px;
  padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 100px;
}
.legal-doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-doc h2 .ch { display: block; font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.14em; color: var(--brass-600); font-weight: 700; margin-bottom: 6px; }
.legal-doc h3 { font-size: 1.06rem; color: var(--ink-700); margin: 26px 0 10px; font-weight: 700; }
.legal-doc h3 .art { color: var(--brass-600); margin-right: 8px; }
.legal-doc p { color: var(--muted); margin-bottom: 12px; line-height: 1.85; }
.legal-doc ul.doc-list { margin: 8px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.legal-doc ul.doc-list li { position: relative; padding-left: 20px; color: var(--muted); line-height: 1.75; }
.legal-doc ul.doc-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.legal-doc ol.doc-ol { margin: 8px 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.legal-doc ol.doc-ol li { color: var(--muted); line-height: 1.75; }
.legal-doc .callout {
  margin: 24px 0; padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900)); color: rgba(255,255,255,0.9);
}
.legal-doc .callout b { color: var(--brass-300); }
.legal-doc .contact-box { margin-top: 30px; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }
.legal-doc .contact-box h3 { margin-top: 0; }
.legal-doc .contact-box p { margin-bottom: 4px; }
.legal-doc a.inline-link { color: var(--brass-600); text-decoration: underline; }
.legal-updated { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted-2); }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .attorney-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: auto; padding: 32px 24px; aspect-ratio: auto; gap: 30px; }
  .about-visual blockquote { font-size: 1.25rem; }
  .consult-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: 92vh; }
  .modal-side { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 26px; }
  .modal-mono { width: 72px; height: 72px; font-size: 1.9rem; }
  .modal-side .m-contact { margin-top: 12px; width: 100%; }
}
@media (max-width: 620px) {
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .trust-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 16px;
  }
  .trust-item:nth-child(2n) { border-right: none; }
  .trust-item:nth-child(n+3) { border-bottom: none; }
  .practice-grid { grid-template-columns: 1fr; }
  .attorney-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 110px; }
}

/* ---------- Mobile Optimization (768px) ---------- */
@media (max-width: 768px) {
  body { padding-bottom: 60px; }
  
  /* Prevent iOS input auto-zoom */
  .field input, .field select, .field textarea {
    font-size: 16px !important;
  }
  
  /* Sticky Bottom CTA Bar */
  .float-cta {
    position: fixed; inset: auto 0 0 0; right: 0; bottom: 0;
    flex-direction: row; gap: 0; width: 100%; height: 60px;
    align-items: center; justify-content: stretch;
    transform: translateY(100%); transition: transform 0.4s var(--ease), opacity 0.4s;
    box-shadow: 0 -4px 20px rgba(12, 22, 38, 0.15);
    border-radius: 0; z-index: 99;
  }
  .float-cta.show { transform: none; }
  .float-btn {
    flex: 1; border-radius: 0; justify-content: center; height: 100%;
    padding: 0; font-size: 0.98rem; box-shadow: none;
    transition: background 0.3s;
  }
  .float-btn:hover { transform: none; }
  .float-btn.call { background: var(--white); color: var(--ink-800); border: none; border-right: 1px solid var(--line); }
  .float-btn.consult-fab { background: var(--brass); color: #1a1204; }
  .float-btn span { display: inline !important; }
}

/* ---------- Language Switcher ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}
.lang-switch .lang-divider {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}
.lang-btn {
  background: none;
  border: none;
  padding: 2px 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.25s, background-color 0.25s;
}
.lang-btn:hover {
  color: var(--white);
}
.lang-btn.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.12);
}

/* Scrolled Header lang-switch adaptation */
.site-header.scrolled .lang-switch {
  color: var(--muted-2);
}
.site-header.scrolled .lang-switch .lang-divider {
  color: var(--line);
}
.site-header.scrolled .lang-btn:hover {
  color: var(--brass-600);
}
.site-header.scrolled .lang-btn.active {
  color: var(--ink-800);
  background-color: rgba(184, 144, 78, 0.1);
}

/* Mobile Menu lang switcher */
.lang-switch-mobile {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.lang-switch-mobile .lang-divider {
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
}
.lang-switch-mobile .lang-btn {
  color: inherit;
  padding: 4px 10px;
}
.lang-switch-mobile .lang-btn:hover {
  color: var(--white);
}
.lang-switch-mobile .lang-btn.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.15);
}

