/* 철학자 가로 타임라인 — 스타일 */

:root {
  --bg: #0e0c0a;
  --bg-elev: #15120e;
  --bg-card: #1a1612;
  --bg-card-hi: #1f1a14;
  --ink: #e8e2d6;
  --ink-dim: #a39a8a;
  --ink-faint: #6b6354;
  --line: #2a241c;
  --line-strong: #3a3225;
  --gold: oklch(78% 0.11 78);
  --gold-deep: oklch(62% 0.13 65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* overflow-x: hidden 제거 — sticky를 깨트림. .hscroll-pin이 이미 overflow:hidden 담당 */
  overflow-x: clip;
}

.serif-ko { font-family: 'Noto Serif KR', 'Pretendard', serif; font-weight: 500; letter-spacing: -0.01em; }
.serif-en { font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif; font-feature-settings: "lnum", "kern"; }
.mono { font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace; }

/* 배경 그레인 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

#root { position: relative; z-index: 2; }

/* === 가로 스크롤 컨테이너 === */
.hscroll-wrapper {
  position: relative;
  /* height set inline based on track width */
}

.hscroll-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  width: 100vw;
  touch-action: pan-y; /* 수직 터치는 네이티브, 수평은 JS가 처리 */
}

.hscroll-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: max-content;
  align-items: stretch;
  will-change: transform;
}

.panel {
  flex-shrink: 0;
  height: 100%;
  position: relative;
}

/* === 히어로 패널 === */
.hero-panel {
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 64px;
  position: relative;
  text-align: center;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(217, 167, 87, 0.08), transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(217, 167, 87, 0.05), transparent 50%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-weight: 300;
  font-size: clamp(48px, 7.5vw, 120px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.4s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-title-en {
  font-family: 'EB Garamond', 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(72px, 11vw, 168px);
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  font-weight: 300;
  color: var(--gold);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineIn 1.4s 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes underlineIn { to { transform: scaleX(1); } }

.hero-sub {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-sub-lead {
  display: block;
  font-size: 22px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  font-style: italic;
}

.hero-stats {
  display: flex;
  gap: 64px;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 1.2s 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-stat-num {
  font-family: 'EB Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  cursor: pointer;
  padding: 16px 32px;
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s;
  opacity: 0;
  animation: fadeUp 1.2s 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  user-select: none;
}

.hero-scroll-indicator:hover {
  transform: translateX(8px);
  background: rgba(217, 167, 87, 0.04);
}

.hero-scroll-indicator:hover .hsi-label {
  color: var(--ink);
}

.hero-scroll-indicator:active {
  transform: translateX(14px);
}

.hsi-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hsi-label > span:last-child {
  font-family: 'Noto Serif KR', serif;
  font-style: normal;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-transform: none;
  color: var(--ink-faint);
}

.hsi-dot {
  color: var(--gold);
  font-size: 7px;
  font-style: normal;
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hsi-track {
  position: relative;
  width: 240px;
  height: 7px;
  display: flex;
  align-items: center;
}

.hsi-rail {
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--ink-faint) 12%,
    var(--ink-faint) 88%,
    transparent);
}

.hsi-rail::before, .hsi-rail::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--ink-faint);
  opacity: 0.6;
}
.hsi-rail::before { left: 0; }
.hsi-rail::after  { right: 0; }

.hsi-cursor {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 3px rgba(217, 167, 87, 0.18),
    0 0 14px var(--gold),
    0 0 28px rgba(217, 167, 87, 0.6);
  animation: hsiCursor 2.4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes hsiCursor {
  0%   { left: 0;    opacity: 0; transform: scale(0.6); }
  12%  { opacity: 1; transform: scale(1); }
  82%  { left: 100%; opacity: 1; transform: scale(1); }
  95%  { left: 100%; opacity: 0; transform: scale(0.6); }
  100% { left: 0;    opacity: 0; transform: scale(0.6); }
}

.hsi-chevrons {
  display: flex;
  gap: 10px;
  font-size: 36px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  font-style: normal;
}

.hsi-chevrons span {
  display: inline-block;
  opacity: 0.1;
  animation: chevFlow 1.8s ease-in-out infinite;
  transform-origin: center;
}

.hsi-chevrons span:nth-child(1) { animation-delay: 0s; }
.hsi-chevrons span:nth-child(2) { animation-delay: 0.16s; }
.hsi-chevrons span:nth-child(3) { animation-delay: 0.32s; }
.hsi-chevrons span:nth-child(4) { animation-delay: 0.48s; }
.hsi-chevrons span:nth-child(5) { animation-delay: 0.64s; }

@keyframes chevFlow {
  0%, 100% { opacity: 0.1; transform: translateX(-8px) scale(0.85); }
  40%, 60% { opacity: 1;   transform: translateX(0)    scale(1); }
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* === 시대 패널 === */
.era-panel {
  position: relative;
  display: flex;
  flex-direction: column;
}

.era-spine {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  z-index: 1;
}

.era-spine::before, .era-spine::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.era-spine::before { left: 0; }
.era-spine::after { right: 0; }

.era-bg-title {
  position: absolute;
  bottom: 8%;
  left: 60px;
  font-family: 'EB Garamond', serif;
  font-size: clamp(96px, 14vh, 220px);
  font-weight: 300;
  line-height: 0.85;
  color: var(--line-strong);
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  opacity: 0.6;
  white-space: nowrap;
}

.era-header-h {
  position: absolute;
  top: 6%;
  left: 60px;
  z-index: 2;
  max-width: 480px;
}

.era-meta {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.era-meta-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
}

.era-title-h {
  font-family: 'Noto Serif KR', serif;
  font-weight: 300;
  font-size: clamp(44px, 6vh, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.era-subtitle-h {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink-dim);
}

/* 시대 구분선 (패널 사이) */
.era-divider {
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
  z-index: 2;
}

/* 연도 틱 — spine 위쪽으로 올림 (아래는 이벤트 영역) */
.year-tick {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 8px;
  margin-top: -8px;
  background: var(--line-strong);
  z-index: 2;
}

.year-tick-label {
  position: absolute;
  top: calc(50% - 28px);
  transform: translateX(-50%);
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  z-index: 2;
}

/* === 철학자 카드 (가로 버전) === */
.philosopher-card-h {
  position: absolute;
  width: 300px;
  height: 180px;
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  cursor: pointer;
  z-index: 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.philosopher-card-h.in-view {
  opacity: 1;
  transform: translateY(0);
}

.philosopher-card-h:hover {
  border-color: var(--gold-deep);
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55), 0 0 0 1px rgba(217, 167, 87, 0.18);
}

/* 카드 → 연결선 (스파인 방향) */
.philosopher-card-h::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--line);
  transition: background 0.4s;
}

.philosopher-card-h.above::before { top: 100%; height: var(--connector-h, 60px); }
.philosopher-card-h.below::before { bottom: 100%; height: var(--connector-h, 60px); }

.philosopher-card-h.in-view::before {
  background: linear-gradient(to bottom, var(--line) 0%, var(--gold-deep) 100%);
}

.philosopher-card-h.below.in-view::before {
  background: linear-gradient(to top, var(--line) 0%, var(--gold-deep) 100%);
}

/* 카드 → 스파인 닷 */
.card-spine-dot {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: var(--bg);
  border: 1.5px solid var(--ink-faint);
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 4;
}

.philosopher-card-h.in-view .card-spine-dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 167, 87, 0.18), 0 0 14px rgba(217, 167, 87, 0.4);
}

.card-school-h {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-right: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-name-h {
  font-family: 'Noto Serif KR', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  padding-right: 60px;
  color: var(--ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-name-en-h {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  padding-right: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === 카드 초상 메달리온 === */
.card-portrait {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card-hi);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: border-color 0.5s, box-shadow 0.5s, transform 0.5s;
  z-index: 2;
}
.card-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(217,167,87,0.10);
}
.card-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(30%) sepia(22%) brightness(0.94) contrast(1.02);
  transition: filter 0.5s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.philosopher-card-h.in-view .card-portrait {
  border-color: var(--gold-deep);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 0 2px rgba(217,167,87,0.12);
}
.philosopher-card-h:hover .card-portrait {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.55), 0 0 0 2px rgba(217,167,87,0.28);
}
.philosopher-card-h:hover .card-portrait img {
  filter: grayscale(8%) sepia(12%) contrast(1.05);
  transform: scale(1.06);
}

.card-meta-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.card-year-h {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.card-region-h {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  max-width: 150px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === 세계 이벤트 마커 === */
.event-marker-h {
  position: absolute;
  top: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.event-marker-h.in-view { opacity: 1; }

.event-dot {
  width: 6px;
  height: 6px;
  background: var(--bg);
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  margin: -3.5px 0;
}

.event-marker-h.in-view .event-dot {
  border-color: var(--ink-dim);
  background: var(--ink-faint);
}

.event-label-h {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  text-align: center;
  padding-top: 4px;
}

.event-marker-h.row-0 .event-label-h { top: 12px; }
.event-marker-h.row-1 .event-label-h { top: 56px; }

.event-label-h .event-year {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 3px;
  display: block;
}

.event-label-h .event-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.event-marker-h.row-0 .event-tick {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}
.event-marker-h.row-1 .event-tick {
  position: absolute;
  top: -56px;
  left: 50%;
  width: 1px;
  height: 56px;
  background: var(--line-strong);
}

/* === END 패널 === */
.end-panel {
  width: 80vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
  position: relative;
}

.end-card {
  text-align: center;
  max-width: 540px;
}

.end-eyebrow {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.end-title {
  font-family: 'Noto Serif KR', serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.05;
}

.end-sub {
  font-family: 'Noto Serif KR', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-dim);
  line-height: 1.7;
}

.end-divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 32px auto;
  opacity: 0.5;
}

.end-back {
  margin-top: 40px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
  cursor: pointer;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 14px 32px;
  transition: all 0.4s;
}

.end-back:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* === 고정 UI === */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  background: rgba(255,255,255,0.03);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold-deep), var(--gold));
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--gold);
}

/* 좌상단 연도 인디케이터 */
.year-indicator-h {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 50;
  display: flex;
  align-items: baseline;
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.year-indicator-h.visible { opacity: 1; }

.year-indicator-label-h {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.year-indicator-value-h {
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.year-indicator-era-h {
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}

/* 우상단 언어 선택 바 */
.lang-switcher {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 60;
  display: flex;
  align-items: center;
  background: rgba(14, 12, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 3px;
  gap: 0;
}

.lang-sw-btn {
  background: none;
  border: none;
  font-family: 'EB Garamond', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  padding: 7px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1;
}

.lang-sw-btn:hover {
  color: var(--ink);
}

.lang-sw-btn.active {
  background: rgba(217, 167, 87, 0.15);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(217, 167, 87, 0.25);
}

/* 시대 네비는 언어 바 아래로 */
/* 우상단 시대 미니 네비 */
.era-nav {
  position: fixed;
  top: 72px;
  right: 32px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(20, 17, 13, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px;
  border: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.5s;
}
.era-nav.visible { opacity: 1; }

.era-nav-btn {
  background: none;
  border: none;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 6px 8px;
  transition: color 0.3s;
  white-space: nowrap;
}

.era-nav-btn:hover { color: var(--ink); }
.era-nav-btn.active { color: var(--gold); }

.era-nav-divider {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

/* 좌하단 힌트 */
.scroll-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.25em;
  z-index: 50;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.scroll-hint.visible { opacity: 0.7; }

.scroll-hint-line {
  width: 40px;
  height: 1px;
  background: var(--ink-faint);
}

/* === 모달 (매거진 스타일) === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
  overflow-y: auto;
  opacity: 0;
  animation: modalFadeIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes modalFadeIn { to { opacity: 1; } }

.modal-magazine {
  max-width: 900px;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  animation: modalContentIn 0.6s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  overflow: hidden;
}

@keyframes modalContentIn { to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 12, 10, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

/* ── Hero 영역 ── */
.mm-hero {
  position: relative;
  padding: 72px 280px 48px 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* ── Hero 인물 초상 (액자) ── */
.mm-hero-portrait {
  position: absolute;
  top: 64px;
  right: 56px;
  width: 200px;
  z-index: 2;
  margin: 0;
}
.mm-hero-portrait-frame {
  position: relative;
  padding: 10px;
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.55),
    0 0 0 1px rgba(217,167,87,0.08),
    inset 0 0 0 1px rgba(0,0,0,0.4);
}
.mm-hero-portrait-frame::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}
.mm-hero-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border: 1px solid rgba(217,167,87,0.18);
}
.mm-hero-portrait-mat {
  position: relative;
  background: #000;
  overflow: hidden;
}
.mm-hero-portrait-mat::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 32px rgba(0,0,0,0.6);
}
.mm-hero-portrait-mat img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  filter: sepia(10%) contrast(1.03) brightness(0.98);
}
.mm-hero-portrait-caption {
  margin-top: 14px;
  text-align: center;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mm-hero-bg {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  font-size: clamp(100px, 18vw, 240px);
  font-weight: 300;
  line-height: 0.85;
  color: var(--line);
  opacity: 0.35;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  overflow: hidden;
}

.mm-hero-era {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mm-era-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.mm-era-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mm-era-sep {
  color: var(--ink-faint);
  opacity: 0.4;
  font-size: 11px;
}

.mm-hero-school {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
}

.mm-hero-name {
  font-family: 'Noto Serif KR', serif;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.mm-hero-name-en {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--ink-faint);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

/* 메타 칩 */
.mm-meta-chips {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.mm-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.mm-chip-icon {
  font-size: 16px;
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
  line-height: 1;
}

.mm-chip-label {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1;
  margin-bottom: 3px;
}

.mm-chip-value {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.2;
}

/* 대표 인용구 */
.mm-hero-quote {
  position: relative;
  padding: 24px 0 0 32px;
  border-left: 2px solid var(--gold-deep);
  max-width: 560px;
}

.mm-hq-mark {
  position: absolute;
  top: -4px;
  left: 12px;
  font-size: 64px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

.mm-hero-quote p {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  letter-spacing: -0.01em;
}

/* ── 핵심 사상 한 줄 ── */
.mm-key-idea {
  padding: 28px 56px 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(217, 167, 87, 0.04), transparent 60%);
}

.mm-ki-label {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.mm-ki-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ── 전기 (biography) ── */
.mm-biography {
  position: relative;
  padding-left: 72px;
}

.mm-bio-para {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  text-align: justify;
}

.mm-bio-para:last-child { margin-bottom: 0; }

.mm-bio-first {
  font-size: 18px;
}

/* ── 일화 (anecdotes) ── */
.mm-anecdotes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mm-anecdote {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.mm-anec-marker {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  color: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
  line-height: 1.5;
}

.mm-anec-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

/* ── 영향 관계 (influence) ── */
.mm-influence {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.mm-inf-col { flex: 1; min-width: 240px; }

.mm-inf-label {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.mm-inf-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-inf-tag {
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-dim);
  border-radius: 2px;
  transition: border-color 0.3s;
}

.mm-inf-tag:hover { border-color: var(--gold-deep); }

.mm-inf-tag-out {
  border-left: 2px solid var(--gold-deep);
}

/* ── 구분선 ── */
.mm-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 56px;
}

.mm-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong), transparent);
}

.mm-divider-diamond {
  color: var(--gold);
  font-size: 8px;
  opacity: 0.6;
}

/* ── 섹션 공통 ── */
.mm-section {
  padding: 0 56px 56px;
}

.mm-section-dark {
  background: var(--bg-elev);
  padding-top: 48px;
  padding-bottom: 48px;
  margin: 0 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mm-section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.mm-section-num {
  font-family: 'EB Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  min-width: 52px;
  text-align: right;
}

.mm-section-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 400;
}

.mm-section-subtitle {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

/* ── 01: 생애 ── */
.mm-summary-block {
  position: relative;
  padding-left: 72px;
}

.mm-summary-initial {
  position: absolute;
  left: 0;
  top: -8px;
  font-family: 'EB Garamond', serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  opacity: 0.6;
}

.mm-summary {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ── 02: 사상 카드 ── */
.mm-thoughts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mm-thought-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-deep);
  transition: border-color 0.3s, background 0.3s;
}

.mm-thought-card:hover {
  border-left-color: var(--gold);
  background: var(--bg-card-hi);
}

.mm-thought-num {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
  min-width: 32px;
  padding-top: 2px;
}

.mm-thought-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

/* ── 03: 명언 쇼케이스 ── */
.mm-quotes-showcase {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mm-quote-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 20px 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.mm-quote-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.mm-qs-mark {
  font-family: 'EB Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.35;
  line-height: 0.6;
  display: block;
  margin-bottom: 8px;
}

.mm-qs-text {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(19px, 2.5vw, 26px);
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  max-width: 620px;
  margin: 0 auto 16px;
  letter-spacing: -0.01em;
}

.mm-qs-attr {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.mm-quote-dots {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.mm-quote-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.mm-quote-dot.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(217, 167, 87, 0.4);
}

.mm-quote-dot:hover:not(.active) {
  background: var(--ink-faint);
}

/* ── 04: 저서 그리드 ── */
.mm-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.mm-work-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.mm-work-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}

.mm-work-spine {
  width: 6px;
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  flex-shrink: 0;
}

.mm-work-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mm-work-idx {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
}

.mm-work-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

/* ── 05: 미니 타임라인 ── */
.mm-timeline-mini {
  position: relative;
  padding-left: 24px;
}

.mm-timeline-line {
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-deep), var(--line-strong));
}

.mm-timeline-event {
  position: relative;
  padding: 0 0 24px 24px;
}

.mm-timeline-event:last-child { padding-bottom: 0; }

.mm-te-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}

.mm-te-year {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.mm-te-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.4;
}

/* ── 06: 동시대 철학자 ── */
.mm-contemporaries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mm-contemp-chip {
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.3s;
}

.mm-contemp-chip:hover {
  border-color: var(--gold-deep);
}

.mm-cc-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.mm-cc-meta {
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 5px;
}

.mm-cc-sep { opacity: 0.4; }

.mm-cc-school {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ── Footer ── */
.mm-footer {
  padding: 40px 56px 48px;
  text-align: center;
}

.mm-footer-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 0 auto 24px;
}

.mm-footer-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.mm-footer-sub {
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  color: var(--ink-dim);
  font-style: italic;
}

/* ── 모달 모바일 대응 ── */
@media (max-width: 768px) {
  .modal-overlay { padding: 8px; }
  .mm-hero { padding: 36px 28px 36px; }
  .mm-hero-bg { font-size: 80px; opacity: 0.2; }
  .mm-hero-name { font-size: 42px; }
  .mm-hero-portrait {
    position: static;
    width: 150px;
    margin: 0 auto 24px;
  }
  .mm-hero-portrait-caption { font-size: 10px; letter-spacing: 0.28em; }
  .mm-section { padding: 0 28px 40px; }
  .mm-section-dark { padding: 36px 28px; }
  .mm-divider { padding: 24px 28px; }
  .mm-meta-chips { gap: 10px; }
  .mm-chip { padding: 8px 12px; }
  .mm-summary-block { padding-left: 0; }
  .mm-summary-initial { display: none; }
  .mm-biography { padding-left: 0; }
  .mm-biography .mm-summary-initial { display: none; }
  .mm-key-idea { padding: 24px 28px; }
  .mm-influence { flex-direction: column; gap: 24px; }
  .mm-section-num { font-size: 28px; min-width: 36px; }
  .mm-works-grid { grid-template-columns: 1fr; }
  .mm-footer { padding: 32px 28px 40px; }
  .mm-qs-text { font-size: 18px; }
  .mm-thought-card { flex-direction: column; gap: 8px; }
}

/* === 모바일 fallback === */
@media (max-width: 768px) {
  .era-nav { display: none; }
  .lang-switcher { top: 12px; right: 12px; padding: 2px; }
  .lang-sw-btn { padding: 5px 8px; font-size: 11px; }
  .year-indicator-h { transform: scale(0.85); transform-origin: top left; }
  .modal-content { padding: 40px 24px 60px; }
  .modal-name { font-size: 38px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; justify-content: center; }
  .hero-stat-num { font-size: 40px; }
}
