/* ==========================================================================
   K-Beauty Arena — 회전 선택 UI 프로토타입 스타일시트
   작성: 데이브(클코), 2026-08-27
   수정: 2026-08-29 (이미지 대형화 풀블리드 레이아웃 + 다국어 i18n 언어 선택 컨트롤)
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --surface: #141417;
  --ink: #f4efe7;
  --ink-muted: #b9b3ab;
  --gold: #c9a869;
  --gold-soft: rgba(201, 168, 105, 0.16);
  --ring-shadow: rgba(0, 0, 0, 0.65);
  --stage-vh: 100vh;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (height: 100svh) {
  :root { --stage-vh: 100svh; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #101010;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  pointer-events: none;
}
.site-header .brand,
.site-header .header-right {
  pointer-events: auto;
}
.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}
.site-nav {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.site-nav a {
  transition: color 0.25s var(--ease-out);
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
}

/* 다국어 언어 전환 컨트롤 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 4px;
  background: rgba(20, 20, 23, 0.76);
  border: 1px solid rgba(201, 168, 105, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--ink);
}
.lang-btn.is-active {
  background: var(--gold);
  color: #141417;
  box-shadow: 0 2px 8px rgba(201, 168, 105, 0.4);
}

/* ---------- 히어로 ---------- */
.hero {
  min-height: var(--stage-vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.28;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 18ch;
}
.hero-sub {
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--ink-muted);
  margin: 0 0 56px;
}
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.hero-scroll-cue-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: hero-cue-move 1.8s ease-in-out infinite;
}
@keyframes hero-cue-move {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- 스테이지 (회전 선택 UI 핵심 구역) ---------- */
.stage {
  position: relative;
  min-height: var(--stage-vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stage-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.stage-bg-layer {
  position: absolute;
  inset: -10%;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  background: radial-gradient(circle at 50% 42%, #333 0%, rgba(0,0,0,0) 62%);
}
#bgLayer0 { opacity: 1; }

.stage-hint {
  position: absolute;
  top: clamp(76px, 10vh, 120px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0;
  transition: opacity 0.5s var(--ease-out);
  text-align: center;
  width: 100%;
  padding: 0 20px;
}
.stage-hint .i18n-sec-block {
  margin-top: 3px;
  font-size: 0.88em;
}
.stage-hint.is-hidden { opacity: 0; }

/* ---------- reduced-motion 수동 오버라이드 ---------- */
.motion-mode-control {
  position: absolute;
  top: clamp(88px, 11vh, 118px);
  right: clamp(20px, 4vw, 56px);
  z-index: 20;
}
.motion-mode-control:empty { display: none; }
.motion-mode-toggle {
  min-height: 44px;
  background: rgba(20, 20, 23, 0.78);
  border-color: rgba(201, 168, 105, 0.56);
  color: var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.motion-mode-toggle:hover,
.motion-mode-toggle:focus-visible {
  background: rgba(201, 168, 105, 0.14);
  border-color: var(--gold);
}

/* ---------- 3D 회전 링 ---------- */
.ring-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: var(--stage-vh);
  display: none; /* html.ring-enabled 일 때만 표시 */
  perspective: clamp(1200px, 140vw, 1800px);
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ring-stage.is-dragging {
  cursor: grabbing;
}
html.ring-enabled .ring-stage { display: block; }

.webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  display: none;
}
html.webgl-active .webgl-canvas {
  display: block;
}
html.webgl-active .ring-item-inner {
  opacity: 0 !important;
}

.ring-rig {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: auto;
}

.ring-item {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(260px, 34vw, 420px);
  height: clamp(200px, 26vw, 320px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}
.ring-item-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(155deg, var(--ri-accent, #23201d) 0%, rgba(16, 15, 18, 0.95) 78%);
  box-shadow: 0 32px 64px var(--ring-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(201, 168, 105, 0.28);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: clamp(14px, 2.4vw, 24px);
  will-change: transform, opacity, filter;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ring-item-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(201, 168, 105, 0.16) 0%, transparent 60%);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}
.ring-item:hover .ring-item-inner,
.ring-item.is-focused .ring-item-inner {
  border-color: rgba(201, 168, 105, 0.65);
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.65), 0 0 32px rgba(201, 168, 105, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.ring-item-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.45) 50%, rgba(10, 10, 12, 0.05) 80%, transparent 100%);
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
}
.ring-item-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ring-item-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: 1;
  background: linear-gradient(155deg, var(--ri-accent, #333) 0%, rgba(20,20,23,0.95) 78%);
}
.ring-item-index {
  position: relative;
  z-index: 3;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
.ring-item-label {
  position: relative;
  z-index: 3;
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* ---------- 정적 폴백 그리드 (JS/3D 미지원 · reduced-motion) ---------- */
.fallback-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 160px) 0 60px;
  position: relative;
  z-index: 2;
}
html:not(.ring-enabled) .fallback-grid { display: grid; }
.fallback-grid-note {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink-muted);
}
.fallback-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 22px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--fc-accent, #444) 30%, #141417), #141417);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.fallback-card:hover,
.fallback-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.fallback-card-media {
  width: 100%;
  height: clamp(160px, 20vw, 220px);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fallback-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.fallback-card-shape {
  display: none;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--fc-accent, #888), #222);
}
.fallback-card-index {
  padding: 0 20px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 700;
}
.fallback-card-title {
  padding: 0 20px;
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}
.fallback-card-desc {
  padding: 0 20px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.55;
}

/* ---------- 상세 텍스트 패널 ---------- */
.detail-panel {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vh, 30px);
  transform: translateX(-50%);
  z-index: 6;
  width: min(900px, 92vw);
  text-align: left;
  display: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  background: rgba(10, 10, 14, 0.78);
  border: 1px solid rgba(201, 168, 105, 0.25);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 28px rgba(201, 168, 105, 0.08);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
html.ring-enabled .detail-panel { display: grid; }
.detail-panel.is-swapping {
  opacity: 0;
  transform: translate(-50%, 8px);
}
.detail-index {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.detail-label {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.25;
}
.detail-label .i18n-sec-block { font-size: 0.78em; color: var(--ink-muted); }
.detail-copy {
  display: none;
}
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.detail-actions .btn { white-space: nowrap; padding: 10px 16px; }
#detailCtaSecondary { display: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: #16130a;
}
.btn-primary:hover, .btn-primary:focus-visible { background: #d9bb82; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(244,239,231,0.35);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold); }

/* ---------- 좌측 인덱스 내비게이션 ---------- */
.index-nav {
  display: none;
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  flex-direction: column;
  gap: 14px;
}
html.ring-enabled .index-nav { display: flex; }
.index-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: left;
}
.index-nav-item .dash {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.index-nav-item .name {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  white-space: nowrap;
}
.index-nav-item:hover, .index-nav-item:focus-visible { color: var(--ink); }
.index-nav-item.is-active {
  color: var(--gold);
}
.index-nav-item.is-active .dash { width: 34px; }
.index-nav-item.is-active .name,
.index-nav-item:hover .name,
.index-nav-item:focus-visible .name {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- 하단 진행률 점 ---------- */
.progress-dots {
  display: none;
  position: absolute;
  bottom: clamp(20px, 3vh, 32px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  gap: 8px;
}
html.ring-enabled .progress-dots { display: flex; }
.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244,239,231,0.3);
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.progress-dot.is-active {
  background: var(--gold);
  transform: scale(1.5);
}

/* ---------- 6개 사업영역 전체 섹션 ---------- */
.areas {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.area {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px;
  border-top: 1px solid rgba(244,239,231,0.06);
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.ring-enabled .area,
html:not(.no-js).ring-enabled .area {
  /* 링 경험이 있는 브라우저에서는 스크롤 진입 시 은은한 페이드만 적용 */
}
html:not(.reduced-motion) .area[data-observe] {
  opacity: 0;
  transform: translateY(24px);
}
html:not(.reduced-motion) .area.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.area-index {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--area-accent, var(--gold));
  margin-bottom: 18px;
}
.area-title {
  font-size: clamp(22px, 3.4vw, 36px);
  margin: 0 0 18px;
}
.area-copy {
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: 15px;
  margin: 0 0 18px;
}
.area-note {
  font-size: 12px;
  color: var(--ink-muted);
  opacity: 0.8;
  margin: -6px 0 18px;
}
.area-sublist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 0 0 24px;
}
.area-sublist li {
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244,239,231,0.18);
  color: var(--ink-muted);
}
.area-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
}

/* 6개 사업영역 미디어 및 대형 이미지 */
.area-media {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.area-img {
  width: clamp(220px, 32vw, 420px);
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
  border-radius: clamp(24px, 4vw, 36px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 6개 CSS 도형 — 이미지 로드 실패 시 폴백용 (대형화 매칭) */
.area-shape {
  width: clamp(200px, 28vw, 360px);
  height: clamp(200px, 28vw, 360px);
  margin-bottom: 6px;
  background: linear-gradient(160deg, var(--area-accent, #888), var(--area-accent-soft, #222));
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}
.shape-circle { border-radius: 50%; }
.shape-diamond { transform: rotate(45deg); border-radius: 20px; }
.shape-hex { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.shape-blob { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.shape-ring {
  background: transparent;
  border: clamp(16px, 3vw, 32px) solid var(--area-accent, #888);
  border-radius: 50%;
  box-shadow: none;
}
.shape-bar {
  border-radius: 24px;
  width: clamp(240px, 34vw, 420px);
  height: clamp(100px, 14vw, 160px);
}

/* ---------- 토스트 (CTA 비활성 안내) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 200;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(244,239,231,0.14);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  max-width: min(420px, 88vw);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 푸터 ---------- */
.site-footer {
  padding: 48px 24px 60px;
  text-align: center;
  background: var(--bg);
}
.footer-notice {
  max-width: 62ch;
  margin: 0 auto 20px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-muted);
  opacity: 0.75;
}
.footer-voice {
  font-size: 14px;
  color: var(--gold);
  margin: 0 0 14px;
}
.footer-meta {
  font-size: 11px;
  color: var(--ink-muted);
  opacity: 0.6;
}

/* ==========================================================================
   다국어 이중표기 (Bilingual Composition) 스타일
   영어 기본(Primary) + 선택 보조 언어(Secondary: 한국어/중국어)
   ========================================================================== */

/* 인라인 이중표기 (네비게이션, 버튼, 태그, 스크롤 큐 등 좁은 공간) */
.i18n-pri {
  display: inline;
}
.i18n-sep {
  display: inline;
  opacity: 0.42;
  margin: 0 4px;
  font-weight: normal;
}
.i18n-sec {
  display: inline;
  font-size: 0.86em;
  color: var(--ink-muted);
  opacity: 0.85;
  font-weight: 400;
  letter-spacing: normal;
}

/* 블록 이중표기 (타이틀, 본문 카피, 패널 설명 등 긴 텍스트) */
.i18n-pri-block {
  display: block;
}
.i18n-sec-block {
  display: block;
  font-size: 0.82em;
  color: var(--ink-muted);
  opacity: 0.82;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.55;
  margin-top: 6px;
}

/* 히어로 타이틀/서브카피 세부 조율 */
.hero-title .i18n-pri-block {
  display: block;
}
.hero-title .i18n-sec-block {
  display: block;
  font-size: clamp(15px, 2.2vw, 24px);
  font-weight: 500;
  color: var(--ink-muted);
  opacity: 0.88;
  margin-top: 14px;
  line-height: 1.38;
}
.hero-sub .i18n-sec-block {
  font-size: 0.88em;
  margin-top: 6px;
}

/* 상세 패널 세부 조율 */
.detail-label .i18n-sec-block {
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 500;
  color: var(--ink-muted);
  opacity: 0.85;
  margin-top: 4px;
}
.detail-copy .i18n-sec-block {
  font-size: 0.85em;
  color: var(--ink-muted);
  opacity: 0.82;
  margin-top: 8px;
  line-height: 1.55;
}

/* 6개 사업영역 섹션 세부 조율 */
.area-title .i18n-sec-block {
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 500;
  color: var(--ink-muted);
  opacity: 0.85;
  margin-top: 6px;
}
.area-copy .i18n-sec-block {
  font-size: 0.85em;
  color: var(--ink-muted);
  opacity: 0.82;
  margin-top: 8px;
  line-height: 1.6;
}
.area-note .i18n-sec-block {
  font-size: 0.9em;
  opacity: 0.75;
  margin-top: 4px;
}

/* 폴백 카드 세부 조율 */
.fallback-card-desc .i18n-sec-block {
  font-size: 0.86em;
  color: var(--ink-muted);
  opacity: 0.82;
  margin-top: 4px;
  line-height: 1.5;
}
.fallback-grid-note .i18n-sec-block {
  font-size: 0.9em;
  opacity: 0.75;
  margin-top: 4px;
}

/* 푸터 세부 조율 */
.footer-notice .i18n-sec-block {
  font-size: 0.92em;
  opacity: 0.75;
  margin-top: 10px;
  line-height: 1.65;
}
.footer-voice .i18n-sec-block {
  font-size: 0.88em;
  color: var(--ink-muted);
  opacity: 0.85;
  margin-top: 6px;
}

/* 버튼 및 내비게이션 요소 내부 보조 텍스트 톤 */
.btn-primary .i18n-sec {
  color: #2e261a;
  opacity: 0.88;
}
.btn-ghost .i18n-sec {
  color: var(--ink-muted);
}
.site-nav a .i18n-sec {
  color: inherit;
  opacity: 0.75;
}
.index-nav-item .i18n-sec {
  color: inherit;
  opacity: 0.75;
}
.area-sublist li .i18n-sec {
  color: inherit;
  opacity: 0.8;
}

/* ---------- 반응형: 태블릿/모바일 ---------- */
@media (max-width: 900px) {
  .index-nav {
    left: 50%;
    top: clamp(52px, 8vh, 80px);
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
    max-width: 92vw;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .index-nav-item { flex-direction: column; align-items: center; gap: 4px; }
  .index-nav-item .name { position: absolute; opacity: 0; pointer-events: none; }
  .index-nav-item.is-active .name { position: static; opacity: 1; pointer-events: auto; }
  .progress-dots { display: none !important; }
  .detail-panel { bottom: clamp(16px, 3vh, 28px); }
}

@media (max-width: 560px) {
  .site-header { padding: 14px 16px; }
  .header-right { gap: 10px; }
  .site-nav { gap: 10px; font-size: 11px; }
  .lang-switch { gap: 2px; padding: 2px 3px; }
  .lang-btn { font-size: 10px; padding: 3px 6px; }
  .hero-title { max-width: 92vw; }
  .ring-item { width: clamp(240px, 82vw, 340px); height: clamp(190px, 62vw, 265px); }
  .detail-panel {
    width: calc(100vw - 28px);
    bottom: max(14px, env(safe-area-inset-bottom));
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 10px 12px;
  }
  .detail-label { font-size: 14px; }
  .detail-index { font-size: 10px; }
  .detail-actions { grid-column: 1 / -1; }
  .detail-actions .btn { width: 100%; min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .area-img { width: clamp(180px, 56vw, 260px); height: clamp(180px, 56vw, 260px); border-radius: 22px; }
  .area-shape { width: clamp(160px, 48vw, 220px); height: clamp(160px, 48vw, 220px); }
  .motion-mode-control {
    top: 134px;
    right: 18px;
  }
  .motion-mode-toggle {
    padding: 10px 16px;
    font-size: 12px;
  }
  html.reduced-motion:not(.ring-enabled) .fallback-grid {
    padding-top: 204px;
  }
}

/* ==========================================================================
   Active Theory 시그니처: 시네마틱 풀스크린 3D 모핑 HUD (#cinematicHud)
   ========================================================================== */
.cinematic-hud {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

html.hud-active .cinematic-hud {
  pointer-events: auto;
  opacity: 1;
}

.hud-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(10, 10, 14, 0.35) 0%, rgba(5, 5, 8, 0.86) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

html.hud-active .hud-backdrop {
  opacity: 1;
}

.hud-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vh, 48px) clamp(24px, 5vw, 64px);
  box-sizing: border-box;
}

/* 상단 탑바 */
.hud-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  transform: translateY(-16px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s, opacity 0.4s ease 0.08s;
}

html.hud-active .hud-topbar {
  transform: translateY(0);
  opacity: 1;
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 18, 24, 0.76);
  border: 1px solid rgba(201, 168, 105, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hud-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hud-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 18, 24, 0.76);
  border: 1px solid rgba(244, 239, 231, 0.25);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.22s var(--ease-out);
}

.hud-close-btn:hover,
.hud-close-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(201, 168, 105, 0.25);
}

.hud-close-kbd {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ink-muted);
}

.hud-close-x {
  font-size: 13px;
}

/* 하단 플로팅 정보 패널 */
.hud-content-panel {
  position: relative;
  z-index: 10;
  max-width: min(600px, 92vw);
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid rgba(201, 168, 105, 0.32);
  border-radius: 28px;
  padding: clamp(20px, 3vh, 32px) clamp(24px, 4vw, 40px);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 36px rgba(201, 168, 105, 0.1);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, opacity 0.44s ease 0.12s;
}

html.hud-active .hud-content-panel {
  transform: translateY(0);
  opacity: 1;
}

.hud-accent-line {
  width: 48px;
  height: 3px;
  background: var(--hud-accent, var(--gold));
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 0 12px var(--hud-accent, var(--gold));
}

.hud-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.hud-copy {
  margin: 0 0 18px;
  font-size: clamp(13px, 1.35vw, 14.5px);
  line-height: 1.6;
  color: var(--ink-muted);
}

.hud-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hud-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(201, 168, 105, 0.08);
  border: 1px solid rgba(201, 168, 105, 0.22);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #eeddbb;
}

.hud-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 내비게이션 컨트롤 */
.hud-nav {
  position: absolute;
  bottom: clamp(24px, 4vh, 48px);
  right: clamp(24px, 5vw, 64px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.16s, opacity 0.4s ease 0.16s;
}

html.hud-active .hud-nav {
  transform: translateY(0);
  opacity: 1;
}

.hud-nav-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 18, 24, 0.76);
  border: 1px solid rgba(244, 239, 231, 0.22);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s var(--ease-out);
}

.hud-nav-arrow:hover,
.hud-nav-arrow:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.05);
}

.hud-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

@media (max-width: 768px) {
  .hud-inner {
    padding: 16px 20px;
  }
  .hud-content-panel {
    margin-top: auto;
    margin-bottom: 64px;
    padding: 20px 20px;
    border-radius: 20px;
  }
  .hud-nav {
    left: 20px;
    right: 20px;
    bottom: 16px;
    justify-content: space-between;
  }
}

/* ---------- 접근성: 동작 최소화 선호 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue-arrow { animation: none; }
  .btn, .fallback-card, .toast, .index-nav-item .dash, .index-nav-item .name, .lang-btn,
  .cinematic-hud, .hud-backdrop, .hud-topbar, .hud-content-panel, .hud-nav {
    transition-duration: 0.01ms !important;
  }
}
