/* ==========================================================================
   Glow99 — 메인 홈페이지 전용 스타일 (views/main/main.ejs + views/home/*)
   - 다른 페이지(nav.ejs 사용 페이지)에는 로드되지 않습니다.
   - 기존 component(graph.ejs, nav.ejs)의 전역 CSS에 의존하지 않도록
     배경·글꼴·reset을 여기서 모두 명시합니다.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --glow-900: #1c3527;
  --glow-700: #244331;
  --glow-600: #305d43;
  --glow-400: #6ea885;
  --glow-100: #e3eee7;
  --glow-50:  #f4f9f6;

  --ink:      #17211b;
  --ink-2:    #2c3830;
  --muted:    #56625a;
  --muted-2:  #65716a;
  --line:     #d6e2da;
  --line-2:   #c3d2c8;
  --paper:    #ffffff;

  /* 기존 HERO gradient 그대로 */
  --gradient-hero: radial-gradient(circle at top left,
      #6ea885 0%, #305d43 45%, #244331 100%);

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
      "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font-hero: "Noto Sans KR", "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
      "Liberation Mono", monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-frame: 0 1px 2px rgba(28, 53, 39, .05), 0 10px 28px rgba(28, 53, 39, .07);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 64px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body.g-home {
  margin: 0;
  background: var(--glow-50);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* :where() 로 specificity 0 — 아래 컴포넌트의 margin 값을 덮어쓰지 않도록 */
:where(.g-home) :where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) { margin: 0; }
:where(.g-home) :where(ul, ol) { padding: 0; list-style: none; }
:where(.g-home) img { display: block; max-width: 100%; height: auto; }
:where(.g-home) a { color: inherit; }
:where(.g-home) strong { font-weight: 700; }

.g-home :focus-visible {
  outline: 2px solid var(--glow-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.h-skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; background: var(--glow-900); color: #fff;
  font-size: 14px; border-radius: var(--radius-sm); text-decoration: none;
}
.h-skip:focus { top: 12px; }

.h-nowrap { white-space: nowrap; }
@media (max-width: 640px) { .h-br-d { display: none; } }

.h-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.h-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 공통 라벨 (mono) */
.h-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--glow-600);
}
.h-label::before {
  content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .7;
}
.h-label-ko { font-family: var(--font-sans); letter-spacing: 0; font-size: 13px; font-weight: 600; text-transform: none; }

/* 링크형 CTA (카드/알약 버튼 대신 절제된 형태) */
.h-cta {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none;
  color: #fff; background: var(--glow-600);
  border: 1px solid var(--glow-600);
  border-radius: var(--radius-sm);
  transition: background .2s ease, border-color .2s ease;
}
.h-cta:hover { background: var(--glow-700); border-color: var(--glow-700); }
.h-cta .h-arrow { transition: transform .2s ease; }
.h-cta:hover .h-arrow { transform: translateX(3px); }

.h-cta--ghost {
  color: var(--glow-700); background: transparent; border-color: var(--line-2);
}
.h-cta--ghost:hover { background: var(--glow-100); border-color: var(--glow-400); }

.h-textlink {
  font-size: 15px; font-weight: 600; color: var(--glow-600);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; text-decoration-color: var(--line-2);
}
.h-textlink:hover { text-decoration-color: currentColor; }

/* 실제 제품 화면을 담는 틀 — 카드는 여기에만 사용 */
.h-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.h-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px; line-height: 1.6; letter-spacing: .02em;
  color: var(--muted-2);
}

/* ---------- 3. Header (메인 전용) ---------- */
.h-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--glow-900);
  background: var(--glow-50);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.h-header.is-over-hero {
  color: #fff;
  background: transparent;
  border-bottom-color: transparent;
}
.h-header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.h-logo { display: inline-flex; align-items: center; text-decoration: none; }
.h-logo-mark {
  display: block;
  width: 101px; height: 26px;
  background-color: currentColor;
  -webkit-mask: url("/images/logos/logoWhite.png") center / contain no-repeat;
          mask: url("/images/logos/logoWhite.png") center / contain no-repeat;
}

.h-nav { display: flex; align-items: center; gap: 28px; }
.h-nav-list { display: flex; align-items: center; gap: 26px; }
.h-nav a {
  font-size: 15px; font-weight: 500; text-decoration: none; opacity: .88;
}
.h-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.h-nav .h-nav-account {
  padding: 6px 14px;
  border: 1px solid currentColor; border-radius: var(--radius-sm);
  opacity: .9;
}
.h-nav .h-nav-account:hover { text-decoration: none; opacity: 1; }

/* 모바일 메뉴: <details> 기반이라 JS 없이도 동작 */
.h-menu { display: none; position: relative; }
.h-menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px;
  font-size: 14px; font-weight: 600;
  border: 1px solid currentColor; border-radius: var(--radius-sm);
}
.h-menu > summary::-webkit-details-marker { display: none; }
.h-menu-icon { width: 16px; height: 10px; position: relative; }
.h-menu-icon::before, .h-menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.h-menu-icon::before { top: 1px; }
.h-menu-icon::after { top: 7px; }
.h-menu[open] .h-menu-icon::before { top: 4px; transform: rotate(45deg); }
.h-menu[open] .h-menu-icon::after { top: 4px; transform: rotate(-45deg); }

.h-menu-panel {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  padding: 8px var(--gutter) 20px;
  background: var(--glow-50); color: var(--glow-900);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgba(28, 53, 39, .08);
}
.h-menu-panel a {
  display: block; padding: 14px 2px;
  font-size: 17px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.h-menu-panel li:last-child a { border-bottom: 0; }

@media (max-width: 860px) {
  .h-nav { display: none; }
  .h-menu { display: block; }
}

/* ---------- 4. HERO — 기존 문구·gradient 유지 + 숫자 없는 data pillar ---------- */
:root { --hero-wrap: 1200px; }
@media (min-width: 1600px) { :root { --hero-wrap: 1400px; } }
/* 넓은 화면에서 헤더 로고/메뉴와 HERO 좌측선이 맞도록 헤더 폭만 HERO 와 동일하게 */
.h-header .h-wrap { max-width: var(--hero-wrap); }

.h-hero {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(600px, 88svh, 860px);
  padding: calc(var(--header-h) + 56px) var(--gutter) 112px;
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
}
.h-hero-inner {
  position: relative;
  width: 100%; max-width: calc(var(--hero-wrap) - 2 * 40px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}
.h-hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .28em; color: rgba(255, 255, 255, .72);
}
.glow-hero-title {
  margin-top: 22px;
  font-family: var(--font-hero);
  font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -1px;
  color: #fff;
}
.h-hero-line { display: block; }
.glow-hero-text {
  margin-top: 26px;
  max-width: 580px;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.22rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
}
.glow-hero-text strong { color: #fff; font-weight: 700; }

/* data visual */
.h-viz { position: relative; margin: 0; max-width: 620px; }
.h-viz::before {           /* 절제된 mint glow — 한 겹 */
  content: ""; position: absolute; inset: 8% -6% 18% -6%;
  background: radial-gradient(60% 55% at 55% 55%, rgba(140, 230, 180, .16), transparent 70%);
  pointer-events: none;
}
.h-pillars {
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  align-items: end;
  height: clamp(280px, 30vw, 420px);
  margin: 0; padding: 0; list-style: none;
}
.h-pillar-item {
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  height: 100%; min-width: 0;
}
.h-pillar-stage { position: relative; display: block; min-height: 0; }
.h-pillar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: block; height: var(--h);
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 18px 40px rgba(10, 30, 20, .18);
  overflow: hidden;
}
.h-pillar-no {
  position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 10px);
  text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: rgba(255, 255, 255, .55);
}
.h-pillar-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--f);
  border-radius: 50% 50% 0 0 / 16px 16px 0 0;
  background: linear-gradient(180deg,
    rgba(190, 240, 210, .62) 0%,
    rgba(120, 200, 155, .42) 38%,
    rgba(70, 140, 100, .18) 100%);
  box-shadow: inset 0 1px 0 rgba(235, 255, 243, .55);
}
.h-pillar-meta {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 16px; text-align: center;
}
.h-pillar-ico {
  width: 22px; height: 22px;
  fill: none; stroke: rgba(235, 255, 243, .92); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.h-pillar-ko { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.h-pillar-en { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: rgba(255, 255, 255, .5); }

/* trend line — 축·단위·수치 없는 추상적 흐름선 */
.h-viz-trend {
  position: absolute; left: 4%; right: -4%; top: -12%;
  width: 100%; height: 62%;
  overflow: visible; pointer-events: none;
}
.h-viz-trend-path {
  fill: none; stroke: rgba(170, 240, 200, .8); stroke-width: 1.6;
  vector-effect: non-scaling-stroke; stroke-linecap: round;
}
.h-viz-node {
  position: absolute; left: calc(4% + 73.3% * 1); top: calc(-12% + 62% * .353);
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #eafff2;
  box-shadow: 0 0 0 5px rgba(170, 240, 200, .18), 0 0 18px rgba(170, 240, 200, .5);
}
.h-viz-tag {
  position: absolute; left: calc(4% + 73.3%); top: calc(-12% + 62% * .353);
  transform: translate(-50%, calc(-100% - 18px));
  padding: 7px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; white-space: nowrap;
  color: #eafff2;
  background: rgba(20, 50, 34, .55);
  border: 1px solid rgba(170, 240, 200, .38); border-radius: 8px;
}
.h-viz-tag span { color: rgba(170, 240, 200, .9); }

/* Story 시각 언어의 첫 점 + SCROLL */
.h-hero-thread {
  position: absolute; left: 0; bottom: -112px;
  width: 9px; height: 96px;
  pointer-events: none;
}
.h-hero-thread::before {
  content: ""; position: absolute; left: 1px; top: 0;
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
}
.h-hero-thread::after {
  content: ""; position: absolute; left: 4px; top: 14px; bottom: 0;
  width: 1.5px;
  background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
}
.h-hero-thread > span {
  position: absolute; left: 20px; top: 50px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; color: rgba(255, 255, 255, .5);
}

/* desktop 2단: 좌 copy ≈45~50% / 우 visual */
@media (min-width: 1100px) {
  .h-hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center; gap: clamp(40px, 4vw, 72px);
  }
  .glow-hero-title { font-size: 3rem; }
  .h-hero-line { white-space: nowrap; }
  .h-viz { max-width: none; padding-top: 72px; }
}
@media (min-width: 1600px) {
  .glow-hero-title { font-size: 3.5rem; }
  .h-pillars { height: 440px; }
}

/* 태블릿(641~1099): copy 아래 visual, 오른쪽은 GLOW DESK 자리로 비움 */
@media (min-width: 641px) and (max-width: 1099px) {
  .h-viz { padding-top: 64px; }
  .h-pillars { height: 300px; }
}

/* 모바일 전용 흐름선은 기본 숨김 */
.h-viz-trend--m { display: none; }

/* 모바일: 5개를 3개로 줄인 compact card
   구조: [상단 차트 밴드 — 태그·곡선·노드] + [하단 3 pillar]. 곡선이 카드를 가로지르지 않도록 영역 분리 */
@media (max-width: 640px) {
  .h-hero { min-height: 0; padding-bottom: 120px; }
  .h-hero-inner { gap: 36px; }
  .h-hero-eyebrow { font-size: 11px; letter-spacing: .22em; }
  .h-viz {
    --vz-px: 18px;          /* 카드 좌우 패딩 */
    --vz-top: 36px;         /* 곡선 밴드 시작 */
    --vz-band: 50px;        /* 곡선 밴드 높이 */
    padding: calc(var(--vz-top) + var(--vz-band) + 4px) var(--vz-px) 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
  }
  .h-viz::before { display: none; }

  /* 흐름선: 데스크톱 SVG 숨기고 모바일 비율 SVG 사용 */
  .h-viz-trend:not(.h-viz-trend--m) { display: none; }
  .h-viz-trend--m {
    display: block;
    left: var(--vz-px); right: auto; top: var(--vz-top);
    width: calc(100% - var(--vz-px) * 2); height: var(--vz-band);
  }
  .h-viz-trend--m .h-viz-trend-path { stroke: rgba(170, 240, 200, .72); stroke-width: 1.5; }
  .h-viz-trend--m .h-viz-trend-pulse { stroke-width: 2.2; }

  /* 노드 = 곡선 위 경로 길이 72% 지점 (x .7259, y .4587) — hNodeHit 타이밍과 일치 */
  .h-viz-node,
  .h-viz-tag {
    left: calc(var(--vz-px) + (100% - var(--vz-px) * 2) * .7259);
    top: calc(var(--vz-top) + var(--vz-band) * .4587);
  }
  .h-viz-node {
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    box-shadow: 0 0 0 4px rgba(170, 240, 200, .16), 0 0 14px rgba(170, 240, 200, .45);
  }
  .h-viz-tag {
    font-size: 10px; letter-spacing: .14em; padding: 5px 9px; border-radius: 7px;
    transform: translate(-62%, calc(-100% - 12px));
  }

  /* pillar: 스테이지 높이 확보 + 비율 정리 (시세 < 등기권리 < 경매 리듬) */
  .h-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 204px; gap: 12px; }
  .h-pillar-item:nth-child(3), .h-pillar-item:nth-child(5) { display: none; }
  .h-pillar-item:nth-child(1) { --h: 66% !important; --f: 64% !important; }
  .h-pillar-item:nth-child(2) { --h: 92% !important; --f: 70% !important; }
  .h-pillar-item:nth-child(4) { --h: 78% !important; --f: 60% !important; }
  .h-pillar-no { display: none; }
  .h-pillar {
    border-radius: 14px 14px 10px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 12px 28px rgba(10, 30, 20, .16);
  }
  /* 상단 곡면: 좁은 폭에서 눌린 돔 대신 완만한 수면형 곡면 */
  .h-pillar-fill { border-radius: 50% 50% 0 0 / 10px 10px 0 0; }

  /* 하단 아이콘/텍스트: 3열 동일 기준선 */
  .h-pillar-meta { margin-top: 14px; gap: 3px; }
  .h-pillar-ico { width: 20px; height: 20px; margin-bottom: 3px; }
  .h-pillar-ko { font-size: 13px; line-height: 1.3; }
  .h-pillar-en { font-size: 9.5px; letter-spacing: .14em; line-height: 1.3; }
}
@media (max-width: 360px) {
  .h-viz { --vz-px: 14px; }
  .h-pillars { gap: 10px; height: 196px; }
  .h-pillar-ko { font-size: 12px; }
}

/* 첫 진입 1회 motion — 반복/무한 없음. reduced-motion 이면 기본 상태(완성)로 보임 */
@media (prefers-reduced-motion: no-preference) {
  .h-pillar { animation: hPillarIn .9s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .08s); }
  .h-pillar-meta, .h-pillar-no { animation: hFadeIn .7s ease both; animation-delay: calc(.35s + var(--i, 0) * .08s); }
  .h-viz-trend-path { stroke-dasharray: 1; animation: hDraw 1.4s var(--ease) .6s both; }
  .h-viz-node, .h-viz-tag { animation: hFadeIn .6s ease 1.7s both; }

  /* 계속 살아 있는 그래프 — 숫자 없는 채움이 천천히 오르내림(숨쉬기) + 흐름선 위 빛 펄스 */
  .h-pillar-fill {
    transform-origin: 50% 100%;
    animation: hBreath calc(8s + var(--i, 0) * 1.4s) ease-in-out calc(var(--i, 0) * -3.7s) infinite alternate;
  }
  .h-viz-trend-pulse { animation: hPulse 6.5s cubic-bezier(.45, 0, .35, 1) 2.2s infinite; }
  .h-viz-node { animation: hFadeIn .6s ease 1.7s both, hNodeHit 6.5s ease 2.2s infinite; }
  .h-viz.is-paused .h-pillar-fill,
  .h-viz.is-paused .h-viz-trend-pulse,
  .h-viz.is-paused .h-viz-node { animation-play-state: paused; }
}
.h-viz-trend-pulse {
  fill: none; stroke: #effff5; stroke-width: 2.6; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: .07 1.3; stroke-dashoffset: .07;   /* 기본(모션 없음)에서는 보이지 않음 */
  filter: drop-shadow(0 0 4px rgba(170, 240, 200, .9));
}
@keyframes hBreath { from { transform: scaleY(.84); } to { transform: scaleY(1.08); } }
/* 0~46%: 펄스가 선을 따라 이동, 이후 휴지 */
@keyframes hPulse {
  0%   { stroke-dashoffset: .07; opacity: 1; }
  46%  { stroke-dashoffset: -1;  opacity: 1; }
  47%, 100% { stroke-dashoffset: -1; opacity: 0; }
}
/* 펄스가 INSIGHT 지점(경로의 약 72%)에 닿는 순간 노드가 한 번 밝아짐 */
@keyframes hNodeHit {
  0%, 29%, 42%, 100% { box-shadow: 0 0 0 5px rgba(170, 240, 200, .18), 0 0 18px rgba(170, 240, 200, .5); }
  33% { box-shadow: 0 0 0 10px rgba(170, 240, 200, .28), 0 0 32px rgba(200, 255, 225, .95); }
}
@keyframes hPillarIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- 5. NOW / REPORT HOME ---------- */
.h-now { scroll-margin-top: -24px; padding-block: clamp(96px, 13vw, 168px) clamp(72px, 9vw, 120px); }
.h-now-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.h-now-title {
  margin-top: 24px;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
  color: var(--glow-900);
}
.h-now-sub {
  margin-top: 16px;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem);
  font-weight: 600; line-height: 1.5; color: var(--ink-2);
}
.h-now-body { margin-top: 24px; max-width: 460px; color: var(--muted); }
.h-now-note { margin-top: 12px; font-size: 15px; color: var(--muted-2); }
.h-now-cta { margin-top: 36px; }

.h-now-visual { justify-self: center; width: 100%; max-width: 440px; }

@media (max-width: 860px) {
  .h-now-grid { grid-template-columns: 1fr; }
  .h-now-visual { max-width: 360px; justify-self: start; }
}

/* ---------- 6. STORY (rail + content) ---------- */
.h-story {
  --rail-x: 12px;
  --pad-top: clamp(72px, 11vh, 128px);
  --pad-bottom: clamp(72px, 11vh, 128px);
  --track: var(--line);
  --ink-line: var(--glow-600);
}
.h-ch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding-top: var(--pad-top);
  padding-bottom: var(--pad-bottom);
}
/* 트랙(회색) + 진행(초록): 챕터끼리 margin 없이 붙어 하나의 선처럼 보임 */
.h-ch::before, .h-ch::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--gutter) + var(--rail-x));
  width: 1.5px;
}
.h-ch::before { background: var(--track); }
.h-ch::after {
  background: var(--ink-line);
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}

.h-ch-node {
  position: absolute;
  left: calc(var(--gutter) + var(--rail-x) - 5px);
  top: calc(var(--pad-top) + 6px);
  width: 11.5px; height: 11.5px; border-radius: 50%;
  background: var(--ink-line);
  border: 1.5px solid var(--ink-line);
  box-shadow: 0 0 0 5px var(--glow-50);
  z-index: 1;
  transition: background .35s ease, border-color .35s ease;
}

.h-ch-rail { grid-column: 1 / span 3; position: relative; min-height: 1px; }
.h-ch-body { grid-column: 4 / span 8; max-width: 720px; }

.h-ch-glyph {
  position: sticky; top: 30vh;
  margin-left: calc(var(--rail-x) + .75px);
  width: 100%; max-width: 250px;
  color: var(--glow-600);
}
.h-ch-glyph svg { display: block; width: 100%; height: auto; overflow: visible; }

.h-ch-title {
  margin-top: 18px;
  font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.25rem);
  font-weight: 750; line-height: 1.32; letter-spacing: -.02em;
  color: var(--glow-900);
}
.h-ch-text { margin-top: 26px; display: grid; gap: 18px; color: var(--ink-2); }
.h-ch-text p { max-width: 640px; }
.h-ch-text .h-lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); font-weight: 600; color: var(--ink); }
.h-ch-fact {
  margin-top: 28px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.7; color: var(--muted);
}
.h-ch-fact .h-mono-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted-2); margin-right: 10px; }
.h-ch-figure { margin-top: 36px; }

/* 흐름 목록 (CH06) */
.h-flow {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px;
  font-size: 15px;
}
.h-flow li { display: inline-flex; align-items: center; gap: 8px; }
.h-flow li + li::before {
  content: ""; width: 12px; height: 1.5px; background: var(--glow-400);
}
.h-flow span {
  display: inline-flex; flex-direction: column; line-height: 1.3;
  padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--paper);
  font-weight: 600; color: var(--glow-900);
}
.h-flow small {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; color: var(--muted-2);
}

/* Threshold (스토리 문턱) */
.h-ch--intro { --pad-top: clamp(96px, 16vh, 180px); --pad-bottom: clamp(56px, 8vh, 96px); }
.h-ch--intro::before, .h-ch--intro::after { top: calc(var(--pad-top) + 12px); }
.h-ch--intro .h-ch-node { width: 8px; height: 8px; left: calc(var(--gutter) + var(--rail-x) - 3.25px); top: calc(var(--pad-top) + 4px); border-width: 0; }
.h-intro-title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  font-weight: 800; line-height: 1.3; letter-spacing: -.025em;
  color: var(--glow-900);
}
.h-intro-sub { margin-top: 20px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); }

/* 마지막 챕터 — 선이 제품에 도착 */
.h-ch--end::before, .h-ch--end::after { bottom: auto; height: calc(var(--pad-top) + 12px); }
.h-ch--end .h-ch-node { width: 15px; height: 15px; left: calc(var(--gutter) + var(--rail-x) - 6.75px); top: calc(var(--pad-top) + 4px); }

/* CH07 제품 결과 */
.h-result-title {
  margin-top: 18px;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 800; line-height: 1.3; letter-spacing: -.025em; color: var(--glow-900);
}
.h-result-pre { margin-top: 20px; font-size: 16px; color: var(--muted); }
.h-result-visual {
  grid-column: 1 / -1;
  margin-top: clamp(48px, 6vw, 72px);
}
.h-pages {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 28px);
  align-items: start;
}
.h-pages figure:nth-child(2) { margin-top: clamp(20px, 3vw, 44px); }
.h-pages figure:nth-child(3) { margin-top: clamp(40px, 6vw, 88px); }
.h-pages .h-caption { margin-top: 10px; }

.h-tags {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.h-tags li {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  padding: 6px 10px; color: var(--glow-700);
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper);
}
.h-result-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

@media (max-width: 1023px) {
  .h-story { --rail-x: 0px; }
  .h-ch { display: block; }
  .h-ch-rail { margin-bottom: 26px; }
  .h-ch-glyph { position: static; max-width: 240px; margin-left: 0; }
  .h-ch-body { padding-left: 34px; max-width: none; }
  .h-result-visual { padding-left: 34px; }
  .h-ch--intro .h-ch-rail { display: none; }
}
@media (max-width: 640px) {
  .h-story { --pad-top: 64px; --pad-bottom: 64px; }
  .h-ch--intro { --pad-top: 88px; --pad-bottom: 40px; }
  .h-ch-glyph { max-width: 240px; }
  .h-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-pages figure:nth-child(2) { margin-top: 0; }
  .h-pages figure:nth-child(3) { display: none; }
  .h-flow { font-size: 14px; gap: 8px; }
  .h-flow li + li::before { display: none; }
}

/* ---------- 6-1. Glyph drawing ---------- */
.g-track { stroke: var(--line-2); fill: none; stroke-width: 1.5; }
.g-line { stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; }
.g-line--soft { stroke: var(--glow-400); }
.g-dash { stroke: var(--line-2); stroke-dasharray: 3 4; fill: none; stroke-width: 1.2; }
.g-dot { fill: currentColor; }
.g-dot--hollow { fill: var(--glow-50); stroke: var(--glow-400); stroke-width: 1.5; }
.g-box { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.2; }
.g-box--on { stroke: currentColor; }
.g-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  fill: var(--muted); text-transform: uppercase;
}
.g-label--ko { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; fill: var(--ink-2); }
.g-label--strong { fill: var(--glow-900); font-weight: 600; }

/* ---------- 7. SERVICES (compact) ---------- */
.h-services {
  padding-block: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.h-services-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.h-services-title {
  margin-top: 18px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.95rem);
  font-weight: 750; line-height: 1.4; letter-spacing: -.02em; color: var(--glow-900);
}
.h-services-body { color: var(--muted); }
.h-services-list {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.h-services-list a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 14px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--glow-900);
  background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .2s ease, background .2s ease;
}
.h-services-list a:hover { border-color: var(--glow-400); background: var(--glow-100); }
.h-services-list a::after { content: "→"; font-weight: 500; color: var(--glow-600); }
.h-services-note { margin-top: 18px; font-size: 13.5px; color: var(--muted-2); }
@media (max-width: 860px) { .h-services-grid { grid-template-columns: 1fr; } }

/* ---------- 8. HOW WE WORK ---------- */
.h-how {
  padding-block: clamp(88px, 11vw, 152px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.h-how-head { max-width: 640px; }
.h-how-title {
  margin-top: 18px;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
  font-weight: 800; line-height: 1.35; letter-spacing: -.02em; color: var(--glow-900);
}
.h-how-list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.h-how-item {
  display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px; align-items: baseline;
  padding-block: clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.h-how-no { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--glow-400); }
.h-how-item h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-weight: 750; letter-spacing: -.015em; color: var(--glow-900); line-height: 1.45; }
.h-how-item p { color: var(--muted); max-width: 560px; }
@media (max-width: 760px) {
  .h-how-item { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- 9. WHAT'S NEXT ---------- */
.h-next {
  padding-block: clamp(104px, 13vw, 176px);
  background: var(--gradient-hero);
  color: #fff;
}
.h-next .h-label { color: rgba(255, 255, 255, .78); }
.h-next-title {
  margin-top: 22px; max-width: 820px;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  font-weight: 800; line-height: 1.34; letter-spacing: -.025em;
}
.h-next-title span { display: block; color: rgba(255, 255, 255, .72); }
.h-next-body { margin-top: 24px; max-width: 560px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .82); }
.h-next-cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }
.h-next .h-cta { background: #fff; border-color: #fff; color: var(--glow-900); }
.h-next .h-cta:hover { background: var(--glow-100); border-color: var(--glow-100); }
.h-next .h-cta--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.h-next .h-cta--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.h-contact {
  margin-top: clamp(56px, 7vw, 88px); padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline;
  font-size: 15px; color: rgba(255, 255, 255, .78);
}
.h-contact a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .45); }
.h-contact a:hover { text-decoration-color: #fff; }
.h-next :focus-visible { outline-color: #fff; }

/* ---------- 10. Footer (메인 전용) ---------- */
.h-footer {
  padding-block: 64px 48px;
  background: var(--glow-900);
  color: rgba(255, 255, 255, .72);
  font-size: 14px; line-height: 1.7;
}
.h-footer-top {
  display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.h-footer .h-logo { color: #fff; }
.h-footer-desc { margin-top: 14px; max-width: 280px; }
.h-footer h2 {
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .5);
}
.h-footer ul { margin-top: 12px; display: grid; gap: 6px; }
.h-footer a { text-decoration: none; }
.h-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.h-footer-company { margin-top: 32px; display: grid; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.h-footer-disclaimer {
  margin-top: 24px; padding: 14px 16px;
  font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm);
}
.h-footer-copy { margin-top: 24px; font-size: 12.5px; color: rgba(255, 255, 255, .58); }
.h-footer :focus-visible { outline-color: #fff; }
@media (max-width: 860px) {
  .h-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-footer-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   11. Motion — .js-motion 이 붙었을 때만(= JS 동작 + reduced-motion 아님)
   JS 가 없으면 아래 규칙이 적용되지 않아 모든 선·노드·글리프가 완성 상태로 보입니다.
   ========================================================================== */
.js-motion .h-ch::after { transform: scaleY(var(--p, 0)); }

.js-motion .h-ch-node {
  background: var(--glow-50);
  border-color: var(--glow-400);
}
.js-motion .h-ch.is-active .h-ch-node { background: var(--ink-line); border-color: var(--ink-line); }
.js-motion .h-ch--intro .h-ch-node { background: var(--glow-400); }
.js-motion .h-ch--intro.is-active .h-ch-node { background: var(--ink-line); }

/* 가지·선 그리기 */
.js-motion .g-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js-motion .is-active .g-draw { stroke-dashoffset: 0; }

.js-motion .g-fade {
  opacity: 0;
  transition: opacity .5s ease;
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js-motion .is-active .g-fade { opacity: 1; }

/* CH04 gate: 선이 게이트에서 멈췄다가, 통과 후에만 HUMAN/체크가 켜짐 */
.js-motion .g-pass { opacity: .25; transition: opacity .5s ease; }
.js-motion .is-passed .g-pass { opacity: 1; }
.js-motion .g-check { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease) .15s; }
.js-motion .is-passed .g-check { stroke-dashoffset: 0; }

/* CH05 흩어진 점 → 정렬 */
.js-motion .g-pt {
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js-motion .is-aligned .g-pt { transform: translate(0, 0); }

/* CH07 결과: 페이지·태그가 모임 */
.js-motion .h-result-visual .h-pages figure {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease, transform .9s var(--ease);
}
.js-motion .h-result-visual .h-pages figure:nth-child(2) { transition-delay: .12s; }
.js-motion .h-result-visual .h-pages figure:nth-child(3) { transition-delay: .24s; }
.js-motion .is-active .h-result-visual .h-pages figure { opacity: 1; transform: none; }

.js-motion .h-tags li {
  opacity: 0; transform: translateX(-14px);
  transition: opacity .5s ease, transform .6s var(--ease);
  transition-delay: calc(400ms + var(--i, 0) * 70ms);
}
.js-motion .is-active .h-tags li { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 모바일 메뉴가 열리면 HERO 위에서도 헤더를 불투명하게 */
.h-header.is-menu-open { color: var(--glow-900); background: var(--glow-50); border-bottom-color: var(--line); }

/* ==========================================================================
   12. BUILT — 지금까지 만든 것들 (아카이브/인덱스, 판매 grid 아님)
   ========================================================================== */
.h-built { padding-block: clamp(88px, 11vw, 150px) clamp(72px, 9vw, 120px); }
/* CH07 에서 끝난 rail 이 가로 실선으로 이어지는 흔적 */
.h-built-thread {
  position: relative; height: 12px; margin-bottom: clamp(40px, 5vw, 64px);
}
.h-built-thread::before {
  content: ""; position: absolute; left: 12px; right: 0; top: 5px;
  height: 1.5px; background: linear-gradient(90deg, var(--glow-600) 0, var(--glow-600) 120px, var(--line) 120px);
}
.h-built-thread::after {
  content: ""; position: absolute; left: 6.5px; top: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--glow-600); box-shadow: 0 0 0 5px var(--glow-50);
}
.h-built-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px clamp(32px, 6vw, 88px); align-items: end;
}
.h-built-title {
  margin-top: 18px;
  font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.5rem);
  font-weight: 800; line-height: 1.32; letter-spacing: -.025em; color: var(--glow-900);
}
.h-built-sub { color: var(--muted); max-width: 520px; }

.h-built-list {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.h-built-item { border-bottom: 1px solid var(--line); }
.h-built-item:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.h-built-link {
  display: grid; grid-template-rows: auto auto auto 1fr auto;
  height: 100%; min-height: 220px;
  padding: 24px clamp(18px, 2vw, 28px) 22px;
  text-decoration: none;
  transition: background .2s ease;
}
.h-built-link:hover { background: rgba(255, 255, 255, .7); }
.h-built-no {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--glow-400);
}
.h-built-en {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--glow-600);
}
.h-built-ko {
  margin-top: 4px;
  font-size: 1.2rem; font-weight: 750; letter-spacing: -.015em; color: var(--glow-900);
}
.h-built-desc { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.h-built-go {
  margin-top: 18px; justify-self: start;
  font-size: 14px; font-weight: 600; color: var(--glow-600);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
}
.h-built-go .h-arrow { display: inline-block; transition: transform .2s ease; }
.h-built-link:hover .h-built-go { border-bottom-color: currentColor; }
.h-built-link:hover .h-built-go .h-arrow { transform: translateX(3px); }
.h-built-note { margin-top: 24px; font-size: 13.5px; color: var(--muted-2); }

@media (max-width: 1023px) {
  .h-built-head { grid-template-columns: 1fr; }
  .h-built-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-built-item:not(:nth-child(3n + 1)) { border-left: 0; }
  .h-built-item:nth-child(2n) { border-left: 1px solid var(--line); }
}
/* 모바일: 1열 나열 대신 2열 compact 인덱스 (설명 2줄, 화살표만) — 스크롤 길이 약 1/3 */
@media (max-width: 640px) {
  .h-built-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-built-item:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
  .h-built-link {
    position: relative; min-height: 0;
    grid-template-rows: auto auto auto auto;
    padding: 16px 12px 16px 12px;
  }
  .h-built-item:nth-child(2n + 1) .h-built-link { padding-left: 2px; }
  .h-built-no { font-size: 10.5px; }
  .h-built-en { margin-top: 8px; font-size: 9.5px; letter-spacing: .1em; }
  .h-built-ko { margin-top: 2px; font-size: 15.5px; }
  .h-built-desc {
    margin-top: 6px; font-size: 12.5px; line-height: 1.55;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
  .h-built-go {
    position: absolute; top: 14px; right: 10px;
    margin: 0; padding: 0; border: 0; font-size: 0;
  }
  .h-built-go .h-arrow { font-size: 14px; }
  .h-built-thread::before { left: 0; }
  .h-built-thread::after { left: -5.5px; }
}

/* ==========================================================================
   13. WORK WITH GLOW — 현재 요청할 수 있는 일 (3축)
   ========================================================================== */
.h-work {
  padding-block: clamp(96px, 12vw, 164px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.h-work-head { max-width: 720px; }
.h-work-title {
  margin-top: 18px;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 800; line-height: 1.3; letter-spacing: -.025em; color: var(--glow-900);
}
.h-work-sub { margin-top: 20px; color: var(--muted); max-width: 620px; }

.h-work-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  border-top: 1px solid var(--line-2);
}
.h-work-item {
  display: flex; flex-direction: column;
  padding: 32px clamp(20px, 2.4vw, 36px) 36px;
}
.h-work-item + .h-work-item { border-left: 1px solid var(--line); }
.h-work-item--make + .h-work-item { border-left: 0; }
.h-work-no {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--glow-600);
}
.h-work-no span { color: var(--glow-400); margin-right: 8px; }
.h-work-name {
  margin-top: 14px;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.45rem); font-weight: 750; letter-spacing: -.015em;
  color: var(--glow-900);
}
.h-work-lead { margin-top: 18px; font-size: 1.05rem; font-weight: 600; line-height: 1.6; color: var(--ink); }
.h-work-body { margin-top: 14px; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.h-work-topics { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.h-work-topics li {
  font-size: 13px; padding: 4px 10px; color: var(--glow-700);
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--glow-50);
}
.h-work-note { margin-top: 18px; font-size: 13.5px; line-height: 1.65; color: var(--muted-2); }
.h-work-link { margin-top: auto; padding-top: 26px; align-self: flex-start; }

/* MAKE — 이번 확장에서 가장 중요한 축: 딥그린 면 하나로만 강조 */
.h-work-item--make {
  background: var(--glow-900); color: rgba(255, 255, 255, .86);
  border-left: 0 !important;
  border-radius: 0 0 var(--radius) var(--radius);
}
.h-work-item--make .h-work-no { color: #b9d8c4; }
.h-work-item--make .h-work-no span { color: var(--glow-400); }
.h-work-item--make .h-work-name { color: #fff; }
.h-work-item--make .h-work-lead { color: #fff; }
.h-work-item--make .h-work-body { color: rgba(255, 255, 255, .78); }
.h-work-item--make .h-work-note { color: rgba(255, 255, 255, .62); }
.h-work-steps {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}
.h-work-steps::before {
  content: ""; position: absolute; left: 4px; right: 12%; top: 4px;
  height: 1.5px; background: rgba(110, 168, 133, .7);
}
.h-work-steps li { position: relative; padding-top: 18px; padding-right: 6px; }
.h-work-steps li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 9.5px; height: 9.5px; border-radius: 50%;
  background: var(--glow-900); border: 1.5px solid var(--glow-400);
}
.h-work-steps li:last-child::before { background: var(--glow-400); }
.h-work-steps span { display: block; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.35; }
.h-work-steps small { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: rgba(255, 255, 255, .55); }
.h-work-cta { margin-top: auto; align-self: flex-start; background: #fff; border-color: #fff; color: var(--glow-900); }
.h-work-item--make .h-work-note + .h-work-cta { margin-top: 26px; }
.h-work-cta:hover { background: var(--glow-100); border-color: var(--glow-100); }
.h-work-item--make :focus-visible { outline-color: #fff; }

.h-work-foot {
  margin-top: clamp(40px, 5vw, 56px); padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: baseline;
  color: var(--muted);
}
.h-work-contact { display: flex; align-items: baseline; gap: 12px; }
.h-work-sep { color: var(--line-2); }

@media (max-width: 1023px) {
  .h-work-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; }
  .h-work-item--make { grid-column: 1 / -1; border-radius: var(--radius); margin-top: 8px; }
  .h-work-item + .h-work-item--make { border-left: 0; }
  .h-work-item--make + .h-work-item { border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .h-work-grid { grid-template-columns: 1fr; }
  .h-work-item { padding-inline: 2px; }
  .h-work-item + .h-work-item { border-left: 0; border-top: 1px solid var(--line); }
  .h-work-item--make { padding: 28px 20px 30px; border-top: 0 !important; }
  .h-work-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .h-work-steps::before { display: none; }
  .h-work-link, .h-work-cta { min-height: 44px; display: inline-flex; align-items: center; }
}

/* WHAT'S NEXT 열린 결말 문장 */
.h-next-body--open { margin-top: 12px; font-size: clamp(1rem, .95rem + .25vw, 1.1rem); color: rgba(255, 255, 255, .7); }

/* 모바일 메뉴 하단 유틸 링크 */
.h-menu-util { display: flex; gap: 18px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.h-menu-util a { display: inline-block; padding: 8px 0; font-size: 14px; font-weight: 500; border: 0 !important; color: var(--muted); }

/* 헤더 메뉴 항목이 늘어 데스크톱 nav 전환 지점 조정 */
@media (max-width: 960px) {
  .h-nav { display: none; }
  .h-menu { display: block; }
}
.h-work-link { gap: 6px; }


/* ==========================================================================
   15. PC 계정 메뉴 (button + dropdown) — 모바일(≤960px)은 기존 .h-menu 그대로
   ========================================================================== */
.h-acct { position: relative; }
.h-acct > summary { list-style: none; }
.h-acct > summary::-webkit-details-marker { display: none; }
.h-acct-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 10px 0 12px;
  font-size: 14.5px; font-weight: 500; cursor: pointer; user-select: none;
  border: 1px solid currentColor; border-radius: var(--radius-sm);
  opacity: .92; transition: opacity .2s ease, background .2s ease;
}
.h-acct-btn:hover, .h-acct[open] .h-acct-btn { opacity: 1; }
.h-acct-ico { width: 17px; height: 17px; }
.h-acct-chev { width: 12px; height: 12px; transition: transform .2s ease; }
.h-acct[open] .h-acct-chev { transform: rotate(180deg); }
.h-acct-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 176px; padding: 6px;
  background: var(--paper); color: var(--glow-900);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(28, 53, 39, .12);
}
.h-nav .h-acct-row {
  display: block; padding: 10px 12px; border-radius: 6px;
  font-size: 14.5px; font-weight: 600; opacity: 1; color: var(--glow-900);
}
.h-nav .h-acct-row:hover { background: var(--glow-50); text-decoration: none; }
.h-nav .h-acct-row--quiet { font-weight: 500; color: var(--muted); }
.h-acct-sep { height: 1px; margin: 4px 6px; background: var(--line); }


/* ==========================================================================
   16. FLOATING GLOW DESK — PC(961px~) 전용 quick navigation
   오른쪽 edge 세로 탭 · 패널은 버튼 왼쪽으로 펼침 · 모바일/태블릿 미노출
   ========================================================================== */
.h-fdesk { display: none; }
.h-fdesk[hidden] { display: none !important; }
@media (min-width: 961px) {
  .h-fdesk {
    display: block;
    position: fixed; z-index: 90;
    right: 36px; bottom: 40px;
  }
}
/* 가로형 trigger — 기본 상태에서 바로 인식되는 크기 */
.h-fdesk-btn {
  display: flex; align-items: center; gap: 14px;
  width: 256px; height: 60px; padding: 0 18px 0 20px;
  font: inherit; text-align: left; cursor: pointer;
  color: #fff; background: var(--glow-900);
  border: 1px solid rgba(110, 168, 133, .55);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(28, 53, 39, .22);
  transition: background .2s ease, border-color .2s ease;
}
.h-fdesk-btn:hover, .h-fdesk.is-open .h-fdesk-btn { background: var(--glow-700); border-color: var(--glow-400); }
.h-fdesk-btn:focus-visible { outline: 2px solid var(--glow-600); outline-offset: 3px; }
.h-fdesk-node {
  display: inline-block; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--glow-400);
  box-shadow: 0 0 0 3px rgba(110, 168, 133, .22);
}
.h-fdesk-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.h-fdesk-text {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; line-height: 1; color: #b9d8c4;
}
.h-fdesk-hint { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: #fff; white-space: nowrap; }
.h-fdesk-btn-arrow { flex: none; font-size: 16px; color: var(--glow-400); transition: transform .2s ease; }
.h-fdesk-btn:hover .h-fdesk-btn-arrow { transform: translateX(3px); }
.h-fdesk.is-open .h-fdesk-btn-arrow { transform: rotate(-90deg); }

.h-fdesk-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: 260px; max-height: calc(100vh - 40px - 60px - 12px - 16px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px 8px;
  background: var(--paper); color: var(--glow-900);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(28, 53, 39, .14);
}
.h-fdesk-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; margin: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--glow-600);
  border-bottom: 1px solid var(--line-2);
}
.h-fdesk-panel ul { margin: 0; padding: 0; list-style: none; }
.h-fdesk-panel li + li { border-top: 1px solid var(--line); }
.h-fdesk-panel li a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
  padding: 9px 4px; text-decoration: none;
}
.h-fdesk-en {
  grid-column: 1; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted-2);
}
.h-fdesk-ko { grid-column: 1; font-size: 15px; font-weight: 600; color: var(--glow-900); line-height: 1.45; }
.h-fdesk-arrow {
  grid-column: 2; grid-row: 1 / span 2; color: var(--glow-600);
  transition: transform .2s ease;
}
.h-fdesk-panel li a:hover .h-fdesk-arrow { transform: translateX(3px); }
.h-fdesk-panel li a:hover .h-fdesk-ko { color: var(--glow-600); }
.h-fdesk-panel a:focus-visible { outline: 2px solid var(--glow-600); outline-offset: 0; border-radius: 6px; }

/* Floating Desk — 상단 REPORT HOME 바로가기 블록 */
.h-fdesk-rh { padding: 14px 4px 14px; border-bottom: 1px solid var(--line-2); }
.h-fdesk-rh .h-fdesk-en { margin: 0; display: block; color: var(--glow-600); }
.h-fdesk-rh-desc { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--glow-900); }
.h-fdesk-rh-go {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; min-height: 34px; padding: 0 12px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--glow-600); border-radius: var(--radius-sm);
  transition: background .2s ease;
}
.h-fdesk-rh-go:hover { background: var(--glow-700); }
.h-fdesk-rh-go:focus-visible { outline: 2px solid var(--glow-600); outline-offset: 2px; }

/* NOW — 제품 제목을 실제 리포트HOME 로고로 (원본 색 유지) */
.h-now-title--logo { line-height: 0; }
.h-now-logo { display: block; width: auto; height: 56px; max-width: 100%; }
@media (max-width: 640px) { .h-now-logo { height: 40px; } }

/* ==========================================================================
   17. 초광폭 모니터(2200px 이상, 배율 100%)에서 메인 전체를 125%로
   - 1200~1400px 로 설계한 레이아웃이 울트라와이드에서 너무 작아 보이는 문제 보정
   - 메인 홈페이지(home.css)에만 적용 · 1920 이하 화면은 변화 없음
   - Chrome/Edge/Safari/Firefox(126+) 지원, 미지원 브라우저는 100% 로 그대로 표시
   ========================================================================== */
@media (min-width: 2200px) {
  html { zoom: 1.25; }
}
