@charset "utf-8";

/* ============================================================
   법무사법인 제이앤 — 개인회생 · 개인파산 랜딩
   자체 호스팅 폰트 / 외부 도메인 호출 없음
   ============================================================ */

@font-face {
  font-family: "Pretendard";
  src: url("assets/pretendard-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("assets/pretendard-600.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif KR";
  src: url("assets/noto-serif-kr-600.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif KR";
  src: url("assets/noto-serif-kr-400.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest-900: #0a1e1a;
  --forest-800: #0e2621;
  --forest-700: #122e28;
  --forest-600: #1a3d35;
  --forest-500: #2c554b;
  --ivory: #f7f2e7;
  --ivory-2: #fcf9f3;
  --paper: #efe7d8;
  --brass: #bb9855;
  --brass-2: #d7bc86;
  --ink: #16231f;
  --ink-soft: #40514c;
  --muted: #6c7b76;
  --line: rgba(20, 40, 34, 0.14);
  --line-light: rgba(247, 242, 231, 0.2);

  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;

  --shell: 1220px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --slow: 0.9s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory-2);
  overflow-x: hidden;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; }
dl, dd, ol, ul { margin: 0; padding: 0; list-style: none; }

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 10px; left: 50%;
  transform: translate(-50%, -160%);
  z-index: 200;
  padding: 10px 20px;
  background: var(--forest-800);
  color: var(--ivory);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ── 스크롤 진행선 ───────────────────────── */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brass), var(--brass-2));
  transform-origin: left center;
  transition: width 0.12s linear;
}

/* ── 헤더 ───────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--ivory);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), height 0.45s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 20, 0.55), rgba(8, 24, 20, 0));
  opacity: 1;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.site-header.is-stuck {
  height: 64px;
  background: rgba(11, 32, 27, 0.93);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(247, 242, 231, 0.09);
}
.site-header.is-stuck::after { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(100% - 40px, 1360px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  color: var(--brass-2);
  border: 1px solid rgba(215, 188, 134, 0.42);
  border-radius: 3px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.brand:hover .brand-mark { border-color: var(--brass-2); color: var(--brass); }
.brand-text { display: grid; line-height: 1.25; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-text em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(247, 242, 231, 0.62);
}

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  position: relative;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
  color: rgba(247, 242, 231, 0.86);
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass-2);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: #fff; }
.site-nav a:hover::after, .site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-tel-icon { display: none; }
.header-tel {
  display: grid;
  gap: 1px;
  padding: 8px 18px;
  border: 1px solid rgba(215, 188, 134, 0.45);
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.header-tel:hover {
  background: rgba(215, 188, 134, 0.14);
  border-color: var(--brass-2);
  transform: translateY(-1px);
}
.header-tel-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--brass-2);
}
.header-tel-num { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid rgba(247, 242, 231, 0.3);
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 6px; width: 20px; }
.nav-toggle-bars i {
  display: block; height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ── 히어로 ─────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: var(--forest-900);
  color: var(--ivory);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 64% 52%;
  transform: scale(1.08);
  filter: saturate(0.95);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(7, 22, 19, 0.96) 0%, rgba(8, 25, 21, 0.9) 26%,
      rgba(9, 28, 23, 0.62) 46%, rgba(10, 30, 25, 0.18) 66%, rgba(10, 30, 25, 0.02) 84%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 22, 19, 0.5) 0%, rgba(7, 22, 19, 0) 26%),
    linear-gradient(0deg, rgba(7, 22, 19, 0.72) 0%, rgba(7, 22, 19, 0) 34%);
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--header-h) + 40px) 0 34px;
}
.hero-copy { max-width: 640px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 42px; height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

.hero .eyebrow { letter-spacing: 0.15em; font-size: 12.5px; }
.hero .eyebrow span { white-space: nowrap; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.1vw, 4.7rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin-bottom: 30px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title em {
  font-style: normal;
  color: var(--brass-2);
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s 0.9s var(--ease);
}
.hero-title.is-in em::after,
html:not(.js-motion) .hero-title em::after { transform: scaleX(1); }

.hero-lede {
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.95;
  color: rgba(247, 242, 231, 0.82);
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.hero-tel {
  display: grid;
  gap: 2px;
  text-decoration: none;
  padding: 12px 30px 12px 0;
  position: relative;
}
.hero-tel::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 1px; height: 42px;
  background: var(--line-light);
  transform: translateY(-50%);
}
.hero-tel-caption {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brass-2);
}
.hero-tel-num {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: color 0.3s var(--ease);
}
.hero-tel:hover .hero-tel-num { color: var(--brass-2); }
.hero-note {
  max-width: 260px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(247, 242, 231, 0.6);
}

.scroll-cue {
  align-self: flex-end;
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: rgba(247, 242, 231, 0.55);
  writing-mode: vertical-rl;
  margin-bottom: 8px;
}
.scroll-cue-line {
  width: 1px; height: 68px;
  background: linear-gradient(180deg, rgba(215, 188, 134, 0.75), rgba(215, 188, 134, 0));
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px; height: 22px;
  background: var(--ivory);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-24px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(68px); opacity: 0; }
}

/* ── 히어로 하단 상담 띠 ─────────────────── */
.consult-band {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(252, 249, 243, 0.97), var(--ivory-2));
  border-top: 1px solid rgba(187, 152, 85, 0.4);
  color: var(--ink);
  box-shadow: 0 -22px 60px rgba(7, 22, 19, 0.28);
}
.band-inner {
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr;
  gap: 34px;
  align-items: start;
  padding: 26px 0 24px;
}
.band-head { border-right: 1px solid var(--line); padding-right: 30px; }
.band-eyebrow {
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--brass);
  margin-bottom: 8px;
}
.band-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.band-sub { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

.band-form fieldset { border: 0; margin: 0; padding: 0; display: contents; }
.band-form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px 16px;
  align-items: end;
}
.field { display: grid; gap: 6px; }
.field-name { grid-column: span 3; }
.field-phone { grid-column: span 3; }
.field-debt { grid-column: span 3; }
.field-submit { grid-column: span 3; }
.band-extra {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.form-availability, .form-note, .form-feedback { grid-column: 1 / -1; }

.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.req, .opt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 2px;
}
.req { background: rgba(187, 152, 85, 0.16); color: #8a6a26; }
.opt { background: rgba(20, 40, 34, 0.07); color: var(--muted); }

input[type="text"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 15.5px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  appearance: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: #a6b0ac; }
input:hover, select:hover, textarea:hover { border-color: rgba(20, 40, 34, 0.28); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(187, 152, 85, 0.18);
}
input:user-invalid, textarea:user-invalid { border-color: #b3452f; }

.select-wrap { position: relative; }
.select-caret {
  position: absolute;
  right: 15px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.4px solid var(--ink-soft);
  border-bottom: 1.4px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn > span { position: relative; z-index: 1; }
.btn-arrow { position: relative; z-index: 1; transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-brass {
  background: linear-gradient(135deg, #c8a765, var(--brass));
  color: #17241f;
  box-shadow: 0 8px 22px rgba(133, 105, 48, 0.22);
}
.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(133, 105, 48, 0.3); }
.btn-brass:active { transform: translateY(0); }
.btn-brass[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--brass); background: rgba(187, 152, 85, 0.08); }

.btn-ghost {
  background: transparent;
  border-color: rgba(247, 242, 231, 0.38);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--brass-2); background: rgba(215, 188, 134, 0.12); }

.btn-lg { min-height: 58px; padding: 16px 34px; font-size: 16px; }

.more-details, .privacy-details { font-size: 13px; }
.more-details summary, .privacy-details summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--ink-soft);
  list-style: none;
  padding: 6px 0;
  min-height: 34px;
  text-underline-offset: 3px;
}
.more-details summary::-webkit-details-marker,
.privacy-details summary::-webkit-details-marker { display: none; }
.privacy-details summary { text-decoration: underline; color: var(--muted); }
.more-mark {
  width: 14px; height: 14px;
  position: relative;
  flex: none;
}
.more-mark::before, .more-mark::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.4px;
  background: var(--brass);
  transition: transform 0.3s var(--ease);
}
.more-mark::after { transform: rotate(90deg); }
.more-details[open] .more-mark::after { transform: rotate(0deg); }
.more-body { padding: 8px 0 4px; }
.band-extra .more-details { flex: 1 1 300px; }

.consent {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.consent input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--brass);
  cursor: pointer;
  flex: none;
}
.consent label { font-size: 13.5px; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.privacy-body {
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(20, 40, 34, 0.04);
  border-left: 2px solid var(--brass);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.privacy-body dl > div { display: flex; gap: 10px; }
.privacy-body dt { min-width: 96px; color: var(--muted); }
.privacy-body p { margin-top: 8px; color: var(--muted); }

.form-note, .form-availability { font-size: 12.5px; color: var(--muted); }
.form-feedback[hidden] { display: none; }
.form-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 2px;
  background: rgba(179, 69, 47, 0.08);
  border-left: 3px solid #b3452f;
  font-size: 14px;
  line-height: 1.7;
  color: #7d2f1e;
}
.form-feedback.is-success {
  background: rgba(26, 61, 53, 0.07);
  border-left-color: var(--forest-600);
  color: var(--forest-600);
}
.form-feedback-mark {
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  flex: none;
}
.form-feedback-mark::after {
  content: "!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.form-feedback.is-success .form-feedback-mark::after { content: "✓"; font-size: 10px; }

/* ── 섹션 공통 ──────────────────────────── */
.section { padding: clamp(84px, 9vw, 132px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(46px, 5vw, 68px); }
.section-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3.5vw, 3.1rem);
  line-height: 1.28;
  letter-spacing: -0.035em;
}
.section-lede {
  margin-top: 20px;
  font-size: clamp(0.97rem, 1.15vw, 1.08rem);
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 620px;
}
.section .eyebrow { color: var(--brass); }
.disclaimer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ── 제도 안내 (탭) ─────────────────────── */
.section-system { background: var(--ivory-2); }
.tablist {
  position: relative;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.tablist [role="tab"] {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 34px 18px 4px;
  margin-right: 26px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.tablist [role="tab"]:hover { color: var(--ink-soft); }
.tablist [role="tab"][aria-selected="true"] { color: var(--ink); }
.tab-num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.tab-name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tab-ink {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  background: var(--brass);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}

.tabpanel { padding-top: clamp(34px, 4vw, 54px); }
.tabpanel[hidden] { display: none; }
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.panel-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 14px;
}
.panel-lead h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.42;
  letter-spacing: -0.03em;
}
.panel-body {
  margin-top: 20px;
  color: var(--ink-soft);
  line-height: 1.95;
  max-width: 470px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 0;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--forest-600);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--brass); border-color: var(--brass); gap: 16px; }

.panel-list { display: grid; }
.panel-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.panel-list li:last-child { border-bottom: 1px solid var(--line); }
.li-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--brass);
}
.li-text { font-size: 16.5px; line-height: 1.7; color: var(--ink); }

/* ── 산정 기준 ──────────────────────────── */
.section-basis {
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(187, 152, 85, 0.11), transparent 58%),
    var(--paper);
}
.basis-figure {
  background: var(--ivory-2);
  border: 1px solid rgba(20, 40, 34, 0.1);
  padding: clamp(26px, 3.4vw, 42px);
  margin-bottom: clamp(34px, 4vw, 52px);
}
.figure-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.bar-track {
  display: flex;
  height: 78px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(20, 40, 34, 0.06);
}
.bar-seg {
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  width: 0;
  transition: width 1.15s var(--ease);
  white-space: nowrap;
  overflow: hidden;
}
.seg-living {
  background: linear-gradient(120deg, var(--forest-600), var(--forest-500));
  --target: 58%;
}
.seg-avail {
  background: linear-gradient(120deg, #c8a765, var(--brass));
  color: #17241f;
  --target: 42%;
}
html:not(.js-motion) .bar-seg,
.bar.is-in .bar-seg { width: var(--target); }
.bar-legend {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: 1px;
}
.dot-living { background: var(--forest-600); }
.dot-avail { background: var(--brass); }
.figure-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.factors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(20, 40, 34, 0.16);
}
.factors li {
  padding: 30px 26px 30px 0;
  border-right: 1px solid rgba(20, 40, 34, 0.12);
}
.factors li:last-child { border-right: 0; }
.factors li + li { padding-left: 26px; }
.factor-num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.factors h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 12px 0 10px;
  letter-spacing: -0.02em;
}
.factors p { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); }


/* ── 진행 절차 ──────────────────────────── */
.section-process { background: var(--forest-800); color: var(--ivory); }
.section-process .section-title { color: var(--ivory); }
.section-process .section-lede { color: rgba(247, 242, 231, 0.72); }
.section-process .eyebrow { color: var(--brass-2); }
.section-process .disclaimer { border-color: var(--line-light); color: rgba(247, 242, 231, 0.56); }

.timeline { position: relative; padding-left: clamp(38px, 5vw, 74px); }
.timeline-rail {
  position: absolute;
  left: clamp(11px, 1.6vw, 22px);
  top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(247, 242, 231, 0.16);
}
.timeline-rail span {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  transition: height 0.25s linear;
}
.timeline li {
  position: relative;
  padding: clamp(26px, 3vw, 38px) 0;
  border-bottom: 1px solid rgba(247, 242, 231, 0.11);
  max-width: 720px;
  transition: opacity 0.5s var(--ease);
}
.timeline li:first-child { padding-top: 0; }
.step-dot {
  position: absolute;
  left: calc(-1 * clamp(38px, 5vw, 74px) + clamp(7px, 1.6vw, 18px));
  top: clamp(30px, 3.4vw, 44px);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--forest-800);
  border: 1px solid rgba(247, 242, 231, 0.4);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.timeline li:first-child .step-dot { top: 4px; }
.timeline li.is-current .step-dot {
  background: var(--brass-2);
  border-color: var(--brass-2);
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(215, 188, 134, 0.16);
}
.step-num {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--brass-2);
  margin-bottom: 12px;
  transition: color 0.4s var(--ease);
}
.timeline h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  letter-spacing: -0.03em;
  line-height: 1.4;
}
.step-body {
  margin-top: 14px;
  color: rgba(247, 242, 231, 0.7);
  line-height: 1.9;
  font-size: 15.5px;
}

/* ── 사무소 ─────────────────────────────── */
.section-about { background: var(--ivory-2); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}
.about-media { margin: 0; position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: 2px;
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(187, 152, 85, 0.5);
  z-index: -1;
  border-radius: 2px;
}
.about-media figcaption {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
}
.about-lede {
  margin-top: 22px;
  font-size: 1.02rem;
  line-height: 2;
  color: var(--ink-soft);
}
.office-facts {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.office-facts > div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.office-facts dt {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.office-facts dd { font-size: 15.5px; line-height: 1.72; }

/* ── 오시는 길 ──────────────────────────── */
.section-visit { background: var(--paper); }
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: center;
}
.visit-card {
  background: var(--ivory-2);
  border: 1px solid rgba(20, 40, 34, 0.1);
  padding: clamp(28px, 3.4vw, 44px);
  box-shadow: 0 24px 60px rgba(20, 40, 34, 0.07);
}
.visit-region {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--brass);
  margin-bottom: 18px;
}
.visit-address {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.55;
  letter-spacing: -0.025em;
}
.visit-address strong { color: var(--forest-600); font-weight: 600; }
.visit-zip { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.visit-actions .btn { padding: 10px 20px; min-height: 46px; font-size: 14px; }
.copy-status { margin-top: 10px; font-size: 12.5px; color: var(--forest-600); min-height: 18px; }
.visit-tel {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.visit-tel > div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; }
.visit-tel dt { font-size: 13px; color: var(--muted); }
.visit-tel dd { font-size: 16px; font-weight: 600; }
.visit-tel a { text-decoration: none; transition: color 0.25s var(--ease); }
.visit-tel a:hover { color: var(--brass); }

/* ── 마감 상담 ──────────────────────────── */
.section-closing {
  position: relative;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(187, 152, 85, 0.18), transparent 62%),
    linear-gradient(160deg, var(--forest-700), var(--forest-900));
  color: var(--ivory);
  overflow: hidden;
  padding: clamp(96px, 11vw, 156px) 0;
}
.closing-emblem {
  position: absolute;
  right: -30px; bottom: -46px;
  color: rgba(215, 188, 134, 0.13);
  pointer-events: none;
}
.closing-inner { position: relative; max-width: 820px; }
.section-closing .eyebrow { color: var(--brass-2); }
.closing-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.3;
  letter-spacing: -0.038em;
}
.closing-title em { font-style: normal; color: var(--brass-2); }
.closing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 42px;
}
.closing-actions p {
  width: 100%;
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(247, 242, 231, 0.6);
}

/* ── 푸터 ───────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--forest-900);
  color: rgba(247, 242, 231, 0.72);
  padding: clamp(52px, 6vw, 76px) 0 40px;
  font-size: 13.5px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ivory);
  letter-spacing: 0.01em;
}
.footer-brand em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(247, 242, 231, 0.5);
}
.footer-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 34px;
}
.footer-facts > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; }
.footer-facts dt { color: rgba(247, 242, 231, 0.45); }
.footer-note {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(247, 242, 231, 0.5);
}
.footer-copy { margin-top: 14px; font-size: 12px; color: rgba(247, 242, 231, 0.4); }

.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: rgba(14, 38, 33, 0.92);
  color: var(--ivory);
  border: 1px solid rgba(215, 188, 134, 0.4);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  z-index: 90;
}
.back-to-top.is-shown, .back-to-top:focus-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover { background: var(--forest-600); }

/* ── 모바일 고정 CTA ────────────────────── */
.mobile-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  display: none;
  gap: 1px;
  background: rgba(215, 188, 134, 0.28);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 28px rgba(7, 22, 19, 0.24);
}
.mobile-cta a {
  flex: 1;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-cta-tel { background: var(--forest-800); color: var(--ivory); }
.mobile-cta-form { background: linear-gradient(135deg, #c8a765, var(--brass)); color: #17241f; }

/* ── 등장 연출 ──────────────────────────── */
.js-motion [data-rv] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js-motion [data-rv].is-in { opacity: 1; transform: none; }
.js-motion [data-rv]:focus-within { opacity: 1; transform: none; }

.js-motion [data-rv-line] > * { display: inline-block; }
.js-motion .hero-title .line span,
.js-motion .hero-title .line {
  will-change: transform;
}
.js-motion .hero-title .line { opacity: 0; transform: translateY(105%); }
.js-motion .hero-title.is-in .line { opacity: 1; transform: none; }
.js-motion .hero-title .line { transition: transform 1s var(--ease), opacity 1s var(--ease); }
.js-motion .hero-title.is-in .line:nth-child(1) { transition-delay: 0.12s; }
.js-motion .hero-title.is-in .line:nth-child(2) { transition-delay: 0.24s; }
.js-motion .hero-title.is-in .line:nth-child(3) { transition-delay: 0.36s; }

.js-motion .hero-media img {
  transform: scale(1.16);
  opacity: 0;
  transition: transform 2.6s var(--ease), opacity 1.4s ease-out;
}
.js-motion .hero-media img.is-in { transform: scale(1.02); opacity: 1; }

.js-motion .hero-copy [data-rv].is-in { transition-delay: 0.1s; }
.js-motion .hero-lede.is-in { transition-delay: 0.48s; }
.js-motion .hero-meta.is-in { transition-delay: 0.6s; }
.js-motion .scroll-cue.is-in { transition-delay: 0.9s; }

.js-motion .factors li[data-rv].is-in:nth-child(2) { transition-delay: 0.08s; }
.js-motion .factors li[data-rv].is-in:nth-child(3) { transition-delay: 0.16s; }
.js-motion .factors li[data-rv].is-in:nth-child(4) { transition-delay: 0.24s; }

/* 스크립트가 끝내 오지 않으면 전부 되돌린다 */
.motion-off [data-rv],
.motion-off .hero-title .line,
.motion-off .hero-media img {
  opacity: 1 !important;
  transform: none !important;
}
.motion-off .bar-seg { width: var(--target); }

/* ── 반응형 ─────────────────────────────── */
@media (max-width: 1180px) {
  .site-nav { gap: 22px; }
  .site-nav a { font-size: 14px; }
  .hero-note { display: none; }
}

@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 32, 27, 0.98);
    backdrop-filter: blur(14px);
    padding: 8px 24px 22px;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    border-bottom: 1px solid rgba(215, 188, 134, 0.25);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a {
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(247, 242, 231, 0.1);
  }
  .site-nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-tel { padding: 8px 15px; min-height: 44px; align-content: center; }
  .header-tel-label { display: none; }
  .header-tel-num { white-space: nowrap; font-size: 14.5px; }
  .header-inner { gap: 12px; width: min(100% - 32px, 1360px); }

  .band-inner { grid-template-columns: 1fr; gap: 20px; }
  .band-head { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; }
  .field-name, .field-phone { grid-column: span 6; }
  .field-debt { grid-column: span 6; }
  .field-submit { grid-column: span 6; }

  .section-head-split { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .panel-grid { grid-template-columns: 1fr; }
  .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factors li:nth-child(2) { border-right: 0; }
  .factors li:nth-child(3), .factors li:nth-child(4) { border-top: 1px solid rgba(20, 40, 34, 0.12); }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .footer-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 좁은 화면에서는 헤더 전화가 아이콘 하나로 줄어든다.
   번호 자체는 하단 고정 CTA · 히어로 · 오시는 길에 그대로 있다. */
@media (max-width: 620px) {
  .header-tel {
    width: 46px; height: 46px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
  }
  .header-tel-num { display: none; }
  .header-tel-icon { display: block; color: var(--brass-2); }
  .header-inner { gap: 10px; width: min(100% - 28px, 1360px); }
  .header-actions { gap: 8px; }
  .brand-text strong { font-size: 16px; }
  .brand-text em { display: none; }
  .brand { gap: 10px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 36px, var(--shell)); }
  .hero { min-height: auto; }
  .hero-media img { object-position: 52% 26%; }
  .brand-text em { display: none; }
  .brand-text strong { font-size: 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7, 22, 19, 0.72) 0%, rgba(7, 22, 19, 0.42) 30%,
        rgba(8, 25, 21, 0.68) 62%, rgba(8, 25, 21, 0.95) 100%);
  }
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 40px) 0 24px;
    min-height: 74svh;
    justify-content: flex-end;
  }
  .hero-title { font-size: clamp(2.15rem, 9.2vw, 2.9rem); line-height: 1.24; margin-bottom: 22px; }
  .hero-lede { font-size: 15px; line-height: 1.85; margin-bottom: 28px; }
  .eyebrow { margin-bottom: 20px; font-size: 11px; letter-spacing: 0.22em; }
  .eyebrow::before { width: 26px; }
  .hero-meta { gap: 14px; }
  .hero-tel { padding-right: 0; }
  .hero-tel::after { display: none; }
  .scroll-cue { display: none; }

  .consult-band { box-shadow: none; }
  .band-inner { padding: 26px 0 30px; }
  .band-title { font-size: 1.45rem; }
  .band-form { grid-template-columns: 1fr; gap: 14px; }
  .field-name, .field-phone, .field-debt, .field-submit { grid-column: 1 / -1; }
  .btn-submit { width: 100%; min-height: 54px; }
  .band-extra { flex-direction: column; align-items: stretch; gap: 10px; }

  .section { padding: 76px 0; }
  .section-title { font-size: clamp(1.75rem, 7.4vw, 2.3rem); line-height: 1.36; }
  .tablist { gap: 0; }
  .tablist [role="tab"] { padding: 14px 0; margin-right: 26px; flex: 1; justify-content: flex-start; }
  .tab-name { font-size: 1.15rem; }
  .panel-list li { grid-template-columns: 42px 1fr; gap: 12px; padding: 18px 0; }
  .li-text { font-size: 15.5px; }

  .bar-track { height: auto; flex-direction: column; }
  .bar-seg { width: 100% !important; min-height: 58px; padding: 14px 18px; }
  .factors { grid-template-columns: 1fr; }
  .factors li { padding: 24px 0; border-right: 0; border-top: 1px solid rgba(20, 40, 34, 0.12); }
  .factors li + li { padding-left: 0; }
  .factors li:first-child { border-top: 0; }

  .timeline { padding-left: 30px; }
  .timeline-rail { left: 5px; }
  .step-dot { left: -30px; }
  .timeline h3 { font-size: 1.25rem; }
  .step-body { font-size: 15px; }

  .office-facts > div, .visit-tel > div { grid-template-columns: 92px 1fr; gap: 12px; }
  .closing-actions .btn { width: 100%; }
  .closing-emblem { right: -60px; bottom: -60px; opacity: 0.6; }
  .footer-facts { grid-template-columns: 1fr; }
  .footer-facts > div { grid-template-columns: 96px 1fr; }

  .mobile-cta { display: flex; }
  main { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(58px + env(safe-area-inset-bottom) + 24px); }
  .back-to-top { display: none; }
}

@media (max-width: 380px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .brand-text em { display: none; }
  .header-tel-num { font-size: 14px; }
}

/* ── 동작 줄이기 ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scroll-cue-line::after { display: none; }
  [data-rv], .hero-title .line, .hero-media img {
    opacity: 1 !important;
    transform: none !important;
  }
  .bar-seg { width: var(--target); }
  .hero-media img { transform: scale(1.02) !important; }
}

@media (prefers-contrast: more) {
  :root { --muted: #4c5b56; --line: rgba(20, 40, 34, 0.3); }
}
