/* ═══════════════════════════════════════════════════════════
   한국재범방지연구소 다크 주디셜 테마
   radius 규칙: 컨테이너 16px / 컨트롤(버튼·인풋) 10px / 칩 pill
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0F1317;
  --bg-elev: #151A20;
  --bg-card: #1A2129;
  --line: rgba(235, 238, 242, 0.09);
  --line-strong: rgba(235, 238, 242, 0.16);
  --text: #EBEDF0;
  --text-dim: #A6AEB8;
  --accent: #C9A45E;
  --accent-strong: #DDBC7B;
  --accent-ink: #14181D;
  --error: #E58370;
  --radius-box: 16px;
  --radius-ctl: 10px;
  --shadow-card: 0 20px 50px -24px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; line-height: 1.28; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; }
section { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-sub {
  color: var(--text-dim);
  max-width: 560px;
  margin-top: 14px;
}

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 750;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-ctl);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ── 버튼 ─────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-ctl);
  font-weight: 650;
  font-size: 15px;
  padding: 12px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* 프라이머리 버튼: 호버 시 셔인(광택) 스윕 */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -45%;
    width: 36%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    transition: transform 0.55s ease;
    pointer-events: none;
  }
  .btn-primary:hover::after { transform: skewX(-18deg) translateX(400%); }

  /* 히어로 대표 CTA: 은은한 브라스 글로우 호흡 */
  .hero-cta .btn-primary { animation: ctaGlow 3.6s ease-in-out infinite; }
  @keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 94, 0); }
    50% { box-shadow: 0 6px 30px -6px rgba(201, 164, 94, 0.45); }
  }
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-1px); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── 헤더 ─────────────────────────────── */
#header-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15, 19, 23, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}
.brand-mark { flex: none; border-radius: 9px; }
.brand-name {
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 13px;
  border-radius: var(--radius-ctl);
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-dim);
  transition: color 0.15s, background-color 0.15s;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.main-nav a.active { color: var(--accent-strong); background: rgba(201, 164, 94, 0.09); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ctl);
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 21px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: rgba(15, 19, 23, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 28px 24px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a:not(.btn) {
  padding: 15px 8px;
  font-size: 19px;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 22px; }

/* ── 히어로 ─────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 84px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 94, 0.13), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(201, 164, 94, 0.4);
  border-radius: 999px;
  background: rgba(201, 164, 94, 0.09);
  color: var(--accent-strong);
  font-size: 13.5px;
  font-weight: 600;
}
.hero-chip i { font-size: 16px; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.22;
}

.hero-sub {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  max-width: 480px;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius-box);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  max-width: 470px;
  margin-left: auto;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(15, 19, 23, 0) 55%, rgba(15, 19, 23, 0.55));
  pointer-events: none;
}
.hero-figure img,
.hero-figure video {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: 50% 38%;
  display: block;
}

/* 히어로 이미지: 로드 시 느린 줌아웃 (다큐멘터리 톤) */
@media (prefers-reduced-motion: no-preference) {
  .hero-figure img { animation: heroZoom 7s var(--ease-out) both; }
  @keyframes heroZoom {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
  }
}

/* ── 스탯 ─────────────────────────────── */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 52px 0 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat dt {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 550;
}
.stat dd {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat .num {
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat .unit {
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
}
.ref-mark { color: var(--accent); margin-left: 2px; }

.stats-note {
  margin-top: 26px;
  color: var(--text-dim);
  font-size: 12.5px;
  opacity: 0.85;
}

/* ── 소개(왜 필요한가) ─────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.about-head { position: sticky; top: calc(var(--header-h) + 40px); }
.about-head p {
  margin-top: 18px;
  color: var(--text-dim);
  max-width: 380px;
}

.about-figure {
  margin-top: 28px;
  max-width: 380px;
  border-radius: var(--radius-box);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.about-figure img { width: 100%; height: auto; display: block; }

.about-items { display: flex; flex-direction: column; }

.about-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 30px 0;
}
.about-item + .about-item { border-top: 1px solid var(--line); }

.about-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-ctl);
  background: rgba(201, 164, 94, 0.1);
  border: 1px solid rgba(201, 164, 94, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: var(--accent);
}

.about-item h3 { font-size: 19px; font-weight: 700; }
.about-item p {
  margin-top: 9px;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ── 사건 유형 마퀴 ─────────────────────────────── */
.casetypes {
  padding: 96px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.casetypes h2 { text-align: center; }

.marquee { margin-top: 46px; display: grid; gap: 16px; }

.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 2px 0;
}

.marquee-track li {
  flex: none;
  padding: 12px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 104s linear infinite; }
  .marquee-row.reverse .marquee-track { animation-direction: reverse; }
  .marquee-row:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

/* reduced-motion: 마퀴를 정적 칩 그리드로 전환 */
@media (prefers-reduced-motion: reduce) {
  .marquee-row { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}

.marquee-track li a { display: block; color: inherit; }
.marquee-track li:hover { border-color: rgba(201, 164, 94, 0.5); color: var(--accent-strong); }

.marquee-hint {
  margin-top: 28px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
}

/* ── 파트너 ─────────────────────────────── */
.partner {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.partner-sub { margin-left: auto; margin-right: auto; }
.partner-card {
  margin: 44px auto 0;
  max-width: 500px;
  border-radius: var(--radius-box);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.partner-card img { width: 100%; height: auto; }

/* ── 양형 사례 ─────────────────────────────── */
.example-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.example-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-box);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
}

.example-card h3 { font-size: 19px; font-weight: 750; }
.example-card h3 span { color: var(--accent-strong); font-weight: 700; margin-left: 6px; white-space: nowrap; }

.ex-desc {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-ctl);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.funnel { margin-top: 22px; display: flex; flex-direction: column; }
.funnel li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 13px 2px;
}
.funnel li + li { border-top: 1px solid var(--line); }

.fr-label { font-size: 15px; font-weight: 700; }
.fr-label small {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
}

.fr-val {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 650;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.funnel .final .fr-label { color: var(--accent-strong); }
.funnel .final .fr-val {
  background: rgba(201, 164, 94, 0.12);
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(201, 164, 94, 0.12);
}

.ex-reason {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 650;
}
.ex-reason i { font-size: 19px; flex: none; margin-top: 1px; }

.ex-more {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(201, 164, 94, 0.45);
  border-radius: var(--radius-ctl);
  background: rgba(201, 164, 94, 0.08);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 650;
}
.ex-more:hover { background: rgba(201, 164, 94, 0.16); border-color: var(--accent); }
.ex-more i { font-size: 15px; transition: transform 0.2s var(--ease-out); }
.ex-more:hover i { transform: translateX(3px); }

/* 데이터 블록: 막대 차트 + 링 비교 */
.evidence-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-box);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}
.chart-card h3 { font-size: 17px; font-weight: 720; }

.bar-chart {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.bar-chart li {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}
.bar-chart b {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 750;
  color: var(--accent-strong);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-chart i {
  width: min(46px, 80%);
  height: calc(var(--v) * 1.6px);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent) 70%);
}
.bar-chart .all b { color: var(--text-dim); }
.bar-chart .all i { background: #4A535E; }
.bar-chart span {
  width: 100%;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-strong);
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}
.bar-chart span small {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 500;
}

.chart-insight {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
}

.rings {
  margin-top: 26px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex: 1;
  align-items: center;
}
.ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.ring {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, var(--accent)) calc(var(--p) * 1%), rgba(235, 238, 242, 0.08) 0);
  display: grid;
  place-items: center;
}
.ring.low { --ring-color: #5A6470; }
.ring-inner {
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-inner b {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}
.ring.low .ring-inner b { color: var(--text-dim); }
.ring-inner small { color: var(--text-dim); font-size: 11.5px; margin-top: 2px; }
.ring-item > span { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; }

.examples-note {
  margin-top: 26px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
  opacity: 0.85;
}

/* ── 서비스 벤토 ─────────────────────────────── */
.bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-cell {
  position: relative;
  grid-column: span 5;
  min-height: 320px;
  border-radius: var(--radius-box);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background-color: var(--bg-card);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.bento-cell:hover { transform: translateY(-4px); border-color: rgba(201, 164, 94, 0.45); }

/* 벤토 카드: 호버 시 셔인 스윕 */
.bento-cell { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .bento-cell::after {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 28%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.09), transparent);
    transform: skewX(-16deg) translateX(0);
    transition: transform 0.8s ease;
    pointer-events: none;
  }
  .bento-cell:hover::after { transform: skewX(-16deg) translateX(560%); }
}

/* 셀 배경 이미지 (경로는 이 스타일시트 기준).
   그라디언트는 100%까지 이어 하단 경계선(마하 밴드·타일링)을 방지 */
.cell-img-doc {
  background-image: linear-gradient(180deg, rgba(15, 19, 23, 0.16) 0%, rgba(15, 19, 23, 0.48) 48%, rgba(15, 19, 23, 0.95) 100%),
    url("../assets/img/doc-signing.jpg");
}
.cell-img-counsel {
  background-image: linear-gradient(180deg, rgba(15, 19, 23, 0.16) 0%, rgba(15, 19, 23, 0.48) 48%, rgba(15, 19, 23, 0.95) 100%),
    url("../assets/img/counseling.jpg");
}
.cell-img-cert {
  background-image: linear-gradient(180deg, rgba(15, 19, 23, 0.16) 0%, rgba(15, 19, 23, 0.48) 48%, rgba(15, 19, 23, 0.95) 100%),
    url("../assets/img/certificate.jpg");
  background-position: 15% 40%;
}

.bento-cell.cell-wide { grid-column: span 7; }

.cell-body { padding: 26px 28px; }
.cell-body h3 { font-size: 20px; font-weight: 720; }
.cell-body p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 420px;
}

.cell-tint {
  background-image: linear-gradient(145deg, rgba(201, 164, 94, 0.14), rgba(201, 164, 94, 0.03) 55%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

/* 캠페인 셀: 브라스 메가폰 스틸라이프 (nanta Soul V2 생성) */
.cell-img-campaign {
  background-image: linear-gradient(180deg, rgba(15, 19, 23, 0.3) 0%, rgba(15, 19, 23, 0.55) 45%, rgba(15, 19, 23, 0.95) 100%),
    url("../assets/img/campaign-megaphone.jpg");
  background-position: center 55%;
}
.cell-tint-icon {
  margin: 26px 0 0 28px;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-ctl);
  border: 1px solid rgba(201, 164, 94, 0.35);
  background: rgba(201, 164, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
}

/* ── 절차 ─────────────────────────────── */
.process { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.process-steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}

.step-no {
  font-size: 15px;
  font-weight: 750;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.step h3 { margin-top: 10px; font-size: 20px; font-weight: 720; }
.step p { margin-top: 12px; color: var(--text-dim); font-size: 15px; }

/* ── 단계별 골든타임 ─────────────────────────────── */
.stage-rail {
  margin-top: 52px;
  max-width: 720px;
}

.stage-rail > li {
  position: relative;
  padding: 0 0 48px 48px;
}
.stage-rail > li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 26px;
  bottom: -4px;
  width: 2px;
  background: var(--line-strong);
}
.stage-rail > li:last-child::before { display: none; }
.stage-rail > li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(201, 164, 94, 0.14);
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.stage-head h3 { font-size: 20px; font-weight: 750; }

.stage-tag {
  padding: 5px 13px;
  border: 1px solid rgba(201, 164, 94, 0.4);
  border-radius: 999px;
  background: rgba(201, 164, 94, 0.09);
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 650;
}

.stage-rail > li > p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 620px;
}

.stage-todo {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stage-todo li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 13.5px;
  font-weight: 600;
}
.stage-todo i { color: var(--accent); font-size: 16px; }

.timeline-cta {
  margin-top: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-box);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.timeline-cta p { color: var(--text); font-size: 15.5px; font-weight: 550; max-width: 560px; }

/* ── 피해야 할 실수 ─────────────────────────────── */
.mistakes {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mistake-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.mistake-grid article {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: 22px 20px;
  transition: border-color 0.2s;
}
.mistake-grid article:hover { border-color: rgba(229, 131, 112, 0.4); }
.mistake-grid i { font-size: 26px; color: var(--error); }
.mistake-grid h3 { margin-top: 12px; font-size: 15.5px; font-weight: 720; }
.mistake-grid p { margin-top: 8px; color: var(--text-dim); font-size: 13px; line-height: 1.65; }

/* ── 후기 ─────────────────────────────── */
.review-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.review-card:hover {
  border-color: rgba(201, 164, 94, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.6);
}

.review-card blockquote p {
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 480;
}

.review-card figcaption {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
.review-card figcaption span {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 13.5px;
}

/* ── FAQ ─────────────────────────────── */
.faq-container { max-width: 820px; }
.faq h2 { text-align: center; }

.faq-list { margin-top: 42px; border-top: 1px solid var(--line-strong); }

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 6px;
  font-size: 16.5px;
  font-weight: 650;
  transition: color 0.15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-strong); }
.faq-list summary i {
  flex: none;
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease-out);
}
.faq-list details[open] summary { color: var(--accent-strong); }
.faq-list details[open] summary i { transform: rotate(180deg); }

.faq-body { padding: 0 6px 24px; }
.faq-body p { color: var(--text-dim); font-size: 15.5px; max-width: 700px; }

/* ── 문의 ─────────────────────────────── */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}
.contact::before {
  content: "";
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 94, 0.1), transparent 62%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.contact-copy p { margin-top: 18px; color: var(--text-dim); max-width: 400px; }

.contact-channels { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.contact-channels li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  max-width: 400px;
}
.contact-channels i { font-size: 24px; color: var(--accent); flex: none; }
.contact-channels strong { display: block; font-size: 14px; }
.contact-channels a, .contact-channels span:not(.brand-name) {
  color: var(--text-dim);
  font-size: 14.5px;
}
.contact-channels a:hover { color: var(--accent-strong); }

/* 문의 좌측 이미지 카드 (about-figure와 동일 톤) */
.contact-figure {
  margin-top: 30px;
  max-width: 400px;
  border-radius: var(--radius-box);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.contact-figure img { width: 100%; height: auto; display: block; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-box);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 스팸 방지용 허니팟: 사람에게는 보이지 않음 */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ctl);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23A6AEB8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 164, 94, 0.14); }

.field label {
  font-size: 14px;
  font-weight: 650;
}
.field label em {
  font-style: normal;
  color: var(--accent);
  font-size: 12px;
  margin-left: 4px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ctl);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}
.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder, .field textarea::placeholder { color: #6E7681; }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 164, 94, 0.14);
}

.field.invalid input, .field.invalid textarea { border-color: var(--error); }

.field-hint { color: var(--text-dim); font-size: 12.5px; }
.field-error { color: var(--error); font-size: 13px; font-weight: 550; }

.field-consent { gap: 6px; }
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 500 !important;
}
.checkbox input {
  margin: 3px 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: none;
  cursor: pointer;
}
.checkbox a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

.form-status { font-size: 14.5px; font-weight: 600; color: var(--accent-strong); }
.form-status.error { color: var(--error); }

/* ── 푸터 ─────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { display: block; font-size: 17px; }
.footer-brand span { color: var(--text-dim); font-size: 12.5px; letter-spacing: 0.02em; }

.footer-info { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-info dt { color: var(--text-dim); font-size: 12.5px; }
.footer-info dd { margin-top: 4px; font-size: 14.5px; font-weight: 550; }
.footer-info a:hover { color: var(--accent-strong); }

.footer-cases { margin-top: 40px; }
.footer-cases h3 {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.footer-cases ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-cases a { color: var(--text-dim); font-size: 13.5px; }
.footer-cases a:hover { color: var(--accent-strong); }

.footer-disclaimer {
  margin-top: 44px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text); }

/* ── 스크롤 리빌 ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--d, 0s);
  }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* ── 섹션 제목: 브라스 언더라인 ─────────────────── */
h2.reveal::after {
  content: "";
  display: block;
  margin-top: 16px;
  height: 2px;
  width: 56px;
  border-radius: 2px;
  background: var(--accent);
}
.casetypes h2.reveal::after,
.faq h2.reveal::after,
.partner h2.reveal::after { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: no-preference) {
  h2.reveal::after { width: 0; transition: width 0.9s var(--ease-out) 0.25s; }
  h2.reveal.in-view::after { width: 56px; }

  /* 막대 차트: 아래에서 위로 상승 (스태거) */
  .chart-card .bar-chart i { transform-origin: bottom; transition: transform 0.9s var(--ease-out); }
  .chart-card.reveal:not(.in-view) .bar-chart i { transform: scaleY(0.02); }
  .bar-chart li:nth-child(1) i { transition-delay: 0.05s; }
  .bar-chart li:nth-child(2) i { transition-delay: 0.15s; }
  .bar-chart li:nth-child(3) i { transition-delay: 0.25s; }
  .bar-chart li:nth-child(4) i { transition-delay: 0.35s; }
  .bar-chart li:nth-child(5) i { transition-delay: 0.45s; }

  /* 카운트업 완료 시 살짝 팝 */
  .num { display: inline-block; }
  .num.counted { animation: numPop 0.4s var(--ease-out); }
  @keyframes numPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
}

/* ── 사건유형 안내 페이지 (cases/*.html) ─────────────────────────────── */
.case-main { padding: calc(var(--header-h) + 52px) 0 0; }
.case-main .container { max-width: 860px; }

.case-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 13.5px;
  font-weight: 650;
}
.case-kicker a { color: var(--text-dim); }
.case-kicker a:hover { color: var(--accent-strong); }

.case-main h1 {
  margin-top: 14px;
  font-size: clamp(27px, 4.4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
}
.case-intro { margin-top: 18px; color: var(--text-dim); font-size: 16px; max-width: 720px; }

.case-hero {
  margin-top: 34px;
  border-radius: var(--radius-box);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.case-hero img { width: 100%; height: auto; display: block; }

.case-section { margin-top: 56px; }
.case-section h2 { font-size: 22px; font-weight: 750; }
.case-section > p { margin-top: 12px; color: var(--text-dim); }

.factor-list { margin-top: 20px; display: flex; flex-direction: column; }
.factor-list li {
  display: flex;
  gap: 12px;
  padding: 14px 2px;
  font-size: 15.5px;
  align-items: flex-start;
}
.factor-list li + li { border-top: 1px solid var(--line); }
.factor-list i { color: var(--accent); font-size: 19px; flex: none; margin-top: 3px; }

.evidence {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-box);
  padding: 26px 28px;
}
.evidence-nums { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 6px; }
.evidence-nums b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.evidence-nums .low b { color: var(--text-dim); }
.evidence-nums span { color: var(--text-dim); font-size: 13.5px; }
.evidence-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(201, 164, 94, 0.07);
  border: 1px solid rgba(201, 164, 94, 0.25);
  border-radius: var(--radius-ctl);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.7;
}
.evidence-src { margin-top: 16px; color: var(--text-dim); font-size: 12.5px; opacity: 0.85; }

.material-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.material-grid article {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: 20px 22px;
}
.material-grid h3 { font-size: 16.5px; font-weight: 720; display: flex; gap: 9px; align-items: center; }
.material-grid h3 i { color: var(--accent); font-size: 20px; }
.material-grid p { margin-top: 8px; color: var(--text-dim); font-size: 14px; }

.caution-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.caution-list li {
  display: flex;
  gap: 11px;
  background: rgba(229, 131, 112, 0.06);
  border: 1px solid rgba(229, 131, 112, 0.22);
  border-radius: var(--radius-ctl);
  padding: 13px 16px;
  font-size: 14.5px;
  align-items: flex-start;
}
.caution-list i { color: var(--error); flex: none; font-size: 18px; margin-top: 2px; }

.case-cta {
  margin-top: 64px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-box);
  padding: 40px 36px;
  text-align: center;
}
.case-cta h2 { font-size: 24px; font-weight: 780; }
.case-cta p { margin: 12px auto 24px; color: var(--text-dim); max-width: 480px; }

.related-cases { margin-top: 56px; }
.related-cases h2 { font-size: 16px; font-weight: 700; color: var(--text-dim); }
.related-cases ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.related-cases a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}
.related-cases a:hover { border-color: var(--accent); color: var(--accent-strong); }

.case-disclaimer {
  margin-top: 56px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.case-faq { margin-top: 56px; }
.case-faq h2 { font-size: 22px; font-weight: 750; }

.case-bottom { padding-bottom: 90px; }

@media (max-width: 640px) {
  .material-grid { grid-template-columns: 1fr; }
  .case-cta { padding: 30px 22px; }
  .evidence-nums { gap: 24px; }
}

/* ── 개인정보 처리방침 페이지 ─────────────────────────────── */
.policy-main {
  padding: calc(var(--header-h) + 56px) 0 100px;
}
.policy-main .container { max-width: 800px; }
.policy-main h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.policy-date { margin-top: 12px; color: var(--text-dim); font-size: 14px; }
.policy-body { margin-top: 44px; display: flex; flex-direction: column; gap: 36px; }
.policy-body h2 { font-size: 20px; font-weight: 720; }
.policy-body p, .policy-body li {
  color: var(--text-dim);
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.75;
}
.policy-body ul li { list-style: disc; margin-left: 20px; }
.policy-body strong { color: var(--text); }

/* ══════════════ 반응형 ══════════════ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero-inner { gap: 40px; }
  .bento-cell, .bento-cell.cell-wide { grid-column: span 6; }
  .example-grid { grid-template-columns: 1fr; }
  .evidence-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 76px 0; }

  /* 모바일: 상담 CTA를 햄버거 옆에 상시 노출 */
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 8px 12px; font-size: 13px; }
  .brand-name { font-size: 14px; }

  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-sub { max-width: none; }
  .hero-figure { margin-left: 0; max-width: none; }
  .hero-figure img, .hero-figure video { max-height: 340px; object-position: 50% 45%; }
  .hero-cta .btn { flex: 1 1 auto; }

  .stats { padding: 44px 0 34px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-head { position: static; }

  .casetypes { padding: 68px 0; }

  .bento { margin-top: 36px; gap: 14px; }
  .bento-cell, .bento-cell.cell-wide { grid-column: span 12; min-height: 260px; }

  .process-steps { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }

  .review-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .review-card { padding: 26px; }

  .example-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .example-card { padding: 24px 20px; }

  .stage-rail { margin-top: 40px; }
  .stage-rail > li { padding: 0 0 40px 36px; }
  .timeline-cta { padding: 22px 20px; }
  .timeline-cta .btn { width: 100%; }
  .mistake-grid { margin-top: 34px; }
  /* 퍼널: 모바일에서도 라벨 좌 / 형량 배지 우 한 줄 유지 */
  .funnel li { gap: 6px 10px; padding: 12px 2px; }
  .fr-label { font-size: 14px; }
  .fr-label small { font-size: 11.5px; }
  .fr-val { font-size: 13px; padding: 7px 13px; }
  .evidence-row { grid-template-columns: 1fr; }
  .chart-card { padding: 24px 20px; }
  .bar-chart { gap: 8px; }
  .rings { gap: 18px; }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-form { padding: 26px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 20px; }
  .contact-copy p, .contact-channels li { max-width: none; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-info { gap: 20px 32px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 12.5px; }
  .header-actions .btn { padding: 7px 10px; font-size: 12.5px; }
  .header-inner { gap: 8px; }
}
