/* ============================================================
   PRO-CORP-016 · 법무법인 정도 · CRP 코퍼레이트·신뢰형
   메인 컬러 #7A2E3E (H 347°) — 세리프·직각·따뜻한 스톤 베이스의 절제된 권위
   같은 CRP인 EDU-CORP-010(파랑·산세리프·라운드 8px·데이터 UI)과
   폰트/라운드/색온도/레이아웃 방향을 전부 반대로 잡았다.
   ============================================================ */

:root {
  --brand:       #7a2e3e;
  --brand-ink:   #ffffff;
  --accent:      #1a1614;
  --accent-ink:  #f3efe9;
  --surface:     #fbfaf8;
  --surface-alt: #f0ece6;
  --font-display: var(--font-serif);
  --r: var(--r-none);
}

body { background: var(--surface); }

/* ── 공통 타입 ─────────────────────────────────────────────── */
/* 라틴 소문자 라벨 + 넓은 자간. 학원 쪽의 굵은 대문자 라벨과 대비된다. */

.label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--brand);
}
.label--mute { color: var(--ink-3); }

.h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  line-height: 1.24;
}
.h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); line-height: 1.34; }

.body-lg { font-size: var(--fs-md); color: var(--ink-2); max-width: 46ch; line-height: var(--lh-loose); }
.body-sm { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose); }

.rule { height: 1px; background: var(--line); border: 0; }

/* ── 버튼 ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-base);
  border-radius: var(--r);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn--sm { padding: var(--sp-3) var(--sp-5); }
.btn--solid { background: var(--brand); color: var(--brand-ink); }
.btn--solid:hover { background: var(--accent); }
.btn--line { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--brand); color: var(--brand); }
.btn--onDark { border: 1px solid color-mix(in oklab, var(--accent-ink) 40%, transparent); color: var(--accent-ink); }
.btn--onDark:hover { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid color-mix(in oklab, var(--brand) 40%, transparent);
  transition: border-color var(--dur) var(--ease);
}
.link-more:hover { border-bottom-color: var(--brand); }

/* ── 헤더 ──────────────────────────────────────────────────── */
/* 히어로 왼쪽이 어두운 풀블리드 사진이다. 헤더는 항상 배경을 깐다. */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  padding-inline: max(var(--gutter), calc((100vw - var(--container-wide)) / 2));
}
.nav__logo {
  display: grid;
  gap: 2px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
}
.nav__logo span {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--brand);
}
.nav__menu { display: none; gap: var(--sp-6); }
.nav__menu a {
  position: relative;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  padding-block: var(--sp-2);
  transition: color var(--dur) var(--ease);
}
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--brand); }
.nav__menu a[aria-current="page"]::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--brand);
}

.nav__more { position: relative; }
.nav__more summary {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  list-style: none;
}
.nav__more summary::-webkit-details-marker { display: none; }
.nav__more summary i { display: grid; gap: 3px; }
.nav__more summary i::before, .nav__more summary i::after {
  content: ""; display: block; width: 14px; height: 1px; background: currentColor;
}
.nav__drawer {
  position: absolute; right: 0; top: calc(100% + var(--sp-3));
  width: max(58vw, 230px);
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-lg);
}
.nav__drawer a { padding: var(--sp-4) var(--sp-5); font-size: var(--fs-sm); border-bottom: 1px solid var(--line); }
.nav__drawer a:last-child { border-bottom: 0; color: var(--brand); font-weight: var(--fw-semibold); }
.nav__drawer a:hover { background: var(--surface-alt); }
.nav__cta { display: none; }

@media (min-width: 1024px) {
  .nav__menu { display: flex; }
  .nav__more { display: none; }
  .nav__cta { display: inline-flex; }
}

/* ── 히어로 ────────────────────────────────────────────────── */
/* 이미지가 왼쪽 가장자리에 붙는다. 학원(오른쪽 배치)과 방향을 뒤집었다. */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100svh;
  padding-top: calc(var(--sp-8) + var(--sp-4));
}
/* ★SPEC v1.2 8절 — 모바일에서는 이미지를 배경으로 깔고 텍스트를 겹친다.
   스크림을 작품의 --surface(웜 오프화이트) 톤으로 깔아 본문 색을 유지한 채
   글자 영역 합성 밝기를 0.92 이상으로 확보한다. */
.hero__media { position: absolute; inset: 0; z-index: 0; order: 2; }
.hero__media .img-slot { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hero__media .img-slot > img { object-position: 20% 50%; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg,
    var(--surface) 0%,
    color-mix(in oklab, var(--surface) 94%, transparent) 50%,
    color-mix(in oklab, var(--surface) 38%, transparent) 78%,
    transparent 100%);
  pointer-events: none;
}

.hero__text {
  position: relative;
  z-index: 2;
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-5);
  padding-inline: var(--gutter);
  padding-block: var(--sp-6) var(--sp-7);
}
.hero__eyebrow {
  display: flex; align-items: center; gap: var(--sp-4);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--brand);
}
.hero__eyebrow::after { content: ""; flex: 1; height: 1px; background: color-mix(in oklab, var(--brand) 34%, transparent); }
.hero__title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
}
.hero__title em { font-style: normal; color: var(--brand); }
.hero__lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 34ch; line-height: var(--lh-loose); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-2); }

.hero__index { display: none; }

@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); padding-top: 0; }
  /* 데스크탑에서는 좌우 2단 분할로 되돌린다 */
  .hero__media { position: relative; inset: auto; order: 1; min-height: 100svh; }
  .hero__media::after {
    background: linear-gradient(120deg, color-mix(in oklab, var(--accent) 52%, transparent), transparent 58%);
  }
  .hero__text {
    order: 2;
    gap: var(--sp-4);
    padding-block: var(--sp-9) var(--sp-7);
    padding-left: var(--sp-9);
    padding-right: max(var(--gutter), calc((100vw - var(--container-wide)) / 2));
  }
  /* 첫 화면 안에 취급 분야 인덱스까지 들어간다 — 여백에 방향을 준다 */
  .hero__index {
    display: grid;
    margin-top: var(--sp-5);
    border-top: 1px solid var(--line);
  }
  .hero__index li {
    display: flex; align-items: baseline; gap: var(--sp-4);
    padding-block: var(--sp-3);
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-sm);
    color: var(--ink-2);
  }
  .hero__index b {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--brand);
    letter-spacing: var(--ls-wide);
  }
  .hero__index span { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-3); }
}

/* ── 지표 (조용한 세리프 숫자) ─────────────────────────────── */

.facts { border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.facts__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact { padding: var(--sp-6) var(--sp-5); border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact dt {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--ink-3);
  margin-bottom: var(--sp-3);
}
.fact dd {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.fact dd span { font-size: var(--fs-sm); font-weight: var(--fw-normal); color: var(--ink-2); margin-left: 4px; }

@media (min-width: 768px) {
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: 0; border-right: 1px solid var(--line); }
  .fact:last-child { border-right: 0; }
}

/* ── 섹션 공통 ─────────────────────────────────────────────── */

.sec-head { display: grid; gap: var(--sp-4); align-content: start; }
.split { display: grid; gap: var(--sp-7); }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--sp-9); align-items: start; }
  .split__aside { position: sticky; top: calc(var(--sp-9) + var(--sp-3)); }
}

/* ── 업무분야 인덱스 (헤어라인 그리드) ─────────────────────── */

.practice { display: grid; border-top: 1px solid var(--line-strong); }
.practice > li { border-bottom: 1px solid var(--line); }
.practice a {
  display: grid;
  gap: var(--sp-3);
  padding-block: var(--sp-6);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.practice a:hover { color: var(--brand); padding-left: var(--sp-3); }
.practice__no {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  color: var(--brand);
}
.practice__name { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); }
.practice__desc { font-size: var(--fs-sm); color: var(--ink-2); max-width: 60ch; }
.practice__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); color: var(--ink-3); }

@media (min-width: 768px) {
  .practice a { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 40%); align-items: baseline; gap: var(--sp-6); }
}

/* ── 소개 (풀블리드 + 겹침 카드) ───────────────────────────── */

.intro { position: relative; padding-bottom: var(--section-y); }
.intro__media { border-radius: 0; aspect-ratio: 4 / 5; }
.intro__card {
  position: relative;
  margin-top: calc(var(--sp-8) * -1);
  padding: var(--sp-6);
  background: var(--surface);
  border-top: 3px solid var(--brand);
  box-shadow: var(--sh-lg);
  display: grid;
  gap: var(--sp-5);
}
.intro__sign {
  display: grid; gap: var(--sp-1);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.intro__sign b { font-family: var(--font-display); font-size: var(--fs-md); }
.intro__sign span { color: var(--ink-3); font-size: var(--fs-xs); }

@media (min-width: 768px) {
  .intro__media { aspect-ratio: 2 / 1; }
  .intro__card { margin-top: calc(var(--sp-9) * -1); margin-left: auto; max-width: 640px; padding: var(--sp-8); }
}

/* ── 카드 그리드 ───────────────────────────────────────────── */

.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.tile { display: grid; gap: var(--sp-4); }
.tile figure { border-radius: 0; }
.tile__no {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  color: var(--brand);
}
.tile h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); }
.tile p { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose); }

.panel {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface-alt);
  border-left: 2px solid var(--brand);
}
.panel h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.panel p { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose); }

/* ── 구성원 (사진 대신 세리프 이니셜 · 직각 프레임) ────────── */

.member {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease);
}
.member:hover { border-color: color-mix(in oklab, var(--brand) 50%, var(--line)); }
.member__mark {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
}
.member__role {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--ink-3);
}
.member h3 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); }
.member ul { display: grid; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-2); }
.member li { padding-left: var(--sp-4); position: relative; }
.member li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--brand); }

/* ── 큰 인용구 (어두운 대리석 배경) ────────────────────────── */

.creed {
  position: relative;
  color: var(--accent-ink);
  padding-block: calc(var(--section-y) * 1.2);
  overflow: hidden;
}
.creed__media { position: absolute; inset: 0; z-index: 0; border-radius: 0; aspect-ratio: auto; }
.creed__media > img { width: 100%; height: 100%; object-fit: cover; }
.creed::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg,
    color-mix(in oklab, var(--accent) 88%, transparent),
    color-mix(in oklab, var(--brand) 62%, var(--accent)));
}
.creed .container { position: relative; z-index: 2; }
.creed blockquote { display: grid; gap: var(--sp-6); }
.creed blockquote p {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: 1.42;
  letter-spacing: var(--ls-tight);
}
.creed footer { font-family: var(--font-sans); font-size: var(--fs-sm); color: color-mix(in oklab, var(--accent-ink) 68%, transparent); }
.creed footer b { color: var(--accent-ink); font-weight: var(--fw-semibold); }

/* ── 사례 목록 ─────────────────────────────────────────────── */

.cases { display: grid; border-top: 1px solid var(--line-strong); }
.cases > li {
  display: grid;
  gap: var(--sp-3);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.cases__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--ink-3); }
.cases__meta b { color: var(--brand); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); }
.cases h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); }
.cases p { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose); max-width: 68ch; }
.cases__result {
  justify-self: start;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: var(--sp-2) var(--sp-4);
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  color: var(--brand);
}
@media (min-width: 1024px) {
  .cases > li { grid-template-columns: 180px minmax(0, 1fr); gap: var(--sp-3) var(--sp-8); }
  .cases__meta { flex-direction: column; grid-row: span 3; }
}

/* ── 연혁 ──────────────────────────────────────────────────── */

.history { display: grid; border-top: 1px solid var(--line); }
.history > li { display: grid; gap: var(--sp-2); padding-block: var(--sp-5); border-bottom: 1px solid var(--line); }
.history b { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: var(--brand); }
.history p { font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 768px) { .history > li { grid-template-columns: 140px minmax(0, 1fr); gap: var(--sp-6); align-items: baseline; } }

/* ── FAQ ───────────────────────────────────────────────────── */

.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding-block: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand); }
.qa summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
  transition: transform var(--dur) var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose); max-width: 66ch; }

/* ── 폼 ────────────────────────────────────────────────────── */

.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); color: var(--ink-2); }
.field input, .field select, .field textarea {
  padding: var(--sp-4);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: var(--fs-sm);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .form__row { grid-template-columns: repeat(2, 1fr); } }
.form__agree { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-2); line-height: var(--lh-loose); }
.form__agree input { margin-top: 4px; }

/* ── 정보 목록 ─────────────────────────────────────────────── */

.info { display: grid; border-top: 1px solid var(--line); }
.info > div { display: grid; gap: var(--sp-1); padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
.info dt { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); color: var(--ink-3); }
.info dd { font-size: var(--fs-sm); }
@media (min-width: 768px) { .info > div { grid-template-columns: 150px minmax(0, 1fr); gap: var(--sp-5); align-items: baseline; } }

.map {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background:
    linear-gradient(color-mix(in oklab, var(--brand) 6%, transparent), color-mix(in oklab, var(--brand) 6%, transparent)),
    repeating-linear-gradient(0deg, var(--surface-alt) 0 44px, var(--surface) 44px 45px),
    repeating-linear-gradient(90deg, var(--surface-alt) 0 70px, var(--surface) 70px 71px);
  overflow: hidden;
}
.map__pin { position: absolute; left: 48%; top: 46%; display: grid; gap: var(--sp-2); justify-items: center; transform: translate(-50%, -50%); }
.map__dot { width: 10px; height: 10px; background: var(--brand); box-shadow: 0 0 0 7px color-mix(in oklab, var(--brand) 18%, transparent); }
.map__label {
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  background: var(--surface); border: 1px solid var(--line-strong);
  padding: var(--sp-2) var(--sp-4); white-space: nowrap;
}

/* ── 서브 페이지 헤더 ──────────────────────────────────────── */

.page-head {
  padding-top: calc(var(--sp-9) + var(--sp-6));
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--line);
}
.page-head__inner { display: grid; gap: var(--sp-4); }
.page-head h1 { font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.14; }
.page-head p { font-size: var(--fs-md); color: var(--ink-2); max-width: 54ch; line-height: var(--lh-loose); }
.crumb { display: flex; gap: var(--sp-2); font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

/* ── CTA ───────────────────────────────────────────────────── */

.cta { background: var(--accent); color: var(--accent-ink); padding-block: var(--section-y); }
.cta__inner { display: grid; gap: var(--sp-6); }
.cta__title { font-size: var(--fs-2xl); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); line-height: 1.28; }
.cta__lead { font-size: var(--fs-sm); color: color-mix(in oklab, var(--accent-ink) 72%, transparent); line-height: var(--lh-loose); max-width: 48ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.cta .btn--solid { background: var(--brand); color: var(--brand-ink); }
.cta .btn--solid:hover { background: var(--accent-ink); color: var(--accent); }
@media (min-width: 1024px) {
  .cta__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; gap: var(--sp-9); }
  .cta__actions { justify-content: flex-end; }
}

/* ── 푸터 ──────────────────────────────────────────────────── */

.foot { padding-block: var(--sp-8) var(--sp-6); border-top: 1px solid var(--line); background: var(--surface-alt); }
.foot__inner { display: grid; gap: var(--sp-6); }
.foot__logo { font-family: var(--font-display); font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.foot address { font-style: normal; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.95; margin-top: var(--sp-3); }
.foot__nav { display: grid; gap: var(--sp-3); align-content: start; }
.foot__nav h2 { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--ink-3); }
.foot__nav a { font-size: var(--fs-sm); color: var(--ink-2); }
.foot__nav a:hover { color: var(--brand); }
.foot__copy {
  grid-column: 1 / -1;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: var(--lh-loose);
}
@media (min-width: 768px) { .foot__inner { grid-template-columns: 1.7fr 1fr 1fr; gap: var(--sp-7); } }

/* ============================================================
   ★ 브랜드 마크 · 아이콘 · 반응
   기존 레이아웃·색·타이포는 건드리지 않고 더하기만 했다.
   법무법인이라 반응은 최대한 절제한다 — 밑줄·헤어라인·미세한 리프트까지만.
   ============================================================ */

/* ── 마크 ─ 곱자. 로고에 올리면 눈금이 한 칸 자란다 ───────── */

.nav__logo { display: flex; align-items: center; gap: var(--sp-4); }
.nav__logo-txt { display: grid; gap: 2px; }
.nav__mark { flex: none; color: var(--brand); }
.nav__mark .mk-tick { transition: transform var(--dur) var(--ease-out); }
.nav__logo:hover .mk-tick { transform: translateY(-2px); }
.nav__mark .mk-square { transition: stroke-width var(--dur) var(--ease); }
.nav__logo:hover .mk-square { stroke-width: 2.9; }

.foot__logo { display: flex; align-items: center; gap: var(--sp-4); }
.foot__logo .nav__mark { transition: transform var(--dur-slow) var(--ease-out); }
.foot__logo:hover .nav__mark { transform: translateY(-2px); }

/* ── 아이콘 ─ 1em 기준이라 옆 글자와 자동으로 맞는다 ──────── */

.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

.btn__arrow { font-size: 1.25em; transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.practice__name, .panel h3, .tile h3, .cases h3, .info dt {
  display: flex; align-items: center; gap: var(--sp-3);
}
.practice__name .ico, .panel h3 .ico, .tile h3 .ico {
  color: var(--brand);
  transition: transform var(--dur) var(--ease-out);
}
.cases h3 .ico { color: var(--brand); font-size: var(--fs-md); transition: transform var(--dur) var(--ease-out); }
.info dt .ico { color: var(--brand); font-size: var(--fs-sm); }

/* ── 내비 ─ 밑줄이 오른쪽에서 왼쪽으로 그어진다 ───────────── */

.nav__menu a { position: relative; }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__menu a:hover::after,
.nav__menu a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__drawer a { transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease); }
.nav__drawer a:hover { padding-left: var(--sp-6); }
.nav__more[open] .nav__drawer { animation: drawerOpen var(--dur) var(--ease-out) both; }

@keyframes drawerOpen {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: none; }
}

/* ── 지표 ─ 헤어라인 칸에 올리면 지면이 한 겹 밝아진다 ────── */

.fact { transition: background var(--dur) var(--ease); }
.fact dt { transition: color var(--dur) var(--ease); }
.fact dd { transition: color var(--dur) var(--ease); }
.fact:hover { background: var(--surface); }
.fact:hover dt { color: var(--brand); }
.fact:hover dd { color: var(--brand); }

/* ── 업무분야 인덱스 ──────────────────────────────────────── */

.practice > li { position: relative; }
.practice > li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-slow) var(--ease-out);
}
.practice > li:hover::after { transform: scaleX(1); transform-origin: left; }
.practice__no { transition: color var(--dur) var(--ease); }
.practice a:hover .practice__no { color: var(--ink); }
.practice a:hover .practice__name .ico { transform: translateX(2px); }
.practice__tags { transition: color var(--dur) var(--ease); }
.practice a:hover .practice__tags { color: var(--ink-2); }

/* ── 수임 전 3종 · 업무분야 패널 ──────────────────────────── */

.tile figure { overflow: hidden; }
.tile img { transition: transform var(--dur-slow) var(--ease-out); }
.tile:hover img { transform: scale(1.04); }
.tile__no { transition: letter-spacing var(--dur) var(--ease); }
.tile:hover .tile__no { letter-spacing: var(--ls-widest); }
.tile:hover h3 .ico { transform: translateY(-2px); }

.panel { transition: border-left-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.panel:hover { border-left-color: var(--accent); background: color-mix(in oklab, var(--brand) 5%, var(--surface-alt)); }
.panel:hover h3 .ico { transform: translateY(-2px); }

/* ── 구성원 ───────────────────────────────────────────────── */

.member__mark { transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.member:hover .member__mark { background: var(--brand); color: var(--brand-ink); }
.member__role { transition: color var(--dur) var(--ease); }

/* ── 사례 · 원칙 목록 ─────────────────────────────────────── */

.cases > li { transition: background var(--dur) var(--ease); }
.cases > li:hover { background: color-mix(in oklab, var(--brand) 4%, transparent); }
.cases__result { transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.cases > li:hover .cases__result { color: var(--brand); }
.cases > li:hover h3 .ico { transform: translateX(2px); }
.cases__meta b { transition: letter-spacing var(--dur) var(--ease); }
.cases > li:hover .cases__meta b { letter-spacing: var(--ls-widest); }

/* ── FAQ ─ 열릴 때 답이 흘러나온다 ────────────────────────── */

@keyframes qaOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.qa[open] p { animation: qaOpen var(--dur) var(--ease-out) both; }
.qa summary { transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease); }
.qa summary:hover { padding-left: var(--sp-3); }

/* ── 정보 목록 · 상담 폼 ──────────────────────────────────── */

.info > div { transition: background var(--dur) var(--ease); }
.info > div:hover { background: color-mix(in oklab, var(--brand) 5%, transparent); }
.field input, .field select, .field textarea {
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand); }
.field input:focus, .field select:focus, .field textarea:focus { background: color-mix(in oklab, var(--brand) 4%, transparent); }
.field label { transition: color var(--dur) var(--ease); }
.field:hover label { color: var(--brand); }

/* ── 약도 ─ 핀이 천천히 숨을 쉰다 ─────────────────────────── */

.map__dot { animation: pinPulse 3.2s var(--ease) infinite; }
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--brand) 18%, transparent); }
  50%      { box-shadow: 0 0 0 12px color-mix(in oklab, var(--brand) 8%, transparent); }
}
.map { transition: border-color var(--dur) var(--ease); }
.map:hover { border-color: var(--brand); }

/* ── 푸터 링크 ────────────────────────────────────────────── */

.foot__nav a { position: relative; transition: color var(--dur) var(--ease); }
.foot__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.foot__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.crumb a { transition: color var(--dur) var(--ease); }

/* ── 형제 요소 계단식 지연 ─ 동시에 튀어오르면 기계적이다 ─── */

html.js .facts__grid .reveal:nth-child(2) { transition-delay: 60ms; }
html.js .facts__grid .reveal:nth-child(3) { transition-delay: 120ms; }
html.js .facts__grid .reveal:nth-child(4) { transition-delay: 180ms; }
html.js .practice .reveal:nth-child(2) { transition-delay: 60ms; }
html.js .practice .reveal:nth-child(3) { transition-delay: 120ms; }
html.js .practice .reveal:nth-child(4) { transition-delay: 180ms; }
html.js .practice .reveal:nth-child(5) { transition-delay: 240ms; }
html.js .practice .reveal:nth-child(6) { transition-delay: 300ms; }
html.js .grid .reveal:nth-child(2) { transition-delay: 80ms; }
html.js .grid .reveal:nth-child(3) { transition-delay: 160ms; }
html.js .grid .reveal:nth-child(4) { transition-delay: 240ms; }
html.js .cases .reveal:nth-child(2) { transition-delay: 70ms; }
html.js .cases .reveal:nth-child(3) { transition-delay: 140ms; }
html.js .cases .reveal:nth-child(4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transition-delay: 0s !important; }
  .nav__logo:hover .mk-tick,
  .foot__logo:hover .nav__mark,
  .btn:hover .btn__arrow,
  .practice a:hover .practice__name .ico,
  .tile:hover img, .tile:hover h3 .ico,
  .panel:hover h3 .ico,
  .cases > li:hover h3 .ico { transform: none; }
  .qa summary:hover, .nav__drawer a:hover, .practice a:hover { padding-left: 0; }
  .map__dot { animation: none; }
  .nav__more[open] .nav__drawer { animation: none; }
}


/* ===== 획일성 제거 — CRP 무드 어휘 =====================================
   160작품이 레퍼런스의 밑줄 draw·카드 리프트·대문자 킥커를 그대로 복사해
   같은 사이트 리스킨으로 보였다. 반응 방식을 무드에 맞게 갈아끼운다.
   ==================================================================== */
/* 세로 카덴스를 작품마다 다르게 — 전부 같은 --section-y 를 쓰는 게 구조적 tell 이었다 */
:root { --section-y: clamp(3.77rem, 2.3455rem + 6.1187vw, 7.55rem); }

/* 코퍼레이트 — 밑줄이 애니메이션 없이 즉시 나타난다. 신뢰형에는 절제가 맞다. */
.nav__menu a::after, .practice > li::after, .foot__nav a::after { display: none !important; }
.foot__nav a, .nav__menu a, .practice > li { border-bottom: 2px solid transparent; padding-bottom: 2px; }
.foot__nav a, .nav__menu a, .practice > li:hover { border-bottom-color: var(--brand); }
.nav__logo:hover .mk-tick, .foot__logo:hover .nav__mark, .tile:hover h3 .ico, .panel:hover h3 .ico { transform: none; }
.nav__logo:hover .mk-tick, .foot__logo:hover .nav__mark, .tile:hover h3 .ico, .panel:hover h3 .ico { box-shadow: 0 2px 10px color-mix(in oklab, var(--ink) 8%, transparent); }

/* webit-touch */
@media (max-width: 767px) {
  .nav__inner { flex-wrap: wrap; overflow: visible; }
  .hero__actions, .hero__acts { flex-wrap: wrap; }
}
html.tier-premium .btn--solid { letter-spacing: .08em; text-transform: uppercase; font-size: .92em; }
