/* ============================================================
   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: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --hm-sans: 'Pretendard', -apple-system, 'Noto Sans KR', sans-serif;
  --hm-gutter: 15vw;           /* 좌우 15% 여백 */
}

html { scroll-behavior: smooth; }
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 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 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); } }

/* part rows — editorial list instead of card boxes */
.hm-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6%; }
.hm-part {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 20px;
  background: none; border: 0;
  border-bottom: 1px solid var(--hm-hairline);
  padding: 34px 6px;
  text-decoration: none;
  transition: background .25s, padding-left .25s;
}
.hm-part::before {                 /* gold slide line */
  content: '';
  position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--hm-gold), var(--hm-gold-2));
  transition: width .35s ease;
}
.hm-part:hover { transform: none; background: rgba(201,165,76,.04); padding-left: 16px; }
.hm-part:hover::before { width: 100%; }
.hm-part .pt-code {
  font-size: 16px; letter-spacing: .16em; color: var(--hm-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hm-part h4 {
  font-family: var(--hm-serif); font-size: 23px; color: var(--hm-text-d);
  margin: 0; line-height: 1.5;
}
.hm-part p {
  grid-column: 2 / 4;
  font-size: 16px; color: var(--hm-text-dim); line-height: 1.85; margin: 8px 0 0;
}
.hm-part .pt-cta {
  font-size: 16px; color: var(--hm-gold-2); letter-spacing: .06em;
  margin: 0; white-space: nowrap;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.hm-part:hover .pt-cta { opacity: 1; transform: none; }

/* 방어막 — 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 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 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 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 h3 .hm-ico { width: 30px; height: 30px; }
.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 {
  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, .hm-parts { grid-template-columns: 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; }
}
