/* ============================================================================
   화성인사이드 랜딩 2026 (landing-2026.css)
   ----------------------------------------------------------------------------
   index.html 전용 자체완결 레이어. theme-inside.css 다음에 단독으로 로드된다.

   원칙 하나: 색은 theme-inside.css §1의 --hi-* 토큰에서만 꺼내 쓴다.
   면(surface)과 글자는 아래 §2의 의미 토큰을 거치고, 그 토큰은 body.theme-dark
   에서 통째로 뒤집힌다. 라이트 표면(#ffffff · #e7e4db)을 규칙에 직접 박지
   않는 것이 다크 테마에서 글씨가 사라지던 문제의 근본 해결이다.
   항상 어두워야 하는 구간(마스트헤드·히어로·EP·CTA·푸터)은 .hx-invert로 토큰만
   국소 교체한다 — 색을 하드코딩하지 않으므로 두 테마에서 동일하게 읽힌다.

   소형 텍스트(<18.66px bold / <24px)에는 --hx-accent-text(라이트 5.6:1),
   큰 텍스트·면에만 --hx-accent / --hx-accent-face를 쓴다.

   차례
     §1  리셋·기반
     §2  의미 토큰 (라이트 ⇄ 다크 · 반전 문맥)
     §3  타이포그래피 스케일
     §4  레이아웃 프리미티브
     §5  버튼·링크
     §6  마스트헤드 / 내비게이션
     §7  히어로
     §8  챕터 공통 (번호 슬레이트 · 규칙선)
     §9  EP 필름스트립
     §10 네트워크 · 분야 인덱스
     §11 운영 기준
     §12 CTA 밴드
     §13 푸터
     §14 인증 모달 / 문의 모달
     §15 안내 패널 (규칙 기반 챗봇)
     §16 유틸 (스킵링크 · 맨 위로 · 등장 모션)
   ========================================================================== */

/* ============================================================
   §1 리셋·기반
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(h1, h2, h3, h4, p, li, dd, dt, span, strong, em, small, figcaption) {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* ============================================================
   §2 의미 토큰
   --hx-*는 면과 글자의 "역할"만 가리킨다. 값은 전부 --hi-*에서 온다.
   ============================================================ */
:root {
  --hx-bg: var(--hi-offwhite);
  --hx-bg-raised: var(--hi-white);
  --hx-bg-deep: var(--hi-paper-deep);
  --hx-text: var(--hi-ink);
  --hx-text-2: var(--hi-ink-2);
  --hx-muted: var(--hi-muted);
  --hx-rule: var(--hi-line);
  --hx-rule-strong: var(--hi-line-strong);
  --hx-accent: var(--hi-orange-strong);   /* 큰 텍스트(≥24px)·아이콘 — 4.0:1 */
  --hx-accent-text: var(--hi-orange-ink); /* 소형 라벨 텍스트 — 5.6:1 */
  --hx-accent-face: var(--hi-orange);     /* 면·룰 전용. 밝은 면 위 텍스트 금지 */
  --hx-on-accent: var(--hi-black);
  --hx-focus: var(--hi-orange-strong);
  --hx-glow: rgba(232, 98, 42, 0.14);
  --hx-hair: rgba(10, 10, 10, 0.05);

  --hx-shell: min(100% - 2.25rem, 74rem);
  --hx-chapter-y: clamp(4.5rem, 9vw, 9.5rem);
  --hx-radius: 2px;
  --hx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-dark {
  --hx-bg: var(--hi-black);
  --hx-bg-raised: var(--hi-black-2);
  --hx-bg-deep: var(--hi-black-3);
  --hx-text: var(--hi-text-on-dark);
  --hx-text-2: #ddd9d1;
  --hx-muted: var(--hi-muted-on-dark);
  --hx-rule: var(--hi-line-on-dark);
  --hx-rule-strong: rgba(242, 240, 234, 0.3);
  --hx-accent: var(--hi-orange-soft);
  --hx-accent-text: var(--hi-orange-soft);
  --hx-accent-face: var(--hi-orange);
  --hx-on-accent: var(--hi-black);
  --hx-focus: var(--hi-orange-soft);
  --hx-glow: rgba(232, 98, 42, 0.22);
  --hx-hair: rgba(242, 240, 234, 0.05);
}

/* 테마와 무관하게 항상 어두운 문맥. 토큰만 갈아끼우므로 색 하드코딩이 없다. */
.hx-invert {
  --hx-bg: var(--hi-black);
  --hx-bg-raised: var(--hi-black-2);
  --hx-bg-deep: var(--hi-black-3);
  --hx-text: var(--hi-text-on-dark);
  --hx-text-2: #ddd9d1;
  --hx-muted: var(--hi-muted-on-dark);
  --hx-rule: var(--hi-line-on-dark);
  --hx-rule-strong: rgba(242, 240, 234, 0.3);
  --hx-accent: var(--hi-orange-soft);
  --hx-accent-text: var(--hi-orange-soft);
  --hx-accent-face: var(--hi-orange);
  --hx-on-accent: var(--hi-black);
  --hx-focus: var(--hi-orange-soft);
  --hx-glow: rgba(232, 98, 42, 0.22);
  --hx-hair: rgba(242, 240, 234, 0.05);
  background-color: var(--hx-bg);
  color: var(--hx-text);
}

.hx-invert :focus-visible {
  outline-color: var(--hx-focus);
}

/* ============================================================
   §3 타이포그래피
   단일 서체(Pretendard) 브랜드다. 서체 대비 대신 굵기·크기·자간 대비로
   위계를 만든다. 한글 라벨의 자간은 어절 경계가 무너지지 않는 0.12em까지만.
   ============================================================ */
body {
  background-color: var(--hx-bg);
  color: var(--hx-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: var(--hi-lh-body, 1.62);
  letter-spacing: var(--hi-ls-ko, 0.01em);
  -webkit-font-smoothing: antialiased;
}

.hx-display {
  font-size: clamp(2.375rem, 1.1rem + 5.4vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hx-h2 {
  font-size: clamp(1.8rem, 1.05rem + 3vw, 3.125rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.032em;
}

.hx-h3 {
  font-size: clamp(1.2rem, 1.02rem + 0.72vw, 1.5rem);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.022em;
}

.hx-lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem);
  line-height: 1.64;
  color: var(--hx-text-2);
  max-width: 34em;
}

.hx-body {
  color: var(--hx-text-2);
  max-width: 38em;
}

/* 마이크로 라벨 — 편집 톤의 기본 장치 */
.hx-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--hx-accent-text);
}

.hx-mark::before {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  background: var(--hx-accent-face);
}

/* ============================================================
   §4 레이아웃 프리미티브
   ============================================================ */
.hx-shell {
  width: var(--hx-shell);
  margin-inline: auto;
}

.portal-page {
  display: block;
}

.portal-page.leaving {
  opacity: 0.35;
  transition: opacity 0.16s ease;
}

.hx-main:focus {
  outline: none;
}

.hx-chapter {
  position: relative;
  padding-block: var(--hx-chapter-y);
  background-color: var(--hx-bg);
  color: var(--hx-text);
  border-top: 1px solid var(--hx-rule);
}

.hx-chapter--raised {
  background-color: var(--hx-bg-raised);
}

/* 어두운 면의 질감: 코너 글로우 + 중앙 헤어라인. 단색 검정을 피한다. */
.hx-invert.hx-chapter,
.hx-invert.hx-cta,
.site-footer {
  background-image:
    radial-gradient(110% 74% at 88% 0%, var(--hx-glow), transparent 58%),
    linear-gradient(90deg, transparent 0 calc(50% - 0.5px), var(--hx-hair) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  background-repeat: no-repeat, no-repeat;
}

/* ============================================================
   §5 버튼·링크
   ============================================================ */
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--hx-radius);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: var(--hi-lh-ui, 1.45);
  letter-spacing: -0.01em;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hx-btn i,
.hx-link i {
  font-style: normal;
  transition: transform 0.24s var(--hx-ease);
}

.hx-btn:hover i,
.hx-link:hover i {
  transform: translateX(0.22em);
}

.hx-btn--solid {
  background: var(--hx-accent-face);
  border-color: var(--hx-accent-face);
  color: var(--hx-on-accent);
}

.hx-btn--solid:hover {
  background: var(--hi-orange-strong);
  border-color: var(--hi-orange-strong);
  color: var(--hi-white);
}

.hx-btn--outline {
  border-color: var(--hx-rule-strong);
  color: var(--hx-text);
}

.hx-btn--outline:hover {
  border-color: var(--hx-accent-face);
  color: var(--hx-accent-text);
}

.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hx-accent-text);
  box-shadow: inset 0 -1px 0 var(--hx-rule-strong);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.hx-link:hover {
  color: var(--hx-text);
  box-shadow: inset 0 -1px 0 currentColor;
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

.hx-actions[hidden] {
  display: none;
}

/* ============================================================
   §6 마스트헤드
   워드마크(wm3-tag-r)는 딥블랙 판 위에서만 온전히 읽힌다. 그래서
   마스트헤드는 두 테마 모두 반전 문맥으로 고정한다.
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--hx-rule);
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
}

.hx-mast-inner {
  width: var(--hx-shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding-block: 0.5rem;
}

.site-brand img {
  width: clamp(142px, 16vw, 188px);
}

.gnb {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.6rem);
  margin-inline-start: auto;
}

.gnb-item {
  display: flex;
}

.gnb-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hx-text-2);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.gnb-link:hover,
.gnb-item.current .gnb-link,
.gnb-link.active {
  color: var(--hx-text);
  border-bottom-color: var(--hx-accent-face);
}

.site-utility {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.util-guest {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.util-guest[hidden] {
  display: none;
}

.hx-util-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hx-text);
  border: 1px solid var(--hx-rule-strong);
  border-radius: var(--hx-radius);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hx-util-btn:hover {
  border-color: var(--hx-accent-face);
  color: var(--hx-accent-text);
}

.hx-util-btn--solid {
  background: var(--hx-accent-face);
  border-color: var(--hx-accent-face);
  color: var(--hx-on-accent);
}

.hx-util-btn--solid:hover {
  background: var(--hi-orange-strong);
  border-color: var(--hi-orange-strong);
  color: var(--hi-white);
}

/* 계정 메뉴 (승인 회원) */
.util-account {
  position: relative;
}

.util-account[hidden] {
  display: none;
}

.util-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hx-text);
  border: 1px solid var(--hx-rule-strong);
  border-radius: var(--hx-radius);
}

.util-caret {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
}

.util-account-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.6rem);
  min-width: 15rem;
  display: grid;
  gap: 0.125rem;
  padding: 0.5rem;
  background: var(--hi-black-2);
  border: 1px solid var(--hi-line-on-dark);
  border-radius: var(--hx-radius);
  box-shadow: var(--hi-shadow-md);
}

.util-account-menu[hidden] {
  display: none;
}

.util-account-menu > button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: start;
  color: var(--hi-text-on-dark);
  border-radius: var(--hx-radius);
}

.util-account-menu > button[hidden] {
  display: none;
}

.util-account-menu > button:hover {
  background: var(--hi-orange-tint);
  color: var(--hi-orange-soft);
}

.util-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block: 0.25rem;
  padding: 0.4rem 0.75rem;
  border-block: 1px solid var(--hi-line-on-dark);
  font-size: 0.8125rem;
  color: var(--hi-muted-on-dark);
}

.util-theme > div {
  display: flex;
  gap: 0.25rem;
}

.util-theme button {
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hi-text-on-dark);
  border: 1px solid var(--hi-line-on-dark);
  border-radius: var(--hx-radius);
}

.util-theme button.active {
  border-color: var(--hi-orange);
  background: var(--hi-orange);
  color: var(--hi-black);
}

/* 모바일 토글 */
.gnb-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  min-height: 44px;
  padding: 0;
}

.gnb-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--hi-text-on-dark);
  transition: transform 0.25s var(--hx-ease), opacity 0.2s ease;
}

@media (max-width: 900px) {
  .gnb-burger {
    display: flex;
  }

  .hx-mast-inner {
    flex-wrap: wrap;
    padding-block-end: 0;
  }

  .gnb {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s var(--hx-ease);
  }

  .gnb-item {
    display: block;
    border-top: 1px solid var(--hi-line-on-dark);
  }

  .gnb-link {
    width: 100%;
    min-height: 52px;
    padding-inline: 0;
    border-bottom: 0;
    font-size: 1rem;
  }

  .site-header.nav-open .gnb {
    max-height: 24rem;
  }

  .site-header.nav-open .gnb-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .gnb-burger span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .gnb-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 520px) {
  .util-guest .hx-util-btn--solid {
    display: none;
  }

  .site-header.nav-open .util-guest .hx-util-btn--solid {
    display: inline-flex;
  }
}

/* ============================================================
   §7 히어로
   ============================================================ */
.hx-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: min(92svh, 52rem);
  padding-block: clamp(3.5rem, 10vh, 7rem) clamp(3rem, 7vh, 5rem);
  overflow: hidden;
}

.hx-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
}

.hx-hero-media > * {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-hero-poster,
.hx-hero-media video {
  transform: scale(1.012);
  filter: saturate(0.5) contrast(1.06) brightness(0.26) blur(1px);
}

.hx-hero-scrim {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.72) 46%, rgba(10, 10, 10, 0.97) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.76) 62%, rgba(10, 10, 10, 0.82) 100%);
}

.hx-hero-inner {
  width: var(--hx-shell);
  margin-inline: auto;
  align-self: center;
  display: grid;
  gap: clamp(1.125rem, 2.2vw, 1.625rem);
  justify-items: start;
  padding-block-end: clamp(2rem, 5vh, 3.5rem);
}

.hx-hero-wordmark {
  width: clamp(220px, 28vw, 340px);
}

.hx-hero .hx-display {
  max-width: 15em;
}

.hx-hero .hx-display em {
  font-style: normal;
  color: var(--hi-orange-soft);
}

.hx-hero .hx-lead {
  max-width: 27em;
}

@media (max-width: 760px) {
  .hx-hero-poster,
  .hx-hero-media video {
    object-position: 58% center;
    filter: saturate(0.48) contrast(1.06) brightness(0.24) blur(1px);
  }
}

/* 브로드캐스트 로워서드 */
.hx-slatebar {
  width: var(--hx-shell);
  margin-inline: auto;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2.75rem;
  padding-block-start: clamp(1.25rem, 3vh, 2rem);
  border-top: 1px solid var(--hi-line-on-dark);
}

.hx-slatebar > div {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.hx-slatebar dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hi-orange-soft);
}

.hx-slatebar dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hi-text-on-dark);
}

.hx-notice {
  max-width: 40em;
  padding: 0.85rem 1.05rem;
  border-inline-start: 2px solid var(--hi-orange);
  background: rgba(242, 240, 234, 0.06);
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--hi-text-on-dark);
}

.hx-notice strong {
  display: block;
  margin-block-end: 0.15rem;
  font-weight: 700;
  color: var(--hi-orange-soft);
}

.hx-scrollcue {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 0.75rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--hi-muted-on-dark);
}

.hx-scrollcue i {
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(180deg, var(--hi-orange), transparent);
  animation: hx-cue 2.4s var(--hx-ease) infinite;
}

@keyframes hx-cue {
  0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.35; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* 히어로 진입 모션 — JS와 무관하게 항상 실행된다 */
.hx-hero-inner > * {
  animation: hx-rise 0.9s var(--hx-ease) both;
}

.hx-hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hx-hero-inner > *:nth-child(2) { animation-delay: 0.13s; }
.hx-hero-inner > *:nth-child(3) { animation-delay: 0.21s; }
.hx-hero-inner > *:nth-child(4) { animation-delay: 0.29s; }
.hx-hero-inner > *:nth-child(5) { animation-delay: 0.37s; }
.hx-hero-inner > *:nth-child(n + 6) { animation-delay: 0.45s; }

@keyframes hx-rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .hx-hero {
    min-height: auto;
  }

  .hx-scrollcue {
    display: none;
  }
}

/* ============================================================
   §8 챕터 공통
   각 챕터는 번호 슬레이트로 열린다. 카드 속 카드를 만들지 않고
   1px 규칙선과 여백만으로 구획한다.
   ============================================================ */
.hx-chapter-head {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-block-end: clamp(2rem, 4vw, 3.25rem);
}

.hx-chapter-head .hx-h2 {
  max-width: 17em;
  font-family: var(--hi-font-display) !important;
  font-weight: 700;
}

.hx-chapter-index {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block-end: 0.75rem;
  border-bottom: 1px solid var(--hx-rule);
}

.hx-chapter-index b {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--hx-muted);
}

/* 아웃라인 숫자. 획 색은 --hx-rule-strong(라이트 1.8:1)로는 큰 텍스트 기준
   3:1을 못 넘겨 번호가 사실상 사라진다. --hx-muted로 올려 양쪽 테마에서
   실측 5:1 이상을 확보한다. */
@supports (-webkit-text-stroke: 1px currentColor) {
  .hx-chapter-index b {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--hx-muted);
  }
}

.hx-chapter-index span {
  margin-inline-start: auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hx-accent-text);
}

/* 넓은 화면: 제목 왼쪽 / 리드 오른쪽 비대칭 배치 */
@media (min-width: 900px) {
  .hx-chapter-head--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .hx-chapter-head--split .hx-chapter-index {
    grid-column: 1 / -1;
  }

  .hx-chapter-head--split .hx-lead {
    padding-block-end: 0.35rem;
  }
}

/* ============================================================
   §9 회원 1분 프로필
   ============================================================ */
.hx-profile-film {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

@media (min-width: 940px) {
  .hx-profile-film {
    grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.65fr);
  }
}

.hx-profile-video {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.hx-profile-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--hi-black);
  border: 1px solid var(--hx-rule-strong);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

.hx-profile-video figcaption {
  font-size: 0.8125rem;
  color: var(--hx-muted);
}

.hx-profile-summary {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  padding-block-start: 0.25rem;
}

.hx-profile-statement {
  max-width: 20em;
  font-size: clamp(1.25rem, 1.02rem + 0.9vw, 1.75rem);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.026em;
  color: var(--hx-text);
}

.hx-profile-summary .hx-meta {
  display: grid;
  gap: 0;
  padding-block-start: 0;
}

.hx-profile-summary .hx-meta > div {
  justify-content: space-between;
  min-height: 3rem;
  border-top: 1px solid var(--hx-rule);
}

.hx-profile-summary .hx-link {
  justify-self: start;
}

/* 이전 필름스트립 클래스는 다른 작업본과 회귀 호환을 위해 남긴다. */
.hx-episode {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

@media (min-width: 940px) {
  .hx-episode {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }
}

.hx-still {
  display: grid;
  gap: 0.7rem;
}

.hx-still img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--hx-rule);
}

.hx-still figcaption {
  font-size: 0.8125rem;
  color: var(--hx-muted);
}

.hx-episode-side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.hx-catalog {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.7;
  color: var(--hx-text-2);
}

.hx-catalog strong {
  font-weight: 700;
  color: var(--hx-text);
  box-shadow: inset 0 -0.38em 0 var(--hi-orange-tint-strong);
}

.hx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.25rem;
  padding-block-start: 1rem;
  border-top: 1px solid var(--hx-rule);
}

.hx-meta > div {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-height: 2.25rem;
}

.hx-meta dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hx-accent-text);
}

.hx-meta dd {
  font-weight: 600;
  color: var(--hx-text);
}

/* 타임코드 프레임 */
.hx-strip {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 620px) {
  .hx-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .hx-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hx-frame {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding-block-start: 0.875rem;
  border-top: 1px solid var(--hx-rule);
}

.hx-frame figure {
  position: relative;
}

.hx-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.85);
}

.hx-frame figcaption {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  padding: 0.25rem 0.55rem;
  background: var(--hi-black);
  color: var(--hi-orange-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--hi-ls-num, 0.08em);
  font-variant-numeric: tabular-nums;
}

.hx-frame-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hx-accent-text);
}

.hx-frame-body {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--hx-text-2);
}

.hx-next {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding-block-start: 1.25rem;
  border-top: 2px solid var(--hx-accent-face);
}

.hx-next-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2.25rem;
}

.hx-next-slots > div {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.hx-next-slots dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hx-accent-text);
}

.hx-next-slots dd {
  font-size: 0.9375rem;
  color: var(--hx-text-2);
}

/* ============================================================
   §10 네트워크 · 분야 인덱스
   ============================================================ */
.hx-paths {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

@media (min-width: 820px) {
  .hx-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hx-path {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  align-content: start;
  padding-block-start: 1.25rem;
  border-top: 2px solid var(--hx-text);
}

.hx-path-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hx-accent-text);
}

.hx-path p:not(.hx-path-role) {
  color: var(--hx-text-2);
  max-width: 30em;
}

.hx-path .hx-link {
  margin-block-start: 0.45rem;
}

.hx-operating-note {
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding-block-start: 1rem;
  border-top: 1px solid var(--hx-rule);
  font-size: 0.875rem;
  color: var(--hx-muted);
}

/* 연결 분야: 편집 목차 조판 */
.hx-fields {
  margin-block-start: clamp(2.75rem, 5.5vw, 4.5rem);
  border-top: 1px solid var(--hx-rule);
}

.hx-fields-caption {
  padding-block: 1rem 0.5rem;
}

.hx-fields li {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(0.7rem, 1.5vw, 1.1rem);
  border-top: 1px solid var(--hx-rule);
  font-size: clamp(1.25rem, 0.95rem + 1.3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hx-text);
  transition: color 0.24s ease, padding-inline-start 0.24s var(--hx-ease);
}

.hx-fields li:hover {
  color: var(--hx-accent);
  padding-inline-start: 0.6rem;
}

.hx-fields li em {
  flex: none;
  width: 2ch;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--hi-ls-num, 0.08em);
  font-variant-numeric: tabular-nums;
  color: var(--hx-muted);
}

/* ============================================================
   §11 운영 기준
   ============================================================ */
.hx-principles {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

@media (min-width: 860px) {
  .hx-principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hx-principle {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding-block-start: 1rem;
  border-top: 1px solid var(--hx-rule-strong);
}

.hx-principle h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hx-principle p {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--hx-text-2);
}

/* 참여 기준 — 승인 전 확인 항목 (public-site.css의 동명 블록을 대체한다) */
.landing-membership-proof {
  margin-block-start: clamp(2.75rem, 5.5vw, 4.5rem);
  padding-block-start: 1.25rem;
  border-top: 2px solid var(--hx-accent-face);
}

.landing-membership-proof > p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hx-text);
}

.landing-membership-proof > p > span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hx-accent-text);
}

.landing-membership-proof dl {
  display: grid;
  gap: 0;
  margin-block-start: 1.25rem;
}

@media (min-width: 860px) {
  .landing-membership-proof dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

.landing-membership-proof dl > div {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--hx-rule);
}

.landing-membership-proof dt {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--hi-ls-num, 0.08em);
  font-variant-numeric: tabular-nums;
  color: var(--hx-accent-text);
  padding-block-start: 0.2rem;
}

.landing-membership-proof dd {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.landing-membership-proof dd strong {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hx-text);
}

.landing-membership-proof dd span {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--hx-text-2);
}

/* 가입 전 확인 — 번호 · 제목 · 설명 */
.hx-steps {
  margin-block-start: clamp(2.75rem, 5.5vw, 4.5rem);
  border-top: 1px solid var(--hx-rule);
}

.hx-steps > header {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.25rem 0.75rem;
}

.hx-steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.3rem clamp(1rem, 2.5vw, 2rem);
  padding-block: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--hx-rule);
}

.hx-steps li > span {
  grid-row: 1 / 3;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--hi-ls-num, 0.08em);
  font-variant-numeric: tabular-nums;
  color: var(--hx-accent-text);
  padding-block-start: 0.28rem;
}

.hx-steps li strong {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hx-text);
}

.hx-steps li p {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--hx-text-2);
}

@media (min-width: 860px) {
  .hx-steps li {
    grid-template-columns: 3rem minmax(0, 13rem) minmax(0, 1fr);
    align-items: baseline;
    gap: 0 clamp(1rem, 2.5vw, 2.5rem);
  }

  .hx-steps li > span {
    grid-row: auto;
    padding-block-start: 0;
  }
}

/* ============================================================
   §12 CTA 밴드
   ============================================================ */
.hx-cta {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  border-top: 1px solid var(--hx-rule);
}

.home-cta-band {
  background: transparent;
}

.hx-cta-inner {
  width: var(--hx-shell);
  margin-inline: auto;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 900px) {
  .hx-cta-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .hx-cta-inner > .hx-chapter-index {
    grid-column: 1 / -1;
  }
}

.hx-cta-copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.hx-cta-meta {
  font-size: 0.8125rem;
  line-height: 1.62;
  color: var(--hx-muted);
  max-width: 34em;
}

/* ============================================================
   §13 푸터
   ============================================================ */
.site-footer {
  --hx-bg: var(--hi-black);
  --hx-text: var(--hi-text-on-dark);
  --hx-text-2: #ddd9d1;
  --hx-muted: var(--hi-muted-on-dark);
  --hx-rule: var(--hi-line-on-dark);
  --hx-accent-text: var(--hi-orange-soft);
  --hx-glow: rgba(232, 98, 42, 0.13);
  --hx-hair: rgba(242, 240, 234, 0.05);
  background-color: var(--hx-bg);
  color: var(--hx-text);
  border-top: 1px solid var(--hx-rule);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.hx-foot-inner {
  width: var(--hx-shell);
  margin-inline: auto;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 860px) {
  .hx-foot-inner {
    grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 4rem);
  }
}

.hx-foot-brand {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.site-footer-lockup img {
  width: 190px;
}

.hx-foot-brand p {
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--hx-text-2);
  max-width: 32em;
}

.hx-foot-operator {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
}

.hx-foot-operator strong {
  font-weight: 700;
  color: var(--hx-text);
}

.hx-foot-operator a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hx-accent-text);
  box-shadow: inset 0 -1px 0 currentColor;
}

.hx-foot-brand small {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--hx-muted);
}

.hx-foot-nav {
  display: grid;
  gap: 0.125rem;
  align-content: start;
}

.hx-foot-nav h2 {
  margin-block-end: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hx-accent-text);
}

.hx-foot-nav a,
.hx-foot-nav button {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--hx-text-2);
  text-align: start;
  transition: color 0.2s ease;
}

.hx-foot-nav a:hover,
.hx-foot-nav button:hover {
  color: var(--hx-accent-text);
}

.site-footer-copy {
  width: var(--hx-shell);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-block-start: 1.25rem;
  border-top: 1px solid var(--hx-rule);
  font-size: 0.8125rem;
  color: var(--hx-muted);
}

/* ============================================================
   §14 인증 모달 / 문의 모달
   ============================================================ */
body.auth-modal-open {
  overflow: hidden;
}

.auth-modal,
.support-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow-y: auto;
}

.auth-modal[hidden],
.support-modal[hidden] {
  display: none;
}

.auth-modal.leaving {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.auth-backdrop,
.support-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.74);
  backdrop-filter: blur(4px);
}

.auth-card,
.support-dialog {
  position: relative;
  width: min(100%, 30rem);
  display: grid;
  gap: 1.125rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--hx-bg-raised);
  color: var(--hx-text);
  border: 1px solid var(--hx-rule);
  border-radius: var(--hx-radius);
  box-shadow: var(--hi-shadow-lg);
  animation: hx-rise 0.32s var(--hx-ease) both;
}

.auth-close {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  width: 44px;
  min-height: 44px;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--hx-muted);
  border-radius: var(--hx-radius);
}

.auth-close:hover {
  color: var(--hx-text);
  background: var(--hx-bg-deep);
}

.auth-card-header {
  display: grid;
  gap: 0.35rem;
  padding-inline-end: 2.5rem;
}

.auth-card-header > span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hx-accent-text);
}

.auth-card-header h2,
.support-dialog h2 {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.028em;
}

.auth-card-header p,
.support-dialog > p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--hx-text-2);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--hx-rule);
  border-radius: var(--hx-radius);
}

.auth-tabs button {
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hx-muted);
  border-radius: var(--hx-radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* theme-inside.css:823이 다크에서 활성 탭 면을 --hi-orange-strong으로 낮춰
   검정 글자가 4.33:1(AA 미달)이 된다. 두 번째 선택자로 특이도를 맞춰
   후행 로드로 되받는다. */
.auth-tabs button.active,
body.theme-dark .auth-tabs button.active {
  background: var(--hi-orange);
  color: var(--hi-black);
}

.auth-form,
.support-dialog form {
  display: grid;
  gap: 0.875rem;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label,
.support-dialog label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hx-text);
}

.support-dialog label {
  margin-block-end: -0.5rem;
}

.auth-form input,
.auth-form select,
.support-dialog input,
.support-dialog textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--hx-text);
  background: var(--hx-bg);
  border: 1px solid var(--hx-rule-strong);
  border-radius: var(--hx-radius);
}

.support-dialog textarea {
  min-height: 8rem;
  resize: vertical;
}

.auth-form input::placeholder,
.support-dialog input::placeholder,
.support-dialog textarea::placeholder {
  color: var(--hx-muted);
}

.auth-form input:focus,
.auth-form select:focus,
.support-dialog input:focus,
.support-dialog textarea:focus {
  border-color: var(--hi-orange);
}

.auth-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.6rem;
  margin-block-end: 0;
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.62;
  color: var(--hx-text-2);
}

.auth-check input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 1.15rem;
  margin-block-start: 0.15rem;
  padding: 0;
  accent-color: var(--hi-orange);
}

.auth-check strong {
  color: var(--hx-accent-text);
}

.auth-check a {
  color: var(--hx-accent-text);
  box-shadow: inset 0 -1px 0 currentColor;
}

.auth-submit,
.primary-button {
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hi-black);
  background: var(--hi-orange);
  border-radius: var(--hx-radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.auth-submit:hover,
.primary-button:hover {
  background: var(--hi-orange-strong);
  color: var(--hi-white);
}

.auth-submit:disabled,
.primary-button:disabled {
  background: var(--hx-bg-deep);
  color: var(--hx-muted);
  cursor: not-allowed;
}

.auth-helper,
.auth-message,
#supportStatus {
  font-size: 0.8125rem;
  line-height: 1.62;
  color: var(--hx-muted);
}

.auth-message[data-type="error"] {
  color: var(--hi-error);
}

body.theme-dark .auth-message[data-type="error"] {
  color: var(--hi-error-on-dark);
}

.auth-message[data-type="success"] {
  color: var(--hi-success);
}

body.theme-dark .auth-message[data-type="success"] {
  color: var(--hi-success-on-dark);
}

[data-policy-gate-retry] {
  justify-self: start;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hx-accent-text);
  border: 1px solid var(--hx-rule-strong);
  border-radius: var(--hx-radius);
}

[data-policy-gate-retry][hidden] {
  display: none;
}

/* ============================================================
   §15 안내 패널 (규칙 기반 챗봇)
   ============================================================ */
.portal-chatbot {
  position: fixed;
  inset-block-end: clamp(1rem, 3vw, 1.75rem);
  inset-inline-end: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}

.portal-chatbot-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hi-text-on-dark);
  background: var(--hi-black-2);
  border: 1px solid var(--hi-line-on-dark);
  border-inline-start: 3px solid var(--hi-orange);
  border-radius: var(--hx-radius);
  box-shadow: var(--hi-shadow-sm);
}

.portal-chatbot-toggle:hover {
  color: var(--hi-orange-soft);
  background: var(--hi-black);
  border-color: var(--hi-orange);
}

.portal-chatbot-panel {
  width: min(92vw, 22rem);
  max-height: min(70vh, 34rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: var(--hx-bg-raised);
  color: var(--hx-text);
  border: 1px solid var(--hx-rule-strong);
  border-radius: var(--hx-radius);
  box-shadow: var(--hi-shadow-md);
  overflow: hidden;
  animation: hx-rise 0.28s var(--hx-ease) both;
}

.portal-chatbot-panel[hidden] {
  display: none;
}

.portal-chatbot-panel.leaving {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* theme-inside.css:713은 구 styles.css 챗봇을 전제로 이 헤더에 딥블랙 면을
   하드코딩한다. 라이트 테마에서 헤더 글자가 그 검정 면에 묻히므로(실측 1.1:1)
   면을 되돌리고 패널 배경을 그대로 쓴다. */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border-bottom: 1px solid var(--hx-rule);
}

.chatbot-header > div {
  display: grid;
  min-width: 0;
}

.chatbot-header > div > span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hx-accent-text);
}

.chatbot-header strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hx-text);
}

.chatbot-close {
  margin-inline-start: auto;
  width: 44px;
  min-height: 44px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--hx-muted);
}

.chatbot-close:hover {
  color: var(--hx-text);
}

.chatbot-messages {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  overflow-y: auto;
}

.chatbot-message {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
}

.chatbot-message.user {
  justify-items: end;
}

.chatbot-message > span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hx-muted);
}

.chatbot-message p {
  padding: 0.6rem 0.8rem;
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--hx-text-2);
  background: var(--hx-bg);
  border: 1px solid var(--hx-rule);
  border-radius: var(--hx-radius);
}

.chatbot-message.user p {
  color: var(--hx-text);
  background: var(--hi-orange-tint);
  border-color: var(--hi-orange);
}

.chatbot-route-action {
  margin-block-start: 0.5rem;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hx-accent-text);
  box-shadow: inset 0 -1px 0 currentColor;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
}

.chatbot-suggestions button {
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hx-text-2);
  border: 1px solid var(--hx-rule-strong);
  border-radius: 999px;
}

.chatbot-suggestions button:hover {
  color: var(--hx-accent-text);
  border-color: var(--hx-accent-face);
}

.chatbot-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--hx-rule);
}

.chatbot-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--hx-text);
  background: var(--hx-bg);
  border: 1px solid var(--hx-rule-strong);
  border-radius: var(--hx-radius);
}

.chatbot-form button {
  flex: none;
  padding-inline: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hi-black);
  background: var(--hi-orange);
  border-radius: var(--hx-radius);
}

@media (max-width: 520px) {
  .portal-chatbot {
    inset-inline-end: 0.75rem;
    inset-block-end: 0.75rem;
  }

  .portal-chatbot-panel {
    width: calc(100vw - 1.5rem);
  }
}

/* ============================================================
   §16 유틸
   ============================================================ */
.skip-link {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  color: var(--hi-text-on-dark);
  background: var(--hi-black);
  transform: translateY(-120%);
}

.skip-link:focus-visible {
  transform: none;
}

.public-back-to-top.public-back-to-top {
  position: fixed;
  inset-block-end: clamp(1rem, 3vw, 1.75rem);
  inset-inline-start: clamp(1rem, 3vw, 1.75rem);
  z-index: 80;
  width: 48px;
  min-height: 48px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hi-orange);
  background: var(--hi-black-2);
  border: 1px solid var(--hi-orange);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.public-back-to-top.public-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.public-back-to-top.public-back-to-top:hover {
  color: var(--hi-black);
  background: var(--hi-orange);
}

/* 스크롤 등장 — landing-interactions.js가 .is-visible을 붙인다.
   JS가 죽어도 콘텐츠는 처음부터 보이고, 살아 있으면 자식이 순서대로 올라온다. */
[data-reveal].is-visible > * {
  animation: hx-rise 0.75s var(--hx-ease) both;
}

[data-reveal].is-visible > *:nth-child(2) { animation-delay: 0.08s; }
[data-reveal].is-visible > *:nth-child(3) { animation-delay: 0.16s; }
[data-reveal].is-visible > *:nth-child(4) { animation-delay: 0.24s; }
[data-reveal].is-visible > *:nth-child(n + 5) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hx-hero-inner > *,
  [data-reveal].is-visible > *,
  .auth-card,
  .support-dialog,
  .portal-chatbot-panel,
  .hx-scrollcue i {
    animation: none;
  }
}
