/* =====================================================================
   법도 권리금소송센터 — styles.css
   브랜드: 시안 3 (미드나잇 네이비 + 딥 에메랄드 + 골드)
   순수 HTML 정적 사이트 / 상대경로 / SEO 우선
   ===================================================================== */

/* ---------- 0. 디자인 토큰 ---------- */
:root {
  /* 브랜드 색상 (references/20) */
  --navy:        #0A1830;
  --navy-2:      #12244A;
  --green:       #0F3D2E;
  --green-2:     #15533E;
  --gold:        #C9A961;
  --gold-bright: #D4AF37;
  --sage:        #6B8F71;
  --pale-gold:   #F5E6B8;
  --pale-green:  #CDE3D0;
  --ivory:       #FAF8F3;
  --white:       #FFFFFF;

  /* 텍스트 */
  --ink:         #1A2430;   /* 본문 다크 텍스트 */
  --ink-soft:    #4A5563;
  --ink-faint:   #7A828C;
  --on-dark:     #EAF0EC;   /* 다크 배경 위 텍스트 */
  --on-dark-soft:#B6C2BC;

  /* 표면 */
  --surface:     #FAF8F3;
  --surface-2:   #F1EFE8;
  --card:        #FFFFFF;
  --line:        #E3DFD5;
  --line-dark:   rgba(201,169,97,.22);

  /* 그라데이션 */
  --grad-dark:   linear-gradient(135deg, #0A1830 0%, #0F3D2E 100%);
  --grad-gold:   linear-gradient(90deg, #C9A961, #D4AF37);

  /* 타이포 */
  --f-sans: 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Malgun Gothic', sans-serif;
  --f-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;

  /* 레이아웃 */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 16px;
  --radius-sm: 10px;

  /* 모션 */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;

  /* 그림자 */
  --sh-1: 0 2px 8px rgba(10,24,48,.06);
  --sh-2: 0 10px 30px rgba(10,24,48,.10);
  --sh-3: 0 24px 60px rgba(10,24,48,.16);
}

/* ---------- 1. 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  letter-spacing: -.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip; /* 콘텐츠 가로 넘침이 있어도 레이아웃 뷰포트가 늘어나지 않게 (모바일 fixed 헤더 짤림 방지) */
}
/* 모바일에서 장식·이미지가 넘쳐도 고정 헤더(햄버거)가 밀리지 않도록 루트에서 차단 */
html { overflow-x: hidden; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4 { line-height: 1.18; font-weight: 800; letter-spacing: -.025em; }

/* 접근성 */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---------- 2. 레이아웃 유틸 ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-bright); display: inline-block;
}
.eyebrow--sage { color: var(--sage); }
.section-title {
  font-size: clamp(1.75rem, 4.4vw, 2.875rem); margin-top: 14px; color: var(--navy);
}
.section-title .accent { color: var(--gold-bright); }
.section-lead { margin-top: 16px; color: var(--ink-soft); font-size: clamp(0.9375rem,1.7vw,1.125rem); max-width: 62ch; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- 3. 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 0.9375rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--grad-gold); color: var(--navy); box-shadow: 0 8px 22px rgba(212,175,55,.32); }
.btn--gold:hover { box-shadow: 0 14px 30px rgba(212,175,55,.42); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(201,169,97,.10); }
.btn--navy { background: var(--navy); color: var(--ivory); }
.btn--navy:hover { background: var(--green); }
.btn--lg { padding: 17px 32px; font-size: 1rem; }

/* ---------- 4. 헤더 / 네비 ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s, backdrop-filter .4s;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad-gold); color: var(--navy); font-weight: 900; font-size: 1.0625rem;
  font-family: var(--f-serif);
}
.brand__logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-size: 1.0625rem; font-weight: 800; color: var(--on-dark); letter-spacing: -.02em; white-space: nowrap; }
.brand__text span { font-size: 0.6562rem; color: var(--gold); letter-spacing: .06em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__item > a {
  display: inline-block; padding: 10px 13px; font-size: 0.9375rem; font-weight: 600; color: var(--on-dark-soft);
  border-radius: 8px; transition: color .25s, background .25s; white-space: nowrap;
}
.nav__item > a:hover { color: var(--pale-gold); }
.nav__drop {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px);
  min-width: 200px; padding: 8px; border-radius: 12px;
  background: rgba(10,24,48,.97); border: 1px solid var(--line-dark);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 110;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* 터치 기기: JS가 첫 탭에 .is-tapped를 붙여 드롭다운을 연다 (둘째 탭 = 이동) */
.nav__item.is-tapped .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__drop a {
  padding: 10px 14px; font-size: 0.875rem; font-weight: 500; color: var(--on-dark-soft);
  border-radius: 8px; white-space: nowrap; transition: color .2s, background .2s;
}
.nav__drop a:hover { background: rgba(201,169,97,.12); color: var(--pale-gold); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.header__auth { display: inline-flex; align-items: center; gap: 7px; }
.header__case {
  display: inline-flex; align-items: center; text-align: center; line-height: 1.25;
  font-size: 0.7188rem; font-weight: 700; color: var(--on-dark-soft);
  padding: 7px 13px; border: 1px solid var(--line-dark); border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s; white-space: nowrap;
}
.header__case:hover { color: var(--pale-gold); border-color: var(--gold); background: rgba(201,169,97,.1); }
.header__logout {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 7px 11px;
  border: 1px solid rgba(201,169,97,.34); border-radius: 999px;
  color: rgba(255,255,255,.72); background: rgba(4,12,25,.28);
  font-size: 0.7188rem; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s;
}
.header__logout:hover {
  color: var(--pale-gold); border-color: var(--gold); background: rgba(201,169,97,.12);
}
/* 로그인 상태(관리모드+로그아웃 두 버튼일 때): 세로 2단으로 쌓아 헤더 폭 절약
   — 가로로 나란히 두면 로고와 첫 메뉴(법도 권리금)가 겹치는 문제 방지 */
.header__auth:has(.header__logout) {
  flex-direction: column; align-items: stretch; gap: 4px;
}
.header__auth:has(.header__logout) .header__case,
.header__auth:has(.header__logout) .header__logout {
  justify-content: center; min-height: 0; padding: 4px 12px;
  border-radius: 8px; line-height: 1.3;
}
.header__phone {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.9375rem;
  color: var(--pale-gold); padding: 9px 18px; border: 1px solid var(--line-dark); border-radius: 999px;
  transition: border-color .25s, background .25s;
  white-space: nowrap; flex-shrink: 0; /* 로그인(관리모드·로그아웃) 버튼이 있어도 전화번호는 한 줄 유지 */
}
.header__phone:hover { border-color: var(--gold); background: rgba(201,169,97,.1); }

/* 스크롤 시 헤더 */
.header.is-scrolled {
  background: rgba(10,24,48,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(201,169,97,.16);
}

/* 밝은 본문으로 바로 시작하는 게시판 내용·글쓰기 화면용 헤더 */
.header.header--solid {
  background:
    linear-gradient(90deg, rgba(6,16,33,.97), rgba(10,24,48,.93) 52%, rgba(15,33,62,.96));
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(201,169,97,.32);
  box-shadow: 0 12px 34px rgba(3,9,20,.2);
}

/* 모바일 토글 */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display:block; width:22px; height:2px; background: var(--on-dark); margin: 5px auto; transition: .3s; }

/* ---------- 5. 히어로 ---------- */
.hero {
  position: relative; background: #120b0e; color: var(--on-dark);
  padding-top: 150px; padding-bottom: clamp(80px, 12vw, 150px); overflow: hidden;
}
.hero > picture { position:absolute; inset:0; z-index:0; }
.hero__bg { position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; object-position: center center; opacity:1; }
.hero__bg + .hero__orb, .hero__bg ~ * { position: relative; }
.hero::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(90deg, rgba(14,8,11,.94) 0%, rgba(20,9,13,.78) 35%, rgba(20,9,13,.18) 68%, rgba(8,5,6,.12) 100%); }
.hero > .container { position: relative; z-index: 2; }
.hero__orb, .hero__grid-lines { z-index: 1; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; pointer-events: none; }
.hero__orb--1 { width: 460px; height: 460px; background: #17604A; top: -120px; right: -80px; }
.hero__orb--2 { width: 380px; height: 380px; background: #1E356B; bottom: -140px; left: -100px; opacity: .4; }
.hero__grid-lines { position:absolute; inset:0; background-image: linear-gradient(rgba(201,169,97,.05) 1px, transparent 1px); background-size: 100% 46px; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); pointer-events:none; }
.hero__inner { position: relative; }
.hero__copy { max-width: 680px; }
.hero__eyebrow { color: var(--gold-bright); font-weight: 700; letter-spacing: .16em; font-size: 0.8125rem; }
.hero h1 {
  font-size: clamp(1.875rem, 4.4vw, 3.625rem); margin-top: 18px; line-height: 1.16; letter-spacing: -.03em;
}
.hero h1 .g { color: var(--gold-bright); }
.hero__sub { margin-top: 22px; font-size: clamp(1rem, 2.1vw, 1.25rem); color: var(--on-dark-soft); max-width: 54ch; }
.hero__cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__badges .bd {
  font-size: 0.8125rem; font-weight: 600; color: #f1dfc1;
  padding: 8px 15px; border: 1px solid rgba(212,175,55,.34); border-radius: 999px;
  background: rgba(58,18,28,.48); backdrop-filter: blur(10px);
}
.hero__badges .bd b { color: var(--pale-gold); font-weight: 800; }
.scroll-cue { position:absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 0.6875rem; letter-spacing:.3em; color: var(--on-dark-soft); }
.scroll-cue::after { content:""; display:block; width:1px; height:34px; margin: 8px auto 0; background: linear-gradient(var(--gold), transparent); }

/* ---------- 6. 신뢰 배지 그리드 (8무기 — 라이트) ---------- */
.weapons { background: var(--surface); color: var(--ink); position: relative; }
.weapons__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.weapon {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px;
  background: var(--card); box-shadow: var(--sh-1);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.weapon:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--sh-2); }
.weapon__no { font-family: var(--f-serif); font-size: 0.9375rem; color: var(--gold-bright); }
.weapon h3 { font-size: 1.0625rem; margin-top: 10px; color: var(--navy); font-weight: 700; letter-spacing:-.02em; }
.weapon p { font-size: 0.8438rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }

/* ---------- 7. 미디어 로고 라인 ---------- */
.media { background: var(--navy); padding-bottom: clamp(48px,7vw,80px); }
.media__label { text-align:center; font-size: 0.75rem; letter-spacing:.25em; color: var(--on-dark-soft); text-transform: uppercase; }
.media__row { display:flex; flex-wrap:wrap; justify-content:center; gap: 14px 30px; margin-top: 22px; align-items:center; }
.media__row .m { font-family: var(--f-serif); font-weight:700; font-size: clamp(1.0625rem,2.4vw,1.5rem); color: var(--on-dark-soft); opacity:.75; transition: color .3s, opacity .3s; }
.media__row .m:hover { color: var(--pale-gold); opacity:1; }

/* ---------- 8. 권리금회수 3단계 (시그니처 — 다크) ---------- */
.steps { background: var(--grad-dark); }
.steps .section-title { color: var(--white); }
.steps .section-lead { color: var(--on-dark-soft); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--sh-1); transition: transform .4s var(--ease), box-shadow .4s;
  overflow: hidden;
}
.step::before { content:""; position:absolute; top:0; left:0; width:100%; height:4px; background: var(--grad-gold); transform: scaleX(0); transform-origin:left; transition: transform .5s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.step:hover::before { transform: scaleX(1); }
.step__tag { display:inline-block; font-family: var(--f-serif); font-size: 0.8125rem; font-weight: 700; color: var(--navy); background: var(--pale-gold); padding: 4px 12px; border-radius: 999px; }
.step h3 { font-size: 1.3125rem; margin-top: 16px; color: var(--navy); }
.step h3 .when { color: var(--sage); font-size: 0.9375rem; font-weight: 700; }
.step p { margin-top: 12px; color: var(--ink-soft); font-size: 0.9375rem; }
.step ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.step li { position: relative; padding-left: 20px; font-size: 0.875rem; color: var(--ink); }
.step li::before { content:""; position:absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius:50%; background: var(--gold-bright); }

/* ---------- 9. 권리금소송이란 (GEO — 라이트) ---------- */
.about-lite { background: var(--surface); color: var(--ink); }
.about-lite__wrap { display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-lite__answer {
  font-size: clamp(1.0625rem,2.1vw,1.3125rem); line-height: 1.75; color: var(--ink);
  border-left: 3px solid var(--gold); padding-left: 22px;
}
.about-lite__answer b { color: var(--green-2); }
.about-lite__facts { display:flex; flex-direction: column; gap: 14px; }
.fact { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; background: var(--card); box-shadow: var(--sh-1); }
.fact b { color: var(--navy); font-size: 0.9375rem; }
.fact span { display:block; color: var(--ink-soft); font-size: 0.8438rem; margin-top: 4px; }

/* ---------- 10. 실적 카운터 ---------- */
.stats { background: var(--grad-dark); color: var(--on-dark); }
.stats__grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align:center; }
.stat__num { font-family: var(--f-serif); font-size: clamp(2.5rem,6vw,4rem); font-weight: 800; color: var(--gold-bright); line-height:1; }
.stat__num .plus { font-size: .5em; vertical-align: super; }
.stat__label { margin-top: 12px; font-size: 0.875rem; color: var(--on-dark-soft); }

/* ---------- 11. 칼럼 카드 ---------- */
.columns { background: var(--surface); }
.col-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 44px; }
.col-card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-1); transition: transform .4s var(--ease), box-shadow .4s; display:flex; flex-direction:column; }
.col-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.col-card__media { height: 8px; background: var(--grad-gold); }
.col-card__body { padding: 24px; display:flex; flex-direction:column; gap: 10px; flex:1; }
.col-card__src { font-size: 0.75rem; font-weight:700; color: var(--sage); letter-spacing:.04em; }
.col-card h3 { font-size: 1.125rem; color: var(--navy); line-height:1.4; }
.col-card p { font-size: 0.875rem; color: var(--ink-soft); flex:1; }
.col-card__more { font-size: 0.8125rem; font-weight:700; color: var(--gold-bright); }

/* ---------- 12. 변호사 미니 ---------- */
.attorney { background: var(--navy); color: var(--on-dark); }
.attorney__wrap { display:grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items:center; }
.attorney__photo {
  aspect-ratio: 4/5; border-radius: var(--radius); background:
    radial-gradient(circle at 50% 30%, rgba(201,169,97,.25), transparent 60%),
    linear-gradient(160deg, #12244A, #0F3D2E);
  border: 1px solid var(--line-dark); display:grid; place-items:center; position: relative;
}
.attorney__photo span { font-family: var(--f-serif); font-size: 1.25rem; color: var(--on-dark-soft); }
.attorney__photo img { width:100%; height:100%; object-fit: cover; border-radius: inherit; }
.attorney__name { font-size: clamp(1.625rem,3.4vw,2.375rem); color: var(--pale-gold); }
.attorney__name small { display:block; font-size: 0.875rem; color: var(--sage); font-weight:600; letter-spacing:.1em; margin-bottom: 8px; }
.attorney__badges { display:flex; flex-wrap:wrap; gap: 9px; margin: 20px 0; }
.attorney__badges .b { font-size: 0.8125rem; padding: 6px 13px; border:1px solid var(--line-dark); border-radius:999px; color: var(--pale-green); }
.attorney__desc { color: var(--on-dark-soft); font-size: 0.9688rem; }

/* ---------- 12.5 왜 법도인가 (다크 — 숫자+이유 통합) ---------- */
.whyus { background: var(--navy); color: var(--on-dark); }
.whyus .section-title { color: var(--white); }
.whyus .weapon {
  background: linear-gradient(160deg, rgba(15,61,46,.28), rgba(10,24,48,0));
  border: 1px solid var(--line-dark); box-shadow: none;
}
.whyus .weapon:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.whyus .weapon h3 { color: var(--pale-gold); }
.whyus .weapon p { color: var(--on-dark-soft); }

/* ---------- 13. 비용 미리보기 (라이트) ---------- */
.fee { background: var(--surface); }
.fee__card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: clamp(28px,4vw,48px); box-shadow: var(--sh-1); display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.fee__item { text-align:center; }
.fee__item h4 { font-size: 0.9375rem; color: var(--sage); font-weight:700; }
.fee__item .v { font-family: var(--f-serif); font-size: clamp(1.375rem,3vw,1.875rem); color: var(--navy); font-weight:800; margin-top: 8px; }
.fee__item p { font-size: 0.8125rem; color: var(--ink-faint); margin-top: 6px; }
.fee__note { text-align:center; margin-top: 24px; font-size: 0.8438rem; color: var(--ink-faint); }

/* ---------- 14. FAQ 아코디언 ---------- */
.faq { background: var(--ivory); }
.faq__list { max-width: 820px; margin: 44px auto 0; display:flex; flex-direction:column; gap: 12px; }
.faq__item { border:1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow:hidden; transition: border-color .3s; }
.faq__item[open] { border-color: var(--gold); }
.faq__q { list-style:none; cursor:pointer; padding: 20px 24px; font-weight:700; font-size: 1.0312rem; color: var(--navy); display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq__q::-webkit-details-marker { display:none; }
.faq__q .ic { flex-shrink:0; width:22px; height:22px; position:relative; }
.faq__q .ic::before, .faq__q .ic::after { content:""; position:absolute; background: var(--gold-bright); left:50%; top:50%; transform: translate(-50%,-50%); }
.faq__q .ic::before { width: 14px; height: 2px; }
.faq__q .ic::after { width: 2px; height: 14px; transition: transform .3s; }
.faq__item[open] .faq__q .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.9375rem; line-height:1.75; }

/* ---------- 15. CTA 밴드 ---------- */
.cta-band { background: var(--grad-dark); color: var(--on-dark); text-align:center; }
.cta-band h2 { font-size: clamp(1.625rem,4vw,2.625rem); color: var(--white); }
.cta-band h2 .g { color: var(--gold-bright); }
.cta-band p { margin-top: 14px; color: var(--on-dark-soft); font-size: 1rem; }
.cta-band__btns { margin-top: 30px; display:flex; gap: 14px; justify-content:center; flex-wrap:wrap; }
.btn--kakao { background: #FEE500; color: #191600; }
.btn--kakao:hover { background: #ffe100; }

/* ---------- 16. 푸터 ---------- */
.footer { background: #06101F; color: var(--on-dark-soft); padding-block: clamp(48px,7vw,80px) 40px; }
.footer__top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand b { font-size: 1.125rem; color: var(--pale-gold); font-family: var(--f-serif); }
.footer__brand p { margin-top: 14px; font-size: 0.8438rem; line-height: 1.9; }
.footer h4 { font-size: 0.8125rem; letter-spacing:.1em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.footer__links a, .footer__sisters a { display:block; font-size: 0.875rem; padding: 5px 0; color: var(--on-dark-soft); transition: color .25s; }
.footer__links a:hover, .footer__sisters a:hover { color: var(--pale-gold); }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.7812rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap: 10px; color: var(--ink-faint); }

/* ---------- 17. 모바일 고정 CTA 바 ---------- */
.mobile-bar { display:none; position:fixed; inset: auto 0 0 0; z-index: 90; }
.mobile-bar a { flex:1; text-align:center; padding: 15px 0; font-weight:800; font-size: 0.9375rem; }
.mobile-bar .call { background: var(--grad-gold); color: var(--navy); }
.mobile-bar .kakao { background: #FEE500; color:#191600; flex: .8; }

/* ---------- 18. 진입 애니메이션 (JS 토글) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s; }
.reveal[data-d="2"]{ transition-delay:.16s; }
.reveal[data-d="3"]{ transition-delay:.24s; }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none;} html{scroll-behavior:auto;} }

/* ---------- 19. 반응형 ---------- */
@media (max-width: 1024px){
  .weapons__grid{ grid-template-columns: repeat(2,1fr); }
  .stats__grid{ grid-template-columns: repeat(2,1fr); gap: 36px 24px; }
  .about-lite__wrap, .attorney__wrap{ grid-template-columns: 1fr; gap: 32px; }
  .col-grid{ grid-template-columns: 1fr 1fr; }
}
/* ── 모바일·태블릿 네비 (터치 기기는 호버 드롭다운 불가 → 햄버거 메뉴로 전환) ──
   ① 폭 1024px 이하(폰·태블릿 세로)  ② 폭과 무관하게 호버 없는 터치 기기
   (갤럭시 트라이폴드 펼침 10" 2160×1584처럼 CSS 폭이 1024를 넘는 터치 화면 포함) */
@media (max-width: 1024px), (hover: none) and (pointer: coarse){
  .nav{ display:none; }
  .nav-toggle{ display:block; }
  .nav.is-open{
    display:flex; position:fixed; inset:76px 0 auto 0; flex-direction:column; gap:0;
    background: rgba(10,24,48,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 12px var(--pad) 24px; border-top:1px solid var(--line-dark);
    max-height: calc(100vh - 76px); overflow-y:auto; -webkit-overflow-scrolling: touch;
  }
  .nav.is-open .nav__item{ width:100%; }
  .nav.is-open .nav__item > a{ display:block; padding: 14px 8px; font-size:1.0625rem; border-bottom:1px solid rgba(255,255,255,.06); }
  /* 하위메뉴: 터치 화면에서는 항상 펼쳐서 표시 (호버 없이도 모두 접근) */
  .nav.is-open .nav__drop{
    display:flex; position:static; transform:none; opacity:1; visibility:visible;
    min-width:0; padding:0; border:none; border-radius:0; background:transparent;
    box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none;
  }
  .nav.is-open .nav__drop a{
    padding: 12px 8px 12px 30px; font-size:0.9375rem; white-space:normal;
    color: rgba(245,230,184,.78); border-bottom:1px solid rgba(255,255,255,.04);
    border-radius:0; position:relative;
  }
  .nav.is-open .nav__drop a::before{
    content:''; position:absolute; left:13px; top:50%; width:7px; height:7px; margin-top:-5px;
    border-left:1.5px solid rgba(201,169,97,.55); border-bottom:1.5px solid rgba(201,169,97,.55);
  }
}
@media (max-width: 760px){
  .header__phone, .header__auth, .header__case, .header__logout{ display:none; }
  .float-consult{ display:none; }
  .steps__grid{ grid-template-columns: 1fr; }
  .col-grid, .fee__card{ grid-template-columns: 1fr; }
  .footer__top{ grid-template-columns: 1fr; gap: 28px; }
  .mobile-bar{ display:flex; }
  body{ padding-bottom: 54px; }
  .hero{ padding-top: 120px; }
  .hero__bg{ object-position: 64% center; }
  .hero::after{ background: linear-gradient(180deg, rgba(14,8,11,.78) 0%, rgba(14,8,11,.64) 100%); }
  /* (모바일 네비 패널 규칙은 1024px 블록으로 통합 — 하위메뉴 항상 펼침) */
}
@media (max-width: 460px){
  .weapons__grid{ grid-template-columns: 1fr; }
  .stats__grid{ grid-template-columns: 1fr; }
}

/* ---------- 승소 판결문 무한 롤링 슬라이더 (WHY 법도 섹션) ---------- */
.judgments { margin-top: 64px; }
.judgments__title {
  text-align: center; font-family: var(--f-serif); font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700; color: var(--on-dark); margin-bottom: 30px; letter-spacing: -.01em;
}
.judgments__title .accent { color: var(--gold-bright); }
.judgments__viewport {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.judgments__track {
  display: flex; gap: 22px; width: max-content;
  animation: judgmentsRoll 80s linear infinite;
}
.judgments__viewport:hover .judgments__track { animation-play-state: paused; }
@keyframes judgmentsRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 11px)); } /* 절반(-트랙 gap 절반)만큼 이동 → 두 벌 복제로 무한 루프 */
}
.judgment-card {
  flex: 0 0 auto; width: 250px; margin: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(201,169,97,.35); background: #fff;
  box-shadow: 0 14px 34px rgba(3,9,20,.45);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.judgment-card:hover { transform: translateY(-6px) scale(1.03); border-color: var(--gold-bright); box-shadow: 0 22px 48px rgba(3,9,20,.6); }
.judgment-card img { display: block; width: 100%; height: auto; }
.judgments__note { text-align: center; margin-top: 22px; font-size: 0.75rem; color: rgba(236,231,218,.55); }
@media (max-width: 760px){
  .judgments { margin-top: 44px; }
  .judgment-card { width: 200px; }
}
@media (prefers-reduced-motion: reduce){
  .judgments__track { animation: none; overflow-x: auto; }
  .judgments__viewport { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* ---------- 승소사례 판결문 갤러리 (cases.php, 밝은 배경용) ---------- */
.jcase-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 900px){ .jcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .jcase-grid { grid-template-columns: 1fr; } }
.jcase-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(10,24,48,.08);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.jcase-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(10,24,48,.16); }
.jcase-card a { display:block; }
.jcase-card img { display:block; width:100%; height:auto; border-bottom: 1px solid var(--line); }
.jcase-card figcaption { padding: 15px 17px 17px; display:flex; flex-direction:column; gap:4px; }
.jcase-amount { font-size: 1.0313rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.jcase-court { font-size: 0.8125rem; color: var(--ink-soft); }
.jcase-note { margin-top: 30px; font-size: 0.7812rem; color: var(--ink-faint); text-align: center; }
/* 판결문 라이트박스 오버레이 */
.jlb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(5, 11, 24, .88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s var(--ease);
  cursor: zoom-out;
}
.jlb-overlay.is-open { opacity: 1; }
.jlb-img {
  max-width: min(92vw, 640px); max-height: 92vh; width: auto; height: auto;
  border-radius: 10px; border: 1px solid rgba(201,169,97,.45);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: scale(.96); transition: transform .25s var(--ease);
}
.jlb-overlay.is-open .jlb-img { transform: scale(1); }
.jlb-close {
  position: absolute; top: 20px; right: 22px; z-index: 1;
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(201,169,97,.5); background: rgba(10,24,48,.72);
  color: #F5E6B8; font-size: 1.125rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.jlb-close:hover { background: rgba(201,169,97,.25); border-color: var(--gold-bright); transform: rotate(90deg); }
/* fee·about 등에서 쓰는 판결문 3장 미니 스트립 */
.jcase-strip { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 700px){ .jcase-strip { grid-template-columns: 1fr; } }
.jcase-more { text-align:center; margin-top: 26px; }

/* ===================================================================
   서브페이지 컴포넌트
   =================================================================== */
.page-hero { position: relative; background: var(--navy); color: var(--on-dark); padding: 130px 0 56px; overflow: hidden; }
.page-hero__bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.9; z-index:0; }
.page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(10,24,48,.72), rgba(15,61,46,.22)); z-index:1; }
.page-hero > .container { position: relative; z-index:2; }
.page-hero h1 { font-size: clamp(1.75rem,4.6vw,3.125rem); color: var(--white); }
.page-hero h1 .g { color: var(--gold-bright); }
.page-hero p { margin-top: 14px; color: var(--on-dark-soft); font-size: clamp(0.9375rem,1.9vw,1.125rem); max-width: 62ch; }

.crumb { font-size: 0.8125rem; color: var(--on-dark-soft); margin-bottom: 16px; display:flex; gap:8px; align-items:center; }
.crumb a { color: var(--gold); }
.crumb span { opacity:.5; }

.prose { max-width: 820px; }
.prose.wide { max-width: 980px; }
.prose h2 { font-size: clamp(1.4375rem,3vw,2rem); color: var(--navy); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; color: var(--navy); margin: 28px 0 10px; }
.prose p { color: var(--ink-soft); font-size: 1rem; margin: 12px 0; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose .lead { font-size: clamp(1.0625rem,2vw,1.25rem); color: var(--ink); line-height:1.7; border-left: 3px solid var(--gold); padding-left: 20px; margin-bottom: 28px; }
.prose .lead b { color: var(--green-2); }
.prose ul.ticks { display:flex; flex-direction:column; gap:10px; margin: 16px 0; }
.prose ul.ticks li { position: relative; padding-left: 28px; color: var(--ink); font-size: 0.9688rem; }
.prose ul.ticks li::before { content:""; position:absolute; left:4px; top:8px; width:14px; height:8px; border-left:2px solid var(--gold-bright); border-bottom:2px solid var(--gold-bright); transform: rotate(-45deg); }
.prose ol.num { counter-reset: n; display:flex; flex-direction:column; gap:12px; margin: 16px 0; }
.prose ol.num li { position: relative; padding-left: 44px; color: var(--ink); font-size: 0.9688rem; min-height: 30px; }
.prose ol.num li::before { counter-increment: n; content: counter(n); position:absolute; left:0; top:0; width:30px; height:30px; border-radius:50%; background: var(--grad-gold); color: var(--navy); font-weight:800; font-size:0.875rem; display:grid; place-items:center; }

.lawbox { background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 26px 28px; margin: 24px 0; border-left: 4px solid var(--gold); }
.lawbox b { color: var(--gold-bright); font-size: 0.9375rem; display:block; margin-bottom: 8px; }
.lawbox p { color: var(--on-dark-soft); font-size: 0.9375rem; margin: 4px 0; }

.info-table { width:100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9375rem; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--sh-1); }
.info-table th, .info-table td { padding: 14px 18px; text-align:left; border-bottom: 1px solid var(--line); }
.info-table thead th { background: var(--navy); color: var(--pale-gold); font-weight:700; font-size:0.875rem; }
.info-table tbody th { background: var(--surface-2); color: var(--navy); font-weight:700; width: 34%; }
.info-table tbody td { background: var(--card); color: var(--ink-soft); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

.timeline { display:flex; flex-direction:column; margin: 20px 0; }
.tl-item { position: relative; padding: 0 0 34px 68px; }
.tl-item::before { content:""; position:absolute; left: 23px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display:none; }
.tl-num { position:absolute; left:0; top:0; width: 48px; height: 48px; border-radius:50%; background: var(--grad-dark); color: var(--gold-bright); font-family: var(--f-serif); font-size:1.1875rem; font-weight:800; display:grid; place-items:center; z-index:1; border:1px solid var(--line-dark); }
.tl-item h3 { font-size: 1.1875rem; color: var(--navy); }
.tl-item p { color: var(--ink-soft); font-size: 0.9375rem; margin-top: 6px; }

.check-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 24px 0; }
.check-card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--sh-1); }
.check-card h3 { font-size: 1.0625rem; color: var(--navy); display:flex; align-items:center; gap:10px; }
.check-card h3::before { content:""; width: 22px; height:22px; border-radius: 6px; background: var(--grad-gold); flex-shrink:0; }
.check-card ul { margin-top: 12px; display:flex; flex-direction:column; gap:8px; }
.check-card li { padding-left: 18px; position: relative; font-size: 0.9062rem; color: var(--ink-soft); }
.check-card li::before { content:""; position:absolute; left:0; top:8px; width:6px; height:6px; border-radius:50%; background: var(--sage); }

.books { display:flex; gap: 28px; flex-wrap:wrap; justify-content:center; }
.book { text-align:center; max-width: 260px; }
.book img { border-radius: 8px; box-shadow: var(--sh-3); }
.book b { display:block; margin-top: 14px; color: var(--navy); font-size: 0.9375rem; }
.book span { font-size: 0.8125rem; color: var(--ink-faint); }

.press-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.press-card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--sh-1); transition: transform .4s var(--ease), box-shadow .4s; }
.press-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.press-card img { width:100%; aspect-ratio: 16/10; object-fit: cover; }
.press-card__body { padding: 18px 20px; }
.press-card__src { font-size:0.75rem; font-weight:700; color: var(--sage); }
.press-card h3 { font-size: 1rem; color: var(--navy); margin-top: 6px; line-height:1.45; }
.media-strip { border-radius: var(--radius); overflow:hidden; box-shadow: var(--sh-2); margin: 8px 0 40px; }
.media-strip img { width:100%; display:block; }

.form-wrap { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
.form { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,3vw,36px); box-shadow: var(--sh-1); }
.form .row { margin-bottom: 18px; }
.form label { display:block; font-size: 0.875rem; font-weight:700; color: var(--navy); margin-bottom: 7px; }
.form input, .form textarea, .form select { width:100%; padding: 13px 15px; border:1px solid var(--line); border-radius: 10px; font: inherit; font-size:0.9375rem; background: var(--ivory); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus, .form select:focus { outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.18); }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width:100%; justify-content:center; margin-top: 6px; }
.form .agree { font-size: 0.8125rem; color: var(--ink-faint); display:flex; gap:8px; align-items:flex-start; margin-bottom: 16px; }
.form .agree input { width:auto; margin-top:3px; }
.contact-aside { display:flex; flex-direction:column; gap: 18px; }
.contact-card { background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { color: var(--pale-gold); font-size: 1.0625rem; margin-bottom: 12px; }
.contact-card p { color: var(--on-dark-soft); font-size: 0.9062rem; line-height:1.8; }
.contact-card .big { font-family: var(--f-serif); font-size: 1.75rem; color: var(--gold-bright); font-weight:800; }
.map-embed { border-radius: var(--radius); overflow:hidden; border:1px solid rgba(201,169,97,.35); background: var(--card); box-shadow: 0 18px 45px rgba(10,24,48,.13), 0 3px 10px rgba(10,24,48,.08); color: var(--ink-faint); font-size:0.875rem; }
.map-embed__frame { display:block; width:100%; height:330px; border:0; background:var(--surface-2); }
.map-embed__footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:17px 18px 18px; border-top:1px solid var(--line); background:linear-gradient(135deg,rgba(250,248,243,.98),rgba(255,255,255,.98)); }
.map-embed__footer strong { display:block; color:var(--navy); font-family:var(--f-serif); font-size:1rem; }
.map-embed__footer span { display:block; margin-top:4px; color:var(--ink-soft); font-size:0.7812rem; line-height:1.55; }
.map-embed__actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; flex:0 0 auto; }
.map-embed__actions a { display:inline-flex; align-items:center; min-height:34px; padding:7px 10px; border:1px solid rgba(201,169,97,.55); border-radius:999px; color:var(--navy); background:rgba(255,255,255,.82); font-size:0.75rem; font-weight:800; transition:border-color .25s,background-color .25s,color .25s; }
.map-embed__actions a:hover,.map-embed__actions a:focus-visible { border-color:var(--gold); background:var(--navy); color:var(--pale-gold); outline:none; }
@media (max-width:560px){
  .map-embed__frame{ height:285px; }
  .map-embed__footer{ align-items:flex-start; flex-direction:column; padding:16px; }
  .map-embed__actions{ justify-content:flex-start; width:100%; }
  .map-embed__actions a{ min-height:40px; padding-inline:13px; }
}

.record-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 32px; }
.record-card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align:center; box-shadow: var(--sh-1); }
.record-card .n { font-family: var(--f-serif); font-size: clamp(1.875rem,4vw,2.625rem); color: var(--gold-bright); font-weight:800; }
.record-card .l { font-size: 0.875rem; color: var(--ink-soft); margin-top:8px; }

/* ===================================================================
   rbl365 이식 섹션 4종 — press-feature / attorney-intro / boards / location
   =================================================================== */

/* 언론이 주목하는 부동산 법률 전문가 */
.press-feature { position: relative; background: var(--navy); color: var(--on-dark); overflow: hidden; }
.press-feature__bg { position:absolute; inset:0; pointer-events:none; opacity:.45; }
.press-feature__bg .orb { position:absolute; width:420px; height:420px; border-radius:50%; filter:blur(120px); background:#17604A; top:-120px; right:-120px; }
.press-feature__inner { position:relative; z-index:1; }
.press-feature__head { text-align:center; max-width:780px; margin:0 auto 2.5rem; }
.press-feature__title { font-size: clamp(1.75rem,4vw,2.75rem); color: var(--white); margin-top:14px; }
.press-feature__title-accent { color: var(--pale-gold); }
.press-feature__lead { margin-top:16px; font-size: clamp(0.9375rem,1.7vw,1.125rem); color: var(--on-dark-soft); }
.press-feature__media { margin:0; border-radius: var(--radius); overflow:hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); border:1px solid var(--line-dark); }
.press-feature__media img { display:block; width:100%; height:auto; }
.press-feature__stats { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin:2.5rem 0 0; text-align:center; }
.press-feature__stat-num { display:block; font-family: var(--f-serif); font-size: clamp(1.75rem,3.6vw,2.625rem); font-weight:800; color: var(--gold-bright); line-height:1.1; }
.press-feature__stat-label { display:block; margin-top:8px; font-size:0.875rem; color: var(--on-dark-soft); }
.press-feature__cta { text-align:center; margin-top:2.5rem; }
@media (max-width:640px){ .press-feature__stats{ grid-template-columns:1fr; gap:26px; } }

/* 16년의 기록 — 변호사 소개 */
.attorney-intro { background: var(--surface); }
.attorney-intro__grid { display:grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem,5vw,4rem); align-items:start; }
@media (max-width:900px){ .attorney-intro__grid{ grid-template-columns:1fr; gap:3rem; } }
.attorney-photo { margin:0; }
.attorney-photo__frame { position:relative; border-radius: var(--radius); overflow:hidden; background: var(--surface-2); box-shadow: var(--sh-2); }
.attorney-photo__frame::after { content:""; position:absolute; inset:0; border:1px solid rgba(201,169,97,.35); border-radius: inherit; pointer-events:none; }
.attorney-photo__img { display:block; width:100%; height:auto; }
.attorney-photo__caption { margin-top:14px; display:flex; flex-direction:column; }
.attorney-photo__name { font-size:1.25rem; font-weight:800; color: var(--navy); }
.attorney-photo__role { font-size:0.875rem; color: var(--ink-faint); }
.attorney-intro__content { min-width:0; }
.attorney-intro__lead { margin-top:18px; font-size: clamp(1rem,1.8vw,1.125rem); color: var(--ink-soft); line-height:1.8; }
.attorney-intro__lead em { font-style:normal; color: var(--green-2); font-weight:700; }
.cert-badges { display:flex; flex-wrap:wrap; gap:9px; margin:20px 0 0; }
.cert-badges li { font-size:0.8125rem; font-weight:700; color: var(--green-2); background: rgba(107,143,113,.14); border:1px solid rgba(107,143,113,.35); padding:7px 14px; border-radius:999px; }
.career-highlights { margin:26px 0 0; display:flex; flex-direction:column; gap:0; border-top:1px solid var(--line); }
.career-highlights li { display:flex; gap:18px; padding:13px 2px; border-bottom:1px solid var(--line); font-size:0.9375rem; color: var(--ink-soft); align-items:baseline; }
.career-highlights__year { flex:0 0 74px; font-family: var(--f-serif); font-weight:800; color: var(--gold-bright); font-size:0.9375rem; }
.career-highlights__desc strong { color: var(--navy); }
.attorney-intro__cta { margin-top:28px; display:flex; gap:12px; flex-wrap:wrap; }

/* 공지사항 · 실무연구자료 */
.boards { background: var(--grad-dark); color: var(--on-dark); }
.boards__head { text-align:center; max-width:720px; margin:0 auto 3rem; }
.boards__head .section-title { color: var(--white); }
.boards__lead { margin-top:14px; color: var(--on-dark-soft); font-size: clamp(0.9375rem,1.6vw,1.0625rem); }
.boards__grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.boards__grid--single { grid-template-columns:1fr; max-width:760px; margin-inline:auto; }
@media (max-width:768px){ .boards__grid{ grid-template-columns:1fr; } }
.board-card { background: rgba(255,255,255,.04); border:1px solid var(--line-dark); border-radius: var(--radius); padding:26px 26px 22px; transition: transform .35s var(--ease), border-color .35s; display:flex; flex-direction:column; }
.board-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.board-card__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.board-card__title { font-size:1.125rem; color: var(--pale-gold); display:flex; align-items:center; gap:9px; }
.board-card__icon { font-size:1.25em; }
.board-list { display:flex; flex-direction:column; flex:1; }
.board-list__item { border-bottom:1px dashed rgba(255,255,255,.09); }
.board-list__item:last-child { border-bottom:none; }
.board-list__link { display:flex; align-items:center; gap:10px; padding:12px 2px; color: var(--on-dark-soft); font-size:0.9063rem; transition:color .2s; }
.board-list__link:hover { color: var(--pale-gold); }
.board-list__badge { flex-shrink:0; font-size:0.625rem; font-weight:800; letter-spacing:.06em; color: var(--navy); background: var(--gold-bright); padding:2px 7px; border-radius:999px; }
.board-list__title { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.board-list__date { flex-shrink:0; font-size:0.75rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.board-card__more { margin-top:16px; font-size:0.875rem; font-weight:700; color: var(--gold-bright); }
.board-card__more:hover { color: var(--pale-gold); }

/* 찾아오시는 길 */
.location { background: var(--ivory); }
.location__head { text-align:center; max-width:720px; margin:0 auto 3.5rem; }
.location__lead { margin-top:14px; color: var(--ink-soft); font-size: clamp(0.9375rem,1.6vw,1.0625rem); }
.location__grid { display:grid; grid-template-columns:7fr 5fr; gap:3rem; align-items:stretch; }
@media (max-width:900px){ .location__grid{ grid-template-columns:1fr; gap:2rem; } }
.location__map { min-height:420px; }
.map-frame { position:relative; width:100%; height:100%; min-height:420px; background: var(--grad-dark); border-radius: var(--radius); overflow:hidden; box-shadow: 0 20px 60px rgba(10,24,48,.15); }
.map-frame__embed { position:absolute; inset:0; width:100%; height:100%; border:0; z-index:1; }
.location__info { display:flex; flex-direction:column; gap:1.5rem; }
.info-block { border-bottom:1px solid rgba(0,0,0,.08); padding-bottom:1.15rem; }
.info-block:last-of-type { border-bottom:none; }
.info-block__label { font-size:0.6875rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color: var(--gold); margin:0 0 .5rem; }
.info-block__value { margin:0; font-size:1.0625rem; font-weight:600; color: var(--ink); line-height:1.55; letter-spacing:-.01em; }
.info-block__value a { color: var(--navy); border-bottom:1px solid var(--gold); }
.info-block__sub { display:block; font-size:0.875rem; font-weight:400; color: var(--ink-faint); margin-top:2px; }
.transit-list { display:flex; flex-direction:column; gap:6px; font-size:0.9688rem; color: var(--ink-soft); }
.transit-list strong { color: var(--navy); }

/* ===================================================================
   디자인 시스템 v2 — 박스 · SVG · 애니메이션
   =================================================================== */

/* ---- v2.1 리빌 변형 (스크롤 진입) ---- */
.reveal[data-anim="left"]  { transform: translateX(-36px); }
.reveal[data-anim="right"] { transform: translateX(36px); }
.reveal[data-anim="zoom"]  { transform: scale(.92); }
.reveal[data-anim="blur"]  { transform: none; filter: blur(10px); }
.reveal.is-in { transform: none; filter: none; }

/* ---- v2.2 SVG 아이콘 규격 ---- */
.ico { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-badge {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(201,169,97,.16), rgba(201,169,97,.05));
  border: 1px solid rgba(201,169,97,.35); color: var(--gold-bright);
  transition: transform .35s var(--ease), background .35s, box-shadow .35s;
}
*:hover > .ico-badge, .tbox:hover .ico-badge { transform: translateY(-3px) scale(1.06); background: var(--grad-gold); color: var(--navy); box-shadow: 0 10px 22px rgba(212,175,55,.35); }

/* SVG 선 그리기 (pathLength="1" 필요) */
.draw path, .draw line, .draw circle, .draw rect, .draw polyline {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s var(--ease) .15s;
}
.draw.is-in path, .draw.is-in line, .draw.is-in circle, .draw.is-in rect, .draw.is-in polyline { stroke-dashoffset: 0; }

/* ---- v2.3 코너 브래킷 — 모든 카드형 박스의 시그니처 ---- */
.tbox, .step, .weapon, .fee__item, .fact, .col-card, .record-card, .check-card, .board-card, .press-card, .contact-card, .book {
  position: relative;
}
.tbox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--sh-1);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.tbox:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--gold); }
.tbox--dark {
  background: linear-gradient(160deg, rgba(15,61,46,.28), rgba(10,24,48,0));
  border-color: var(--line-dark); box-shadow: none;
}
.tbox--dark:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.tbox h3, .tbox h4 { color: var(--navy); font-size: 1.0625rem; }
.tbox--dark h3, .tbox--dark h4 { color: var(--pale-gold); }
.tbox p { color: var(--ink-soft); font-size: 0.9063rem; margin-top: 8px; line-height: 1.65; }
.tbox--dark p { color: var(--on-dark-soft); }

.corner::before, .corner::after {
  content: ""; position: absolute; width: 20px; height: 20px; opacity: .5; pointer-events: none;
  transition: width .35s var(--ease), height .35s var(--ease), opacity .35s;
}
.corner::before { top: 10px; left: 10px; border-top: 2px solid var(--gold-bright); border-left: 2px solid var(--gold-bright); }
.corner::after  { bottom: 10px; right: 10px; border-bottom: 2px solid var(--gold-bright); border-right: 2px solid var(--gold-bright); }
.corner:hover::before, .corner:hover::after { width: 32px; height: 32px; opacity: 1; }

/* ---- v2.4 박스 그리드 ---- */
.box-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.box-grid--3 { grid-template-columns: repeat(3, 1fr); }
.box-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .box-grid--3, .box-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .box-grid, .box-grid--3, .box-grid--4 { grid-template-columns: 1fr; } }

/* 번호 박스 (조문·요건 목록용) */
.num-box { display: flex; gap: 16px; align-items: flex-start; }
.num-box__n {
  flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-gold); color: var(--navy); font-family: var(--f-serif);
  font-weight: 800; font-size: 1.0625rem;
}
.num-box__body b, .num-box__body strong { color: var(--navy); display: block; font-size: 0.9688rem; }
.num-box__body p, .num-box__body span { color: var(--ink-soft); font-size: 0.875rem; margin-top: 4px; display: block; line-height: 1.6; }

/* ---- v2.5 섹션 헤더 장식 ---- */
.sec-deco { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 16px; color: var(--gold); }
.sec-deco::before, .sec-deco::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sec-deco::after { background: linear-gradient(90deg, var(--gold), transparent); }
.sec-deco svg { width: 18px; height: 18px; }
.sec-deco--left { justify-content: flex-start; margin: 0 0 16px; }
.sec-deco--left::before { display: none; }

/* 골드 시머 텍스트 */
.shimmer {
  background: linear-gradient(110deg, var(--gold-bright) 20%, var(--pale-gold) 45%, var(--gold-bright) 70%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmerMove 5.5s linear infinite;
}
@keyframes shimmerMove { to { background-position: -220% 0; } }

/* 부유 장식 */
.floaty { animation: floatY 6.5s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* 페이지 히어로 워터마크 (하위페이지 우측 장식 SVG) */
.page-hero__mark {
  position: absolute; right: 4%; bottom: -14px; z-index: 1; pointer-events: none;
  width: clamp(130px, 17vw, 230px); height: auto; color: var(--gold); opacity: .2;
}
.page-hero { border-bottom: 1px solid rgba(201,169,97,.35); }

/* ---- v2.6 컴포넌트 마이크로 인터랙션 ---- */
.tl-num { position: relative; }
.tl-num::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(201,169,97,.45); opacity: 0; transform: scale(.8);
}
.tl-item:hover .tl-num::after { animation: ringPulse 1.6s var(--ease) infinite; }
@keyframes ringPulse { 0% { opacity: .9; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.35); } }

.info-table tbody tr { transition: background .25s; }
.info-table tbody tr:hover th { background: #E9E5D8; }
.info-table tbody tr:hover td { background: #FBF9F2; }

.faq__q .ic { transition: transform .3s var(--ease); }
.faq__item[open] .faq__q .ic { transform: rotate(180deg); }

.btn .btn__arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.board-list__badge { animation: badgeBlink 2.4s ease-in-out infinite; }
@keyframes badgeBlink { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* 아이콘 배치 보정 */
.fact { display: flex; gap: 14px; align-items: center; }
.step .ico-badge { margin: 14px 0 2px; }
.weapon .ico-badge { margin-bottom: 12px; }
.fee__item .ico-badge { margin: 0 auto 12px; }

/* prose 안 박스 간격 보정 */
.prose .box-grid li, .box-grid li { padding-left: 0; }
.box-grid li::before { display: none; }

@media (prefers-reduced-motion: reduce){
  .shimmer, .floaty, .board-list__badge { animation: none; }
  .draw path, .draw line, .draw circle, .draw rect, .draw polyline { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
}

/* 무료 온라인 상담 플로팅 배너 (rbl365 스타일) */
.float-consult {
  position: fixed; right: 0; top: 55%; transform: translateY(-50%); z-index: 96;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--grad-gold); color: var(--navy);
  padding: 16px 12px; border-radius: 14px 0 0 14px;
  font-weight: 800; font-size: 0.875rem; line-height: 1.3; text-align: center;
  box-shadow: -6px 8px 24px rgba(10,24,48,.28);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.float-consult:hover { transform: translateY(-50%) translateX(-4px); box-shadow: -10px 12px 30px rgba(10,24,48,.36); }
.fc-badge { background: var(--navy); color: var(--pale-gold); font-size: 0.6875rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
.fc-txt { display:block; }

/* 앵커 이동 시 고정 헤더 아래로 여백 */
[id] { scroll-margin-top: 96px; }

.attorney-full { display:grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items:start; }
.attorney-full__photo { border-radius: var(--radius); overflow:hidden; box-shadow: var(--sh-2); background: var(--surface-2); }
.attorney-full__photo img { width:100%; display:block; }

@media (max-width: 900px){
  .check-grid, .press-grid, .form-wrap, .attorney-full { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 460px){
  .record-grid { grid-template-columns: 1fr; }
  .tl-item { padding-left: 60px; }
}

/* ===================================================================
   Cinematic hero system v3 — luxury depth, light and parallax
   =================================================================== */
.hero,
.page-hero {
  --hero-scroll: 0px;
  isolation: isolate;
  perspective: 1100px;
  background: #050a12;
}
.hero { min-height: 100svh; display: flex; align-items: center; }
.hero > picture {
  overflow: hidden;
  transform: scale(1.035);
  animation: cinematicCameraBreath 16s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__bg,
.page-hero__bg {
  transform: translate3d(0, var(--hero-scroll), 0) scale(1.075);
  transform-origin: 50% 50%;
  will-change: transform, filter;
  animation: cinematicGrade 12s ease-in-out infinite alternate;
}
.page-hero { min-height: 390px; display: flex; align-items: flex-end; }
.cinema-layer {
  position: absolute;
  inset: -8%;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
}
.cinema-glow {
  background:
    radial-gradient(circle at 78% 48%, rgba(255,219,139,.28) 0, rgba(213,154,54,.1) 18%, transparent 42%),
    radial-gradient(circle at 61% 78%, rgba(34,108,89,.14), transparent 38%);
  mix-blend-mode: screen;
  animation: cinematicGlow 7s ease-in-out infinite alternate;
}
.cinema-beam {
  inset: -35% -15%;
  opacity: .42;
  background: linear-gradient(112deg, transparent 43%, rgba(255,232,179,.03) 48%, rgba(255,219,139,.2) 50%, rgba(255,232,179,.035) 53%, transparent 59%);
  mix-blend-mode: screen;
  filter: blur(5px);
  animation: cinematicBeam 12s cubic-bezier(.45,0,.25,1) infinite;
}
.cinema-particles {
  opacity: .54;
  background-image:
    radial-gradient(circle at 12% 70%, rgba(255,220,145,.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 29% 26%, rgba(255,238,190,.7) 0 1px, transparent 1.7px),
    radial-gradient(circle at 51% 62%, rgba(255,211,111,.7) 0 1.2px, transparent 2px),
    radial-gradient(circle at 67% 17%, rgba(255,232,169,.82) 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 74%, rgba(255,199,85,.85) 0 1.3px, transparent 2.2px),
    radial-gradient(circle at 91% 38%, rgba(255,239,199,.72) 0 .8px, transparent 1.8px);
  background-size: 310px 270px, 410px 330px, 370px 290px, 460px 350px, 390px 310px, 520px 390px;
  filter: drop-shadow(0 0 6px rgba(255,196,79,.55));
  animation: cinematicParticles 19s linear infinite;
}
.cinema-frame {
  inset: 0;
  opacity: .58;
  background:
    linear-gradient(90deg, rgba(3,7,13,.24), transparent 10%, transparent 90%, rgba(3,7,13,.22)),
    linear-gradient(180deg, rgba(4,8,15,.28), transparent 20%, transparent 78%, rgba(3,7,13,.42));
  box-shadow: inset 0 0 90px rgba(0,0,0,.22), inset 0 -1px rgba(225,186,103,.42);
}
.cinema-frame::before,
.cinema-frame::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(transparent, rgba(240,205,131,.48), transparent);
  box-shadow: 0 0 18px rgba(212,175,55,.22);
}
.cinema-frame::before { left: 2.2%; }
.cinema-frame::after { right: 2.2%; }
.hero::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3,8,15,.28) 0%, rgba(4,10,19,.2) 36%, rgba(4,9,16,.08) 64%, rgba(2,5,9,.04) 100%),
    linear-gradient(180deg, rgba(2,7,13,.18), transparent 52%, rgba(2,6,12,.32));
}
.page-hero::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3,9,18,.24) 0%, rgba(5,13,24,.17) 38%, rgba(4,10,17,.07) 70%, rgba(3,7,12,.05) 100%),
    linear-gradient(180deg, rgba(3,8,15,.12), transparent 54%, rgba(3,8,15,.34));
}
.hero > .container,
.page-hero > .container { z-index: 3; }
.page-hero__mark,
.scroll-cue { z-index: 3; }
.hero__copy,
.page-hero > .container { filter: drop-shadow(0 4px 24px rgba(0,0,0,.28)); }
.page-hero > .container { text-shadow: 0 1px 14px rgba(0,0,0,.5); } /* 패널이 투명해진 만큼 글자 가독 보강 */
.hero__copy {
  position: relative;
  max-width: min(820px, 100%);
  padding: clamp(24px, 3vw, 44px) clamp(22px, 3.4vw, 52px);
  /* 메인 유리 패널: 거의 완전 투명 — 사진이 그대로 보이고 골드 라인·글자 그림자만 남김 (2026-07-24) */
  background: linear-gradient(105deg, rgba(3,10,20,.1) 0%, rgba(4,13,25,.05) 68%, rgba(4,12,23,0) 100%);
  border: 1px solid rgba(230,195,119,.22);
  border-left: 3px solid rgba(218,177,82,.78);
  border-radius: 4px 28px 28px 4px;
  -webkit-backdrop-filter: blur(4px) saturate(1.02);
  backdrop-filter: blur(4px) saturate(1.02);
  box-shadow: 0 16px 50px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.04);
  text-shadow: 0 1px 5px rgba(0,0,0,.75), 0 2px 22px rgba(0,0,0,.55);
}
.page-hero > .container {
  isolation: isolate;
}
.page-hero > .container::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -28px;
  top: -24px;
  bottom: -24px;
  width: min(930px, calc(100vw - 48px));
  /* 유리 패널: 하위페이지도 동일하게 투명도 완화 (2026-07-24) */
  background: linear-gradient(105deg, rgba(3,10,20,.5) 0%, rgba(4,13,25,.32) 68%, rgba(4,12,23,.12) 100%);
  border: 1px solid rgba(230,195,119,.3);
  border-left: 3px solid rgba(218,177,82,.76);
  border-radius: 4px 24px 24px 4px;
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  backdrop-filter: blur(14px) saturate(1.04);
  box-shadow: 0 20px 60px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.06);
}
.hero__copy::before {
  display: none;
}
.scroll-cue::after { animation: cinematicScroll 2.2s ease-in-out infinite; }
@keyframes cinematicCameraBreath {
  from { transform: scale(1.035) translate3d(0,0,0); }
  to { transform: scale(1.085) translate3d(-.55%, -.4%, 0); }
}
@keyframes cinematicGrade {
  from { filter: saturate(.98) contrast(1.02) brightness(.98); }
  to { filter: saturate(1.08) contrast(1.05) brightness(1.06); }
}
@keyframes cinematicGlow {
  from { opacity: .5; filter: blur(2px); }
  to { opacity: 1; filter: blur(8px); }
}
@keyframes cinematicBeam {
  0%, 15% { transform: translate3d(-24%,0,0) rotate(.01deg); opacity: 0; }
  38%, 66% { opacity: .42; }
  88%, 100% { transform: translate3d(24%,0,0) rotate(.01deg); opacity: 0; }
}
@keyframes cinematicParticles {
  from { transform: translate3d(0, 3%, 0) scale(1); }
  to { transform: translate3d(-2%, -4%, 0) scale(1.035); }
}
@keyframes cinematicLine { from { opacity: .25; transform: scaleY(.72); } to { opacity: .9; transform: scaleY(1); } }
@keyframes cinematicScroll { 0%,100% { transform: scaleY(.35); transform-origin: top; opacity:.35; } 50% { transform: scaleY(1); opacity:1; } }
@media (max-width: 768px) {
  .hero { min-height: 760px; align-items: flex-start; }
  .page-hero { min-height: 350px; }
  .hero__bg, .page-hero__bg { transform: translate3d(0, var(--hero-scroll), 0) scale(1.08); transform-origin: 50% 50%; }
  .cinema-beam { opacity: .26; }
  .cinema-particles { opacity: .38; }
  .hero__copy {
    margin: 0 6px;
    padding: 24px 20px;
    border-radius: 4px 18px 18px 4px;
    background: linear-gradient(105deg, rgba(3,10,20,.9), rgba(4,13,25,.78));
  }
  .page-hero > .container::before {
    left: 12px;
    right: 12px;
    width: auto;
    top: -18px;
    bottom: -18px;
    border-radius: 4px 18px 18px 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero > picture,
  .hero__bg,
  .page-hero__bg,
  .cinema-layer,
  .hero__copy::before,
  .scroll-cue::after { animation: none !important; transform: none !important; }
}
