/* =========================================================
   법률사무소 보광 — 개인회생 랜딩
   로고 컬러(네이비 #0b1a33 / 골드 #b08a45) 기반 다크 톤
   모바일 우선, 900px 이상에서 PC 레이아웃
   ========================================================= */
:root {
  --navy-950: #050b16;
  --navy-900: #071121;
  --navy-800: #0a1730;
  --navy-700: #0f2040;
  --navy-600: #172c52;
  --line: rgba(214, 184, 120, 0.22);
  --gold: #b08a45;
  --gold-lt: #d6b878;
  --gold-pale: #efe2c2;
  --cream: #f7f2e7;
  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 255, 255, 0.66);
  --error: #e5484d;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gold-grad: linear-gradient(135deg, #f3dfa8 0%, #d6b878 38%, #b08a45 70%, #e7cf91 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px; /* 플로팅 CTA 높이만큼 */
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  cursor: pointer;
}
b,
strong {
  font-weight: 700;
}

.wrap {
  overflow: hidden;
}
.inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.br-m {
  display: inline;
}
.sec-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--white);
}
.sec-title b {
  color: var(--gold-lt);
  font-weight: 700;
}

/* 스크롤 등장 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 헤더 ===== */
.site-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 22px 20px;
}
.site-head__logo {
  width: 168px;
  height: auto;
}

/* ===== 1. 히어로 ===== */
.hero {
  position: relative;
  padding: 116px 0 44px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(214, 184, 120, 0.2) 0%, rgba(214, 184, 120, 0) 55%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 62%, var(--navy-900) 100%);
  text-align: center;
  isolation: isolate;
}
.hero::before {
  /* 상단 스포트라이트 */
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(243, 223, 168, 0.18) 0%, rgba(243, 223, 168, 0) 65%);
  z-index: -1;
}
.hero__deco {
  /* 로고 심볼을 큰 워터마크로 */
  position: absolute;
  top: 70px;
  left: 50%;
  width: 300px;
  height: 395px;
  transform: translateX(-50%);
  background: url('../img/mark-w.png') center / contain no-repeat;
  opacity: 0.05;
  z-index: -1;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-lt);
  letter-spacing: 0.02em;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero__q {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
}
/* 핵심 문구 : 골드 테두리 박스 + 큰 90% */
.hero__lead {
  position: relative;
  display: inline-block;
  margin-top: 18px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(214, 184, 120, 0.55);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 44, 82, 0.75) 0%, rgba(10, 23, 48, 0.85) 100%);
  box-shadow: 0 0 0 4px rgba(176, 138, 69, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--white);
}
.hero__lead-line {
  display: block;
}
.hero__lead-line + .hero__lead-line {
  margin-top: 2px;
}
.hero__lead em {
  font-style: normal;
  color: var(--gold-pale);
  background: linear-gradient(180deg, transparent 62%, rgba(176, 138, 69, 0.45) 62%);
  padding: 0 2px;
}
.hero__lead b {
  display: inline-block;
  font-size: 2.1em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  vertical-align: -0.1em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(214, 184, 120, 0.35));
}
.hero__title {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(176, 138, 69, 0.25));
}
.hero__title span {
  display: block;
  font-size: 0.78em;
  font-weight: 700;
}
.hero__sub {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-soft);
}
.hero__sub strong {
  color: var(--gold-pale);
}

/* ===== 2. 탕감 사례 롤링 ===== */
.cases {
  margin-top: 40px;
}
.cases__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  /* 기획안: 이미지(카드) 클릭 시 아무 반응 없음 */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.cases__track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 6px 0;
  /* 우측으로 롤링 : -50% → 0 (트랙은 JS 가 한 벌 복제) */
  animation: case-roll var(--roll-duration, 40s) linear infinite;
  will-change: transform;
}
@keyframes case-roll {
  from {
    transform: translate3d(var(--roll-from, -50%), 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cases__track {
    animation-duration: 120s;
  }
}
.ccard {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%);
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.ccard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold-grad);
  border-radius: 0 0 2px 2px;
}
.ccard__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-lt);
}
.ccard__title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  white-space: nowrap;
}
.ccard__area {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-soft);
  white-space: nowrap;
}
/* 법원 결정문 미니 서류 (HTML 로 그림 : 실제 한글 · 사건번호/이름은 마스킹) */
.cdoc {
  position: relative;
  height: 196px;
  margin: 14px 2px 0;
  padding: 12px 12px 0;
  overflow: hidden;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(120% 80% at 100% 100%, rgba(120, 100, 60, 0.12), transparent 60%),
    #f2eee4;
  color: #2b2b2b;
  font-family: var(--serif);
  transform: rotate(1.6deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.cdoc::after {
  /* 아래쪽은 그늘지며 스탬프 밑으로 들어가는 느낌 */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(242, 238, 228, 0) 0%, rgba(222, 214, 196, 0.7) 100%);
}
.cdoc__court {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  color: #333;
}
.cdoc__title {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.1em;
  color: #111;
}
.cdoc__row {
  margin-top: 5px;
  font-size: 7.5px;
  line-height: 1.3;
  white-space: nowrap;
  color: #333;
}
.cdoc__row + .cdoc__row {
  margin-top: 1px;
}
.cdoc__row span {
  display: inline-block;
  width: 3.4em;
  color: #555;
}
.cdoc__sub {
  margin-top: 6px;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2em;
}
.cdoc__text {
  margin-top: 2px;
  font-size: 7.5px;
  white-space: nowrap;
  color: #222;
}
.cdoc__lines {
  /* 본문 줄 (작아서 읽히지 않는 글줄 느낌) */
  display: block;
  height: 44px;
  margin-top: 5px;
  /* 글자 크기만 한 점선 줄 → 멀리서 본 작은 본문처럼 */
  background:
    repeating-linear-gradient(90deg, rgba(40, 40, 40, 0.42) 0 3px, transparent 3px 4px, rgba(40, 40, 40, 0.42) 4px 9px, transparent 9px 11px),
    transparent;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 6.5px), linear-gradient(90deg, #000 0 88%, transparent 88%);
  -webkit-mask-composite: source-in;
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 6.5px), linear-gradient(90deg, #000 0 88%, transparent 88%);
  mask-composite: intersect;
  filter: blur(0.35px);
}
.cdoc__seal {
  /* 붉은 법원 직인 : 정사각 관인 + 인주 질감 */
  position: absolute;
  top: 26px;
  right: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 2px;
  border: 2.2px solid #c3242b;
  border-radius: 3px;
  outline: 0.8px solid rgba(195, 36, 43, 0.85);
  outline-offset: -4.5px;
  color: #c3242b;
  font-family: var(--serif);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  opacity: 0.88;
  overflow: hidden;
}
.cdoc__seal b {
  font-weight: 900;
  transform: scale(0.92);
}
.cdoc__seal::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: url('../img/stamp-grain.png') 17px 9px / 60px 60px repeat;
  opacity: 0.6;
  pointer-events: none;
}
/* 탕감률 : 서류 위에 찍힌 빨간 인주 도장 */
.ccard__stamp {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 86%;
  /* 서류 아랫부분 안쪽에 온전히 찍히도록 끌어올림 */
  margin: -78px auto 22px;
  padding: 9px 8px 8px;
  border: 3px solid #c3242b;
  border-radius: 7px;
  /* 안쪽 가는 테두리 (이중 테두리 도장) */
  outline: 1.2px solid rgba(195, 36, 43, 0.9);
  outline-offset: -7px;
  background: transparent;
  color: #c3242b;
  font-family: var(--serif);
  transform: rotate(-7deg);
  mix-blend-mode: multiply; /* 종이에 인주가 스민 느낌 */
  opacity: 0.92;
  overflow: hidden;
}
.ccard__stamp::after {
  /* 인주가 덜 묻은 반점 */
  content: '';
  position: absolute;
  inset: -4px;
  background: url('../img/stamp-grain.png') 0 0 / 120px 120px repeat;
  opacity: 0.55; /* 질감은 남기되 숫자는 또렷하게 */
  pointer-events: none;
}
.ccard__stamp span {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  /* 픽셀 측정 기준: 라벨·숫자 잉크 중심을 같은 높이로 맞추는 보정값 */
  transform: translateY(0.08em);
}
.ccard__stamp b {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cases__note {
  margin-top: 14px;
  padding: 0 20px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
}

/* ===== 3. 탕감률 · 실적 ===== */
.rate {
  position: relative;
  padding: 72px 0 76px;
  text-align: center;
  background: var(--navy-950);
  isolation: isolate;
}
.rate__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  isolation: isolate;
  /* 블루 필터 : 이 파란 바탕 위에 사진의 명암만 얹음(img mix-blend-mode: luminosity) */
  background: #163a72;
}
.rate__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 60%; /* 모바일(세로 화면)은 저울이 보이도록 왼쪽 기준 */
  mix-blend-mode: luminosity;
  filter: contrast(1.1) brightness(1.15);
}
.rate__bg::after {
  /* 위아래만 섹션 색으로 이어지게 + 숫자 뒤만 살짝 어둡게(가독성) */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side, rgba(5, 11, 22, 0.55) 0%, rgba(5, 11, 22, 0.2) 70%, transparent 100%) 50% 42% / 82% 70% no-repeat,
    linear-gradient(180deg, var(--navy-950) 0%, rgba(5, 11, 22, 0) 18%, rgba(5, 11, 22, 0) 78%, var(--navy-950) 100%);
}
.rate__label {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(5, 11, 22, 0.55);
  box-shadow: 0 6px 18px rgba(2, 6, 14, 0.55);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-lt);
  text-shadow: 0 1px 6px rgba(2, 6, 14, 0.8);
}
.rate__num {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 그러데이션 글자라 text-shadow 대신 drop-shadow (어두운 그림자 + 은은한 골드 광) */
  filter: drop-shadow(0 6px 16px rgba(2, 6, 14, 0.85)) drop-shadow(0 2px 4px rgba(2, 6, 14, 0.6)) drop-shadow(0 0 28px rgba(214, 184, 120, 0.2));
}
.rate__num b {
  font-size: 120px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.rate__num span {
  font-size: 64px;
}
.rate__lead {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(2, 6, 14, 0.9), 0 1px 3px rgba(2, 6, 14, 0.7);
}
.rate__lead b {
  color: var(--gold-lt);
}
.rate__facts {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 36px auto 0;
}
.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 32px rgba(2, 6, 14, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-shadow: 0 1px 6px rgba(2, 6, 14, 0.7);
}
.fact__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.94);
}
.fact__label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
.fact__value {
  font-size: 15px;
  color: var(--text);
}
.fact__value b {
  margin-right: 2px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-pale);
}

/* ===== 4. 신청 가능 대상 ===== */
.target {
  padding: 72px 0;
  background: var(--navy-900);
}
.target__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.tcard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--navy-800);
}
.tcard__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 45%, rgba(214, 184, 120, 0.18), rgba(214, 184, 120, 0) 60%),
    linear-gradient(160deg, var(--navy-600), var(--navy-800));
  color: var(--gold-lt);
}
.tcard__icon {
  width: 46%;
  max-width: 72px;
  height: auto;
}
.tcard__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tcard__thumb::after {
  /* 사진 하단을 카드 본문(네이비)과 자연스럽게 연결 */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(10, 23, 48, 0) 0%, var(--navy-800) 100%);
  pointer-events: none;
}
.tcard__body {
  padding: 14px 14px 16px;
}
.tcard__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-pale);
}
.tcard__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ===== 5. 대표 변호사 ===== */
.lawyer {
  position: relative;
  padding: 48px 0 64px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 50% at 50% 18%, rgba(214, 184, 120, 0.1), transparent 70%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 100%);
  border-top: 1px solid var(--line);
}
.lawyer__body {
  display: flex;
  flex-direction: column-reverse;
}
/* 이름 + 이력 묶음 : 모바일은 사진 아래쪽 페이드에 살짝 겹쳐 올림 */
.lawyer__info {
  position: relative;
  z-index: 1;
  margin-top: -84px;
  text-align: center;
}
.lawyer__label span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-lt);
}
.lawyer__label span::before,
.lawyer__label span::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.lawyer__name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--serif);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(5, 11, 22, 0.7);
}
.lawyer__role {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-pale);
}
.lawyer__name b {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--white);
}
/* 이력 */
.lawyer__career {
  position: relative;
  margin-top: 20px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 17, 33, 0.9);
  box-shadow: 0 18px 40px rgba(2, 6, 14, 0.4);
  text-align: left;
}
.lawyer__career::before {
  /* 상단 금색 라인 */
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--gold-grad);
  border-radius: 0 0 2px 2px;
}
.lawyer__career-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-lt);
  letter-spacing: 0.06em;
}
.lawyer__career-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 184, 120, 0.4), transparent);
}
.lawyer__career li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.lawyer__career li + li {
  margin-top: 8px;
}
.lawyer__career li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.lawyer__career em,
.lawyer__now em {
  display: inline-block;
  margin-right: 6px;
  padding: 0 5px;
  border: 1px solid rgba(214, 184, 120, 0.5);
  border-radius: 3px;
  font-family: var(--serif);
  font-size: 0.82em;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
  color: var(--gold-lt);
  vertical-align: 0.08em;
}
/* 현재 직함 강조 줄 */
.lawyer__now {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(214, 184, 120, 0.22), rgba(214, 184, 120, 0.04));
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-pale);
}
.lawyer__now em {
  border-color: transparent;
  background: var(--gold-grad);
  color: var(--navy-900);
}
/* 사진 + 금색 아치 프레임 */
.lawyer__photo {
  position: relative;
  align-self: center;
  width: 78%;
  max-width: 320px;
  aspect-ratio: 760 / 1248;
  isolation: isolate;
}
.lawyer__arch {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 6%;
  bottom: 14%;
  z-index: -1;
  border: 1px solid rgba(214, 184, 120, 0.55);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(closest-side at 50% 38%, rgba(214, 184, 120, 0.26), rgba(176, 138, 69, 0.08) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.lawyer__arch::before {
  /* 안쪽 두 번째 아치 라인 */
  content: '';
  position: absolute;
  inset: 10px 10px 0;
  border: 1px solid rgba(214, 184, 120, 0.22);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.lawyer__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.lawyer__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  /* 아래쪽 + 좌우 끝(팔이 잘린 단면) 페이드 */
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 98%), linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 74%, transparent 98%), linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 12px 30px rgba(2, 6, 14, 0.5));
}
.lawyer__photo figcaption {
  display: none;
}
.lawyer__photo.is-empty {
  /* 사진이 없을 때 실루엣 플레이스홀더 */
  background:
    radial-gradient(circle at 50% 30%, rgba(214, 184, 120, 0.26) 0 17%, transparent 17.5%),
    radial-gradient(ellipse 46% 40% at 50% 92%, rgba(214, 184, 120, 0.2) 0 98%, transparent 100%);
}
.lawyer__photo.is-empty figcaption {
  display: block;
  position: absolute;
  bottom: 54px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== 6. 달라지는 점 ===== */
.change {
  position: relative;
  padding: 72px 0;
  background: var(--navy-900);
  isolation: isolate;
  overflow: hidden;
}
.change__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.change__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%; /* 가운데 문에서 새어 나오는 빛 */
  filter: brightness(0.62) contrast(1.12) saturate(0.9);
}
.change__bg::after {
  /* 위아래는 섹션 색으로 이어지게 + 제목 뒤 살짝 어둡게 */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side, rgba(7, 17, 33, 0.55), transparent) 50% 14% / 90% 34% no-repeat,
    linear-gradient(180deg, var(--navy-900) 0%, rgba(7, 17, 33, 0.3) 22%, rgba(7, 17, 33, 0.2) 60%, var(--navy-900) 100%),
    rgba(12, 32, 72, 0.45); /* 회색 대리석 → 네이비 톤 */
}
.change__title {
  text-align: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(2, 6, 14, 0.85), 0 1px 3px rgba(2, 6, 14, 0.6);
}
.change__title b {
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-lt);
}
.change__box {
  max-width: 560px;
  margin: 30px auto 0;
  padding: 26px 20px 22px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--navy-800);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.change__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(11, 26, 51, 0.14);
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-800);
}
.change__head svg {
  width: 22px;
  height: 22px;
  color: #c0392b;
}
.checks {
  margin-top: 16px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 26, 51, 0.1);
  border-radius: 10px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy-800);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.check + .check {
  margin-top: 8px;
}
.check__box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(11, 26, 51, 0.28);
  border-radius: 6px;
  background: var(--white);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.check__box svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
/* 체크 모션 : JS 가 순서대로 .is-on 을 붙인다 */
.check.is-on {
  border-color: rgba(176, 138, 69, 0.6);
  box-shadow: 0 4px 14px rgba(176, 138, 69, 0.18);
}
.check.is-on .check__box {
  border-color: var(--gold);
  background: var(--gold);
  animation: check-pop 0.35s ease;
}
.check.is-on .check__box svg {
  animation: check-draw 0.4s 0.08s ease forwards;
}
@keyframes check-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes check-pop {
  0% {
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== 7. 상담 신청 폼 ===== */
.apply {
  position: relative;
  padding: 72px 0 80px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(214, 184, 120, 0.14), rgba(214, 184, 120, 0) 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-950) 100%);
  border-top: 1px solid var(--line);
  scroll-margin-top: 0;
}
.apply__copy {
  text-align: center;
}
.apply__q {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}
.apply__q b {
  font-weight: 700;
  color: var(--gold-lt);
}
.apply__sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-soft);
}
.apply__sub b {
  color: var(--gold-pale);
}
.form {
  max-width: 480px;
  margin: 32px auto 0;
  padding: 28px 22px 26px;
  border-radius: 18px;
  background: var(--white);
  color: var(--navy-800);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.form__title {
  margin-bottom: 22px;
  text-align: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-800);
}
.form__title b {
  color: var(--gold);
}
.field + .field {
  margin-top: 14px;
}
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-800);
}
.field__label i {
  font-style: normal;
  color: var(--error);
}
.field__box {
  position: relative;
}
.field__box input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d6d9e0;
  border-radius: 10px;
  background: #f7f8fa;
  font-family: var(--sans);
  font-size: 16px; /* iOS 확대 방지 */
  color: var(--navy-800);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field__box input::placeholder {
  color: #a3a9b6;
}
.field__box input:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(176, 138, 69, 0.16);
}
.field__box--unit input {
  padding-right: 58px;
  text-align: right;
}
.field__unit {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-600);
  pointer-events: none;
}
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
}
.is-error .field__error {
  display: block;
}
.is-error .field__box input {
  border-color: var(--error);
  background: #fff7f7;
}
.agree {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 18px;
}
.agree__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.agree__check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.agree__mark {
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #c3c8d2;
  border-radius: 5px;
  background: var(--white);
  transition: all 0.2s ease;
}
.agree__check input:checked + .agree__mark {
  border-color: var(--gold);
  background: var(--gold);
}
.agree__check input:checked + .agree__mark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5.5px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.agree__check input:focus-visible + .agree__mark {
  box-shadow: 0 0 0 3px rgba(176, 138, 69, 0.3);
}
.agree__text {
  font-size: 13.5px;
  color: #4a5366;
}
.agree__view {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.agree .field__error {
  flex-basis: 100%;
  margin-top: 2px;
}
.agree.is-error .field__error {
  display: block;
}
.form__submit {
  display: block;
  width: 100%;
  height: 58px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f2040 0%, #172c52 100%);
  color: var(--gold-pale);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(11, 26, 51, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.form__submit:active {
  transform: translateY(1px);
}

/* ===== 푸터 ===== */
.footer {
  padding: 40px 0 36px;
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.46);
}
.footer__logo {
  width: 140px;
  height: auto;
  margin-bottom: 18px;
  opacity: 0.85;
}
.footer__info li span {
  display: inline-block;
  margin-right: 12px;
}
.footer__copy {
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== 개인정보 모달 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 7, 15, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__panel {
  width: 100%;
  max-width: 420px;
  padding: 28px 22px 22px;
  border-radius: 16px;
  background: var(--white);
  color: var(--navy-800);
}
.modal__title {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
.modal__body {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: #f5f6f9;
  font-size: 14px;
}
.modal__body dt {
  font-weight: 700;
  color: var(--navy-800);
}
.modal__body dt:not(:first-child) {
  margin-top: 12px;
}
.modal__body dd {
  margin-top: 2px;
  color: #4a5366;
}
.modal__note {
  margin-top: 12px;
  font-size: 12.5px;
  color: #6b7385;
}
.modal__close {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

/* ===== 상담 신청 팝업 (개인정보 모달보다 아래 층) ===== */
.modal--form {
  z-index: 90;
  padding: 16px;
}
.fmodal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal--form.is-open .fmodal__panel {
  transform: none;
}
.fmodal__slot .form {
  margin: 0;
  max-width: none;
  padding-top: 40px;
  box-shadow: none;
}
.fmodal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f2f5;
  cursor: pointer;
}
.fmodal__close::before,
.fmodal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-800);
  transform: translate(-50%, -50%) rotate(45deg);
}
.fmodal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
html.is-locked,
html.is-locked body {
  overflow: hidden;
}
/* 팝업이 열려 있는 동안 플로팅 버튼 숨김 */
html.is-form-open .cta-float {
  opacity: 0;
  visibility: hidden;
}

/* ===== 플로팅 CTA ===== */
.cta-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 11, 22, 0) 0%, rgba(5, 11, 22, 0.85) 55%);
  text-decoration: none;
  pointer-events: none;
}
.cta-float__pill {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  height: 60px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--navy-900);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 28px rgba(176, 138, 69, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: auto;
  animation: cta-breathe 2.4s ease-in-out infinite;
}
.cta-float__pill::after {
  /* 반짝임 */
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: cta-shine 3.2s ease-in-out infinite;
}
.cta-float__arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-900);
  position: relative;
}
.cta-float__arrow::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 6px;
  width: 6px;
  height: 6px;
  border: solid var(--gold-lt);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
@keyframes cta-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}
@keyframes cta-shine {
  0%,
  55% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

/* =========================================================
   PC
   ========================================================= */
@media (min-width: 900px) {
  .br-m {
    display: none;
  }
  .sec-title {
    font-size: 38px;
  }

  .site-head {
    padding: 30px 20px;
  }
  .site-head__logo {
    width: 220px;
  }

  .hero {
    padding: 170px 0 70px;
  }
  .hero__deco {
    top: 90px;
    width: 440px;
    height: 580px;
  }
  .hero__eyebrow {
    font-size: 17px;
  }
  .hero__q {
    margin-top: 28px;
    font-size: 30px;
  }
  .hero__lead {
    margin-top: 26px;
    padding: 26px 48px 24px;
    border-radius: 20px;
    font-size: 36px;
  }
  .hero__lead-line {
    display: inline;
  }
  .hero__lead-line + .hero__lead-line {
    margin-left: 0.25em;
  }
  .hero__title {
    margin-top: 34px;
    font-size: 60px;
    white-space: nowrap;
  }
  /* PC : "개인회생 전문 법률사무소" 한 줄 */
  .hero__title span {
    display: inline;
  }
  .hero__sub {
    margin-top: 24px;
    font-size: 18px;
  }

  .cases {
    margin-top: 64px;
  }
  .cases__track {
    gap: 20px;
  }
  .ccard {
    width: 250px;
    padding: 22px 20px 20px;
  }
  .ccard__title {
    font-size: 19px;
  }
  .ccard__area {
    font-size: 14px;
  }
  .cdoc {
    height: 214px;
  }
  .ccard__stamp {
    margin-top: -90px;
  }
  .ccard__stamp span {
    font-size: 19px;
  }
  .ccard__stamp b {
    font-size: 40px;
  }
  .cases__note {
    text-align: center;
    font-size: 13px;
  }

  .rate {
    padding: 110px 0;
  }
  .rate__label {
    font-size: 18px;
  }
  .rate__num b {
    font-size: 200px;
  }
  .rate__num span {
    font-size: 100px;
  }
  .rate__lead {
    font-size: 40px;
  }
  .rate__facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 960px;
    margin-top: 56px;
  }
  .fact {
    flex-direction: column;
    gap: 8px;
    padding: 28px 20px;
  }
  .fact__label {
    font-size: 18px;
  }
  .fact__value b {
    font-size: 40px;
  }

  .target {
    padding: 110px 0;
  }
  .target__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
  }
  .tcard__body {
    padding: 20px 20px 24px;
  }
  .tcard__title {
    font-size: 19px;
  }
  .tcard__desc {
    font-size: 15px;
  }

  .lawyer {
    padding: 90px 0 0;
  }
  .lawyer__body {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 56px;
  }
  /* PC : 사진 왼쪽에 라벨 · 이름 · 배지 · 이력을 왼쪽 정렬로 쌓음 */
  .lawyer__info {
    flex: 0 1 540px;
    margin: 0 0 90px;
    text-align: left;
  }
  .lawyer__label span {
    font-size: 17px;
  }
  .lawyer__label span::after {
    display: none;
  }
  .lawyer__name {
    justify-content: flex-start;
    gap: 14px;
    margin-top: 12px;
    text-shadow: none;
  }
  .lawyer__role {
    font-size: 22px;
  }
  .lawyer__name b {
    font-size: 64px;
  }
  .lawyer__career {
    margin-top: 28px;
    padding: 30px 34px 28px;
  }
  .lawyer__career li {
    font-size: 15px;
  }
  .lawyer__career li + li {
    margin-top: 9px;
  }
  .lawyer__now {
    margin-top: 10px;
    font-size: 16px;
  }
  .lawyer__photo {
    flex: 0 0 420px;
    width: 420px;
    max-width: none;
  }

  .change {
    padding: 110px 0;
  }
  .change__title {
    font-size: 30px;
  }
  .change__title b {
    font-size: 44px;
  }
  .change__box {
    max-width: 680px;
    margin-top: 44px;
    padding: 36px 40px 34px;
  }
  .change__head {
    font-size: 19px;
  }
  .check {
    padding: 16px 20px;
    font-size: 18px;
  }
  .check__box {
    width: 28px;
    height: 28px;
  }

  .apply {
    padding: 110px 0;
  }
  .apply__inner {
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: center;
    gap: 60px;
  }
  .apply__copy {
    text-align: left;
  }
  .apply__q {
    font-size: 42px;
  }
  .apply__sub {
    font-size: 22px;
  }
  .form {
    margin: 0;
    padding: 40px 36px 36px;
  }
  .form__title {
    font-size: 26px;
  }

  .footer {
    font-size: 13.5px;
  }

  .cta-float {
    padding-bottom: 22px;
  }
  .cta-float__pill {
    height: 66px;
    font-size: 21px;
  }
}
