/* ============================================================
   HEEON MATH — 희온수학 design system  v2
   "수학은 '계산'이 아니라 '판단'입니다."
   Dark editorial luxury: charcoal ink + gold, serif display.
   v2: 70% content width (15% side margins), 18px base type,
       de-boxed sections, monochrome ornate icons,
       animated mathematical SVG backgrounds.
   ============================================================ */

:root {
  --hm-ink:      #0d1015;
  --hm-ink-2:    #141922;
  --hm-ink-3:    #1c2330;
  --hm-line:     rgba(201,165,76,.22);
  --hm-hairline: rgba(255,255,255,.07);
  --hm-gold:     #c9a54c;
  --hm-gold-2:   #e8cf7f;
  --hm-gold-3:   #8f742f;
  --hm-paper:    #f7f4ec;
  --hm-text-d:   #ece7db;
  --hm-text-dim: #a8aeb9;
  --hm-text-l:   #22252b;
  --hm-serif: 'Poppins', 'Pretendard', -apple-system, 'Noto Sans KR', sans-serif;
  --hm-sans: 'Poppins', 'Pretendard', -apple-system, 'Noto Sans KR', sans-serif;
  --hm-gutter: 15vw;           /* 좌우 15% 여백 */
}

html { scroll-behavior: smooth; }
/* 전체 서체: Poppins → Pretendard (main.css의 언어별 규칙보다 우선) */
body, body.lang-kr, body.lang-en, body.lang-ru, body.lang-vi,
body.lang-fr, body.lang-de, body.lang-es {
  font-family: var(--hm-sans);
}
/* 비라틴 문자권은 글리프 커버리지용 네이티브 폰트를 뒤에 유지 */
body.lang-jp { font-family: 'Poppins', 'Pretendard', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', system-ui, sans-serif; }
body.lang-cn { font-family: 'Poppins', 'Pretendard', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
body.lang-th { font-family: 'Poppins', 'Pretendard', 'Noto Sans Thai', 'Sarabun', 'Tahoma', system-ui, sans-serif; }
body {
  font-family: var(--hm-sans);
  font-size: 18px;                    /* 본문 기본 18px */
  line-height: 1.9;
  background: var(--hm-ink);
  color: var(--hm-text-d);
  word-break: keep-all;               /* 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout: 15% side margins, full use of the rest ---------- */
.hm-wrap,
.site-header .container,
.site-footer .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: var(--hm-gutter);
  padding-right: var(--hm-gutter);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13,16,21,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hm-line);
  box-shadow: none;
}
.site-header .container {
  height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--hm-text-d);
  margin-right: auto;
}
.site-header .logo img { height: 48px; width: auto; display: block; }
.site-header .logo .lg-name { display: flex; flex-direction: column; line-height: 1.15; }
.site-header .logo .lg-en {
  font-weight: 700; font-size: 21px; letter-spacing: .32em;
  color: var(--hm-text-d);
}
.site-header .logo .lg-kr {
  font-size: 13px; letter-spacing: .5em; color: var(--hm-gold);
  font-weight: 500;
}
.primary-nav { display: flex; gap: 6px; }
.primary-nav a {
  font-size: 20px;                    /* 메뉴 20px */
  font-weight: 600;
  color: var(--hm-text-d);
  text-decoration: none;
  padding: 12px 18px;
  position: relative;
  letter-spacing: .01em;
  transition: color .18s;
  white-space: nowrap;
}
.primary-nav a::after {
  content: '';
  position: absolute; left: 18px; right: 18px; bottom: 4px;
  height: 2px; background: var(--hm-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--hm-gold-2); }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--hm-gold); margin: 6px 0; border-radius: 2px;
}

/* ---------- shared primitives ---------- */
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 600; letter-spacing: .3em;
  color: var(--hm-gold); text-transform: uppercase;
}
.hm-eyebrow::before { content: ''; width: 44px; height: 1px; background: var(--hm-gold); }
.hm-h2 {
  font-family: var(--hm-serif);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700; line-height: 1.36;
  margin: 20px 0 16px;
  color: inherit;
}
.hm-lead { font-size: 19px; line-height: 1.95; color: var(--hm-text-dim); max-width: 760px; }
.hm-gold { color: var(--hm-gold); }
.hm-serif { font-family: var(--hm-serif); }

/* 강조 */
.hm-mark {
  color: var(--hm-gold-2);
  font-weight: 700;
  text-shadow: 0 0 34px rgba(201,165,76,.4);
}
strong { color: var(--hm-gold-2); }

/* icon + title one line */
.hm-ico { flex: none; vertical-align: -5px; color: var(--hm-gold); }
.hm-ttl {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--hm-serif);
}

/* ---------- buttons: 항상 크게 ---------- */
.hm-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 52px;
  font-size: 19px; font-weight: 700; letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid var(--hm-gold);
  color: var(--hm-ink);
  background: linear-gradient(135deg, var(--hm-gold-3), var(--hm-gold) 45%, var(--hm-gold-2));
  border-radius: 3px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s;
}
.hm-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(201,165,76,.3); filter: brightness(1.06); }
.hm-btn.ghost { background: transparent; color: var(--hm-gold-2); }
.hm-btn.ghost:hover { background: rgba(201,165,76,.1); box-shadow: none; }
.hm-btn .ar { font-family: serif; }

/* scroll reveal */
.hm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.hm-reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ANIMATED MATH BACKGROUND  (single-color SVG, CSS-driven)
   ============================================================ */
.hm-mathbg {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
  z-index: 0;
}
.hm-mathbg svg { width: 100%; height: 100%; }
.mb-grid line { stroke: rgba(201,165,76,.05); stroke-width: 1; }
.mb-grid { animation: mbGrid 60s linear infinite; }
@keyframes mbGrid { from { transform: translateX(0); } to { transform: translateX(-90px); } }

.mb-sine {
  fill: none; stroke: rgba(201,165,76,.22); stroke-width: 1.6;
  stroke-dasharray: 2600;
  animation: mbDraw 14s ease-in-out infinite alternate;
}
.mb-sine2 {
  stroke: rgba(201,165,76,.1);
  animation-duration: 19s;
  animation-delay: -6s;
}
@keyframes mbDraw {
  from { stroke-dashoffset: 2600; }
  to   { stroke-dashoffset: 0; }
}
.mb-para {
  fill: none; stroke: rgba(232,207,127,.08); stroke-width: 1.4;
  stroke-dasharray: 8 10;
  animation: mbDash 40s linear infinite;
}
@keyframes mbDash { to { stroke-dashoffset: -720; } }
.mb-tri path { fill: none; stroke: rgba(201,165,76,.12); stroke-width: 1.4; }
.mb-tri {
  transform-origin: 1150px 360px;
  animation: mbTri 26s ease-in-out infinite alternate;
}
@keyframes mbTri {
  from { transform: rotate(-4deg) scale(.98); opacity: .7; }
  to   { transform: rotate(5deg) scale(1.04); opacity: 1; }
}
.mb-sym {
  fill: rgba(201,165,76,.14);
  font-family: 'Noto Serif KR', serif;
  animation: mbFloat 12s ease-in-out infinite alternate;
}
.mb-sym.f1  { animation-duration: 13s; }
.mb-sym.f2  { animation-duration: 17s; animation-delay: -4s;  fill: rgba(201,165,76,.1); }
.mb-sym.f3  { animation-duration: 11s; animation-delay: -2s; }
.mb-sym.f4  { animation-duration: 21s; animation-delay: -9s;  fill: rgba(201,165,76,.09); }
.mb-sym.f5  { animation-duration: 15s; animation-delay: -6s; }
.mb-sym.f6  { animation-duration: 19s; animation-delay: -3s;  fill: rgba(201,165,76,.16); }
.mb-sym.f7  { animation-duration: 14s; animation-delay: -8s; }
.mb-sym.f8  { animation-duration: 23s; animation-delay: -5s;  fill: rgba(201,165,76,.08); }
.mb-sym.f9  { animation-duration: 12s; animation-delay: -1s; }
.mb-sym.f10 { animation-duration: 18s; animation-delay: -7s; }
@keyframes mbFloat {
  from { transform: translateY(-16px) rotate(-2deg); }
  to   { transform: translateY(18px) rotate(2.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-mathbg *, .hm-reveal { animation: none !important; transition: none !important; }
  .hm-reveal { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */
.hm-hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(201,165,76,.1), transparent 60%),
    radial-gradient(700px 700px at 12% 88%, rgba(201,165,76,.05), transparent 60%),
    var(--hm-ink);
}
.hm-hero::before {
  content: '';
  position: absolute; right: 4%; top: 50%;
  width: min(40vw, 640px); aspect-ratio: 1684/1456;
  transform: translateY(-50%);
  background: url('/assets/img/heeon/symbol.png') no-repeat center / contain;
  opacity: .15;
  pointer-events: none;
  z-index: 1;
}
.hm-hero .hm-wrap { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 100px; }
.hm-hero-slogan {
  font-family: var(--hm-serif);
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 900; line-height: 1.34;
  margin: 30px 0 14px;
  color: var(--hm-text-d);
}
.hm-hero-slogan em {
  font-style: normal; color: var(--hm-gold-2);
  text-shadow: 0 0 46px rgba(201,165,76,.45);
}
.hm-hero-sub {
  font-size: 20px; line-height: 2;
  color: var(--hm-text-dim);
  max-width: 720px; margin-bottom: 52px;
}
.hm-hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; }
.hm-hero-foot {
  position: absolute; bottom: 36px; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  color: var(--hm-text-dim); font-size: 16px; letter-spacing: .34em;
  z-index: 2;
}
.hm-hero-foot::after {
  content: ''; width: 1px; height: 34px;
  background: linear-gradient(var(--hm-gold), transparent);
  animation: heroScroll 1.8s ease-in-out infinite;
}
@keyframes heroScroll { 50% { transform: translateY(8px); opacity: .4; } }

/* ---------- section shells ---------- */
.hm-sec { padding: 130px 0; position: relative; }
.hm-sec.dark  { background: var(--hm-ink); color: var(--hm-text-d); }
.hm-sec.dark2 {
  background: linear-gradient(180deg, var(--hm-ink) 0%, var(--hm-ink-2) 12%, var(--hm-ink-2) 88%, var(--hm-ink) 100%);
  color: var(--hm-text-d);
}
.hm-sec .sec-head { margin-bottom: 72px; position: relative; z-index: 2; }
.hm-sec > .hm-wrap { position: relative; z-index: 2; }

/* ============================================================
   판단 vs 노동 — de-boxed: center hairline + serif VS medallion
   ============================================================ */
.hm-vs {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 0;
}
.hm-vs::before {                 /* center hairline */
  content: '';
  position: absolute; left: 50%; top: 6%; bottom: 6%;
  width: 1px;
  background: linear-gradient(transparent, var(--hm-line) 20%, var(--hm-line) 80%, transparent);
}
.hm-vs::after {                  /* serif VS medallion */
  content: 'vs';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--hm-serif); font-style: italic; font-weight: 700;
  font-size: 30px; color: var(--hm-gold);
  background: var(--hm-ink);
  border: 1px solid var(--hm-line); border-radius: 50%;
  width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 14px var(--hm-ink);
}
.hm-sec.dark2 .hm-vs::after { background: var(--hm-ink-2); box-shadow: 0 0 0 14px var(--hm-ink-2); }
.hm-vs .vs-cell { padding: 20px 7% 30px 0; background: none; border: 0; }
.hm-vs .vs-judge { padding: 20px 0 30px 7%; }
.hm-vs h2, .hm-vs h3 {
  font-family: var(--hm-serif); font-size: 30px; margin: 6px 0 8px; line-height: 1.5;
}
.hm-vs .vs-tag { font-size: 16px; letter-spacing: .3em; font-weight: 600; }
.hm-vs .vs-labor { color: var(--hm-text-dim); }
.hm-vs .vs-labor .vs-tag { color: #71777f; }
.hm-vs .vs-labor h3 { color: var(--hm-text-dim); }
.hm-vs .vs-judge .vs-tag { color: var(--hm-gold); }
.hm-vs .vs-judge h3 { color: var(--hm-gold-2); }
.hm-vs p { line-height: 2; font-size: 18px; margin: 16px 0 0; }
.hm-vs .vs-judge p { color: var(--hm-text-d); }

/* ============================================================
   3 STEP — de-boxed: giant outlined numerals + hairline rail
   ============================================================ */
.hm-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hm-step {
  position: relative;
  background: none; border: 0;
  padding: 10px 8% 10px 0;
  overflow: visible;
}
.hm-step + .hm-step { padding-left: 8%; border-left: 1px solid var(--hm-hairline); }
.hm-step::after { display: none; }
.hm-step .st-no {
  display: block;
  font-family: var(--hm-serif);
  font-size: 92px; font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201,165,76,.55);
  margin-bottom: 26px;
}
.hm-step h3 {
  display: flex; align-items: center; gap: 13px;   /* icon + title one line */
  font-family: var(--hm-serif);
  font-size: 27px; margin: 0 0 14px; color: var(--hm-text-d);
  white-space: nowrap;
}
.hm-step h3 .hm-ico { width: 32px; height: 32px; }
.hm-step p { font-size: 17px; line-height: 1.95; color: var(--hm-text-dim); margin: 0; }
.hm-step .st-line {
  width: 52px; height: 2px;
  background: linear-gradient(90deg, var(--hm-gold), transparent);
  margin-top: 28px;
  transition: width .4s ease;
}
.hm-step:hover .st-line { width: 110px; }

/* ============================================================
   판단 엔진 창고 — de-boxed pack + minimal part rows
   ============================================================ */
.hm-pack {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 70px; align-items: center;
  background: none; border: 0;
  border-left: 2px solid var(--hm-gold);
  padding: 30px 0 30px 6%;
  margin-bottom: 90px;
}
.hm-pack .pk-badge {
  display: inline-block; font-size: 16px; font-weight: 700; letter-spacing: .22em;
  color: var(--hm-ink); background: var(--hm-gold);
  padding: 9px 20px; border-radius: 2px; margin-bottom: 22px;
}
.hm-pack h2, .hm-pack h3 { font-family: var(--hm-serif); font-size: clamp(28px,2.8vw,42px); margin: 0 0 18px; line-height: 1.42; }
.hm-pack p  { color: var(--hm-text-dim); line-height: 2; font-size: 18px; }
.hm-pack .pk-visual { position: relative; text-align: center; }
.hm-pack .pk-visual img {
  width: min(78%, 340px);
  filter: drop-shadow(0 30px 60px rgba(201,165,76,.25));
  position: relative; z-index: 1;
}
.hm-pack .pk-visual::before {          /* rotating dashed orbit */
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 125%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(201,165,76,.3);
  border-radius: 50%;
  animation: pkOrbit 42s linear infinite;
}
@keyframes pkOrbit { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* 단원별 부품샵 — 카드 뉴스 형태 (각 교재를 '사냥 도구'처럼 전시) */
.hm-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hm-part {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(201,165,76,.07), transparent 45%), var(--hm-ink-3);
  border: 1px solid var(--hm-line);
  padding: 32px 30px 30px;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hm-part::before {                 /* 상단 골드 라인 (호버 시 확장) */
  content: '';
  position: absolute; left: 0; top: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--hm-gold), var(--hm-gold-2));
  transition: width .4s ease;
}
.hm-part::after {                  /* 카드 배경 삼각 엠블럼 */
  content: '';
  position: absolute; right: -26px; bottom: -26px;
  width: 118px; aspect-ratio: 1684/1456;
  background: url('/assets/img/heeon/symbol.png') no-repeat center / contain;
  opacity: .06;
  transition: opacity .25s;
}
.hm-part:hover {
  transform: translateY(-6px);
  border-color: rgba(201,165,76,.6);
  box-shadow: 0 26px 54px rgba(0,0,0,.45);
}
.hm-part:hover::before { width: 100%; }
.hm-part:hover::after { opacity: .13; }
.hm-part .pt-code {
  font-size: 15px; letter-spacing: .18em; color: var(--hm-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.hm-part h2, .hm-part h3, .hm-part h4 {
  font-family: var(--hm-serif); font-size: 23px; color: var(--hm-text-d);
  margin: 0 0 14px; line-height: 1.45; font-weight: 700;
}
.hm-part p {
  font-size: 16px; color: var(--hm-text-dim); line-height: 1.85;
  margin: 0 0 22px; flex: 1;
}
.hm-part .hm-tags { margin-bottom: 14px; }
.hm-part .pt-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  align-self: flex-start;
  padding: 13px 30px;
  font-size: 16.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--hm-ink);
  background: linear-gradient(135deg, var(--hm-gold-3), var(--hm-gold) 50%, var(--hm-gold-2));
  border: 1px solid var(--hm-gold);
  border-radius: 3px;
  white-space: nowrap;
  transition: filter .2s, box-shadow .2s;
}
.hm-part:hover .pt-cta { filter: brightness(1.08); box-shadow: 0 10px 26px rgba(201,165,76,.28); }

/* 방어막 — single gold rule + inline icon, no dashed box */
.hm-shield {
  margin-top: 80px;
  border: 0; border-left: 2px solid var(--hm-gold);
  padding: 10px 0 10px 34px;
  display: flex; gap: 22px; align-items: flex-start;
  color: var(--hm-text-dim); font-size: 18px; line-height: 2;
}
.hm-shield .hm-ico { width: 44px; height: 44px; margin-top: 6px; }
.hm-shield .sh-ico { display: none; }

/* ============================================================
   3등급 사냥터
   ============================================================ */
.hm-hunt { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; }
.hm-hunt .ht-card {
  position: relative;
  background: var(--hm-paper);
  color: var(--hm-text-l);
  padding: 54px 50px;
  border-top: 3px solid var(--hm-gold);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.hm-hunt .ht-card .hc-tag { font-size: 16px; letter-spacing: .24em; color: var(--hm-gold-3); font-weight: 700; }
.hm-hunt .ht-card h2, .hm-hunt .ht-card h3, .hm-hunt .ht-card h4 { font-family: var(--hm-serif); font-size: 26px; margin: 14px 0 8px; line-height: 1.55; }
.hm-hunt .ht-card ol { margin: 20px 0 0; padding-left: 0; list-style: none; }
.hm-hunt .ht-card li {
  padding: 16px 0; border-bottom: 1px solid #e2dccb;
  font-size: 17px; line-height: 1.8;
}
.hm-hunt .ht-card li:last-child { border-bottom: 0; }
.hm-hunt .ht-card li b { color: var(--hm-gold-3); font-family: var(--hm-serif); margin-right: 12px; }

/* 브릿지 — open stage, no border box */
.hm-bridge {
  position: relative;
  margin-top: 90px;
  text-align: center;
  padding: 80px 30px;
  border: 0; background: none;
  overflow: hidden;
}
.hm-bridge::before {              /* rising glow */
  content: '';
  position: absolute; left: 50%; bottom: 0;
  width: 700px; height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at bottom, rgba(201,165,76,.16), transparent 65%);
  pointer-events: none;
}
.hm-bridge::after {               /* giant serif quote */
  content: '\201C';
  position: absolute; left: 50%; top: -16px;
  transform: translateX(-50%);
  font-family: var(--hm-serif);
  font-size: 130px; line-height: 1; color: rgba(201,165,76,.25);
}
.hm-bridge h2, .hm-bridge h3 {
  position: relative;
  font-family: var(--hm-serif);
  font-size: clamp(26px, 2.8vw, 38px);
  margin: 26px 0 14px; line-height: 1.55;
}
.hm-bridge p { position: relative; color: var(--hm-text-dim); margin: 0 0 40px; font-size: 18px; }

/* ============================================================
   영상 / Secret Log — open feeds
   ============================================================ */
.hm-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8%; }
.hm-feed { background: none; border: 0; padding: 0; }
.hm-feed .fd-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--hm-gold);
  padding-bottom: 18px; margin-bottom: 8px;
}
.hm-feed h2, .hm-feed h3 {
  display: flex; align-items: center; gap: 13px;   /* icon + title one line */
  font-family: var(--hm-serif); font-size: 25px; margin: 0;
  white-space: nowrap;
}
.hm-feed h2 .hm-ico, .hm-feed h3 .hm-ico { width: 30px; height: 30px; }
.hm-feed h2 small, .hm-feed h3 small {
  display: inline; font-family: var(--hm-sans);
  font-size: 16px; letter-spacing: .2em; color: var(--hm-gold);
  margin: 0 0 0 6px; font-weight: 600;
}
.hm-feed .fd-more { font-size: 16px; color: var(--hm-gold-2); text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.hm-feed ul { list-style: none; margin: 0; padding: 0; }
.hm-feed li { border-bottom: 1px solid var(--hm-hairline); }
.hm-feed li:last-child { border: 0; }
.hm-feed li a {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 18px 2px;
  color: var(--hm-text-d); text-decoration: none; font-size: 17px;
  transition: color .15s, padding-left .2s;
}
.hm-feed li a:hover { color: var(--hm-gold-2); padding-left: 10px; }
.hm-feed li .dt { color: var(--hm-text-dim); font-size: 16px; white-space: nowrap; }
.hm-feed .fd-empty { color: var(--hm-text-dim); font-size: 17px; padding: 22px 0; }

/* ---------- page hero (서브페이지 공통) ---------- */
.hm-page-hero {
  position: relative;
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(201,165,76,.1), transparent 60%),
    var(--hm-ink);
  padding: 110px 0 84px;
  border-bottom: 1px solid var(--hm-line);
  overflow: hidden;
}
.hm-page-hero .hm-wrap { position: relative; z-index: 2; }
.hm-page-hero h1 {
  font-family: var(--hm-serif);
  font-size: clamp(34px, 4vw, 56px);
  margin: 22px 0 18px; line-height: 1.35; color: var(--hm-text-d);
  font-weight: 900;
}

/* ---------- manifesto ---------- */
.hm-manifesto {
  font-family: var(--hm-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 2.1;
  color: var(--hm-text-d);
  max-width: 900px;
}
.hm-manifesto strong { color: var(--hm-gold-2); font-weight: 700; }
.hm-quote {
  border-left: 2px solid var(--hm-gold);
  padding: 8px 0 8px 32px;
  margin: 48px 0;
  font-family: var(--hm-serif);
  font-size: 20px; line-height: 2.05;
  color: var(--hm-text-dim);
}

/* ---------- footer ---------- */
.site-footer {
  background: #0a0c10;
  border-top: 1px solid var(--hm-line);
  padding: 74px 0 48px;
  color: var(--hm-text-dim);
  font-size: 16px;
}
.hm-foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px;
  padding-bottom: 44px; margin-bottom: 30px;
  border-bottom: 1px solid var(--hm-hairline);
}
.hm-foot-brand img { height: 52px; margin-bottom: 18px; }
.hm-foot-brand .fb-name { font-weight: 700; letter-spacing: .3em; color: var(--hm-text-d); font-size: 17px; margin-bottom: 8px; }
.hm-foot-brand .fb-slogan { font-family: var(--hm-serif); font-size: 16px; color: var(--hm-gold); }
.site-footer h5, .site-footer .ft-h {
  font-size: 16px; letter-spacing: .24em; color: var(--hm-gold);
  margin: 0 0 16px; font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 11px; font-size: 16px; line-height: 1.8; }
.site-footer a { color: var(--hm-text-dim); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--hm-gold-2); }
.hm-foot-legal { font-size: 16px; line-height: 2; color: #7d828b; }
.hm-foot-legal .cr { color: #9aa0ab; }

/* ---------- board pages ---------- */
.site-main { background: var(--hm-ink); min-height: 60vh; }
.board-wrap, .board-container { color: var(--hm-text-d); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav a { font-size: 18px; padding: 10px 12px; }
}
@media (max-width: 980px) {
  :root { --hm-gutter: 5vw; }
  .hm-vs, .hm-steps, .hm-pack, .hm-hunt, .hm-duo { grid-template-columns: 1fr; }
  .hm-parts { grid-template-columns: 1fr 1fr; }
  .hm-vs::before, .hm-vs::after { display: none; }
  .hm-vs .vs-cell, .hm-vs .vs-judge { padding: 26px 0; }
  .hm-vs .vs-judge { border-top: 1px solid var(--hm-line); }
  .hm-step + .hm-step { border-left: 0; border-top: 1px solid var(--hm-hairline); padding-left: 0; margin-top: 34px; padding-top: 34px; }
  .hm-step { padding-right: 0; }
  .hm-pack { padding-left: 6%; grid-template-columns: 1fr; }
  .hm-pack .pk-visual { order: -1; }
  .hm-duo { gap: 70px 0; }
  .hm-hero::before { opacity: .08; right: -25%; width: 85vw; }
}
@media (max-width: 768px) {
  :root { --hm-gutter: 20px; }
  body { font-size: 17px; }
  .site-header .container { height: 74px; }
  .site-header .logo img { height: 40px; }
  .primary-nav {
    position: fixed; top: 74px; left: 0; right: 0;
    background: rgba(13,16,21,.97);
    border-bottom: 1px solid var(--hm-line);
    flex-direction: column; gap: 0;
    padding: 10px 0 16px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 15px 28px; font-size: 19px; }
  .primary-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .hm-sec { padding: 80px 0; }
  .hm-btn { padding: 18px 36px; font-size: 18px; width: 100%; justify-content: center; }
  .hm-hero { min-height: auto; }
  .hm-hero .hm-wrap { padding-top: 80px; padding-bottom: 110px; }
  .hm-hero-foot { display: none; }
  .hm-step h3, .hm-feed h3 { white-space: normal; }
  .hm-step .st-no { font-size: 68px; }
  .hm-foot-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   v3 — 1차 수정안: 중메뉴 드롭다운 + 서브섹션 + 도감/랩 컴포넌트
   ============================================================ */

/* ---------- dropdown nav ---------- */
.primary-nav { align-items: center; }
.primary-nav .nav-item {
  position: relative;
  display: flex; align-items: center;
  height: 92px;                 /* 헤더 높이와 동일 → 드롭다운이 헤더 하단선에 정렬 */
}
.primary-nav .nav-item > a { display: inline-flex; align-items: center; gap: 7px; }
.nv-caret { font-size: 11px; color: var(--hm-gold); transition: transform .2s; }
.nav-item:hover .nv-caret { transform: rotate(180deg); }
.nav-sub {
  position: absolute; left: 8px; top: 100%;   /* 헤더 하단 경계선과 맞닿음 */
  min-width: 236px;
  background: rgba(16,20,27,.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hm-line);
  border-top: 2px solid var(--hm-gold);
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  z-index: 300;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-sub a {
  display: block;
  padding: 12px 22px !important;
  font-size: 16.5px !important;
  font-weight: 500;
  color: var(--hm-text-dim);
  white-space: nowrap;
}
.nav-sub a::after { display: none; }
.nav-sub a:hover { color: var(--hm-gold-2); background: rgba(201,165,76,.07); padding-left: 28px !important; }

/* ---------- 페이지 내 중메뉴 점프 칩 ---------- */
.hm-subnav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hm-subnav a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px;
  border: 1px solid var(--hm-line);
  border-radius: 40px;
  color: var(--hm-text-dim); text-decoration: none;
  font-size: 16px; letter-spacing: .02em;
  transition: all .2s;
}
.hm-subnav a b { color: var(--hm-gold); font-weight: 700; font-size: 14px; }
.hm-subnav a:hover { border-color: var(--hm-gold); color: var(--hm-gold-2); transform: translateY(-2px); }

/* ---------- 중메뉴 서브배경 밴드 ---------- */
.hm-subhero {
  position: relative;
  padding: 74px 0 60px;
  margin-bottom: 64px;
  border-top: 1px solid var(--hm-line);
  overflow: hidden;
  scroll-margin-top: 110px;
}
.hm-subhero .sh-no {
  font-size: 16px; font-weight: 700; letter-spacing: .34em;
  color: var(--hm-gold);
}
.hm-subhero h2 {
  font-family: var(--hm-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800; line-height: 1.4;
  margin: 14px 0 18px;
}
.hm-subhero .sh-head {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.9; color: var(--hm-gold-2);
  font-weight: 600;
  max-width: 860px;
}
/* 서브배경 변주 A — 골드 여명 + 동심 삼각형 */
.hm-subhero.sub-a {
  background:
    radial-gradient(760px 340px at 12% 0%, rgba(201,165,76,.14), transparent 62%),
    linear-gradient(180deg, rgba(201,165,76,.045), transparent 40%);
}
.hm-subhero.sub-a::after {
  content: ''; position: absolute; right: -60px; top: 50%;
  width: 340px; aspect-ratio: 1684/1456; transform: translateY(-50%);
  background: url('/assets/img/heeon/symbol.png') no-repeat center / contain;
  opacity: .09;
}
/* 서브배경 변주 B — 설계 그리드 */
.hm-subhero.sub-b {
  background:
    linear-gradient(rgba(201,165,76,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,165,76,.05) 1px, transparent 1px),
    radial-gradient(600px 300px at 88% 10%, rgba(201,165,76,.1), transparent 65%);
  background-size: 44px 44px, 44px 44px, auto;
}
/* 서브배경 변주 C — 골드 사선 빔 */
.hm-subhero.sub-c {
  background:
    linear-gradient(115deg, transparent 55%, rgba(201,165,76,.08) 55.2%, rgba(201,165,76,.02) 78%),
    radial-gradient(520px 260px at 8% 100%, rgba(201,165,76,.09), transparent 60%);
}
/* 서브배경 변주 D — 수식 워터마크 */
.hm-subhero.sub-d {
  background: radial-gradient(700px 320px at 50% -20%, rgba(201,165,76,.12), transparent 65%);
}
.hm-subhero.sub-d::after {
  content: 'f(x)  ·  lim  ·  Σ  ·  √  ·  Δ  ·  ∞';
  position: absolute; right: 4%; bottom: 18px;
  font-family: var(--hm-serif);
  font-size: 15px; letter-spacing: .5em;
  color: rgba(201,165,76,.28);
  white-space: nowrap;
}

/* ---------- 판단 도구 리스트 (25년의 내공) ---------- */
.hm-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6%; }
.hm-tool {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--hm-hairline);
  align-items: start;
}
.hm-tool .hm-tri-ico { color: var(--hm-gold); margin-top: 3px; }
.hm-tool h2, .hm-tool h3, .hm-tool h4 {
  font-family: var(--hm-serif); font-size: 21px; margin: 0 0 6px;
  color: var(--hm-text-d);
}
.hm-tool h2 small, .hm-tool h3 small, .hm-tool h4 small { font-size: 14px; color: var(--hm-gold); letter-spacing: .1em; margin-left: 8px; }
.hm-tool p { margin: 0; font-size: 16.5px; line-height: 1.85; color: var(--hm-text-dim); }

/* ---------- 3-STEP 타임라인 ---------- */
.hm-timeline { position: relative; }
.hm-timeline::before {
  content: '';
  position: absolute; left: 31px; top: 16px; bottom: 16px;
  width: 1px;
  background: linear-gradient(var(--hm-gold), rgba(201,165,76,.1));
}
.hm-tstep {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; gap: 30px;
  padding: 30px 0;
}
.hm-tstep .ts-node {
  width: 64px; height: 64px;
  border: 1.5px solid var(--hm-gold);
  border-radius: 50%;
  background: var(--hm-ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--hm-gold);
  position: relative; z-index: 1;
  box-shadow: 0 0 0 10px var(--hm-ink), 0 0 34px rgba(201,165,76,.25);
}
.hm-tstep h2, .hm-tstep h3 {
  font-family: var(--hm-serif); font-size: 25px; margin: 4px 0 8px;
}
.hm-tstep h2 small, .hm-tstep h3 small { font-size: 15px; letter-spacing: .22em; color: var(--hm-gold); display: block; margin-bottom: 6px; font-family: var(--hm-sans); }
.hm-tstep p { margin: 0; color: var(--hm-text-dim); font-size: 17px; line-height: 1.9; }

/* ---------- 스토어 태그 칩 ---------- */
.hm-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-tag {
  font-size: 13.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--hm-gold-2);
  border: 1px solid rgba(201,165,76,.45);
  padding: 4px 12px; border-radius: 3px;
  background: rgba(201,165,76,.07);
}
.hm-tag.hot { background: var(--hm-gold); color: var(--hm-ink); border-color: var(--hm-gold); }

/* ---------- 판단 도감 카드 ---------- */
.hm-dict { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.hm-dict-card {
  position: relative;
  border: 1px solid var(--hm-line);
  padding: 36px 30px 32px;
  background: linear-gradient(170deg, rgba(201,165,76,.05), transparent 42%);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.hm-dict-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,165,76,.6);
  box-shadow: 0 24px 50px rgba(0,0,0,.4);
}
.hm-dict-card .hm-tri-ico { color: var(--hm-gold); margin-bottom: 18px; transition: transform .3s; }
.hm-dict-card:hover .hm-tri-ico { transform: scale(1.1) rotate(-3deg); }
.hm-dict-card h2, .hm-dict-card h3, .hm-dict-card h4 {
  font-family: var(--hm-serif); font-size: 21.5px; margin: 0 0 4px; color: var(--hm-text-d);
}
.hm-dict-card .dc-en { font-size: 14px; letter-spacing: .14em; color: var(--hm-gold); margin-bottom: 14px; }
.hm-dict-card p { margin: 0; font-size: 16px; line-height: 1.85; color: var(--hm-text-dim); }

/* 가면 벗기기 인터랙션: hover 시 루트가 벗겨지고 본모습이 튀어나옴 */
.ck-demo {
  margin-top: 20px; height: 52px; position: relative;
  font-family: var(--hm-serif); font-size: 30px; font-weight: 700;
}
.ck-demo .ck-masked, .ck-demo .ck-unmasked {
  position: absolute; left: 0; top: 0;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,1.4,.4,1);
}
.ck-demo .ck-masked { color: var(--hm-text-dim); }
.ck-demo .ck-unmasked {
  color: var(--hm-gold-2);
  opacity: 0; transform: translateY(14px) scale(.7);
  text-shadow: 0 0 30px rgba(201,165,76,.6);
}
.hm-dict-card:hover .ck-masked { opacity: 0; transform: translateX(-18px) rotate(-10deg); }
.hm-dict-card:hover .ck-unmasked { opacity: 1; transform: none; }

/* ---------- 숏폼(1분 판단 영상) 카드 ---------- */
.hm-shorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hm-short {
  position: relative;
  aspect-ratio: 9/13;
  border: 1px solid var(--hm-line);
  background:
    radial-gradient(240px 200px at 50% 30%, rgba(201,165,76,.14), transparent 70%),
    var(--hm-ink-3);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 24px;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.hm-short:hover { transform: translateY(-6px); border-color: rgba(201,165,76,.6); }
.hm-short .sv-step {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--hm-gold);
  border: 1px solid rgba(201,165,76,.4);
  padding: 5px 11px; border-radius: 30px;
  background: rgba(13,16,21,.6);
}
.hm-short .sv-play {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%);
  width: 66px; height: 66px; border-radius: 50%;
  border: 1.5px solid var(--hm-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--hm-gold);
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-align: center; line-height: 1.3;
  background: rgba(13,16,21,.5);
  transition: transform .25s, background .25s;
}
.hm-short:hover .sv-play { transform: translate(-50%,-50%) scale(1.12); background: rgba(201,165,76,.15); }
.hm-short h2, .hm-short h3, .hm-short h4 { font-family: var(--hm-serif); font-size: 20px; margin: 0 0 8px; color: var(--hm-text-d); }
.hm-short p { margin: 0; font-size: 15px; color: var(--hm-text-dim); line-height: 1.7; }
.hm-short .sv-dur {
  position: absolute; top: 18px; right: 18px;
  font-size: 13px; color: var(--hm-text-dim); letter-spacing: .06em;
}

/* ---------- 전략 리포트 카드 (사냥터) ---------- */
.hm-report {
  border-left: 2px solid var(--hm-gold);
  padding: 8px 0 8px 34px;
  margin: 26px 0;
}
.hm-report .rp-tag { font-size: 15px; letter-spacing: .22em; color: var(--hm-gold); font-weight: 700; }
.hm-report h2, .hm-report h3, .hm-report h4 { font-family: var(--hm-serif); font-size: 24px; margin: 10px 0 8px; }
.hm-report p { color: var(--hm-text-dim); font-size: 17px; line-height: 1.9; margin: 0; }

/* ---------- 브릿지 알럿 배너 ---------- */
.hm-alert {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  border: 1px solid rgba(201,165,76,.5);
  background: linear-gradient(100deg, rgba(201,165,76,.14), rgba(201,165,76,.03) 60%);
  padding: 34px 38px;
  margin-top: 56px;
}
.hm-alert .hm-ico { width: 46px; height: 46px; }
.hm-alert h2, .hm-alert h3, .hm-alert h4 { font-family: var(--hm-serif); font-size: 22px; margin: 0 0 6px; line-height: 1.5; }
.hm-alert p { margin: 0; color: var(--hm-text-dim); font-size: 16.5px; line-height: 1.8; }

/* ---------- 인용 격언 배너 ---------- */
.hm-motto {
  text-align: center;
  font-family: var(--hm-serif);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 700; line-height: 1.7;
  color: var(--hm-gold-2);
  padding: 26px 0;
  margin: 60px 0 0;
  border-top: 1px solid var(--hm-hairline);
  border-bottom: 1px solid var(--hm-hairline);
}

/* ---------- responsive (v3) ---------- */
@media (max-width: 1480px) {
  .site-header .container { gap: 16px; }
  .primary-nav { gap: 2px; }
  .primary-nav .nav-item > a { font-size: 18px; padding: 10px 12px; }
  .lang-switcher .lang-btn { font-size: 14px; padding: 8px 14px; }
}
@media (max-width: 1250px) {
  .primary-nav .nav-item > a { font-size: 16.5px; padding: 10px 9px; }
  .site-header .logo .lg-kr { display: none; }
}
@media (max-width: 980px) {
  .hm-tools, .hm-shorts { grid-template-columns: 1fr; }
  .hm-dict { grid-template-columns: 1fr 1fr; }
  .hm-alert { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 768px) {
  .primary-nav .nav-item { width: 100%; height: auto; display: block; }
  .primary-nav .nav-item > a { width: 100%; padding: 14px 28px; font-size: 19px; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: rgba(201,165,76,.04);
    border: 0; border-left: 2px solid var(--hm-line);
    margin: 0 28px 8px; padding: 4px 0;
    box-shadow: none;
    display: block;
  }
  .nav-sub a { padding: 11px 18px !important; font-size: 15.5px !important; }
  .nv-caret { margin-left: auto; }
  .hm-dict { grid-template-columns: 1fr; }
  .hm-subhero { padding: 54px 0 44px; margin-bottom: 44px; }
  .hm-subnav a { padding: 10px 18px; font-size: 15px; }
}

/* ---------- 페이지 목적 한 줄 표기 ---------- */
.hm-purpose {
  display: flex; align-items: center; gap: 16px;
  margin: 10px 0 4px;
  font-size: 19px; line-height: 1.7;
  color: var(--hm-text-d);
}
.hm-purpose .pp-label {
  flex: none;
  font-size: 14px; font-weight: 700; letter-spacing: .2em;
  color: var(--hm-ink);
  background: linear-gradient(135deg, var(--hm-gold-3), var(--hm-gold) 60%, var(--hm-gold-2));
  padding: 6px 14px; border-radius: 2px;
}
@media (min-width: 769px) {
  .hm-purpose { white-space: nowrap; }   /* PC: 한 줄 고정 */
}
@media (max-width: 768px) {
  .hm-purpose { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 17px; }
}
.hm-page-hero .hm-lead { margin-top: 18px; }

/* ---------- 언어선택 (10개 언어) — 대메뉴 우측, 드롭다운 디자인 통일 ---------- */
.lang-switcher {
  position: relative;
  display: flex; align-items: center;
  height: 92px;                     /* 헤더 하단선 정렬 */
}
.lang-switcher .lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--hm-line);
  color: var(--hm-gold-2);
  border-radius: 40px;
  font-size: 16px; font-weight: 600; letter-spacing: .08em;
  font-family: var(--hm-sans);
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-switcher .lang-btn svg { color: var(--hm-gold); }
.lang-switcher .lang-btn .nv-caret { font-size: 11px; }
.lang-switcher:hover .lang-btn { border-color: var(--hm-gold); }
.lang-switcher ul {
  position: absolute; right: 0; top: 100%;
  background: rgba(16,20,27,.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hm-line);
  border-top: 2px solid var(--hm-gold);
  list-style: none; margin: 0; padding: 10px 0;
  min-width: 190px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  z-index: 300;
}
.lang-switcher:hover ul, .lang-switcher:focus-within ul, .lang-switcher.open ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-switcher ul a {
  display: block; padding: 11px 22px;
  color: var(--hm-text-dim); text-decoration: none;
  font-size: 16px; font-weight: 500;
  transition: all .15s;
}
.lang-switcher ul a:hover { background: rgba(201,165,76,.07); color: var(--hm-gold-2); padding-left: 28px; }
.lang-switcher ul a.on { color: var(--hm-gold); font-weight: 700; }
.lang-switcher ul a.on::after { content: ' ✓'; }

@media (max-width: 768px) {
  .lang-switcher { height: auto; }
  .lang-switcher .lang-btn { font-size: 14px; padding: 8px 13px; }
  .lang-switcher ul { position: absolute; right: 0; top: calc(100% + 6px); }
}

/* ---------- 독립 서브페이지: 활성 칩 + 페이저 ---------- */
.hm-subnav a.active {
  border-color: var(--hm-gold);
  color: var(--hm-ink);
  background: linear-gradient(135deg, var(--hm-gold-3), var(--hm-gold) 60%, var(--hm-gold-2));
  font-weight: 700;
}
.hm-subnav a.active b { color: var(--hm-ink); }
.hm-page-hero.hm-subhero { padding: 96px 0 70px; }
.hm-pager {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--hm-hairline);
  padding: 40px 0 90px;
}
.hm-pager a {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--hm-text-dim);
  transition: color .2s, transform .2s;
}
.hm-pager a:hover { color: var(--hm-gold-2); transform: translateY(-2px); }
.hm-pager .pg-dir { font-size: 15px; letter-spacing: .14em; color: var(--hm-gold); font-weight: 700; }
.hm-pager .pg-title { font-family: var(--hm-serif); font-size: 20px; font-weight: 700; }
.hm-pager .pg-next { text-align: right; align-items: flex-end; margin-left: auto; }
@media (max-width: 768px) {
  .hm-pager { flex-direction: column; }
  .hm-pager .pg-next { text-align: left; align-items: flex-start; margin-left: 0; }
}

/* 브랜드 스토리 — 슬로건 + 헤드라인 2단 표기 */
.bs-slogan {
  display: block;
  font-family: var(--hm-serif);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 800; line-height: 1.5;
  color: var(--hm-gold-2);
  text-shadow: 0 0 40px rgba(201,165,76,.35);
  margin-bottom: 14px;
}
.bs-headline { display: block; }

/* 대메뉴 헤드라인 — 해당 대메뉴 전 서브페이지 공통 */
.hm-menu-headline {
  font-family: var(--hm-serif);
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 700; line-height: 1.75;
  color: var(--hm-gold-2);
  border-left: 2px solid var(--hm-gold);
  padding: 4px 0 4px 22px;
  margin: 22px 0 6px;
  max-width: 920px;
}

/* 브릿지 로직 (수정안 3-2) */
.hm-bridge-logic .bl-q {
  font-family: var(--hm-serif);
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800; line-height: 1.6;
  color: var(--hm-gold-2);
  margin: 20px 0 10px;
}
.hm-bridge-logic .bl-a {
  font-family: var(--hm-serif);
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.8; color: var(--hm-text-d);
  margin: 0; padding-left: 26px;
  border-left: 2px solid var(--hm-gold);
}
.hm-bridge-logic .bl-a a { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(201,165,76,.5); }
.hm-bridge-logic .bl-a a:hover { color: var(--hm-gold-2); border-bottom-color: var(--hm-gold); }
