:root {
  --bg: #ffffff;
  --bg-soft: #f6f4ef;          /* warm ivory */
  --bg-elev: #ffffff;
  --heading: #11243a;           /* deep navy for headings */
  --fg: #26313d;                /* body */
  --fg-soft: #4a5765;
  --muted: #7a8794;
  --border: #e7e2d7;            /* warm hairline */
  --navy: #11243a;
  --navy-2: #0a1726;
  --navy-3: #16304d;
  --accent: #9c7c4d;            /* bronze / gold */
  --accent-strong: #7e6239;
  --accent-soft: #f1ebdf;
  --on-navy: #eef2f7;
  --on-navy-soft: #b9c4d2;
  --on-navy-border: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 2px rgba(17, 36, 58, 0.06);
  --shadow-md: 0 14px 36px rgba(17, 36, 58, 0.10);
  --shadow-lg: 0 30px 70px rgba(17, 36, 58, 0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --font-sans: "Pretendard", "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  --font-serif: "Noto Serif KR", Georgia, "Times New Roman", serif;
}

[data-theme="dark"] {
  --bg: #0a1320;
  --bg-soft: #0e1b2b;
  --bg-elev: #122236;
  --heading: #eef3fb;
  --fg: #d6deea;
  --fg-soft: #b3bfce;
  --muted: #8595a6;
  --border: #213245;
  --navy: #0c1828;
  --navy-2: #060f1b;
  --navy-3: #16304d;
  --accent: #c5a06a;
  --accent-strong: #d8b884;
  --accent-soft: #1a2536;
  --on-navy: #eef2f7;
  --on-navy-soft: #b9c4d2;
  --on-navy-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 286px;
  height: auto;
}
[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1) contrast(0.92) brightness(0.96) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.08));
  opacity: 0.94;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--fg-soft);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--heading); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.22s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.5rem; }

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  width: 38px; height: 38px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, transform 0.3s, background 0.15s, color 0.15s;
}
.icon-btn:hover { border-color: var(--accent); transform: rotate(180deg); color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 36, 58, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--navy-3); box-shadow: 0 14px 28px rgba(17, 36, 58, 0.30); }
[data-theme="dark"] .btn-primary { background: var(--accent); color: #1a1206; }
[data-theme="dark"] .btn-primary:hover { background: var(--accent-strong); }

.btn-ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* light & outline buttons used on dark hero sections */
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); }
.btn-outline { background: transparent; color: #fff; border-color: var(--on-navy-border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-consult {
  background: #9c7c4d;
  color: #fff;
  box-shadow: 0 10px 24px rgba(156, 124, 77, 0.28);
}
.btn-consult:hover {
  transform: translateY(-2px);
  background: #7e6239;
  box-shadow: 0 16px 34px rgba(156, 124, 77, 0.36);
}

/* ---------- Common ---------- */
section { padding: 7rem 1.75rem; }
.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.6rem;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 2rem; height: 1px;
  background: var(--accent);
}
.section-head {
  max-width: 760px;
  margin: 0 auto 4rem;
}
.section-head-left { margin-left: 0; margin-right: auto; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.9rem;
}
.section-desc { color: var(--fg-soft); font-size: 1.04rem; max-width: 640px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 1.75rem 7rem;
  background-color: var(--navy);
  background-image: url("images/hero/hero-palace.jpg"); /* 모바일·영상 로딩 전 대체 이미지 */
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  color: var(--on-navy);
}
/* 배경 영상 (데스크톱) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;
  pointer-events: none;
}
/* 글자 가독성용 어두운 오버레이 (영상 위) */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(10, 23, 38, 0.92) 0%, rgba(17, 36, 58, 0.78) 45%, rgba(17, 36, 58, 0.5) 100%),
    linear-gradient(to top, rgba(10, 23, 38, 0.85) 0%, rgba(10, 23, 38, 0) 50%);
}
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, black 10%, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  top: -200px; right: -160px;
  background: radial-gradient(circle, rgba(156, 124, 77, 0.35), transparent 65%);
  filter: blur(40px);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1.6rem;
}
.hero-title .ul {
  position: relative;
  white-space: nowrap;
}
.hero-title .ul::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.16em;
  background: var(--accent);
  opacity: 0.85;
}
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--on-navy-soft);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}
.hero-action {
  min-width: 210px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  line-height: 1.35;
}
.hero-action strong {
  font-size: 1rem;
  font-weight: 700;
}
.hero-action small {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.78;
  white-space: normal;
}
/* "주요업무 보기" — 네이비/사진 배경에서 또렷하게 보이도록 글래스 처리 */
.hero-action.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-action.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent);
  color: #fff;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  list-style: none;
  border-top: 1px solid var(--on-navy-border);
  padding-top: 2.5rem;
  max-width: 880px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.35rem; }
.hero-stats strong {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stats strong .unit { font-size: 0.5em; font-weight: 600; margin-left: 0.1em; color: var(--accent); }
.hero-stats span { font-size: 0.86rem; color: var(--on-navy-soft); }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.about-profile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 6rem;
}
.profile-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.profile-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.about-greeting {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--heading) !important;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}
.about-text p { color: var(--fg-soft); margin-bottom: 1.1rem; }
.about-text strong { color: var(--heading); font-weight: 700; }
.check-list {
  list-style: none;
  margin-top: 1.75rem;
  display: grid;
  gap: 0.7rem;
}
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--fg-soft);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.15em;
  width: 22px; height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}

.profile-cards {
  max-width: var(--max-width);
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.about-card h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--heading); }
.about-card .role { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.4rem; }
.about-card .meta { display: grid; gap: 0; }
.about-card .meta > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
  font-size: 0.93rem;
}
.about-card dt { color: var(--muted); }
.about-card dd { color: var(--heading); font-weight: 600; text-align: right; }

.book-card {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.9rem;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(156, 124, 77, 0.38), transparent 34%),
    linear-gradient(135deg, #13233a 0%, #0c1727 58%, #1d2d44 100%);
  color: var(--on-navy);
  border: 1px solid color-mix(in oklab, var(--accent) 36%, transparent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 24px 58px rgba(17, 36, 58, 0.20);
}
.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 36%);
  opacity: 0.55;
}
.book-cover {
  position: relative;
  margin: 0;
  width: 100%;
  border: 10px solid color-mix(in oklab, var(--accent-soft) 76%, #fff);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  aspect-ratio: 3 / 4;
  background: var(--navy-2);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-info { position: relative; text-align: left; }
.book-info .book-eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 0.5rem;
}
.book-info h4 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; color: #fff; margin-bottom: 0.35rem; }
.book-info .book-meta { font-size: 0.88rem; color: var(--on-navy-soft); margin-bottom: 0.8rem; }
.book-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.9rem;
  padding: 0.34rem 0.78rem;
  border: 1px solid color-mix(in oklab, var(--accent) 62%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5dfb8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.book-info .book-desc { font-size: 0.95rem; color: var(--on-navy-soft); line-height: 1.65; }
.book-info .book-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem; padding: 0.55rem 1.1rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--navy); background: #c4a36d;
  border-radius: 999px; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.book-info .book-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); opacity: 0.95; }
.book-info .book-link::after { content: "→"; font-weight: 700; }

.cv-grid {
  max-width: var(--max-width);
  margin: 1.75rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.cv-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--accent) 45%, var(--border)); }
.cv-card h4 {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border);
}
.cv-card ul { list-style: none; display: grid; gap: 0.6rem; }
.cv-card li {
  position: relative; padding-left: 1rem; font-size: 0.92rem; color: var(--fg-soft); line-height: 1.55;
}
.cv-card li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
}

/* ---------- Services ---------- */
.services {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-soft);
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(246, 244, 239, 0.97) 0%, rgba(246, 244, 239, 0.86) 42%, rgba(246, 244, 239, 0.74) 100%),
    url("images/services-background.jpg") center / cover no-repeat;
  opacity: 0.72;
}
.services::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(17, 36, 58, 0.055) 0 1px, transparent 1px 18.5vw),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06));
}
.services > * {
  position: relative;
  z-index: 1;
}
.services .section-head::after {
  content: "20년+ 실무";
  position: absolute;
  right: 0;
  top: -1.2rem;
  z-index: -1;
  color: rgba(17, 36, 58, 0.055);
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.cards {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.card {
  background: color-mix(in oklab, var(--bg-elev) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.45rem 2.1rem 2.2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-no {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.34rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}
.card p {
  color: var(--fg);
  font-size: 0.96rem;
  line-height: 1.72;
  margin-bottom: 1rem;
}
.card-list {
  list-style: none;
  display: grid;
  gap: 0.72rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--accent) 24%, var(--border));
}
.card-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--fg-soft);
  font-size: 0.91rem;
  line-height: 1.64;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- Insights ---------- */
.insights { background: var(--bg); }
.insight-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.insight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.insight-tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}
.insight-card h3 {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.insight-card p { color: var(--fg-soft); font-size: 0.94rem; margin-bottom: 1.5rem; flex: 1; }
.insight-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.15s, color 0.15s;
}
.insight-link:hover { color: var(--accent-strong); }

/* ---------- Lectures ---------- */
.lectures { background: var(--bg-soft); }
.lecture-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.lecture-item {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.lecture-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.lecture-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-2);
}
.lecture-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.lecture-item:hover .lecture-photo img { transform: scale(1.05); }
.lecture-item.is-hidden { display: none; }
.lecture-more { max-width: var(--max-width); margin: 2.5rem auto 0; text-align: center; }
.lecture-more[hidden] { display: none; }
.lecture-cap { padding: 1.1rem 1.2rem 1.25rem; }
.lecture-cap strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
}
.lecture-cap > span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 25, 0.84);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightbox-pop 0.22s ease;
}
@keyframes lightbox-pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: var(--navy-2);
}
.lightbox-cap {
  margin-top: 0.95rem;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.lightbox-prev { left: 1.4rem; }
.lightbox-next { right: 1.4rem; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

/* ---------- Press ---------- */
.press { background: var(--bg); }
.press-list {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.press-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s, padding 0.15s;
}
.press-item:hover { background: var(--bg-soft); }
.press-outlet {
  flex-shrink: 0;
  width: 132px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.press-title {
  flex: 1;
  font-size: 1.02rem;
  color: var(--heading);
  line-height: 1.5;
  transition: color 0.15s;
}
.press-item:hover .press-title { color: var(--accent-strong); }
.press-arrow {
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 700;
  transition: transform 0.15s, color 0.15s;
}
.press-item:hover .press-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- Tools ---------- */
.tools { background: var(--bg-soft); }

/* 정보조회 서비스 (lookup) */
.lookup-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.lookup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 112px;
  background: color-mix(in oklab, var(--bg-elev) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.lookup::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.lookup:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 42%, var(--border));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  background: var(--bg-elev);
}
.lookup:hover::before { opacity: 1; }
.lookup-main {
  width: 100%;
  min-height: 112px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.35rem 1rem;
}
.lookup-icon {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--accent) 42%, var(--border));
  color: var(--accent-strong);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.lookup-icon svg { width: 18px; height: 18px; }
.lookup:hover .lookup-icon { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.lookup strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  text-align: left;
}
.lookup-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 5;
  width: max-content;
  min-width: 190px;
  max-width: 260px;
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem;
  background: var(--bg-elev);
  border: 1px solid color-mix(in oklab, var(--navy-3) 58%, var(--border));
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.lookup:hover .lookup-menu,
.lookup:focus-within .lookup-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.lookup-menu a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: var(--fg-soft);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.lookup-menu a:hover,
.lookup-menu a:focus {
  background: var(--accent-soft);
  color: var(--heading);
}

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.contact-info p { color: var(--fg-soft); margin-bottom: 2.25rem; }
.info-list { list-style: none; display: grid; gap: 1.4rem; }
.info-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}
.info-label { color: var(--muted); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; }
.info-value { color: var(--heading); font-weight: 500; }
.info-value small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-top: 0.25rem; }
.info-link { color: var(--accent); font-weight: 700; }
.info-link:hover { text-decoration: underline; }

.map-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-image { margin: 0; background: #fff; display: block; }
.map-image img {
  width: 100%;
  height: auto;
  display: block;
}
.map-actions {
  display: flex;
  gap: 0.6rem;
  padding: 1.1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.map-actions .btn { flex: 1; min-width: 150px; }

/* ---------- Consultation Modal ---------- */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem;
  overflow-y: auto;
}
.consult-modal.is-open { display: flex; }
.consult-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 24, 0.72);
  backdrop-filter: blur(3px);
}
.consult-dialog {
  position: relative;
  width: min(520px, 100%);
  margin: auto 0;
  padding: 0;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.consult-close {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.consult-close:hover { color: var(--heading); }
.consult-head {
  padding: 1.9rem 1.75rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.consult-head h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--heading);
  margin-bottom: 0.25rem;
}
.consult-head p { color: var(--fg-soft); font-size: 0.94rem; }
.consult-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.75rem 1.75rem;
}
.consult-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--heading);
  font-weight: 700;
  font-size: 0.92rem;
}
.consult-form em {
  color: #ed7b1a;
  font-style: normal;
}
.consult-form input,
.consult-form textarea,
.consult-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.95rem 1rem;
}
.consult-form textarea { resize: vertical; min-height: 96px; }
.consult-form input:focus,
.consult-form textarea:focus,
.consult-form select:focus {
  outline: none;
  border-color: #ed7b1a;
  box-shadow: 0 0 0 3px rgba(237, 123, 26, 0.16);
}
.consult-form input[readonly] {
  background: var(--bg-soft);
  color: var(--fg-soft);
}
.consult-agree {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem !important;
  color: var(--fg-soft) !important;
  font-weight: 600 !important;
}
.consult-agree input { width: 18px; height: 18px; }
.consult-submit { width: 100%; border-radius: var(--radius); padding: 0.95rem 1rem; }
.consult-submit:disabled { opacity: 0.72; cursor: wait; }
.consult-note {
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  background: var(--accent-soft);
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.consult-note.is-error {
  background: rgba(220, 80, 80, 0.12);
  color: #b13434;
}

/* ---------- Business CTA banner ---------- */
.biz-cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-navy);
}
.biz-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.biz-cta-text { flex: 1 1 420px; }
.biz-cta-text .eyebrow { display: inline-block; padding-left: 0; }
.biz-cta-text .eyebrow::before { display: none; }
.biz-cta-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9rem;
}
.biz-cta-text > p { color: var(--on-navy-soft); font-size: 1.04rem; max-width: 640px; }
.biz-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  flex-shrink: 0;
}

/* estate variant — bronze tone to distinguish from the business banner */
.biz-cta--estate {
  background: linear-gradient(160deg, var(--accent-strong) 0%, var(--accent) 100%);
}
.biz-cta--estate .biz-cta-text > p { color: rgba(255, 255, 255, 0.88); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-2);
  color: var(--on-navy-soft);
  padding: 3.5rem 1.75rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--on-navy-border);
}
.footer-brand strong { font-size: 1.05rem; color: #fff; }
.footer-brand p { font-size: 0.85rem; color: var(--on-navy-soft); margin-top: 0.4rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: var(--on-navy-soft); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
}
.copyright { font-size: 0.8rem; color: var(--on-navy-soft); opacity: 0.75; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* 모션 최소화 설정 시 영상 숨기고 대체 이미지 사용 */
  .hero-video { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  /* 모바일은 데이터·배터리 절약 위해 영상 대신 대체 이미지 */
  .hero-video { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-profile { position: static; }
  .profile-cards { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile-photo { max-width: 320px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .lookup-grid { grid-template-columns: repeat(3, 1fr); }
  .lecture-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 5rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 5rem; }
}
@media (max-width: 560px) {
  .nav-inner { padding: 0.7rem 1.1rem; gap: 0.75rem; }
  .brand-logo { width: 224px; }
  .nav-actions .btn { display: none; }
  .book-card { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; }
  .book-cover { max-width: 160px; margin: 0 auto; }
  .book-info { text-align: center; }
  .info-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .lecture-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .press-item { flex-wrap: wrap; gap: 0.35rem 1rem; }
  .press-outlet { width: auto; }
  .press-title { flex-basis: 100%; font-size: 0.96rem; }
  .press-arrow { display: none; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .services .section-head::after { display: none; }
  .lookup-grid { grid-template-columns: repeat(2, 1fr); }
  .lookup { min-height: auto; }
  .lookup-main {
    min-height: 108px;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.15rem 0.75rem;
  }
  .lookup strong { text-align: center; }
  .lookup-menu {
    position: static;
    display: none;
    width: calc(100% - 1rem);
    min-width: 0;
    max-width: none;
    margin: 0 0 0.75rem;
    border-color: color-mix(in oklab, var(--navy-3) 68%, var(--border));
    opacity: 1;
    pointer-events: none;
    transform: none;
    box-shadow: none;
    background: color-mix(in oklab, var(--bg-elev) 92%, var(--navy-3));
  }
  .lookup:hover .lookup-menu,
  .lookup:focus-within .lookup-menu {
    display: none;
    opacity: 1;
    pointer-events: none;
    transform: none;
  }
  .lookup.is-open {
    z-index: 1;
  }
  .lookup.is-open .lookup-menu {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .lookup-menu a {
    white-space: normal;
  }
  .consult-modal { padding: 0.9rem; }
  .consult-head { padding: 1.6rem 1.25rem 1rem; }
  .consult-form { padding: 1.15rem 1.25rem 1.4rem; }
}
