/* ============================================================
   법무법인 채비 공통 스타일 (common.css)
   정본: DESIGN_TOKENS.md + 시안 3종 (homepage/membership/media-insight)
   언어: 샤프 4px 카드 + 필(100px) 버튼 + 솔리드 teal/orange
   ============================================================ */

/* ---------- 1. 디자인 토큰 ---------- */
:root {
  /* ---- 팔레트 (정본: Chaebi Brand Guidelines KR Jul 2026 최종) ----
     주색상: Radar Green #10574B + Blank White #FFFFFF (동일 비중 금지)
     포인트: Glasys Orange #E98A24 (메인 컬러 금지, 면적 50% 미만)
     보조: Moon Gray 3종 외 임의 회색 지양. */
  /* Primary */
  --teal: #10574B;        /* Radar Green  - 메인: 타이틀, 버튼, 강조 텍스트 */
  --teal-deep: #0C433A;   /* Radar Green 호버/딥 (유도값) */
  --orange: #E98A24;      /* Glasys Orange - 포인트 전용: CTA, 아이콘, 강조 요소 */
  --orange-deep: #C9731A; /* Orange 호버/딥 (유도값) */
  /* Moon Gray (보조색, 지정 3종만 사용) */
  --moongray-1: #7D7D7C;  /* 진한 회색 - 보조 텍스트 */
  --moongray-2: #ABA9A6;  /* 중간 회색 - 캡션/날짜 */
  --moongray-3: #D9D9D6;  /* 연한 회색 - 볍�, 구분선 */
  /* 중성 (텍스트 블랙 계열, 회색 아님) */
  --graphite: #1F2328;    /* 메인 텍스트, 헤드라인 */
  /* 배경 (고객 지정 참고색: ref-image 기준 #F0F0F0 대역) */
  --cloud: #F2F3F5;       /* 밝은 배경 - 카드, 섹션 구분 */
  /* 의미 별칭 */
  --ink: #1F2328;               /* = Graphite */
  --ink-dark: #1F2328;          /* 다크 섹션/헤더 배경 (Graphite 통일) */
  --gray: #7D7D7C;              /* 보조 텍스트 = Moon Gray 1 */
  --gray-light: #ABA9A6;        /* 캡션/날짜 = Moon Gray 2 */
  --line: #D9D9D6;              /* 볍�/구분선 = Moon Gray 3 */
  --line-light: rgba(217, 217, 214, 0.55); /* 연볍� (Moon Gray 3 파생) */
  --bg: #F0F0F0;                /* 페이지 기본 톤 (고객 지정 배경색) */
  --bg-warm: #F2F3F5;           /* 섹션 구분 = Cloud */
  --cream: rgba(255, 255, 255, 0.95); /* 하이라이트 (Blank White 계열) */
  --white: #FFFFFF;
  --error: #C2402E;

  /* 타이포 (가이드라인: 워드마크만 어그로체, 본문·제목 전부 Pretendard) */
  --font-display: 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif;
  --font-body: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* 레이아웃 */
  --container: 1520px;
  --container-narrow: 1180px;
  --pad-x: 64px;
  --section-y: 160px;
  --gap: 24px;
  --form-field-gap: 30px;
  --gnb-h: 68px;
  --subpage-hero-content-gap: 72px;
  --detail-title-content-gap: 40px;
  --detail-shell-rhythm: 48px;
  --detail-shell-read-width: var(--container-narrow);

  /* 쉐이프 */
  --radius-card: 4px;
  --radius-pill: 100px;
  --radius-input: 4px;

  /* 섀도 */
  --shadow-card: 0 1px 3px rgba(20, 20, 20, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(20, 20, 20, 0.14);
  --shadow-float: 0 6px 18px rgba(20, 20, 20, 0.22);

  /* 모션 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.2s var(--ease);
  --t-med: 0.35s var(--ease);
}

/* ---------- 2. 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* author 의 display 명시(.case-card{display:block} 등)가 UA [hidden] 을 덮어
   필터링이 화면에 안 먹히는 것을 방지 */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300; /* 가이드라인 서체 위계: 본문·캡션 Light */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all; /* 한글 어절 중간 줄바꿈 금지 (전역 상속) */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- 3. 폰트 ---------- */
/* Pretendard Variable 은 layout.tsx 의 jsdelivr CDN link 로 로드 (OFL).
   SB Aggro 는 워드마크 전용 상업폰트라 웹폰트 서빙하지 않음 (가이드라인 + 라이선스). */

/* ---------- 4. 타이포그래피 클래스 ---------- */
/* 한글 줄바꿈: 어절 중간 분리 방지 (단어가 넘칠 때만 예외 허용) */
h1, h2, h3, h4,
.display-1, .display-2, .display-3,
.section-head .section-sub, .lead, .body-text, .hero-sub,
.practice-card__title, .case-card__title, .insight-card__title, .feature-card__title {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.display-1 { /* 히어로 H1 */
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.display-2 { /* 섹션 H2 */
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.display-3 { /* 서브 H3 / 카드 타이틀 */
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
}
/* 섹션 영문 라벨은 그린 단일 (260805 피드백 1-3-2: 오렌지 라벨 반복 사용 금지) */
.eyebrow--accent { color: var(--teal); }
.eyebrow--on-dark { color: rgba(255, 255, 255, 0.85); }
.lead { font-size: 1.0625rem; line-height: 1.75; color: var(--gray); }
.body-text { font-size: 1rem; line-height: 1.7; color: var(--gray); }
.caption { font-size: 0.875rem; color: var(--gray-light); }

/* ---------- 5. 레이아웃 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.container--narrow { max-width: var(--container-narrow); }
.detail-shell { max-width: var(--detail-shell-read-width); margin-inline: auto; }
.detail-shell__content { margin-top: var(--detail-title-content-gap); }
.detail-shell__stack > * + * { margin-top: var(--detail-shell-rhythm); }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--light { background: var(--bg); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--warm { background: var(--bg-warm); color: var(--ink); }
.section--dark { background: var(--ink-dark); color: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }

.section--dark .body-text,
.section--ink .body-text,
.section--teal .body-text,
.section--dark .lead,
.section--ink .lead,
.section--teal .lead { color: rgba(255, 255, 255, 0.65); }

/* 섹션 헤더 패턴: eyebrow + H2 + 서브 카피 */
.section-head { max-width: 720px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head .section-sub { margin-top: 20px; font-size: 1rem; line-height: 1.7; color: var(--gray); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.section--dark .section-head .section-sub,
.section--ink .section-head .section-sub,
.section--teal .section-head .section-sub { color: rgba(255, 255, 255, 0.65); }

/* 그리드 */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
/* 업무 분야 카드 그리드: 4열 1행 (2열×2행은 홈에서 100vh 초과 → 4열로 조정) */
.grid--practice { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1025px) {
  .grid--practice { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .grid--practice > .practice-card { grid-column: span 2; }
  .grid--practice[data-count="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--practice[data-count="5"] > .practice-card:nth-child(4) { grid-column: 2 / span 2; }
  .grid--practice[data-count="6"] > .practice-card:nth-child(5) { grid-column: 3 / span 2; }
  .grid--practice[data-count="7"] > .practice-card:nth-child(5) { grid-column: 2 / span 2; }
}

/* ---------- 6. 버튼 (필) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-deep); }

.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-deep); }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-dark); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.8); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

/* 그린 섹션 위 CTA: 화이트 필 (그린 버튼이 그린 배경에 묻히는 것 방지) */
.btn--white { background: var(--white); color: var(--teal); }
.btn--white:hover { background: rgba(255, 255, 255, 0.88); }

.btn--sm { padding: 11px 24px; font-size: 0.875rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* 텍스트 링크 버튼 (전체 보기 →) */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--t-fast), gap var(--t-fast);
}
.link-more:hover { color: var(--teal); gap: 12px; }
.link-more svg { width: 16px; height: 16px; }
.section--dark .link-more, .section--ink .link-more, .section--teal .link-more { color: var(--white); }
.section--dark .link-more:hover, .section--ink .link-more:hover, .section--teal .link-more:hover { color: var(--orange); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.pagination__link:hover { border-color: var(--teal); color: var(--teal); }
.pagination__link.is-current { border-color: var(--teal); background: var(--teal); color: var(--white); }
.pagination__link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.pagination__pages--desktop { display: contents; }
.pagination__pages--mobile { display: none; }
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gray);
  font-weight: 700;
}

/* ---------- 7. 배지 / 태그 ---------- */
.badge { /* 결과 배지: 전부 승소 등 (차콜 제거 → 레이더그린, 260805 피드백 1-1) */
  display: inline-block;
  padding: 6px 14px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 3px;
  line-height: 1.4;
}
/* 자문 사례용 배지 제안안 (260805 피드백 2-6): 승패 표현이 맞지 않는 자문·수행 사례는
   송무 배지(그린 필)와 구분되는 아웃라인형으로 표기. 표기 문구는 고객 확정 대기. */
.badge--advisory {
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--teal);
}
/* 그린 배경 위 배지는 화이트 반전 (대비 확보) */
.section--teal .badge, .page-hero .badge { background: var(--white); color: var(--teal); }
.tag { /* 카테고리 필 태그 */
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}
.tag--on-dark { border-color: transparent; background: rgba(255, 255, 255, 0.16); color: var(--white); font-weight: 700; }

/* ---------- 8. 카드 ---------- */
.card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.card--bordered { border-color: var(--line-light); box-shadow: none; }
a.card, .card--link { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--line);
}

/* 8-1. 업무 분야 카드 (16:9: 사진 2/3 + 화이트 텍스트 1/3, 호버 시 그린 백페이스) */
/* 260805 피드백 2-3 + 승인 목업 practice-c5: 오버레이 없는 사진 + 텍스트 상하 중앙정렬,
   태그·설명은 호버 시 그린 뒷면에서만 노출 */
/* 카드 전체 비율 32:27 = 사진 16:9(2/3) + 화이트 박스 사진 높이의 50%(1/3) */
.practice-card {
  position: relative;
  aspect-ratio: 32 / 27;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--line-light);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow var(--t-med);
}
.practice-card:hover { box-shadow: var(--shadow-card-hover); }
.practice-card__front,
.practice-card__back {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.practice-card__back {
  z-index: 2;
  background: var(--teal);
  opacity: 0;
  transition: opacity 0.35s ease;
}
@media (hover: hover) and (min-width: 1025px) {
  .practice-card:hover .practice-card__back,
  .practice-card:focus-within .practice-card__back { opacity: 1; }
}
.practice-card__bg {
  height: 66.6%;
  flex: 0 0 66.6%;
  background-size: cover;
  background-position: center;
}
.practice-card__body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 26px;
}
.practice-card__title {
  font-size: 1.3125rem; line-height: 1.3; font-weight: 800;
  color: var(--ink); letter-spacing: -0.3px;
}
.practice-card__more {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.875rem; font-weight: 700; color: var(--teal);
  transition: color var(--t-fast);
}
.practice-card__more svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.practice-card:hover .practice-card__more svg { transform: translateX(5px); }
/* 뒷면(그린): 제목 + 설명 + 태그 */
.practice-card__back .practice-card__body { justify-content: center; padding: 0 18px; }
.practice-card__back .practice-card__title { color: var(--white); }
.practice-card__desc {
  margin-top: 12px; font-size: 0.8125rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78);
}
.practice-card__back .practice-card__more { display: none; }
/* 모바일/태블릿: 뒷면 비활성, 앞면(사진+제목)만 */
@media (max-width: 1024px) {
  .practice-card:hover { box-shadow: var(--shadow-card); }
  .practice-card__back { display: none; }
}
@media (min-width: 1025px) {
  .practice-card { min-height: 216px; }
}
@media (max-width: 768px) {
  .practice-card__body { padding: 0 18px; }
  .practice-card__title { font-size: 1.125rem; }
}

/* 8-2. 구성원 카드 (이미지형, aspect 3/4.8, 호버 시 약력) */
.member-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.8;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--moongray-3);
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-med), border-color var(--t-med), transform var(--t-med);
}
.member-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--line); transform: translateY(-4px); }
.member-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-card__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(10, 10, 12, 0) 40%, rgba(10, 10, 12, 0.86) 100%);
}
.member-card__bio {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 20px 96px;
  opacity: 0;
  transition: opacity var(--t-med);
}
.member-card:hover .member-card__bio,
.member-card:focus-visible .member-card__bio { opacity: 1; }
.member-card__career { font-size: 0.875rem; line-height: 1.7; color: rgba(255, 255, 255, 0.85); white-space: pre-line; }
.member-card__email { margin-top: 10px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
.member-card__meta {
  position: absolute; left: 20px; right: 20px; bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.member-card__name { font-size: 1.125rem; font-weight: 800; color: var(--white); letter-spacing: -0.2px; }
.member-card__role { margin-top: 2px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.member-card__more {
  width: 18px; height: 18px; flex: 0 0 auto;
  color: var(--white); transition: transform var(--t-fast);
}
.member-card:hover .member-card__more { transform: translateX(5px); }

/* 8-3. 업무 사례 카드 (화이트, teal 탑바) */
.case-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.case-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--teal); transform: translateY(-4px); }
.case-card__bar { height: 5px; background: var(--teal); transition: height var(--t-fast), background var(--t-fast); }
.case-card:hover .case-card__bar { height: 8px; background: var(--teal); }
.case-card__body { padding: 28px 26px 26px; }
.case-card__badges { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.case-card__result { flex: 0 0 auto; line-height: 1; }
.case-card__tags { min-width: 0; display: flex; flex: 1 1 auto; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.case-card__tags .tag { padding: 4px 10px; font-size: 0.75rem; }
.case-card__title {
  margin-top: 14px;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.3;
  color: var(--ink);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card__desc {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card__foot {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; align-items: center;
}
.case-card__date { font-size: 0.875rem; color: var(--gray-light); }
.case-card__more {
  width: 18px; height: 18px; flex: 0 0 auto;
  color: var(--teal); transition: transform var(--t-fast);
}
.case-card:hover .case-card__more { transform: translateX(5px); }

/* 8-4. 인사이트 카드 (법더 카드형, 홈 슬라이더/리스트 공용) */
.insight-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  padding: 32px;
  text-decoration: none;
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.insight-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--line); transform: translateY(-4px); }
.insight-card__category { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.5px; color: var(--orange); }
.insight-card__category--teal { color: var(--teal); }
.insight-card__category--gray { color: var(--gray); }
.insight-card__title {
  margin-top: 14px;
  font-size: 1.1875rem; font-weight: 800; line-height: 1.4;
  color: var(--ink); letter-spacing: -0.2px;
  min-height: 3.9rem; /* 시안 리듬: 메타 라인 정렬 기준 */
}
.insight-card__meta { margin-top: 16px; font-size: 0.875rem; color: var(--gray); }

/* 8-5. 인사이트 리스트 로우 */
.insight-row {
  display: flex; align-items: baseline; gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line-light);
  text-decoration: none;
  transition: background var(--t-fast);
}
.insight-row:hover { background: rgba(16, 87, 75, 0.04); }
.insight-row:hover .insight-row__title { color: var(--teal); }
.insight-list { border-top: 1px solid var(--line-light); }
.insight-row__category { flex: 0 0 auto; width: 104px; font-size: 0.875rem; font-weight: 700; color: var(--orange); }
.insight-row__category--teal { color: var(--teal); }
.insight-row__category--gray { color: var(--gray); }
.insight-row__title { flex: 1; min-width: 0; font-size: 1.0625rem; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; transition: color var(--t-fast); }
/* 해시태그: 옅은 배경 소형 칩으로 분리 (260805 피드백 2-7) */
.insight-row__tags { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: 1px; }
.chip {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.5;
  white-space: nowrap;
}
.insight-row__date { flex: 0 0 auto; font-size: 0.875rem; color: var(--gray); }

/* 8-6. 혜택/피처 카드 (아이콘 + 타이틀 + 설명) */
.feature-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  padding: 30px;
  background: var(--white);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--line); }
.feature-card__icon { display: flex; color: var(--teal); }
.feature-card__icon svg { width: 28px; height: 28px; }
.feature-card__title { margin-top: 14px; font-size: 1.0625rem; font-weight: 800; line-height: 1.35; color: var(--ink); letter-spacing: -0.2px; }
.feature-card__desc { margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.65; color: var(--gray); }
.feature-card--center { padding: 36px 30px; text-align: center; }
.feature-card--center .feature-card__icon { justify-content: center; }
.feature-card--center .feature-card__title { margin-top: 0; color: var(--teal); }
/* 멤버십 혜택 위계 (260805 피드백 2-5-2): major 대형 / minor 소형 */
.feature-card--major { padding: 40px 34px; border-top: 3px solid var(--teal); }
.feature-card--major .feature-card__icon svg { width: 34px; height: 34px; }
.feature-card--major .feature-card__title { font-size: 1.25rem; }
.feature-card--major .feature-card__desc { font-size: 1rem; }
.feature-card--minor { padding: 22px 20px; }
.feature-card--minor .feature-card__icon svg { width: 22px; height: 22px; }
.feature-card--minor .feature-card__title { margin-top: 10px; font-size: 0.9375rem; }
.feature-card--minor .feature-card__desc { margin-top: 8px; font-size: 0.8125rem; }
.benefits-grid--minor { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
@media (max-width: 1024px) { .benefits-grid--minor { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .benefits-grid--minor { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 9. 탭 필터 (필 토글 그룹) ---------- */
.tab-filter { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-filter--center { justify-content: center; }
.tab-filter__btn {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem; font-weight: 700;
  cursor: pointer;
  background: var(--white); color: var(--gray);
  border: 1px solid var(--line);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tab-filter__btn:hover { border-color: var(--teal); color: var(--teal); }
.tab-filter__btn.is-active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.tab-filter--sm .tab-filter__btn { padding: 10px 20px; font-size: 0.875rem; font-weight: 600; }
.section--dark .tab-filter__btn, .section--ink .tab-filter__btn {
  background: transparent; color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.3);
}
.section--dark .tab-filter__btn.is-active, .section--ink .tab-filter__btn.is-active {
  background: var(--white); color: var(--ink); border-color: var(--white);
}

/* 필터 빈 상태 */
.filter-empty {
  display: none;
  padding: 64px 24px;
  text-align: center;
  color: var(--gray);
  font-size: 0.9375rem;
}
.filter-empty.is-visible { display: block; }

/* ---------- 10. 폼 ---------- */
.form-field { margin-top: var(--form-field-gap); }
.form-field:first-child { margin-top: 0; }
.form-label { display: block; font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.form-label .req { color: var(--orange); }
.form-input,
.form-textarea,
.form-select {
  margin-top: 10px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  color: var(--ink);
  font-size: 1rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-light); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 87, 75, 0.12);
}
.search-field { position: relative; }
.search-field .form-input { padding-right: 52px; }
.search-field__clear {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.search-field__clear:hover { background: var(--bg); color: var(--teal); }
.search-field__clear:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  background: var(--white);
  color: var(--teal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: var(--form-field-gap); }
/* 행 안 필드의 개별 margin-top 상쇄 (first-child 규칙이 좌측만 0으로 만들어 상하 정렬이 어긋났음) */
.form-row .form-field { margin-top: 0; }

/* 다크/그린 컨텍스트 폼 (Contact 섹션): 입력창은 박스형 통일 (260805 피드백 1-3-2) */
.form--dark .form-label { color: var(--white); }
.form--dark .form-input,
.form--dark .form-textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  color: var(--ink);
  padding: 14px 16px;
}
.form--dark .form-input::placeholder, .form--dark .form-textarea::placeholder { color: var(--gray-light); }
.form--dark .form-input:focus, .form--dark .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 87, 75, 0.18);
}

/* 체크박스 */
.form-check {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 3px;
  accent-color: var(--orange);
  cursor: pointer;
}
.form-check__text { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--gray); }
.form--dark .form-check__text { color: rgba(255, 255, 255, 0.85); }
.form-check__text a { color: var(--teal); text-decoration: underline; }
.form--dark .form-check__text a { color: var(--white); }
.form-consent-details { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--teal); cursor: pointer; }
.form-consent-details svg { width: 14px; height: 14px; }
.form-consent-details:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.form--dark .form-consent-details { color: var(--white); }

/* 에러 상태 */
.form-field.has-error .form-input,
.form-field.has-error .form-textarea { border-color: var(--error); }
.form--dark .form-field.has-error .form-input,
.form--dark .form-field.has-error .form-textarea { border-color: #F0907F; }
.form-error {
  display: none;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--error);
}
.form--dark .form-error { color: #F0907F; }
.form-field.has-error .form-error,
.form-check.has-error .form-error { display: block; }
.form-check .form-error { grid-column: 2; }

/* 폼 제출 버튼: 오렌지 필 pill (260805 피드백 1-3-2. 텍스트처럼 보이던 기존 ink 블록 대체) */
.form-submit {
  margin-top: 26px;
  width: 100%;
  padding: 18px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), opacity var(--t-fast);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.form-submit:hover { background: var(--orange-deep); }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.form-submit__spinner {
  width: 16px; height: 16px; flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: form-spin 0.8s linear infinite;
}
@keyframes form-spin { to { transform: rotate(360deg); } }

/* ---------- 11. GNB ---------- */
.gnb {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
/* 스크롤 후: 완전히 흰색이 아닌, 블러 처리된 탁한 반투명 (히어로 구간은 위 기본 어두운 상태 유지) */
.gnb.is-scrolled {
  background: rgba(247, 247, 245, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(31, 35, 40, 0.04), 0 10px 30px rgba(31, 35, 40, 0.07);
}
.gnb.is-scrolled .gnb__link { color: rgba(31, 35, 40, 0.72); }
.gnb.is-scrolled .gnb__link:hover,
.gnb.is-scrolled .gnb__link.is-active { color: var(--ink); }
.gnb.is-scrolled .gnb__hamburger span { background: var(--ink); }
/* 로고: 다크/라이트 두 벌을 겹쳐 놓고 상태로 교차 페이드 */
.gnb__logo-white,
.gnb__logo-dark { transition: opacity 0.35s var(--ease); }
.gnb__logo-white {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.gnb__logo-dark {
  opacity: 1;
}
.gnb.is-scrolled .gnb__logo-white { opacity: 0; }
.gnb.is-scrolled .gnb__logo-dark { opacity: 1; }
.gnb__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: var(--gnb-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gnb__logo { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.gnb__logo img { height: 32px; width: auto; display: block; }

.gnb__nav { display: flex; align-items: center; gap: 24px; }
.gnb__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(31, 35, 40, 0.72);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.gnb__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transition: right var(--t-med);
}
.gnb__link:hover { color: var(--ink); }
.gnb__link:hover::after { right: 0; }
.gnb__link.is-active { font-weight: 700; color: var(--ink); }
.gnb__link.is-active::after { right: 0; }

.gnb__cta { flex: 0 0 auto; }

/* 햄버거 */
.gnb__hamburger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.gnb__hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t-med), opacity var(--t-fast);
}
.gnb__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.gnb__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gnb__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.gnb__drawer-scrim { display: none; }
.gnb__panel { display: none; }
@media (max-width: 1024px) {
  .gnb__panel {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--ink-dark);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med), visibility 0s var(--t-med);
    visibility: hidden;
    z-index: 110;
  }
  .gnb__panel.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity var(--t-med), visibility 0s;
  }
  .gnb__panel-header {
    height: var(--gnb-h);
    padding: 0 var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .gnb__panel-close {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    cursor: pointer;
  }
  .gnb__panel-close::before,
  .gnb__panel-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: var(--white);
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .gnb__panel-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
  .gnb__panel-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
  .gnb__panel-close:hover::before,
  .gnb__panel-close:hover::after { background: var(--orange); }
  .gnb__drawer-scrim { display: none; }
  .gnb__panel-inner {
    width: 100%;
    height: calc(100dvh - var(--gnb-h));
    padding: 28px var(--pad-x) 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  /* display:block 필수: inline 이면 세로 padding 이 행간만 밀어내 항목 간격이 좁아 보임 */
  .gnb__panel .gnb__link { display: block; padding: 19px 0; font-size: 1.0625rem; color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .gnb__panel .gnb__link::after { display: none; }
  .gnb__panel .gnb__link.is-active { color: var(--orange); }
  .gnb__panel .btn { margin-top: 28px; align-self: flex-start; }
}

/* GNB 높이만큼 본문 밀기 */
.gnb-spacer { height: var(--gnb-h); }

/* ---------- 11-1. 데스크톱 GNB 드롭다운 (채비 소개 / 업무 분야) ---------- */
/* 호버 끊김 방지: item 을 GNB 전체 높이로 늘리고 드롭다운을 살짝 겹쳐 배치 */
.gnb__item { position: relative; display: flex; align-items: center; height: var(--gnb-h); }
.gnb__chevron {
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 3px;
  vertical-align: -1px;
  transition: transform var(--t-fast);
}
.gnb__dropdown {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 164px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(31, 35, 40, 0.14);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.gnb__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.gnb__item--sub.is-open .gnb__chevron { transform: rotate(180deg); }
.gnb__dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(31, 35, 40, 0.72);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.gnb__dropdown-link:hover { color: var(--ink); background: rgba(16, 87, 75, 0.07); }

/* 모바일 서랍: 하위 메뉴 그룹 */
.gnb__panel-group { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gnb__panel-group .gnb__link { border-bottom: 0; }
.gnb__sub { display: flex; flex-direction: column; padding: 0 0 12px 14px; }
.gnb__sublink {
  display: block;
  padding: 6px 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--t-fast);
}
.gnb__sublink:hover { color: var(--white); }

/* ---------- 12. 히어로 슬라이더 ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: var(--bg);
}
.hero-slider__track { position: absolute; inset: 0; }
.hero-slider__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
.hero-slider__slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.66) 50%, rgba(255, 255, 255, 0.35) 100%);
}
.hero-slider__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-slider__body { /* 시안: 우측 정렬 텍스트 블록 */
  max-width: 560px;
  margin-left: auto;
  text-align: right;
  color: var(--ink);
}
.hero-slider__body .hero-sub { margin-top: 24px; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.hero-slider__body .btn { margin-top: 32px; }
.hero-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(31, 35, 40, 0.22);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.hero-slider__arrow:hover { background: rgba(255, 255, 255, 0.9); border-color: var(--ink); }
.hero-slider__arrow--prev { left: 32px; }
.hero-slider__arrow--next { right: 32px; }
.hero-slider__arrow svg { width: 20px; height: 20px; }
.hero-slider__dots {
  position: absolute; left: 0; right: 0; bottom: 56px; z-index: 3;
  display: flex; justify-content: center; gap: 12px;
}
.hero-slider__dot {
  width: 96px; height: 10px;
  display: flex; align-items: center;
  background: none; border: none; padding: 0;
  cursor: pointer;
}
.hero-slider__dot-track {
  position: relative;
  width: 100%; height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(31, 35, 40, 0.16);
  overflow: hidden;
}
.hero-slider__dot-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--teal);
  border-radius: var(--radius-pill);
}
.hero-slider__dot.is-active .hero-slider__dot-fill { width: 100%; transition: width 5s linear; }

/* 컴팩트 도트 (인사이트 슬라이더 등 라이트 배경용) */
.dots { display: flex; justify-content: center; gap: 8px; }
.dots__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  border: none; padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}
.dots__dot.is-active { width: 22px; background: var(--orange); }

/* ---------- 13. 플로팅 버튼 ---------- */
.floating {
  position: fixed;
  right: calc(max(0px, (100vw - var(--container)) / 2) + 8px); bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating__btn {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-float);
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.floating__btn:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20, 20, 20, 0.28); }
.floating__btn svg { width: 24px; height: 24px; }
.floating__btn--phone { display: none; }
.floating__btn--phone { background: var(--teal); }
.floating__btn--phone:hover { background: var(--teal-deep); }
/* 카카오는 무채색 (260805 피드백 2-9: 주황 원형 아이콘 톤 정리) */
.floating__btn--kakao { background: var(--moongray-1); }
.floating__btn--kakao:hover { background: var(--ink); }
/* hover 시 안내 툴팁 슬라이딩 */
.floating__btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card-hover);
  font-size: 0.8125rem; font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.floating__btn:hover::after, .floating__btn:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- 14. 푸터 ---------- */
.footer {
  background: var(--teal);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 40px;
}
.footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__logo img { height: 36px; width: auto; display: block; }
.footer__legal {
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 48px;
  font-size: 0.875rem;
  line-height: 1.7;
}
.footer__legal-item { display: flex; gap: 10px; }
.footer__legal-item dt { flex: 0 0 auto; color: rgba(255, 255, 255, 0.65); font-weight: 400; }
.footer__legal-item dd { margin: 0; color: rgba(255, 255, 255, 0.8); }
.footer__legal-item dd a { color: inherit; text-decoration: none; }
.footer__legal-item dd a:hover { text-decoration: underline; }

.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  padding-inline-end: max(0px, calc(92px - var(--pad-x)));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-width: 0; }
.footer__copy { margin: 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.65); }
.footer__policy { display: flex; gap: 20px; }
.footer__policy a { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer__policy a:hover { color: var(--white); }
/* opacity 로 어둡게 하면 대비 4.5 미만이라 접근성 실패 → 색상으로만 비활성 표현 */
.footer__policy a[aria-disabled="true"] { pointer-events: none; cursor: not-allowed; color: rgba(255, 255, 255, 0.65); }
.footer__social { display: flex; gap: 12px; margin-left: auto; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.footer__social a:hover { border-color: var(--white); color: var(--white); }
.footer__social svg { width: 16px; height: 16px; }

/* ---------- 15. 스크롤 리빌 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-24px); }
.reveal--right { transform: translateX(24px); }
.reveal--left.is-visible, .reveal--right.is-visible { transform: none; }
/* 모바일/태블릿: 좌우 리빌 잔여 이동값이 뷰포트 밖으로 넘쳐 가로 스크롤을
   유발하므로(모바일 브라우저는 넘친 콘텐츠만큼 레이아웃 뷰포트를 넓힘) 세로로 대체 */
@media (max-width: 1024px) {
  .reveal--left, .reveal--right { transform: translateY(24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 15-1. 모달 (폼 완료 안내·개인정보 동의서) ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(31, 35, 40, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-card {
  background: var(--white);
  border-radius: 8px;
  max-width: 520px; width: 100%;
  max-height: min(80vh, 720px);
  display: flex; flex-direction: column;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(20, 20, 20, 0.3);
}
.modal-card__title { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.modal-card__body { margin-top: 16px; font-size: 0.9375rem; line-height: 1.75; color: var(--gray); overflow-y: auto; }
.modal-card__foot { margin-top: 28px; display: flex; justify-content: flex-end; }
@media (max-width: 768px) { .modal-card { padding: 28px 22px; } }

/* 구성원 사진 미등록 시 실루엣 플레이스홀더 (260805 피드백 2-4) */
.member-silhouette {
  background: var(--moongray-3);
  display: flex; align-items: center; justify-content: center;
}
.member-silhouette svg { width: 46%; height: auto; color: var(--moongray-2); }

/* ---------- 16. 유틸 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.text-teal { color: var(--teal); }
.text-orange { color: var(--orange); }
.mt-0 { margin-top: 0; }

/* ============================================================
   반응형 (모바일 우선 보정: 1440 / 1024 / 768 / 375)
   기본은 데스크톱 시안 값, 아래에서 축소
   ============================================================ */

.admin-login-shell { padding: 24px; }
.admin-login-card { padding: 32px; }

/* 1024px 이하: 태블릿 */
@media (max-width: 1024px) {
  :root {
    --pad-x: 32px;
    --section-y: 120px;
  }
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  /* 업무 분야: 태블릿 2열 */
  .grid--practice { grid-template-columns: repeat(2, 1fr); }

  /* GNB: 햄버거 전환 */
  .gnb__nav, .gnb__cta { display: none; }
  .gnb__hamburger { display: flex; }

  .hero-slider__arrow--prev { left: 16px; }
  .hero-slider__arrow--next { right: 16px; }
  .hero-slider__dot { width: 64px; }

  .footer__legal { grid-template-columns: 1fr; gap: 6px; }
}

/* 768px 이하: 모바일 */
@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --section-y: 88px;
    --gap: 16px;
    --gnb-h: 60px;
    --subpage-hero-content-gap: 48px;
    --detail-title-content-gap: 32px;
    --detail-shell-rhythm: 40px;
  }
  .grid--2, .grid--3, .grid--4, .grid--5, .grid--practice { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: var(--form-field-gap); }

  .gnb__logo img { height: 26px; }

  .hero-slider { min-height: 560px; height: 88vh; }
  .hero-slider__arrow { display: none; }
  .hero-slider__dots { bottom: 32px; gap: 8px; }
  .hero-slider__dot { width: 48px; }
  .hero-slider__body { text-align: left; margin-left: 0; } /* 모바일: 좌측 정렬 */

  .section-head--split { align-items: flex-start; flex-direction: column; }

  .insight-row { flex-wrap: wrap; gap: 4px 16px; padding: 20px 4px; }
  .insight-row__category { width: auto; }
  .insight-row__title { flex-basis: 100%; order: 3; margin-top: 6px; }

  .footer { padding: 56px 0 32px; }
  .footer__bottom { flex-direction: column; align-items: stretch; padding-inline-end: calc(78px - var(--pad-x)); }
  .footer__meta { gap: 12px 20px; }
  .footer__social { margin-left: auto; }

  .floating {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding: 0 20px 32px;
    background: var(--teal);
  }
  .floating__btn { width: 50px; height: 50px; }
  .floating__btn--phone { display: flex; }

  .btn { padding: 14px 26px; }
  .tab-filter__btn { padding: 10px 18px; font-size: 0.875rem; }

  .insight-card { padding: 24px; }
  .feature-card { padding: 24px; }
  .pagination__pages--desktop { display: none; }
  .pagination__pages--mobile { display: contents; }
}

/* 375px 이하: 소형 모바일 */
@media (max-width: 375px) {
  :root { --section-y: 72px; --gap: 12px; }
  .case-card__foot,
  .member-card__meta { padding-inline-end: 32px; }
  .hero-slider__dot { width: 36px; }
  .display-1 { letter-spacing: -0.3px; }
}

@media (max-width: 375px) {
  .admin-login-shell { padding-inline: 12px; }
  .admin-login-card { padding-inline: 20px; }
}

@media (max-width: 340px) {
  .admin-login-shell { padding-inline: 0; }
  .admin-login-card { padding-inline: 9px; }
}

/* ---------- 17. 공통 페이지 히어로 (홈 제외 전 페이지 통일, C5안) ---------- */
/* 260805 피드백 1-2 + 승인 목업 practice-c5: 높이 195px 내외, 오버레이·부제 없음.
   사진 지정 페이지는 풀폭 사진 위에 그린 eyebrow + 블랙 H1 (site-hero--photo),
   그린 단색 지정 페이지는 동일 높이의 그린 띠 + 화이트 타이포 (site-hero--solid). */
.site-hero { position: relative; overflow: hidden; }
.site-hero--photo { background: var(--bg-warm); }
.site-hero--solid { background: var(--teal); color: var(--white); }
.site-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.site-hero--text-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(240, 240, 240, 0.96) 0%, rgba(240, 240, 240, 0.78) 32%, rgba(240, 240, 240, 0) 62%);
}
.site-hero--contained .site-hero__bg {
  inset: 16px 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}
.site-hero__inner {
  position: relative; z-index: 2;
  height: calc(var(--gnb-h) + 195px);
  padding-top: var(--gnb-h);
  display: flex; flex-direction: column; justify-content: center;
}
.site-hero .eyebrow { display: block; margin-bottom: 14px; }
.site-hero--photo .eyebrow { color: var(--teal); }
.site-hero--photo h1 { color: var(--ink); }
.site-hero--solid .eyebrow, .site-hero--solid h1 { color: var(--white); }
.site-hero h1 { margin: 0; }
/* 서브 페이지 히어로 타이틀 축소 (홈 제외) */
.site-hero h1.display-1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.page-hero .display-1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.page-hero .display-2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
@media (max-width: 768px) {
  .site-hero__inner { height: calc(var(--gnb-h) + 140px); }
  .site-hero--contained .site-hero__bg { inset: 12px 0; }
  .site-hero--text-scrim::after { background: linear-gradient(90deg, rgba(240, 240, 240, 0.96) 0%, rgba(240, 240, 240, 0.82) 58%, rgba(240, 240, 240, 0.12) 100%); }
}

/* 히어로 직후 첫 섹션: 상단 여백 축소 (260805 피드백 1-2: 히어로-본문 여백 과도) */
.section--compact-top { padding-top: var(--subpage-hero-content-gap); }

/* ---------- 리치 에디터 본문 (.prose) : 어드민에서 작성한 HTML 콘텐츠 표시 ---------- */
.prose { font-size: 1rem; line-height: 1.75; color: var(--ink); word-break: keep-all; counter-reset: prose-heading; }
.prose p { margin: 0; }
.prose p + p { margin-top: 0.85em; }
body .prose p + p { margin-top: 0.85em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 800; line-height: 1.35; margin: 1.6em 0 0.6em; letter-spacing: -0.2px; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.125rem; }
.prose h2.prose-heading--numbered,
.prose h3.prose-heading--numbered,
.prose h4.prose-heading--numbered { counter-increment: prose-heading; }
.prose h2.prose-heading--numbered::before,
.prose h3.prose-heading--numbered::before,
.prose h4.prose-heading--numbered::before { content: counter(prose-heading) ". "; color: var(--teal); }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange); }
.prose strong, .prose b { font-weight: 700; }
.prose ul, .prose ol { margin: 0.85em 0; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.25em 0; }
.prose ul ul,
.prose ul ol,
.prose ol ul,
.prose ol ol { margin-top: 0.25em; margin-bottom: 0; padding-left: 1.4em; }
.prose blockquote { margin: var(--gap) 0; padding: calc(var(--gap) / 2) var(--gap); border-inline-start: 1px solid var(--teal); background: var(--bg); color: var(--gray); }
.prose table { width: 100%; max-width: 100%; margin: var(--gap) 0; border-collapse: collapse; border: 1px solid var(--line); background: var(--white); table-layout: fixed; }
.prose th, .prose td { padding: calc(var(--gap) / 2); border: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.prose th { font-weight: 700; background: var(--bg); }
.prose hr { margin: var(--gap) 0; border: 0; border-top: 1px solid var(--line); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .prose h2,
  .prose h3 {
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  .prose table { display: block; overflow-x: auto; }
}
