/* =========================================================
   FTVOT_STUDIO — main.css  ("세피로트의 나무" v3)
   - 첫 접속: STUDIO NAS 게이트웨이 인트로 → 화면 가득 세피로트의 나무
   - 본문: 세피라마다 한 화면씩, 세 기둥 위치에 따라 좌우로 살짝 비켜 선 한 줄 기둥
   - 얇은 선, 은은한 별빛, 넉넉한 여백. 두꺼운 테두리와 오프셋 그림자는 쓰지 않습니다
   ========================================================= */

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  --bg: #050408;
  --bg-2: #0B0A10;
  --surface: rgb(20 18 28 / 0.72);
  --text: #F0EFF3;
  --text-2: #B9B4C2;
  --text-3: #A49DAD;
  --line: rgb(174 159 197 / 0.18);
  --line-2: rgb(174 159 197 / 0.32);
  --glow-purple: #A481CA;

  /* 세피라 상징색 (사용자 지정) */
  --c1: oklch(0.72 0.17 300);   /* 케테르: 보라 */
  --c2: oklch(0.80 0.12 190);   /* 호크마: 청록 */
  --c3: oklch(0.88 0.15 95);    /* 비나: 노랑 */
  --c4: oklch(0.91 0.045 350);  /* 헤세드: 아주 연한 분홍 */
  --c5: oklch(0.82 0.10 230);   /* 게부라: 하늘색 */
  --c6: oklch(0.76 0.135 15);   /* 티페레트: 분홍빛을 유지하며 붉은 기를 조금 더합니다. */
  --c7: oklch(0.68 0.21 25);    /* 네차흐: 빨강 */
  --c8: oklch(0.68 0.23 350);   /* 호드: 진한 분홍 */
  --c9: oklch(0.68 0.16 265);   /* 예소드: 살짝 진한 파랑 */
  --c10: oklch(0.82 0.08 290);  /* 말쿠트: 캐릭터의 라벤더 */
  --sc: var(--c1);

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sym: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Apple Symbols', serif;
  --font-heb: 'Noto Sans Hebrew', 'Arial Hebrew', 'Times New Roman', serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);

  --column: 720px;
  /* 세 기둥 사이 간격. 넓은 화면에서만 좌우로 비켜 섭니다 */
  --pillar: clamp(0px, 13vw, 220px);
  --topbar-h: 56px;
}
[data-seph='1'] { --sc: var(--c1); }
[data-seph='2'] { --sc: var(--c2); }
[data-seph='3'] { --sc: var(--c3); }
[data-seph='4'] { --sc: var(--c4); }
[data-seph='5'] { --sc: var(--c5); }
[data-seph='6'] { --sc: var(--c6); }
[data-seph='7'] { --sc: var(--c7); }
[data-seph='8'] { --sc: var(--c8); }
[data-seph='9'] { --sc: var(--c9); }
[data-seph='10'] { --sc: var(--c10); }

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + var(--s-4)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
body.is-intro { overflow: hidden; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[tabindex='-1']:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sc, var(--glow-purple)); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ext::after { content: ' ↗'; font-weight: 400; opacity: 0.7; }

.skip-link {
  position: fixed; top: var(--s-3); left: var(--s-3); z-index: 10001;
  padding: var(--s-2) var(--s-4);
  background: var(--text); color: var(--bg);
  border-radius: var(--r-md); text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* =========================================================
   인트로 (STUDIO NAS 게이트웨이 연출을 이 사이트에 맞게 이식)
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: #020203;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}
.intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-content { width: min(480px, calc(100vw - 48px)); text-align: center; }
/* 원 + 가운데 점 + 펼쳐지는 가로선 */
.intro-symbol {
  position: relative;
  width: 52px; height: 52px;
  margin: 0 auto 22px;
  border: 1px solid rgb(171 146 198 / 0.3);
  border-radius: 50%;
  opacity: 0; transform: scale(0.82);
  animation: intro-symbol 0.75s ease 0.12s forwards;
}
.intro-symbol::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #B69ACB;
  box-shadow: 0 0 15px rgb(178 144 205 / 0.34);
}
.intro-symbol::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 74px; height: 1px;
  transform: translate(-50%, -50%) scaleX(0);
  background: linear-gradient(90deg, transparent, rgb(181 153 207 / 0.55), transparent);
  animation: intro-line 0.75s ease 0.55s forwards;
}
.intro-title {
  color: #EBE9EE; font-size: 19px; font-weight: 650; letter-spacing: 0.23em;
  opacity: 0; transform: translateY(7px);
  animation: intro-text 0.55s ease 0.4s forwards;
}
.intro-phrase {
  margin-top: 12px; color: #8E8896; font-size: 12px; letter-spacing: 0.06em;
  opacity: 0; animation: intro-text 0.55s ease 0.75s forwards;
}
.intro-progress {
  width: 0; height: 1px; margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, #9573B5, transparent);
  animation: intro-progress 1.2s ease 0.35s forwards;
}
.intro-state {
  margin-top: 10px; color: #6E6A76; font-size: 9px; letter-spacing: 0.18em;
  opacity: 0; animation: intro-text 0.45s ease 0.72s forwards;
}
@keyframes intro-symbol { to { opacity: 1; transform: scale(1); } }
@keyframes intro-line { to { transform: translate(-50%, -50%) scaleX(1); } }
@keyframes intro-text { to { opacity: 1; transform: translateY(0); } }
@keyframes intro-progress { to { width: 100%; } }
/* JS가 멈춰도 2.7초 뒤에는 무조건 걷힙니다 */
.intro { animation: intro-failsafe 0.6s ease 2.7s forwards; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* =========================================================
   배경: 별빛 + 흐르는 축복 문구
   ========================================================= */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgb(90 62 116 / 0.14), transparent 60%),
    radial-gradient(ellipse at 50% 100%, color-mix(in oklab, var(--sky-tint, var(--c1)) 10%, transparent), transparent 55%);
  transition: --sky-tint 1s;
}
.star {
  position: absolute;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: rgb(240 235 250 / var(--alpha));
  box-shadow: 0 0 calc(var(--size) * 3) rgb(171 139 212 / calc(var(--alpha) * 0.35));
}
.star.twinkle { animation: twinkle var(--twinkle) ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.38; } to { opacity: 1; } }
.drift-line {
  position: absolute; left: 100vw;
  white-space: nowrap;
  color: rgb(205 190 222 / var(--alpha));
  font-size: var(--size); letter-spacing: 0.055em;
  animation: drift var(--dur) linear forwards;
  will-change: transform;
}
@keyframes drift {
  0% { transform: translateX(0); opacity: 0; }
  7% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(calc(-100vw - 120%)); opacity: 0; }
}

/* =========================================================
   상단 바: 나무 화면을 지나면 나타납니다
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4);
  height: var(--topbar-h);
  padding-inline: clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgb(5 4 8 / 0.92), rgb(5 4 8 / 0.6) 70%, transparent);
  translate: 0 -100%; opacity: 0;
  transition: translate 0.5s var(--ease-out-expo), opacity 0.3s ease;
}
.topbar.is-shown { translate: 0 0; opacity: 1; }
.tb-brand { justify-self: start; font-size: 13px; font-weight: 650; letter-spacing: 0.2em; text-decoration: none; color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
.tb-now { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 700; }
.tb-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--sc); color: var(--sc); font-size: 11px; transition: color 0.4s, border-color 0.4s; }
.tb-tree { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding-inline: var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text-2); transition: color 0.2s, border-color 0.2s; }
.tb-tree:hover { color: var(--text); border-color: var(--glow-purple); }

main { position: relative; z-index: 1; }

/* =========================================================
   첫 화면: 세피로트의 나무
   ========================================================= */
.hero-tree {
  position: relative;
  height: 100vh; height: 100svh; min-height: 680px;   /* 나무 전체가 한 화면에 들어오게 높이를 고정 */
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  gap: var(--s-4);
  padding: clamp(28px, 6vh, 64px) var(--s-4) var(--s-5);
}
.ht-copy { text-align: center; }
.ht-kicker { font-size: 11px; letter-spacing: 0.24em; color: var(--text-3); }
.ht-title { margin-top: var(--s-3); font-size: clamp(2rem, 3.2vw, 3.6rem); font-weight: 550; letter-spacing: -0.055em; line-height: 1.05; }
.ht-title span { display: block; color: var(--text-2); }
.ht-sub { margin-top: var(--s-5); font-size: 16px; line-height: 1.8; color: var(--text-2); }
.ht-tree { width: min(560px, 92vw); height: 100%; min-height: 0; }
.ht-tree { container-type: size; }
/* 상자 높이와 너비 중 작은 쪽에 맞춰 나무 전체가 보이게 합니다 (viewBox 400x720) */
.ht-tree .tree-svg { width: min(100cqw, 100cqh * 400 / 720); height: auto; max-height: none; aspect-ratio: 400 / 720; }
.ht-down { display: grid; place-items: center; width: 44px; height: 44px; }
.ht-down span { width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--glow-purple)); animation: down-cue 2s ease-in-out infinite; }
@keyframes down-cue { 0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* 나무가 자라나는 등장: 인트로가 걷히면 경로가 그려지고 세피라가 차례로 켜집니다 */
.js .ht-tree .path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .ht-tree .node, .js .ht-tree .path-badge, .js .ht-tree .veil, .js .ht-tree .ain { opacity: 0; }
.js .ht-copy > * { opacity: 0; translate: 0 10px; }
.tree-grown .ht-tree .path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-out-expo) calc(var(--d, 0) * 1ms); }
.tree-grown .ht-tree .node { opacity: 1; transition: opacity 0.6s ease calc(var(--d, 0) * 1ms); }
.tree-grown .ht-tree .path-badge, .tree-grown .ht-tree .veil, .tree-grown .ht-tree .ain { opacity: 1; transition: opacity 0.8s ease 0.9s; }
.tree-grown .ht-copy > * { opacity: 1; translate: 0 0; transition: opacity 0.7s ease, translate 0.9s var(--ease-out-expo); }
.tree-grown .ht-copy > :nth-child(2) { transition-delay: 0.08s; }
.tree-grown .ht-copy > :nth-child(3) { transition-delay: 0.16s; }

/* ---------- 나무 SVG (첫 화면, 미니맵 공용) ---------- */
.tree-nav { display: grid; place-items: center; min-height: 0; }
.tree-svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.ain path { fill: none; stroke: rgb(164 129 202 / 0.45); stroke-width: 1.2; stroke-dasharray: 4 4; }
.veil line { stroke: rgb(174 159 197 / 0.28); stroke-width: 1; stroke-dasharray: 2 5; }
.veil text { fill: var(--text-3); font: 500 8.5px var(--font-sans); text-anchor: end; letter-spacing: 0.08em; }
.path { stroke: rgb(174 159 197 / 0.22); stroke-width: 2; stroke-linecap: round; transition: stroke 0.6s ease-out; }
.path.is-lit { stroke: rgb(214 200 236 / 0.6); }
.path-badge circle { fill: var(--bg); stroke: rgb(174 159 197 / 0.28); stroke-width: 1; transition: stroke 0.6s; }
.path-badge text { fill: var(--text-3); font: 500 10px var(--font-heb); text-anchor: middle; transition: fill 0.6s; }
.path-badge.is-lit circle { stroke: rgb(214 200 236 / 0.6); }
.path-badge.is-lit text { fill: var(--text); }
.node { cursor: pointer; outline: none; }
.node-ring { fill: rgb(14 12 20 / 0.92); stroke: color-mix(in oklab, var(--sc) 55%, transparent); stroke-width: 1.5; transition: fill 0.4s ease, stroke 0.4s ease, r 0.5s var(--ease-spring); }
.node-name { fill: var(--text-2); font: 600 11.5px var(--font-sans); text-anchor: middle; letter-spacing: -0.01em; transition: fill 0.3s; }
.node-sym { fill: var(--sc); font: 400 16px var(--font-sym); text-anchor: middle; transition: fill 0.3s; }
.node-num-bg { fill: transparent; stroke: color-mix(in oklab, var(--sc) 55%, transparent); stroke-width: 1; transition: fill 0.3s; }
.node-num { fill: var(--text-2); font: 600 9px var(--font-mono); text-anchor: middle; transition: fill 0.3s; }
.node:hover .node-ring, .node:focus-visible .node-ring { stroke: var(--sc); stroke-width: 2.5; r: 43px; }
.node:focus-visible .node-ring { stroke-width: 3; }
.node.is-visited .node-ring { stroke: var(--sc); }
.node.is-visited .node-name { fill: var(--text); }
.node.is-current .node-ring { fill: var(--sc); stroke: var(--sc); }
.node.is-current .node-name, .node.is-current .node-sym { fill: var(--bg); }
.node.is-current .node-num-bg { fill: var(--bg); stroke: var(--bg); }
.node.is-current .node-num { fill: var(--text); }
.node.is-pulse .node-ring { animation: node-pulse 0.7s var(--ease-out-expo); }
@keyframes node-pulse { 35% { r: 50px; } }

/* 미니맵: 넓은 화면 오른쪽에 작게 */
.minimap {
  position: fixed; right: clamp(12px, 2vw, 32px); top: 50%; z-index: 40;
  width: 132px; height: 240px;
  translate: 0 -50%;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.minimap.is-shown { opacity: 1; pointer-events: auto; }
.mini-svg .node-name, .mini-svg .node-sym, .mini-svg .node-num, .mini-svg .node-num-bg, .mini-svg .path-badge, .mini-svg .veil text { display: none; }
.mini-svg .node-ring { stroke-width: 6; }
.mini-svg .path { stroke-width: 6; }
.mini-svg .node.is-current .node-ring { r: 48px; }
.mini-svg .ain { display: none; }
.minimap { container-type: size; }
.minimap .tree-svg { width: min(100cqw, 100cqh * 400 / 720); height: auto; max-height: none; aspect-ratio: 400 / 720; }

/* =========================================================
   챕터: 세피라 하나 = 한 화면
   ========================================================= */
.chapter {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(96px, 16vh, 180px) var(--s-5) clamp(80px, 12vh, 140px);
  scroll-margin-top: 0;
}
.ch-inner { width: min(var(--column), 100%); margin-inline: auto; }
/* 세 기둥: 왼쪽(비나·게부라·호드), 가운데, 오른쪽(호크마·헤세드·네차흐) */
.pillar-left .ch-inner { translate: calc(var(--pillar) * -1) 0; }
.pillar-right .ch-inner { translate: var(--pillar) 0; }

/* 머리: 세피라 구 + 축복 */
.ch-head { display: grid; gap: var(--s-5); margin-bottom: clamp(48px, 8vh, 88px); }
.pillar-left .ch-head .orb { justify-self: start; }
.pillar-right .ch-head .orb { justify-self: end; }
.pillar-center .ch-head { justify-items: center; text-align: center; }
.orb {
  position: relative;
  display: grid; place-items: center;
  width: 112px; aspect-ratio: 1;
  padding: 0;
  border: 1.5px solid var(--sc);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 62%, color-mix(in oklab, var(--sc) 22%, var(--bg)) 0 55%, var(--bg) 56%);
  cursor: pointer;
  transition: scale 0.5s var(--ease-spring), box-shadow 0.4s ease;
}
.orb:hover { scale: 1.05; box-shadow: 0 0 0 6px color-mix(in oklab, var(--sc) 14%, transparent); }
/* 상징 문양 배지 */
.orb::after {
  content: attr(data-sym);
  position: absolute; top: -6px; right: -6px;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--sc);
  color: var(--sc); font: 400 17px/1 var(--font-sym);
}
.orb-art { display: grid; width: 84%; height: 84%; overflow: hidden; border-radius: 50%; }
.orb-art img { grid-area: 1 / 1; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: 50% 100%; transition: opacity 0.12s linear; }
.orb-art .p-act { opacity: 0; }
.orb.is-acting .p-idle { opacity: 0; }
.orb.is-acting .p-act { opacity: 1; }
.pillar-center .orb { width: 136px; }

.blessing { max-width: 40em; }
.b-tag { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font-weight: 700; font-size: 15px; color: var(--sc); }
.pillar-center .b-tag { justify-content: center; }
.b-num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--sc); color: var(--sc);
  font: 600 12px var(--font-mono);
}
.b-he { font-size: 12px; font-weight: 400; color: var(--text-3); letter-spacing: 0.04em; }
.b-text { margin-top: var(--s-4); font-size: clamp(1.625rem, 1.15rem + 1.7vw, 2.375rem); font-weight: 700; line-height: 1.32; letter-spacing: -0.03em; }
.b-verse { margin-top: var(--s-4); color: var(--text-2); font-size: 15px; line-height: 1.8; }
.b-ref { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--sc); margin-bottom: 2px; }

.seph-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.seph-title .count { font-size: 0.55em; font-weight: 400; color: var(--text-3); margin-left: var(--s-2); }
.note { color: var(--text-3); font-size: 14px; }
.roles { color: var(--text-3); font-size: 14px; }

/* 등장: 가벼운 페이드 업 (JS가 없으면 처음부터 보임) */
.js .chapter .ch-head > *, .js .chapter .seph-body { opacity: 0; translate: 0 22px; }
.js .chapter.is-open .ch-head > *, .js .chapter.is-open .seph-body { opacity: 1; translate: 0 0; transition: opacity 0.8s ease, translate 1s var(--ease-out-expo); }
.js .chapter.is-open .ch-head > :nth-child(2) { transition-delay: 0.12s; }
.js .chapter.is-open .seph-body { transition-delay: 0.24s; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 46px; padding: var(--s-3) var(--s-5);
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, translate 0.4s var(--ease-spring);
}
.btn:hover { translate: 0 -2px; }
.btn-primary { background: var(--sc); border-color: var(--sc); color: var(--bg); }
.btn-secondary { color: var(--text); }
.btn-secondary:hover { border-color: var(--sc); }
.text-btn { min-height: 44px; padding-inline: var(--s-4); background: none; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.text-btn:hover { color: var(--text); border-color: var(--glow-purple); }

/* 목록 공통: 가는 선으로만 나눕니다 */
.ce-grid, .ti-list, .ho-list, .ye-moons { display: grid; }
.ce-grid li, .ti-list li, .ho-list li, .ye-moons li { padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.ce-grid li:first-child, .ti-list li:first-child, .ho-list li:first-child, .ye-moons li:first-child { border-top: 1px solid var(--line); }
.ce-grid a, .ti-list a, .ye-moons a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--sc); text-underline-offset: 4px; }

/* ---------- 1. 케테르 ---------- */
.s-kether .kether-body { text-align: center; display: grid; justify-items: center; }
.k-name { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2); margin-bottom: var(--s-4); }
.k-name .mono { color: var(--text-3); margin-left: var(--s-2); }
.k-title { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.04em; }
.nothing { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 0.07em; }
.passion { color: var(--c1); }
.k-lede { margin-top: var(--s-5); max-width: 32em; color: var(--text-2); font-size: 17px; }
.k-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-7); }
.k-hint { margin-top: var(--s-6); font-size: 13px; color: var(--text-3); }

/* ---------- 2. 호크마 ---------- */
.ch-core { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-5); margin-bottom: var(--s-7); }
.ch-core span { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--sc); }
.ch-core small { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); }
.ch-rest { display: grid; gap: var(--s-5); margin: 0; }
.ch-rest > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--s-4); }
.ch-rest dt { font-size: 13px; color: var(--text-3); padding-top: 6px; }
.ch-rest dd { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ch-rest dd span { padding: 4px var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }

/* ---------- 3. 비나 ---------- */
.bi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--s-4); margin: 0 0 var(--s-3); }
.bi-stats dt { font-size: 13px; color: var(--text-3); }
.bi-stats dd { margin: 2px 0 0; font: 500 clamp(2.25rem, 1.6rem + 2vw, 3.25rem)/1 var(--font-mono); letter-spacing: -0.04em; color: var(--sc); }
.bi-rings { margin-top: var(--s-8); border-left: 1px solid var(--line-2); margin-left: 6px; }
.bi-rings li { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3) 0 var(--s-3) var(--s-6); }
.bi-rings li::before { content: ''; position: absolute; left: -6px; top: 20px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--sc); background: var(--bg); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px color-mix(in oklab, var(--sc) 40%, transparent); }
.bi-rings .mono { color: var(--sc); }

/* ---------- 4. 헤세드 ---------- */
.ce-grid li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: baseline; }
.ce-grid li > .mono { grid-row: span 3; font-size: 13px; color: var(--sc); }
.ce-grid h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; grid-column: 2; }
.ce-grid p { grid-column: 2; color: var(--text-2); font-size: 15px; }
.ce-grid a { grid-column: 3; grid-row: 1 / span 3; align-self: center; }

/* ---------- 5. 게부라 ---------- */
.ge-ledger { width: 100%; border-collapse: collapse; }
.ge-ledger th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--sc); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--sc); }
.ge-ledger td { padding: var(--s-4) var(--s-3); border-bottom: 1px solid var(--line); }
.ge-ledger td:first-child { width: 5rem; color: var(--text-3); }
.ge-ledger td:nth-child(2) { width: 6rem; color: var(--text-2); }
.ge-ledger td:last-child { font-weight: 600; }

/* ---------- 6. 티페레트 ---------- */
.ti-sun { position: relative; }
.ti-core { display: none; }
.ti-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
.ti-list li { display: flex; flex-direction: column; gap: 2px; padding-block: var(--s-6); }
.ti-list li:nth-child(2) { border-top: 1px solid var(--line); }
.ti-list .mono { font-size: 12px; color: var(--sc); }
.ti-list h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; margin-top: var(--s-1); }
.ti-list p { color: var(--text-2); font-size: 15px; }

/* ---------- 7. 네차흐 ---------- */
.ne-garden {
  position: relative;
  margin-top: var(--s-6);
  height: clamp(420px, 56vh, 600px);
  border-radius: var(--r-xl);
  background: radial-gradient(80% 60% at 50% 105%, color-mix(in oklab, var(--sc) 16%, transparent), transparent 70%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.sprout { position: absolute; width: var(--w, 80px); translate: -50% -100%; cursor: pointer; }
.sprout img { width: 100%; height: auto; pointer-events: none; }

/* ---------- 8. 호드 ---------- */
.ho-list { counter-reset: hod; }
.ho-list li { counter-increment: hod; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 2px var(--s-4); }
.ho-list li::before { content: counter(hod, decimal-leading-zero); grid-row: span 3; font: 500 15px var(--font-mono); color: var(--sc); padding-top: 3px; }
.ho-path { font-size: 12px; color: var(--text-3); }
.ho-list h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ho-list p { color: var(--text-2); font-size: 15px; }

/* ---------- 9. 예소드 ---------- */
.ye-moons li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.ye-moons li > div { display: flex; flex-direction: column; gap: 2px; }
.ye-moons .mono { font-size: 12px; color: var(--sc); }
.ye-moons h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ye-moons p { color: var(--text-2); font-size: 15px; }
.moon { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--sc); overflow: hidden; }
.moon::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; background: var(--bg); }
.moon-new::after { translate: 18% 0; }
.moon-wax::after { translate: -48% 0; }
.ye-sub { margin-top: var(--s-8); font-size: 17px; font-weight: 700; }
.ye-goals { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.ye-goals li { padding: 6px var(--s-4); border: 1px solid color-mix(in oklab, var(--sc) 60%, transparent); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--sc); }

/* ---------- 10. 말쿠트: 캐릭터의 라벤더 네 톤 ---------- */
.ma-quarters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.ma-quarters a {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 132px; padding: var(--s-5);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: translate 0.4s var(--ease-spring), filter 0.2s;
}
.ma-quarters a:hover { translate: 0 -3px; filter: brightness(1.08); }
.ma-quarters a.ext::after { position: absolute; top: var(--s-4); right: var(--s-5); }
.ma-quarters .mono { font-size: 12px; opacity: 0.8; }
.ma-quarters b { font-size: 17px; font-weight: 700; word-break: break-all; }
.ma-quarters .q1 a { background: oklch(0.90 0.05 290); color: #15121C; }
.ma-quarters .q2 a { background: oklch(0.78 0.10 285); color: #15121C; }
.ma-quarters .q3 a { background: oklch(0.50 0.16 295); color: #FFFFFF; }
.ma-quarters .q4 a { background: #1E1438; color: var(--text); border: 1px solid var(--line-2); }

/* ---------- 푸터 ---------- */
.footer {
  position: relative; z-index: 1;
  width: min(var(--column), calc(100% - 48px)); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.footer-actions { display: flex; gap: var(--s-2); }
.fineprint { flex-basis: 100%; font-size: 11px; }

/* ---------- 캐릭터 모션 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sprout { animation: sprout-bob 2.6s ease-in-out infinite; }
  .sprout:nth-child(3n) { animation-delay: -0.9s; }
  .sprout:nth-child(3n + 1) { animation-delay: -1.7s; }
  .sprout.is-hop { animation: sprout-hop 0.55s var(--ease-out-expo); }
  .orb .p-idle { animation: idle-bob 3s ease-in-out infinite; }
  .orb.is-acting .orb-art { animation: act-shake 0.5s var(--ease-out-expo); }
}
@keyframes idle-bob { 50% { translate: 0 -3px; } }
@keyframes sprout-bob { 50% { margin-top: -4px; } }
@keyframes sprout-hop { 55% { margin-top: -26px; } }
@keyframes act-shake { 20% { scale: 1.06 0.94; } 45% { scale: 0.97 1.05; } }

/* 넓은 화면: 제목은 왼쪽, 나무는 가운데에 화면 높이 가득 */
@media (min-width: 1024px) {
  .hero-tree {
    grid-template-columns: minmax(0, 1fr) min(600px, 46vw) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    padding-block: var(--s-6) var(--s-3);
  }
  .ht-copy { grid-column: 1; grid-row: 1; justify-self: end; text-align: left; max-width: 22em; padding-right: var(--s-6); }
  .ht-tree { grid-column: 2; grid-row: 1; width: 100%; }
  .ht-down { grid-column: 2; grid-row: 2; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1279px) {
  .minimap { display: none; }
}
@media (max-width: 1023px) {
  :root { --pillar: 0px; }
}
@media (max-width: 767px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .tb-brand { display: none; }
  .tb-now { justify-self: start; }
  .chapter { padding-inline: 20px; }
  .ht-tree { min-height: 0; }
  .ch-rest > div { grid-template-columns: 1fr; gap: var(--s-2); }
  .ce-grid li { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .ce-grid a { grid-column: 2; grid-row: auto; }
  .ti-list { grid-template-columns: 1fr; }
  .ti-list li:nth-child(2) { border-top: 0; }
  .ge-ledger td:first-child { width: 3.75rem; }
  .ge-ledger td:nth-child(2) { width: 4.5rem; }
  .ne-garden { height: 480px; }
  .ma-quarters { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  .drift { display: none; }
}

/* 우주를 장식하는 궤도와 성운은 정적으로 두어 글과 나무 탐색에 집중하게 합니다. */
.sky {
  background:
    radial-gradient(ellipse at 76% 16%, rgb(117 76 118 / 0.12), transparent 38%),
    radial-gradient(ellipse at 23% 72%, rgb(60 84 99 / 0.13), transparent 42%),
    radial-gradient(ellipse at 50% 50%, rgb(89 67 112 / 0.09), transparent 60%),
    #050408;
}
.sky::before, .sky::after {
  content: ''; position: absolute; inset: -10%; opacity: 0.4;
  background-image: radial-gradient(circle, #e3daef 0 0.7px, transparent 1px), radial-gradient(circle, #b4bdd0 0 0.8px, transparent 1.2px);
  background-size: 173px 211px, 293px 337px;
  background-position: 31px 47px, 137px 173px;
}
.sky::after { rotate: 19deg; scale: 1.2; opacity: 0.19; background-size: 121px 157px, 431px 293px; }
.hero-tree > :not(.cosmic-orbits) { z-index: 1; }
.ht-author { margin-top: 16px; color: var(--text-3); font-size: 12px; letter-spacing: 0.04em; }
.ht-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-size: 13px; }
.ht-links a { padding-block: 8px; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.ht-links a:hover { color: var(--c1); border-color: var(--c1); }
.ht-links span { margin-left: 8px; }
.cosmic-orbits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cosmic-orbits span { position: absolute; left: 50%; top: 48%; width: min(82vw, 940px); aspect-ratio: 1; border: 1px solid rgb(177 159 199 / 0.12); border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg) scaleY(0.42); }
.cosmic-orbits span:nth-child(2) { width: min(100vw, 1190px); transform: translate(-50%, -50%) rotate(49deg) scaleY(0.48); border-style: dashed; border-color: rgb(177 159 199 / 0.09); }
.cosmic-orbits span:nth-child(3) { width: min(68vw, 760px); transform: translate(-50%, -50%) rotate(-62deg) scaleY(0.7); border-color: rgb(177 159 199 / 0.08); }
.ht-coordinate { display: none; position: absolute; right: 6vw; bottom: 12vh; font-size: 10px; color: var(--text-3); line-height: 2; letter-spacing: 0.12em; }
.ht-tree .node-ring { fill: rgb(8 7 13 / 0.9); }
.ht-tree .node.is-current .node-ring { fill: color-mix(in oklab, var(--sc) 18%, var(--bg)); }
.ht-tree .node.is-current .node-name { fill: var(--text); }
.ht-tree .node.is-current .node-sym { fill: var(--sc); }
.ht-tree .path { stroke: rgb(190 174 212 / 0.42); stroke-width: 1.15; }
.arka-eyebrow { color: var(--text-3); font-size: 11px; letter-spacing: 0.18em; }
.arka-title { margin-top: 8px; font-size: clamp(4.5rem, 12vw, 7.5rem); font-weight: 450; letter-spacing: 0.08em; line-height: 1.1; }
.arka-title span { display: block; margin-top: 12px; font-size: 19px; letter-spacing: 0.12em; color: var(--text-2); }
.arka-genres { margin-top: 24px; color: var(--text-3); font-size: 13px; }
.arka-lead { margin-top: 48px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.6; letter-spacing: -0.025em; }
.arka-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-block: 20px; border-block: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.arka-nav a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 6px; text-decoration-color: transparent; }
.arka-nav a:hover { text-decoration-color: currentColor; color: var(--text); }
.arka-part { margin-top: clamp(64px, 10vw, 112px); scroll-margin-top: 88px; }
.arka-part > h3 { margin-block: 12px 28px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 550; letter-spacing: -0.03em; }
.arka-part p:not(.arka-eyebrow) { color: var(--text-2); }
.arka-part > p + p { margin-top: 20px; }
.arka-part blockquote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 1px solid var(--c1); color: var(--text); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.8; letter-spacing: -0.02em; }
.arka-definitions { margin: 0; }
.arka-definitions > div { padding-block: 24px; border-bottom: 1px solid var(--line); }
.arka-definitions dt { font-weight: 600; font-size: 17px; }
.arka-definitions dt .mono { display: block; margin-top: 4px; color: var(--text-3); font-weight: 400; font-size: 11px; letter-spacing: 0.03em; }
.arka-definitions dd { margin: 14px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.arka-sephira-list { margin-top: 32px; }
.arka-sephira { border-top: 1px solid var(--line); }
.arka-sephira:last-child { border-bottom: 1px solid var(--line); }
.arka-sephira summary, .arka-faction-group summary { cursor: pointer; display: flex; align-items: center; gap: 24px; padding: 22px 4px; list-style: none; }
.arka-sephira summary::-webkit-details-marker, .arka-faction-group summary::-webkit-details-marker { display: none; }
.arka-index { color: var(--sc); font-size: 12px; }
.arka-person { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px; }
.arka-person b { font-size: 20px; font-weight: 550; }
.arka-person > span { color: var(--text-3); font-size: 13px; }
.arka-expand { margin-left: auto; color: var(--text-3); font-size: 23px; font-weight: 300; }
details[open] > summary .arka-expand { rotate: 45deg; }
.arka-sephira summary:hover .arka-person b { color: var(--sc); }
.arka-story { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 32px; padding: 8px 0 32px; }
.arka-story img { width: 112px; height: 144px; object-fit: contain; object-position: top; }
.arka-story p { font-size: 15px; line-height: 1.9; }
.arka-story p + p { margin-top: 16px; }
.arka-story blockquote { margin: 24px 0 0; font-size: 17px; border-color: var(--sc); }
.arka-faction-group { border-bottom: 1px solid var(--line); }
.arka-faction-group > summary { font-size: 17px; font-weight: 550; }
.arka-faction-group .arka-definitions { padding: 0 20px 24px; }
.arka-faction-group .arka-definitions > div:last-child { border-bottom: 0; }
.s-netzach .ne-garden { border: 0; border-radius: 0; border-block: 1px solid var(--line); background: radial-gradient(ellipse at 50% 90%, rgb(110 77 132 / 0.1), transparent 70%); }
.s-netzach .ch-head { justify-items: center; text-align: center; }
@media (min-width: 1024px) {
  .ht-links { justify-content: flex-start; }
  .ht-coordinate { display: block; }
}
@media (max-width: 767px) {
  .hero-tree { min-height: 820px; padding-top: 36px; gap: 20px; }
  .ht-title span { display: inline; }
  .ht-kicker { font-size: 9px; }
  .ht-sub { margin-top: 16px; font-size: 14px; }
  .ht-author { margin-top: 8px; }
  .ht-links { margin-top: 12px; }
  .ht-tree { width: min(440px, 95vw); }
  .arka-nav { gap: 4px 20px; }
  .arka-story { grid-template-columns: 1fr; gap: 16px; }
  .arka-story img { justify-self: center; }
  .arka-sephira summary { gap: 16px; }
  .arka-faction-group .arka-definitions { padding-inline: 0; }
}


/* 움직이는 배경은 화면 밖까지 여유를 두어 마우스 이동 때 가장자리가 비지 않습니다. */
.sky { inset: -32px; transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0); }
.cosmic-orbits { transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0); }
.intro { display: none; background: #050408; }
.js .intro { display: grid; }
.intro-title { font-size: 18px; font-weight: 500; letter-spacing: 0.18em; }
.intro-caption { margin-top: 12px; color: var(--text-2); font-size: 10px; letter-spacing: 0.24em; }
.intro-state { color: var(--text-3); }
.intro-constellation { position: relative; width: 112px; height: 112px; margin: 0 auto 32px; }
.intro-constellation span { position: absolute; inset: 12px; border: 1px solid rgb(182 154 203 / 0.42); border-radius: 50%; transform: rotate(-30deg) scaleY(0.42); }
.intro-constellation span:nth-child(2) { transform: rotate(45deg) scaleY(0.55); }
.intro-constellation span:nth-child(3) { transform: rotate(-70deg) scaleY(0.6); border-style: dashed; opacity: 0.6; }
.intro-constellation i { position: absolute; inset: calc(50% - 3px); background: var(--c1); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .intro-constellation { animation: archive-arrive 1.3s ease both; }
}
@keyframes archive-arrive { from { opacity: 0; transform: scale(0.75) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
/* 실제 픽셀 경계로 위치를 보정하므로 이미지의 자동 축소를 해제합니다. */
.orb-art { position: relative; display: block; width: 82%; height: 82%; min-width: 0; min-height: 0; }
.orb-art img, .portrait-frame img { position: absolute; max-width: none; object-fit: contain; object-position: center; }
.orb-art img { left: 0; top: 0; }
.portrait-frame { position: relative; display: block; width: 128px; height: 164px; overflow: hidden; }
.portrait-frame img { width: 100%; height: 100%; left: 0; top: 0; }
.arka-story { grid-template-columns: 128px minmax(0, 1fr); }
.arka-sephira, .arka-faction-group, .project-entry { scroll-margin-top: 76px; overflow-anchor: none; }
.section-label { font-size: 11px; color: var(--text-3); letter-spacing: 0.16em; margin-bottom: 16px; }
.stack-intro { color: var(--text-2); margin-bottom: 40px; max-width: 36em; }
.stack-list { margin: 0; }
.stack-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-block: 28px; }
.stack-list dt { color: var(--text); font-size: 17px; }
.stack-list dt .mono { display: block; color: var(--text-3); font-size: 10px; letter-spacing: 0.08em; margin-bottom: 8px; }
.stack-list dd { margin: 0; }
.stack-list strong { display: block; font-size: 18px; font-weight: 550; line-height: 1.6; }
.stack-list dd p { margin-top: 12px; font-size: 14px; color: var(--text-2); line-height: 1.9; }
.stack-tags { display: block; margin-top: 16px; font-size: 12px; color: var(--c2); }
.stack-list .stack-art { margin-top: 24px; font-size: 16px; }
.stack-next { border-top: 1px solid var(--line); padding-top: 24px; color: var(--text-2); font-size: 13px; }
.stack-next .mono { display: block; color: var(--c2); font-size: 10px; letter-spacing: 0.16em; margin-bottom: 8px; }
.project-list { border-top: 1px solid var(--line-2); }
.project-entry { border-bottom: 1px solid var(--line); }
.project-entry > summary { display: grid; grid-template-columns: 100px minmax(0, 1fr) 24px; align-items: center; gap: 24px; padding: 28px 0; cursor: pointer; list-style: none; }
.project-entry > summary::-webkit-details-marker { display: none; }
.project-year { font-size: 11px; line-height: 1.8; color: var(--text-3); }
.project-heading { display: grid; gap: 8px; }
.project-heading b { font-size: clamp(19px, 2.5vw, 24px); line-height: 1.4; font-weight: 550; letter-spacing: -0.025em; }
.project-heading > span { font-size: 13px; color: var(--text-2); }
.project-open { font-size: 25px; font-weight: 300; color: var(--text-3); }
.project-entry[open] .project-open { rotate: 45deg; }
.project-entry > summary:hover .project-heading b { color: var(--sc); }
.project-content { padding-bottom: 28px; min-width: 0; }
.project-role { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.project-gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 20px; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.project-gallery figure { flex: 0 0 min(80%, 360px); min-width: 0; margin: 0; scroll-snap-align: start; }
.project-gallery a { display: grid; place-items: center; height: 400px; background: rgb(13 12 18 / 0.8); border: 1px solid var(--line); }
.project-gallery img { width: 100%; height: 100%; max-height: 398px; object-fit: contain; }
.project-gallery figcaption { padding-top: 10px; font: 10px var(--font-mono); color: var(--text-3); letter-spacing: 0.12em; }
.project-links { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.project-links a { padding-block: 8px; text-underline-offset: 5px; }
.project-links .note { font-size: 11px; }
.contact-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.35; }
.contact-intro { margin-top: 20px; color: var(--text-2); font-size: 15px; }
.contact-email { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; margin-top: 48px; padding-block: 24px 32px; border-block: 1px solid var(--line-2); text-decoration: none; }
.contact-email > .mono { grid-column: 1 / -1; font-size: 10px; letter-spacing: 0.16em; color: var(--text-3); }
.contact-email > span:nth-child(2) { font-size: clamp(18px, 2.8vw, 27px); font-weight: 450; line-height: 1.6; overflow-wrap: anywhere; }
.contact-email > span:last-child { font-size: 24px; color: var(--c10); }
.contact-email:hover { color: var(--c10); }
.contact-links { margin-top: 32px; }
.contact-links a { display: grid; grid-template-columns: 150px minmax(0, 1fr) 20px; gap: 24px; min-height: 72px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.contact-links .mono { font-size: 11px; color: var(--text-3); }
.contact-links a > span:last-child { color: var(--c10); }
.contact-links a:hover { color: var(--c10); border-color: var(--c10); }
@media (max-width: 767px) {
  .stack-list > div { grid-template-columns: 1fr; gap: 16px; }
  .project-entry > summary { grid-template-columns: minmax(0, 1fr) 24px; gap: 10px 16px; }
  .project-year { grid-column: 1; }
  .project-heading { grid-column: 1; }
  .project-open { grid-column: 2; grid-row: 1 / 3; }
  .project-gallery a { height: 340px; }
  .project-gallery img { max-height: 338px; }
  .arka-story { grid-template-columns: 1fr; }
  .portrait-frame { justify-self: center; }
  .contact-links a { grid-template-columns: 1fr 20px; gap: 6px 16px; }
  .contact-links .mono { grid-column: 1; }
  .contact-links a > span:nth-child(2) { grid-column: 1; }
  .contact-links a > span:last-child { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .sky, .cosmic-orbits { transform: none; }
}

/* 작품을 펼치기 전에도 이미지와 성격을 읽을 수 있는 전시형 목록입니다. */
.s-tiferet .ch-inner { width: min(960px, 100%); }
.project-intro { color: var(--text-2); margin: -12px 0 32px; font-size: 14px; }
.project-list { border-top: 0; }
.project-entry { position: relative; border-bottom-color: var(--line-2); }
.project-entry > summary { display: grid; grid-template-columns: minmax(160px, 39%) minmax(0, 1fr); gap: 28px; padding: 28px 0; align-items: center; }
.project-cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #111018; isolation: isolate; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-expo), filter 0.7s; }
.project-cover::after { content: ''; position: absolute; inset: 0; border: 1px solid rgb(226 214 242 / 0.13); border-radius: inherit; pointer-events: none; }
.project-cover-index { position: absolute; bottom: 12px; left: 12px; background: rgb(5 4 8 / 0.8); border: 1px solid var(--line-2); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; color: var(--text); font-size: 10px; }
.project-info { min-width: 0; display: flex; flex-direction: column; align-items: start; }
.project-year { color: var(--sc); font-size: 10px; letter-spacing: 0.06em; }
.project-heading { margin-top: 14px; gap: 10px; }
.project-heading b { font-size: clamp(20px, 2.8vw, 28px); letter-spacing: -0.035em; line-height: 1.35; }
.project-heading > span { line-height: 1.8; font-size: 13px; }
.project-action { margin-top: 28px; display: inline-flex; align-items: center; gap: 20px; padding-block: 6px; border-bottom: 1px solid var(--line-2); color: var(--text-2); font-size: 12px; }
.project-action > span { font-size: 19px; color: var(--sc); transition: transform 0.35s var(--ease-out-expo); }
.project-entry[open] .project-action > span { transform: rotate(90deg); }
.project-entry[open] > summary { padding-bottom: 32px; }
.project-entry > summary:hover .project-cover img { transform: scale(1.045); filter: brightness(1.08); }
.project-entry > summary:hover .project-action { color: var(--text); border-color: var(--sc); }
.featured-projects .project-entry > summary { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-block: 40px; gap: 44px; }
.featured-projects .project-cover { aspect-ratio: 16 / 11; }
.featured-projects .project-cover img { object-fit: contain; }
.featured-projects .project-heading b { font-size: clamp(24px, 3vw, 34px); }
.project-content { padding: 0 0 36px; }
.project-role { margin-bottom: 24px; padding-left: 14px; border-left: 1px solid var(--sc); }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: 20px 12px; }
.gallery-toolbar > .mono { color: var(--text-3); font-size: 10px; letter-spacing: 0.1em; }
.gallery-toolbar > div { display: flex; gap: 6px; }
.gallery-toolbar button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.gallery-toolbar button:hover { background: rgb(182 154 203 / 0.12); border-color: var(--sc); }
.project-gallery { gap: 20px; padding-bottom: 18px; }
.project-gallery figure { flex-basis: min(77%, 320px); }
.project-gallery a { position: relative; height: 320px; border-radius: 8px; overflow: hidden; background: #0d0b12; transition: border-color 0.25s; }
.project-gallery a::after { content: '↗'; position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(5 4 8 / 0.82); color: var(--text); border: 1px solid var(--line-2); }
.project-gallery a:hover { border-color: var(--sc); }
.project-gallery img { max-height: 318px; transition: transform 0.6s var(--ease-out-expo); }
.project-gallery a:hover img { transform: scale(1.025); }
.project-gallery figcaption { display: flex; align-items: center; gap: 12px; }
.project-gallery figcaption::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* 기본 스크롤 동작은 유지하면서 스크롤바의 색과 굵기만 맞춥니다. */
:root { scrollbar-color: #76668c #09070e; scrollbar-width: thin; }
* { scrollbar-color: #76668c #09070e; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 7px; }
::-webkit-scrollbar-track { background: #09070e; }
::-webkit-scrollbar-thumb { background: #76668c; border: 2px solid #09070e; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #b59ace; }
::-webkit-scrollbar-corner { background: #09070e; }
::selection { background: #8f6bb5; color: #fff; }
:focus-visible { outline-color: var(--sc); outline-offset: 6px; }
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 101; pointer-events: none; transform: scaleX(var(--reading-progress, 0)); transform-origin: left; background: var(--c10); }
/* 본문 전체 대신 개별 요소를 움직여 펼침 위치가 흔들리지 않게 합니다. */
.js .chapter .seph-body, .js .chapter.is-open .seph-body { translate: none; }
.js .chapter.is-open .seph-body { transition: opacity 0.6s ease; }
.motion-ready .reveal-target { transition: opacity 0.8s ease var(--reveal-delay, 0ms), transform 0.95s var(--ease-out-expo) var(--reveal-delay, 0ms); }
.motion-ready .reveal-target:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.motion-ready .reveal-target.is-visible { opacity: 1; transform: translateY(0); }
.node-sym { font-size: 18px; }
.orb::after { width: 44px; height: 44px; font-size: 26px; top: -10px; right: -10px; }
/* 마지막 연락 영역은 공전하는 왕국 문양으로 마무리합니다. */
.s-malkuth .ch-inner { width: min(920px, 100%); }
.contact-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(180px, 1fr); align-items: center; gap: 44px; padding-block: 32px 48px; border-top: 1px solid var(--line-2); }
.contact-title { border: 0; padding: 0; margin: 20px 0 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.4; font-weight: 500; }
.contact-intro { font-size: 14px; line-height: 1.9; }
.contact-send { display: inline-flex; align-items: center; justify-content: space-between; gap: 44px; min-height: 48px; margin-top: 28px; padding: 10px 20px; background: var(--c10); border: 1px solid var(--c10); border-radius: 999px; color: #16111e; text-decoration: none; font-size: 13px; font-weight: 650; transition: transform 0.35s var(--ease-out-expo), background 0.25s; }
.contact-send:hover { transform: translateY(-3px); background: #e0d4f2; }
.contact-orbit { position: relative; width: 100%; max-width: 250px; aspect-ratio: 1; justify-self: end; }
.contact-ring { position: absolute; inset: 12%; border: 1px solid rgb(190 170 217 / 0.25); border-radius: 50%; }
.contact-ring:nth-child(2) { inset: 0; border-style: dashed; border-color: rgb(190 170 217 / 0.16); transform: scaleY(0.58) rotate(-26deg); }
.contact-satellite { position: absolute; inset: 12%; border-radius: 50%; }
.contact-satellite::before { content: ''; position: absolute; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--c10); }
.contact-core { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c10); font: 400 74px var(--font-sym); }
.contact-orbit-label { position: absolute; top: calc(100% + 16px); width: 100%; text-align: center; color: var(--text-3); letter-spacing: 0.12em; font-size: 9px; line-height: 1.8; }
.contact-address { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 20px; padding-block: 28px; border-block: 1px solid var(--line-2); }
.contact-address > .mono { grid-column: 1 / -1; color: var(--text-3); font-size: 10px; letter-spacing: 0.14em; }
.contact-address > a { font-size: clamp(17px, 2.5vw, 25px); text-decoration: none; line-height: 1.6; }
.contact-address > a:hover { color: var(--c10); }
.contact-address button { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; min-height: 44px; padding: 8px 14px; font-size: 11px; color: var(--text-2); cursor: pointer; }
.contact-address button:hover { border-color: var(--c10); color: var(--text); }
.contact-links { margin-top: 0; }
.contact-links a { grid-template-columns: 140px minmax(0, 1fr) 24px; min-height: 80px; }
.contact-links a > span:last-child { transition: transform 0.3s; }
.contact-links a:hover > span:last-child { transform: translate(3px, -3px); }
.image-viewer { width: min(1160px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); padding: 20px; border: 1px solid var(--line-2); border-radius: 12px; background: #0c0912; color: var(--text); overflow: auto; }
.image-viewer::backdrop { background: rgb(2 1 5 / 0.9); backdrop-filter: blur(12px); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.viewer-toolbar .mono { font-size: 11px; color: var(--text-2); letter-spacing: 0.12em; }
.image-viewer button { cursor: pointer; min-width: 44px; min-height: 44px; background: transparent; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); }
.viewer-toolbar button { padding: 8px 16px; font-size: 12px; }
.viewer-toolbar button span { margin-left: 12px; font-size: 20px; }
.viewer-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 16px; }
.viewer-stage img { width: 100%; height: min(68dvh, 760px); object-fit: contain; }
.image-viewer button:hover { border-color: var(--c10); }
.image-viewer button:disabled { opacity: 0.3; cursor: default; }
.viewer-caption { margin-top: 16px; text-align: center; color: var(--text-2); font-size: 13px; }
.viewer-hint { text-align: center; margin-top: 8px; color: var(--text-3); font-size: 10px; }
body.viewer-open { overflow: hidden; }
.meteors { position: absolute; inset: 0; overflow: hidden; }
.meteors span { position: absolute; width: 130px; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, #c0b0d3); transform: rotate(-30deg); }
.meteors span:nth-child(1) { top: 22%; left: 65%; }
.meteors span:nth-child(2) { top: 58%; left: 28%; }
.meteors span:nth-child(3) { top: 12%; left: 40%; }
@media (prefers-reduced-motion: no-preference) {
  .cosmic-orbits span { animation: orbit-turn 120s linear infinite; }
  .cosmic-orbits span:nth-child(2) { animation-duration: 170s; animation-direction: reverse; }
  .cosmic-orbits span:nth-child(3) { animation-duration: 95s; }
  .sky::before { animation: nebula-drift 55s ease-in-out infinite alternate; }
  .meteors span { animation: meteor-pass 16s linear infinite; }
  .meteors span:nth-child(2) { animation-delay: 6s; animation-duration: 23s; }
  .meteors span:nth-child(3) { animation-delay: 13s; animation-duration: 29s; }
  .contact-satellite { animation: orbit-turn 16s linear infinite; }
  .contact-core { animation: core-float 5s ease-in-out infinite; }
  .project-entry[open] .project-content { animation: gallery-arrive 0.6s var(--ease-out-expo) both; }
  .tree-grown .ht-tree .node-ring { animation: node-breathe 5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1ms); }
}
@keyframes orbit-turn { to { rotate: 360deg; } }
@keyframes nebula-drift { to { translate: 20px -15px; } }
@keyframes meteor-pass { 0%, 84%, 100% { opacity: 0; transform: translate(0, 0) rotate(-30deg); } 87% { opacity: 0.75; } 94% { opacity: 0; transform: translate(-440px, 254px) rotate(-30deg); } }
@keyframes core-float { 50% { translate: 0 -5px; } }
@keyframes node-breathe { 50% { stroke-opacity: 0.5; } }
@keyframes gallery-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.is-page-hidden *, .is-page-hidden *::before, .is-page-hidden *::after { animation-play-state: paused !important; }
@media (max-width: 767px) {
  .project-entry > summary, .featured-projects .project-entry > summary { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px; }
  .project-cover, .featured-projects .project-cover { aspect-ratio: 16 / 10; }
  .project-info { grid-column: 1; }
  .project-heading, .featured-projects .project-heading { margin-top: 10px; }
  .project-action { margin-top: 16px; }
  .project-gallery a { height: 300px; }
  .project-gallery img { max-height: 298px; }
  .gallery-toolbar > .mono { font-size: 9px; letter-spacing: 0.02em; }
  .contact-stage { grid-template-columns: 1fr; padding-block: 24px 36px; }
  .contact-orbit { display: none; }
  .contact-address { grid-template-columns: minmax(0, 1fr); }
  .contact-address button { justify-self: start; margin-top: 6px; }
  .contact-links a { grid-template-columns: minmax(0, 1fr) 24px; }
  .viewer-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 4px; }
  .viewer-stage button { min-width: 36px; }
  .image-viewer { width: calc(100vw - 16px); padding: 12px; }
  .viewer-stage img { height: 58dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal-target:not(.is-visible) { opacity: 1; transform: none; }
  .meteors { display: none; }
  .project-entry > summary:hover .project-cover img, .project-gallery a:hover img { transform: none; }
}

/* 움직이는 장식이 페이지 바깥의 가로 스크롤을 만들지 않게 제한합니다. */
body { overflow-x: clip; }
.hero-tree { overflow: clip; }

/* 이미지 아래로 실제 그림을 뒤집어 비추되 텍스트 영역과 겹치지 않게 합니다. */
[hidden] { display: none !important; }
.s-chesed .ch-inner, .s-tiferet .ch-inner { width: min(940px, 100%); }
.project-cover { overflow: visible; }
.project-cover > img:first-child { position: relative; z-index: 1; border-radius: 8px; }
.project-cover .project-reflection { position: absolute; inset: auto 0 auto; top: calc(100% + 8px); height: 100%; transform: scaleY(-1); opacity: 0.42; mask-image: linear-gradient(to top, rgb(0 0 0 / 0.65), transparent 24%); pointer-events: none; filter: blur(0.4px); border-radius: 8px; }
.project-entry > summary:hover .project-cover .project-reflection { transform: scaleY(-1) scale(1.045); filter: blur(0.4px) brightness(1.08); }
.project-cover-index { z-index: 2; }
.unified-projects .project-entry > summary { padding-block: 36px 60px; gap: 40px; }
.unified-projects .project-entry[data-selected='true'] .project-cover img { object-fit: contain; }
.project-selected { font-size: 9px; letter-spacing: 0.15em; color: var(--text-3); margin-bottom: 12px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 8px 24px; border-bottom: 1px solid var(--line-2); }
.project-filters button { min-height: 44px; padding: 8px 18px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 12px; cursor: pointer; transition: color 0.2s, background 0.2s; }
.project-filters button[aria-pressed='true'] { border-color: var(--line-2); color: var(--text); background: rgb(198 173 209 / 0.08); }
.project-filters button:hover { color: var(--sc); }
.project-gallery img { object-position: center bottom; }
.image-mirror { display: block; position: relative; overflow: hidden; height: 36px; margin-top: 6px; opacity: 0.32; mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.project-gallery .image-mirror img { display: block; width: 100%; height: 318px; max-height: none; object-fit: contain; object-position: center bottom; transform: scaleY(-1); filter: blur(0.4px); }
.project-gallery a::before { content: ''; position: absolute; z-index: 1; bottom: 0; height: 1px; left: 8%; right: 8%; background: linear-gradient(90deg, transparent, rgb(215 193 235 / 0.45), transparent); pointer-events: none; }
.artwork-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.artwork-heading > p { color: var(--text-2); font-size: 14px; line-height: 1.9; }
.artwork-upload { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--sc); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 13px; transition: background 0.25s, translate 0.25s; }
.artwork-upload:hover { background: color-mix(in oklab, var(--sc) 12%, transparent); translate: 0 -2px; }
.artwork-upload-note { margin-top: 20px; color: var(--text-3); font-size: 12px; max-width: 58em; line-height: 1.8; }
.artwork-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding-block: 20px; border-block: 1px solid var(--line); }
.artwork-toolbar > .mono { font-size: 10px; color: var(--text-3); letter-spacing: 0.15em; }
.artwork-toolbar button { background: transparent; border: 0; color: var(--text-2); min-height: 44px; padding: 8px 12px; cursor: pointer; font-size: 12px; text-underline-offset: 5px; }
.artwork-toolbar button:hover { color: var(--sc); text-decoration: underline; }
.artwork-toolbar button:disabled { opacity: 0.5; cursor: wait; }
.artwork-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; padding-top: 32px; }
.artwork-grid:empty { display: none; }
.artwork-card { min-width: 0; margin: 0; }
.artwork-frame { position: relative; display: block; height: 400px; background: radial-gradient(ellipse at 50% 100%, rgb(184 154 205 / 0.08), transparent 60%), #0b0910; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.artwork-frame > img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform 0.7s var(--ease-out-expo); }
.artwork-frame::after { content: '↗'; position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; background: rgb(5 4 8 / 0.8); color: var(--text); }
.artwork-frame:hover > img { transform: scale(1.025); }
.artwork-card .image-mirror img { width: 100%; height: 398px; object-fit: contain; object-position: center bottom; transform: scaleY(-1); filter: blur(0.4px); }
.artwork-card figcaption { display: flex; gap: 16px; align-items: baseline; padding-top: 12px; color: var(--text-2); font-size: 14px; }
.artwork-card figcaption .mono { color: var(--sc); font-size: 10px; }
.artwork-empty { display: grid; place-items: center; gap: 12px; min-height: 300px; padding: 40px 24px; margin-top: 24px; border: 1px dashed var(--line-2); border-radius: 8px; text-align: center; }
.artwork-empty-symbol { font: 400 42px var(--font-sym); color: var(--sc); }
.artwork-empty p { font-size: 20px; color: var(--text); }
.artwork-empty > span:last-child { color: var(--text-3); font-size: 13px; line-height: 1.8; }
.artwork-pending { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); padding: 24px; text-align: center; font-size: 13px; }
.artwork-card.is-pending img { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .artwork-card { animation: gallery-arrive 0.65s var(--ease-out-expo) var(--art-delay, 0ms) both; }
}
@media (max-width: 767px) {
  .unified-projects .project-entry > summary { padding-block: 28px 36px; gap: 64px; }
  .project-cover .project-reflection { mask-image: linear-gradient(to top, rgb(0 0 0 / 0.6), transparent 22%); }
  .project-gallery .image-mirror img { height: 298px; }
  .artwork-heading { flex-direction: column; align-items: start; }
  .artwork-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .artwork-frame { height: 360px; }
  .artwork-card .image-mirror img { height: 358px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-entry > summary:hover .project-cover .project-reflection { transform: scaleY(-1); }
  .artwork-frame:hover > img { transform: none; }
}

/* 기둥마다 원의 크기가 달라지면 같은 캐릭터도 작게 보여 크기를 통일합니다. */
.chapter .orb { width: 148px; height: 148px; }
.orb-art { width: 84%; height: 84%; overflow: visible; border-radius: 0; pointer-events: none; }
.orb::after { z-index: 2; }
/* 목록은 작은 미리보기로 훑고 필요한 작품만 펼칩니다. */
.unified-projects .project-entry > summary { grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding-block: 20px 28px; }
.unified-projects .project-cover { aspect-ratio: 4 / 3; }
.unified-projects .project-cover-index { width: 22px; height: 22px; bottom: 5px; left: 5px; font-size: 9px; }
.unified-projects .project-info { position: relative; padding-right: 38px; }
.unified-projects .project-heading { margin-top: 5px; gap: 3px; }
.unified-projects .project-heading b { font-size: 19px; }
.unified-projects .project-heading > span { font-size: 12px; }
.unified-projects .project-action { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 0; margin: 0; border: 0; }
.unified-projects .project-selected { display: none; }
.project-pagination { display: flex; justify-content: flex-end; gap: 8px; margin: -6px 0 12px; }
.project-pagination button { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text-2); background: transparent; cursor: pointer; }
.project-pagination button[aria-current] { color: var(--text); border-color: var(--sc); background: rgb(218 194 224 / 0.08); }
@media (max-width: 600px) {
.unified-projects .project-entry > summary { grid-template-columns: 82px minmax(0, 1fr); gap: 16px; padding-block: 18px 24px; }
.unified-projects .project-heading b { font-size: 16px; }
.unified-projects .project-heading > span { font-size: 11px; }
.unified-projects .project-info { padding-right: 20px; }
.unified-projects .project-year { font-size: 9px; }
}

.s-yesod .project-entry > summary { grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding-block: 24px; }
.s-yesod .project-heading b { font-size: 20px; }
.s-yesod .project-action { display: none; }
.s-yesod .moon { box-shadow: inset 0 0 16px rgb(255 255 255 / 0.08); }
@media (max-width: 600px) { .s-yesod .project-heading b { font-size: 17px; } }

/* 이미지 자체가 전시물이므로 원래 비율을 보존하고 주변의 박스는 없앱니다. */
.project-gallery { align-items: flex-start; gap: 32px; padding-block: 12px 22px; }
.project-gallery figure { flex: 0 0 min(88%, 520px); }
.project-gallery figure:only-child { flex-basis: min(100%, 680px); }
.project-gallery figure > a { display: block; height: auto; min-height: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.project-gallery figure > a > img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; border-radius: 2px; }
.project-gallery a::after, .project-gallery a::before, .artwork-frame::after { display: none; }
.project-gallery figure .image-mirror { height: 30px; margin-top: 5px; opacity: 0.23; }
.project-gallery figure .image-mirror img, .artwork-card .image-mirror img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; transform: translateY(-100%) scaleY(-1); transform-origin: center bottom; }
.project-gallery figcaption { padding-top: 8px; font-size: 10px; letter-spacing: 0.14em; color: var(--text-2); }
.project-cover, .unified-projects .project-cover { background: transparent; border-radius: 0; aspect-ratio: auto; }
.project-cover::after { display: none; }
.project-cover > img:first-child { width: 100%; height: auto; max-height: 100px; object-fit: contain; border-radius: 2px; }
.project-cover .project-reflection { height: auto; max-height: 100px; object-fit: contain; border-radius: 0; opacity: 0.24; }
.project-cover-index { display: none; }
.unified-projects .project-entry > summary { grid-template-columns: 96px minmax(0, 1fr); gap: 28px; padding-block: 20px 30px; }
.unified-projects .project-entry { border-bottom-color: rgb(192 171 212 / 0.14); }
.project-action > span { font-size: 16px; }
.project-content { padding-top: 10px; }
.gallery-toolbar { border-top: 1px solid var(--line); padding-top: 18px; }
.gallery-toolbar button { border: 0; border-radius: 0; width: 42px; height: 36px; color: var(--text-2); background: transparent; }
.gallery-toolbar button:hover { border: 0; background: transparent; color: var(--sc); }
.gallery-toolbar > .mono { letter-spacing: 0.16em; }
/* 각 항목을 잇는 가는 궤도와 빛점으로 탐색 상태를 표시합니다. */
.project-filters { gap: 24px; padding-bottom: 12px; border-bottom: 0; }
.project-filters button { position: relative; border: 0; border-radius: 0; padding: 8px 0 12px; background: transparent; }
.project-filters button[aria-pressed='true'] { background: transparent; border: 0; color: var(--sc); }
.project-filters button::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 0; height: 1px; background: var(--sc); transition: width 0.3s ease; }
.project-filters button[aria-pressed='true']::after { width: 100%; }
.project-pagination { align-items: center; justify-content: flex-end; gap: 0; border-bottom: 1px solid var(--line); margin: 0 0 12px; padding: 4px 0 18px; }
.project-pagination::before { content: 'ARCHIVE COORDINATES'; margin-right: auto; font: 9px var(--font-mono); letter-spacing: 0.16em; color: var(--text-2); }
.project-pagination button { position: relative; width: 64px; height: 40px; border: 0; border-radius: 0; background: transparent; font: 11px var(--font-mono); letter-spacing: 0.12em; }
.project-pagination button::before { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: var(--line-2); }
.project-pagination button::after { content: ''; position: absolute; width: 4px; height: 4px; left: calc(50% - 2px); bottom: 0; background: var(--text-2); transform: rotate(45deg); transition: background 0.3s, box-shadow 0.3s; }
.project-pagination button[aria-current] { border: 0; background: transparent; color: var(--sc); }
.project-pagination button[aria-current]::after { background: var(--sc); box-shadow: 0 0 8px color-mix(in oklab, var(--sc) 45%, transparent); }
.artwork-frame { height: auto; min-height: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.artwork-frame > img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 2px; }
.artwork-card.is-pending .artwork-frame { min-height: 160px; }
.artwork-upload { border: 0; border-bottom: 1px solid var(--sc); border-radius: 0; padding-inline: 0; }
.artwork-upload:hover { background: transparent; }
.artwork-empty { border-inline: 0; border-radius: 0; border-block-style: solid; }
@media (prefers-reduced-motion: no-preference) {
.project-entry.is-filter-arriving { animation: archive-materialize 0.5s var(--ease-out-expo) var(--entry-delay, 0ms) both; }
.project-entry[open] .project-content, .arka-sephira[open] .arka-story, .arka-faction-group[open] > div { animation: archive-materialize 0.5s var(--ease-out-expo) both; }
.project-gallery figure { animation: image-materialize 0.75s var(--ease-out-expo) both; }
.project-gallery a:hover img { transform: translateY(-3px); }
}
@keyframes archive-materialize { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes image-materialize { from { opacity: 0; transform: translateY(14px); filter: brightness(0.8); } to { opacity: 1; transform: translateY(0); filter: brightness(1); } }
@media (max-width: 600px) {
.unified-projects .project-entry > summary { grid-template-columns: 66px minmax(0, 1fr); gap: 20px; }
.project-cover > img:first-child, .project-cover .project-reflection { max-height: 76px; }
.project-gallery figure { flex-basis: 91%; }
.project-gallery { gap: 22px; }
.project-pagination::before { font-size: 8px; letter-spacing: 0.1em; }
.project-filters { gap: 22px; }
}
/* 모바일의 이전 단일 열 규칙이 썸네일 옆 제목을 아래로 밀지 않게 합니다. */
.project-entry > summary > .project-info { grid-column: 2; min-width: 0; width: 100%; }

/* 세계관은 선택한 장만 읽고 목차는 읽는 위치 가까이에 남깁니다. */
.arka-nav.is-reader-nav { position: sticky; top: 56px; z-index: 8; margin-top: 24px; padding-block: 8px; gap: 4px 24px; background: rgb(8 6 13 / 0.94); backdrop-filter: blur(14px); }
.arka-nav.is-reader-nav a { position: relative; white-space: nowrap; }
.arka-nav.is-reader-nav a[aria-current] { color: var(--sc); }
.arka-nav.is-reader-nav a[aria-current]::after { content: ''; position: absolute; bottom: 3px; height: 1px; left: 0; right: 0; background: var(--sc); }
.arka-part.is-reading { margin-top: 28px; padding-top: 16px; }
.arka-part.is-reading > h3 { margin-bottom: 22px; }
.arka-part.is-reading .arka-sephira > summary { padding-block: 14px; }
.arka-part.is-reading .arka-faction-group > summary { padding-block: 16px; }
.arka-part.is-reading .arka-story { padding-bottom: 24px; }
@media (prefers-reduced-motion: no-preference) { .arka-part.is-reading { animation: archive-materialize 0.45s var(--ease-out-expo) both; } }
@media (max-width: 600px) { .arka-nav.is-reader-nav { gap: 0 18px; font-size: 11px; } }

/* 경계는 내용 열의 위치와 무관하게 정렬해 세피라가 바뀌는 지점을 명확히 합니다. */
.seph-boundary { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 64px)); display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; color: var(--sc); pointer-events: none; }
.seph-boundary::before, .seph-boundary::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--sc) 55%, transparent)); }
.seph-boundary::after { transform: scaleX(-1); }
.boundary-index { font-size: 10px; letter-spacing: 0.1em; }
.boundary-name { font-size: 10px; letter-spacing: 0.2em; color: var(--text-2); }
.boundary-orbit { position: relative; display: grid; place-items: center; width: 38px; height: 38px; font: 18px var(--font-sym); }
.boundary-orbit::before { content: ''; position: absolute; inset: 0; border: 1px solid color-mix(in oklab, var(--sc) 40%, transparent); border-radius: 50%; transform: rotate(-30deg) scaleY(0.48); }
.boundary-orbit::after { content: ''; position: absolute; width: 3px; height: 3px; top: 8px; right: 3px; border-radius: 50%; background: var(--sc); }
.chapter::before { content: ''; position: absolute; pointer-events: none; top: 24px; left: 10%; right: 10%; height: 160px; background: radial-gradient(ellipse at 50% 0%, color-mix(in oklab, var(--sc) 6%, transparent), transparent 70%); }
.deep-nebula { position: absolute; inset: 0; opacity: 0.65; }
.deep-nebula span { position: absolute; width: 100vmax; height: 60vmax; left: -38%; top: -25%; border-radius: 50%; background: radial-gradient(ellipse, rgb(134 94 148 / 0.13), rgb(75 62 110 / 0.055) 38%, transparent 65%); transform: rotate(-24deg); }
.deep-nebula span:nth-child(2) { left: 35%; top: 38%; width: 85vmax; background: radial-gradient(ellipse, rgb(145 115 151 / 0.09), transparent 64%); }
.celestial-halo { position: absolute; width: 130vmax; height: 130vmax; left: -85vmax; top: -65vmax; border: 1px solid rgb(193 172 216 / 0.07); border-radius: 50%; box-shadow: 0 0 0 90px rgb(193 172 216 / 0.012), 0 0 0 91px rgb(193 172 216 / 0.035); transform: rotate(-25deg) scaleY(0.7); }
:where(a, button, summary) { -webkit-tap-highlight-color: rgb(198 173 209 / 0.15); }
:where(button, .ext, .text-btn, .contact-links a, .arka-nav a, .ht-links a, .project-entry > summary, .arka-sephira > summary, .arka-faction-group > summary) { transition: color 0.25s ease, border-color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease; }
:where(.ext, .ht-links a, .contact-links a) { text-decoration-thickness: 1px; text-underline-offset: 6px; }
:where(.ext, .ht-links a, .contact-links a):hover { color: var(--sc, var(--c1)); }
:where(.arka-sephira, .arka-faction-group) > summary:hover { background: linear-gradient(90deg, color-mix(in oklab, var(--sc) 6%, transparent), transparent); }
.arka-expand { transition: transform 0.35s var(--ease-out-expo), color 0.25s; }
summary:hover .arka-expand { color: var(--sc); }
.project-entry > summary:focus-visible, .arka-sephira > summary:focus-visible, .arka-faction-group > summary:focus-visible { outline-width: 1px; outline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
.deep-nebula span { animation: nebula-tide 42s ease-in-out infinite alternate; }
.deep-nebula span:nth-child(2) { animation-duration: 57s; animation-delay: -22s; animation-direction: alternate-reverse; }
.sky::after { animation: distant-stars 70s ease-in-out infinite alternate; }
.celestial-halo { animation: halo-drift 90s ease-in-out infinite alternate; }
.boundary-orbit::before { animation: boundary-revolve 24s linear infinite; }
.chapter.is-open .seph-boundary::before, .chapter.is-open .seph-boundary::after { animation: boundary-light 1.2s ease both; }
:where(.ext, .ht-links a, .contact-links a, .artwork-upload, .gallery-toolbar button, .project-pagination button, .artwork-toolbar button, .contact-address button) { transition: translate 0.3s var(--ease-out-expo), color 0.25s, border-color 0.3s, background-color 0.3s; }
:where(.ext, .ht-links a, .artwork-upload, .gallery-toolbar button, .project-pagination button, .artwork-toolbar button, .contact-address button):hover { translate: 0 -2px; }
.contact-links a:hover { translate: 4px 0; }
:where(button:not(.orb), summary):active { translate: 0 1px; }
:where(.arka-sephira, .arka-faction-group) > summary:hover .arka-person { translate: 3px 0; }
.arka-person { transition: translate 0.3s var(--ease-out-expo); }
}
@keyframes nebula-tide { to { translate: 5vw 4vh; rotate: 9deg; scale: 1.12; } }
@keyframes distant-stars { to { translate: -18px 14px; opacity: 0.3; } }
@keyframes halo-drift { to { translate: 4vw 5vh; rotate: 12deg; } }
@keyframes boundary-revolve { to { rotate: 360deg; } }
@keyframes boundary-light { from { opacity: 0.2; } to { opacity: 1; } }
@media (max-width: 600px) {
.seph-boundary { width: calc(100% - 40px); gap: 10px; }
.boundary-name { font-size: 8px; letter-spacing: 0.12em; }
.boundary-orbit { width: 30px; height: 30px; font-size: 16px; }
.deep-nebula { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
.deep-nebula *, .celestial-halo, .seph-boundary *, .sky::after { animation: none !important; }
:where(a, button, summary, .arka-person, .arka-expand) { transition-duration: 0s !important; }
}
/* 넓은 띠가 본문을 가리지 않도록 먼 궤도도 가는 선으로만 표현합니다. */
.celestial-halo { box-shadow: none; }
.celestial-halo::after { content: ''; position: absolute; inset: -90px; border: 1px solid rgb(193 172 216 / 0.04); border-radius: 50%; }

/* 전시 이미지는 화면을 독점하지 않고 원래 비율 그대로 작은 크기로 놓습니다. */
.artwork-grid { align-items: start; column-gap: 40px; row-gap: 40px; }
.artwork-frame { display: flex; justify-content: center; align-items: center; width: 100%; }
.artwork-frame > img { width: auto; height: auto; max-width: min(100%, 320px); max-height: 320px; }
.artwork-card .image-mirror { width: var(--art-width, 240px); max-width: 100%; height: 24px; margin-inline: auto; opacity: 0.2; }
.artwork-card figcaption { justify-content: center; font-size: 12px; }
@media (max-width: 600px) {
.artwork-frame > img { max-width: min(100%, 260px); max-height: 260px; }
.artwork-grid { row-gap: 32px; }
}

/* 빛은 한 번만 흐르게 해 첫 등장에 깊이를 주고 읽는 동안은 잔잔하게 둡니다. */
.path-signal { fill: none; stroke: var(--signal-color, var(--c1)); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.055 0.945; stroke-dashoffset: 1; opacity: 0; pointer-events: none; }
.node-echo { fill: none; stroke: var(--sc); stroke-width: 0.8; opacity: 0; pointer-events: none; }
.orb { isolation: isolate; }
.orb::before { content: ''; position: absolute; inset: -2px; border: 1px solid var(--sc); border-radius: 50%; opacity: 0; pointer-events: none; z-index: -1; }
.orb.is-acting:not(.is-frame-ready) .p-idle { opacity: 1; }
.orb.is-acting:not(.is-frame-ready) .p-act { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
.js .ht-tree .node { transform-box: fill-box; transform-origin: center; }
.tree-grown .ht-tree .node { animation: sephira-condense 1s var(--ease-out-expo) calc(var(--d, 0) * 1ms) both; }
.tree-grown .ht-tree .path-signal { animation: path-awaken 1.35s cubic-bezier(0.22, 0.65, 0.35, 1) calc(var(--d, 0) * 1ms) both; }
.tree-grown .ht-tree .node-echo { animation: node-awaken 1.2s ease-out calc(var(--d, 0) * 1ms + 180ms) both; }
.tree-grown .ht-tree .ain { animation: crown-reveal 1.6s ease-out both; }
.tree-grown .ht-tree .path-badge { transition-delay: calc(var(--d, 0) * 1ms + 550ms); }
.tree-grown .ht-tree .tree-svg { animation: tree-depth 2.4s var(--ease-out-expo) both; transform-origin: 50% 30%; }
.orb.is-acting { animation: orb-recoil 0.72s var(--ease-out-expo) both; }
.orb.is-acting .orb-art { animation: character-strike 0.78s linear both; transform-origin: 50% 76%; }
.orb.is-acting::before { animation: strike-ring 0.65s ease-out 0.08s both; }
.orb.is-acting.is-frame-ready .p-act { animation: attack-frame 0.82s linear both; }
.orb.is-acting.is-frame-ready .p-idle { animation: idle-frame 0.82s linear both; }
.orb.is-acting::after { animation: sigil-kick 0.7s var(--ease-out-expo) both; }
}
@keyframes sephira-condense { 0% { opacity: 0; transform: scale(0.68); filter: blur(2px); } 60% { opacity: 1; transform: scale(1.055); filter: blur(0); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes path-awaken { 0% { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 0.8; } 82% { opacity: 0.65; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes node-awaken { 0% { r: 32px; opacity: 0; } 18% { opacity: 0.6; } 100% { r: 61px; opacity: 0; } }
@keyframes crown-reveal { from { opacity: 0; translate: 0 -9px; } to { opacity: 1; translate: 0 0; } }
@keyframes tree-depth { from { transform: scale(0.96); } to { transform: scale(1); } }
/* 준비→타격 정지→반동→복귀를 나눠 단순 흔들림보다 무게를 느끼게 합니다. */
@keyframes character-strike { 0% { transform: translate(0, 0) scale(1) rotate(0); } 10% { transform: translate(-4px, 4px) scale(1.07, 0.88) rotate(-5deg); } 18%, 25% { transform: translate(6px, -7px) scale(0.95, 1.13) rotate(5deg); } 34% { transform: translate(-4px, 1px) scale(1.04, 0.96) rotate(-3deg); } 47% { transform: translate(2px, -2px) scale(0.99, 1.025) rotate(1deg); } 70%, 100% { transform: translate(0, 0) scale(1) rotate(0); } }
@keyframes orb-recoil { 0%, 10%, 100% { translate: 0 0; } 22% { translate: -2px 1px; } 30% { translate: 2px 0; } 43% { translate: -1px 0; } 64% { translate: 0 0; } }
@keyframes strike-ring { 0% { opacity: 0; scale: 0.93; } 12% { opacity: 0.55; } 100% { opacity: 0; scale: 1.48; } }
@keyframes sigil-kick { 0%, 100% { rotate: 0deg; } 20% { rotate: 12deg; } 45% { rotate: -5deg; } }
@keyframes attack-frame { 0%, 9% { opacity: 0; } 10%, 81% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes idle-frame { 0%, 9% { opacity: 1; } 10%, 81% { opacity: 0; } 96%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.path-signal, .node-echo, .orb::before { display: none; }
.tree-grown .ht-tree .node, .tree-grown .ht-tree .tree-svg, .orb.is-acting, .orb.is-acting *, .orb.is-acting::after { animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) { .ht-tree .node.is-pulse .node-ring { animation: node-pulse 0.6s var(--ease-out-expo); } }

/* 구와 축복을 머리말로 묶어 본문까지 불필요하게 멀어지지 않게 합니다. */
.chapter { padding-top: clamp(100px, 12vh, 136px); padding-bottom: 64px; }
.chapter .ch-head { grid-template-columns: 148px minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 36px; text-align: left; margin-bottom: 56px; }
.chapter .ch-head .orb { justify-self: start; }
.chapter .blessing { min-width: 0; }
.chapter .b-tag { margin-bottom: 12px; }
.chapter .b-text { font-size: clamp(23px, 2.6vw, 32px); line-height: 1.45; text-wrap: balance; }
.chapter .b-verse { margin-top: 20px; font-size: 12px; line-height: 1.9; }
.chapter .b-ref { margin-bottom: 4px; }
.chapter .seph-body > .section-label:first-child { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; color: var(--sc); font-size: 10px; letter-spacing: 0.16em; }
.chapter .seph-body > .section-label:first-child::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.chapter .seph-title { font-weight: 550; letter-spacing: -0.045em; }
/* 케테르는 자기소개를 선언문과 짧은 제작 이력으로 읽게 합니다. */
.s-kether .kether-body { text-align: left; justify-items: start; }
.s-kether .k-title { font-size: clamp(31px, 4vw, 46px); font-weight: 600; line-height: 1.35; }
.s-kether .k-name { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; margin-bottom: 20px; }
.s-kether .k-name .mono { margin: 0; font-size: 10px; }
.s-kether .k-lede { font-size: 15px; line-height: 1.95; max-width: 37em; }
.profile-facts { display: grid; grid-template-columns: 0.7fr 1.2fr 1.2fr; gap: 24px; width: 100%; margin: 32px 0 0; padding-block: 22px; border-block: 1px solid var(--line); }
.profile-facts dt { font-size: 10px; color: var(--text-2); margin-bottom: 10px; }
.profile-facts dd { margin: 0; font-size: 13px; color: var(--text); }
.s-kether .k-actions { margin-top: 24px; justify-content: flex-start; }
.s-kether .k-actions a { padding: 0 0 8px; border: 0; border-bottom: 1px solid var(--sc); border-radius: 0; font-size: 13px; }
.s-kether .k-hint { font-size: 11px; margin-top: 24px; }
/* 호크마는 주력 기술과 주변 도구의 위계를 먼저 드러냅니다. */
.stack-list > div { grid-template-columns: 126px minmax(0, 1fr); gap: 28px; padding-block: 24px; }
.stack-list > div:first-child { border-top-color: var(--sc); }
.stack-list > div:first-child dd > strong:first-child { font-size: clamp(25px, 3vw, 34px); color: var(--sc); letter-spacing: -0.03em; }
.stack-list dt { font-size: 12px; }
.stack-list dt .mono { font-size: 9px; letter-spacing: 0.08em; }
.stack-list dd p { font-size: 13px; line-height: 1.95; }
.stack-list dd > strong { font-size: 16px; font-weight: 550; }
.stack-tags { display: block; margin-top: 12px; font-size: 11px; color: var(--sc); }
.stack-next { display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; }
/* 비나는 수치와 연표를 분리하고 가는 시간축으로 연결합니다. */
.bi-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; border-block: 1px solid var(--line); padding-block: 24px; }
.bi-stats > div { display: flex; flex-direction: column; gap: 12px; }
.bi-stats dt { font-size: 10px; color: var(--text-2); }
.bi-stats dd { font-size: clamp(30px, 4vw, 44px); font-weight: 400; }
.bi-rings { margin-top: 40px; margin-left: 3px; }
.bi-rings li { grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 18px 0 18px 24px; }
.bi-rings li::before { width: 5px; height: 5px; left: -3px; top: 25px; border: 0; border-radius: 0; rotate: 45deg; background: var(--sc); box-shadow: none; }
.bi-rings .mono { font-size: 11px; padding-top: 3px; }
.bi-rings p { font-size: 13px; line-height: 1.8; }
/* 헤세드는 탐색을, 게부라는 참가 기록을 중심으로 배치합니다. */
.s-chesed .project-intro { margin-bottom: 20px; font-size: 13px; }
.s-chesed .project-pagination { margin-bottom: 4px; }
.s-chesed .project-content { padding-left: 28px; border-left: 1px solid color-mix(in oklab, var(--sc) 32%, transparent); margin-left: 1px; }
.ge-ledger { table-layout: fixed; }
.ge-ledger th { padding: 12px 0; font-size: 10px; border-bottom: 1px solid var(--line-2); }
.ge-ledger th:first-child, .ge-ledger td:first-child { width: 64px; }
.ge-ledger th:nth-child(2), .ge-ledger td:nth-child(2) { width: 76px; }
.ge-ledger td { padding: 22px 0; font-size: 13px; line-height: 1.7; }
.ge-ledger td:first-child { font-size: 11px; color: var(--sc); }
.ge-ledger td:nth-child(2) { font-size: 11px; }
.ge-ledger td:last-child { font-weight: 500; }
/* 티페레트는 작은 전시 작품과 작품 정보를 같은 축에 놓습니다. */
.s-tiferet .artwork-heading { align-items: start; }
.s-tiferet .artwork-upload { font-size: 12px; min-height: 44px; }
.s-tiferet .artwork-upload-note { font-size: 11px; margin-top: 14px; }
.s-tiferet .artwork-toolbar { margin-top: 28px; padding-block: 10px; }
.s-tiferet .artwork-grid { padding-block: 32px 12px; }
.artwork-card figcaption { width: 100%; border-top: 1px solid var(--line); padding-top: 14px; justify-content: flex-start; gap: 16px; }
.artwork-card figcaption > span:last-child { overflow-wrap: anywhere; }
/* 네차흐는 세계관 표지와 독서 영역을 구별합니다. */
.world-masthead { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: center; padding-block: 12px 28px; }
.world-masthead .arka-eyebrow { grid-column: 1 / -1; margin-bottom: 20px; }
.world-masthead .arka-title { grid-column: 1; grid-row: 2; margin: 0; padding: 0; border: 0; font-size: clamp(54px, 7vw, 80px); line-height: 1; }
.world-masthead .arka-title span { margin-top: 12px; font-size: 14px; letter-spacing: 0.02em; }
.world-masthead .arka-genres { grid-column: 1; grid-row: 3; font-size: 10px; margin-top: 18px; line-height: 1.8; }
.world-masthead .arka-lead { grid-column: 2; grid-row: 2 / 4; margin: 0; padding-left: 28px; border-left: 1px solid var(--line-2); font-size: 19px; line-height: 1.9; }
.s-netzach .arka-nav { margin-top: 0; }
.arka-part.is-reading { padding-top: 20px; }
.arka-part.is-reading > p:not(.arka-eyebrow) { font-size: 14px; line-height: 2; }
.arka-story { gap: 24px; }
.arka-part .arka-sephira summary { gap: 20px; }
.arka-person b { font-size: 18px; }
/* 호드는 공방의 작업 목록, 예소드는 아직 차오르는 달의 목록입니다. */
.ho-list li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 20px; padding-block: 24px; }
.ho-list li::before { font-size: 10px; padding-top: 2px; }
.ho-list .ho-path { font-size: 10px; color: var(--sc); letter-spacing: 0.08em; margin-bottom: 6px; }
.ho-list h3 { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.ho-list li:first-child h3 { font-size: 29px; }
.ho-list p { font-size: 13px; max-width: 36em; line-height: 1.9; }
.s-yesod .project-entry > summary { padding-block: 26px; gap: 24px; }
.s-yesod .project-heading b { font-weight: 500; font-size: 19px; }
.s-yesod .moon { width: 48px; height: 48px; }
.s-yesod .project-content { padding-left: 24px; border-left: 1px solid var(--line-2); }
.ye-sub { margin-top: 36px; font-size: 14px; font-weight: 500; }
.ye-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 18px; counter-reset: horizon; }
.ye-goals li { counter-increment: horizon; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 14px 0; font-size: 12px; font-weight: 400; color: var(--text-2); }
.ye-goals li::before { content: '0' counter(horizon); display: block; color: var(--sc); margin-bottom: 8px; font: 9px var(--font-mono); }
/* 말쿠트는 문의와 외부 채널을 분리해 마지막 도달점으로 마무리합니다. */
.s-malkuth .contact-stage { border-top: 0; padding-top: 0; gap: 32px; }
.s-malkuth .contact-title { font-size: clamp(30px, 3.7vw, 42px); }
.s-malkuth .contact-orbit { max-width: 200px; }
.s-malkuth .contact-send { background: transparent; color: var(--sc); border-radius: 0; border: 0; border-bottom: 1px solid var(--sc); padding-inline: 0; margin-top: 22px; font-weight: 500; }
.s-malkuth .contact-send:hover { background: transparent; }
.s-malkuth .contact-address { padding-block: 24px; }
.s-malkuth .contact-address > a { font-size: clamp(16px, 2.5vw, 23px); }
.s-malkuth .contact-address button { border-radius: 0; border: 0; border-bottom: 1px solid var(--line-2); padding-inline: 0; }
.s-malkuth .contact-links a { min-height: 64px; grid-template-columns: 100px minmax(0, 1fr) 24px; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
.ge-ledger tbody tr { transition: background 0.3s; }
.ge-ledger tbody tr:hover { background: color-mix(in oklab, var(--sc) 4%, transparent); }
.profile-facts > div { animation: archive-materialize 0.7s var(--ease-out-expo) both; }
}
@media (max-width: 767px) {
.chapter { padding-top: 90px; padding-bottom: 40px; }
.chapter .ch-head { grid-template-columns: 104px minmax(0, 1fr); gap: 20px; margin-bottom: 36px; align-items: start; }
.chapter .ch-head .orb { width: 104px; height: 104px; margin-top: 3px; }
.chapter .orb::after { width: 28px; height: 28px; right: -7px; top: -7px; font-size: 18px; }
.chapter .b-tag { font-size: 11px; margin-bottom: 10px; }
.chapter .b-he { display: none; }
.chapter .b-text { font-size: 20px; line-height: 1.5; }
.chapter .b-verse { font-size: 11px; margin-top: 14px; }
.chapter .b-num { width: 20px; height: 20px; font-size: 10px; }
.profile-facts { gap: 14px; grid-template-columns: 0.65fr 1fr 1.2fr; }
.profile-facts dd { font-size: 11px; line-height: 1.8; }
.s-kether .k-title { font-size: 29px; }
.stack-list > div { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stack-list dt { display: flex; align-items: baseline; gap: 12px; }
.stack-list dt .mono { margin: 0; }
.bi-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.bi-stats dd { font-size: 32px; }
.s-chesed .project-content, .s-yesod .project-content { padding-left: 14px; }
.world-masthead { grid-template-columns: minmax(0, 1fr); }
.world-masthead .arka-lead { grid-column: 1; grid-row: 4; padding-left: 0; border: 0; margin-top: 24px; font-size: 18px; }
.world-masthead .arka-title { font-size: 62px; }
.ye-goals { gap: 14px; }
.ye-goals li { font-size: 11px; }
.s-malkuth .contact-links a { grid-template-columns: 80px minmax(0, 1fr) 20px; gap: 12px; }
.s-malkuth .contact-links a > span:nth-child(2) { font-size: 12px; }
}

.s-kether .seph-body > .section-label:first-child { width: 100%; }

/* 같은 우주 안에서도 각 세피라의 기원은 다른 문양으로 드러냅니다. */
.chapter-sigil { position: absolute; top: 112px; right: -28px; width: min(34vw, 420px); color: var(--sc); opacity: 0.13; pointer-events: none; user-select: none; }
.chapter-sigil svg { display: block; width: 100%; height: auto; overflow: visible; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
:is(.chapter-sigil, .chapter-atmosphere) .sigil-faint { opacity: 0.38; }
.chapter .ch-inner, .seph-boundary { position: relative; }
.chapter .seph-boundary { position: absolute; }
.pillar-right .chapter-sigil { right: auto; left: -18px; }
.s-kether .chapter-sigil { top: 72px; right: -64px; width: min(39vw, 470px); opacity: 0.3; }
.sigil-black-hole .horizon-core { fill: var(--bg); stroke-width: 0; }
.sigil-black-hole .horizon-aura { stroke-width: 5; opacity: 0.1; }
.sigil-black-hole svg > circle:last-of-type { stroke-width: 1.5; }
.sigil-orbit { transform-origin: 200px 200px; }
.s-chokmah .stack-list > div:first-child { position: relative; }
.s-chokmah .stack-list > div:first-child::before { content: ''; position: absolute; width: 5px; height: 5px; right: 0; top: -3px; background: var(--sc); }
.s-binah .bi-rings li::before { border-radius: 100% 0 100% 0; width: 8px; height: 5px; left: -4px; }
.s-chesed .project-filters { border-top: 1px solid color-mix(in oklab, var(--sc) 25%, transparent); padding-top: 12px; }
.s-gevurah .orb::after { border-radius: 5px; }
.s-gevurah .ge-ledger { border-top: 1px solid var(--sc); }
.s-gevurah .ge-ledger th:first-child { border-left: 1px solid var(--sc); padding-left: 10px; }
.s-tiferet .artwork-toolbar { position: relative; }
.s-tiferet .artwork-toolbar::after { content: '✝'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--sc); opacity: 0.6; font: 18px var(--font-sym); pointer-events: none; }
.s-netzach .arka-nav { border-top-color: color-mix(in oklab, var(--sc) 50%, transparent); }
.s-netzach .arka-part blockquote { border-left-color: var(--sc); }
.s-hod .ho-list li { border-bottom-color: color-mix(in oklab, var(--sc) 22%, transparent); }
.s-yesod .chapter-sigil { opacity: 0.11; }
.s-malkuth .chapter-sigil { width: min(36vw, 440px); top: 80px; opacity: 0.16; }
@media (prefers-reduced-motion: no-preference) {
.sigil-black-hole .sigil-orbit { animation: accretion-orbit 70s linear infinite; }
.sigil-prophecy .sigil-orbit { animation: accretion-orbit 110s linear infinite reverse; }
.chapter-sigil:not(.sigil-black-hole):not(.sigil-prophecy) svg { animation: sigil-presence 12s ease-in-out infinite alternate; }
.sigil-snow-sanctuary svg { animation-duration: 17s; }
.sigil-angelic-cycle svg { animation-duration: 15s; }
}
@keyframes accretion-orbit { to { rotate: 360deg; } }
@keyframes sigil-presence { from { opacity: 0.65; translate: 0 0; } to { opacity: 1; translate: 0 -5px; } }
@media (max-width: 767px) {
.chapter-sigil, .pillar-right .chapter-sigil { top: 85px; left: auto; right: -72px; width: 220px; opacity: 0.1; }
.s-kether .chapter-sigil { top: 64px; right: -75px; width: 240px; opacity: 0.2; }
.s-malkuth .chapter-sigil { top: 72px; right: -65px; width: 230px; opacity: 0.12; }
}
@media (prefers-reduced-motion: reduce) { .chapter-sigil * { animation: none !important; } }

/* 화면 밖 연출은 멈추되 현재 구간과 기본 HTML 표시는 유지합니다. */
.chapter-sigil { contain: layout paint style; }
.js .chapter:not(.is-in-view) .chapter-sigil *,
.js .chapter:not(.is-in-view) .boundary-orbit::before,
.js .chapter:not(.is-in-view) .orb .p-idle,
.js .chapter:not(.is-in-view) .contact-satellite,
.js .chapter:not(.is-in-view) .contact-core,
.js .hero-tree:not(.is-in-view) .cosmic-orbits span,
.js .hero-tree:not(.is-in-view) .path-signal,
.js .hero-tree:not(.is-in-view) .node-echo,
.js .hero-tree:not(.is-in-view) .node-ring { animation-play-state: paused; }
/* 배경 문양만 구간 안에 머물게 하며 sticky 목차의 스크롤 기준은 유지합니다. */
.chapter { overflow: clip; }

/* 문양이 글 뒤에 묻히지 않도록 머리말의 세 번째 영역에서 선명하게 보여줍니다. */
.chapter .ch-head { grid-template-columns: 148px minmax(0, 1fr) 168px; gap: 28px; }
.chapter .chapter-sigil { position: relative; inset: auto; width: 168px; height: 168px; grid-column: 3; align-self: center; opacity: 0.82; contain: layout paint style; }
.chapter .chapter-sigil svg { height: 100%; stroke-width: 1.1; }
.chapter-sigil :is(path, circle, ellipse, rect, line, polygon) { vector-effect: non-scaling-stroke; }
:is(.chapter-sigil, .chapter-atmosphere) .motif-fill { fill: currentColor; fill-opacity: 0.09; stroke: none; }
:is(.chapter-sigil, .chapter-atmosphere) .motif-tint { fill: currentColor; fill-opacity: 0.17; stroke: currentColor; stroke-opacity: 0.42; }
:is(.chapter-sigil, .chapter-atmosphere) .motif-solid { fill: currentColor; fill-opacity: 0.8; stroke: none; }
:is(.chapter-sigil, .chapter-atmosphere) .motif-bright { stroke: color-mix(in oklab, var(--sc) 65%, white); stroke-opacity: 0.9; }
:is(.chapter-sigil, .chapter-atmosphere) .sigil-faint { opacity: 0.5; }
:is(.chapter-sigil, .chapter-atmosphere) .horizon-core { fill: #020105; stroke: none; }
:is(.chapter-sigil, .chapter-atmosphere) .horizon-aura { stroke-width: 3px; opacity: 0.13; }
.chapter-sigil.sigil-black-hole { opacity: 1; }
.s-chesed .chapter-sigil { color: #e9dce9; }
.s-hod .chapter-sigil svg { stroke-width: 1.2; }
.s-netzach .chapter-sigil svg { stroke-width: 1.2; }
.node-aura { fill: none; stroke: var(--sc); stroke-width: 1.1; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
.tree-grown .ht-tree .node-aura { animation: node-tide 4.8s ease-out calc(var(--d, 0) * 1ms) infinite both; }
.tree-grown .ht-tree .node-aura-second { animation-delay: calc(var(--d, 0) * 1ms + 2400ms); }
.ht-tree .node:hover .node-aura, .ht-tree .node:focus-visible .node-aura { animation-duration: 2.4s; }
.sigil-snow-sanctuary .snow-dust { animation: snow-drift 7s ease-in-out infinite alternate; }
}
@keyframes node-tide { 0% { transform: scale(1); opacity: 0; } 16% { opacity: 0.34; } 85%, 100% { transform: scale(1.32); opacity: 0; } }
@keyframes snow-drift { to { translate: 0 7px; opacity: 0.6; } }
.js .hero-tree:not(.is-in-view) .node-aura { animation-play-state: paused; }
@media (max-width: 767px) {
.chapter .ch-head { grid-template-columns: 104px minmax(0, 1fr); gap: 18px 22px; }
.chapter .ch-head .orb { grid-column: 1; grid-row: 1; }
.chapter .ch-head .blessing { grid-column: 2; grid-row: 1 / 3; }
.chapter .ch-head .chapter-sigil { grid-column: 1; grid-row: 2; width: 104px; height: 104px; opacity: 0.85; }
.chapter .ch-head .sigil-black-hole { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .node-aura { display: none; } }
@media (prefers-reduced-motion: no-preference) { .ht-tree .node:hover .node-aura-second, .ht-tree .node:focus-visible .node-aura-second { animation-delay: calc(var(--d, 0) * 1ms + 1200ms); } }

/* 머리말의 선명한 문양과 중간·하단의 환경을 나눠 한 구간 전체에 성격을 이어갑니다. */
.chapter-atmosphere { position: absolute; inset: 0; overflow: clip; color: var(--sc); pointer-events: none; user-select: none; contain: layout paint style; }
.chapter .ch-inner, .chapter .seph-boundary { z-index: 1; }
.atmosphere-echo { position: absolute; top: 34%; right: -100px; width: min(40vw, 460px); opacity: 0.22; transform: rotate(-12deg); }
.pillar-right .atmosphere-echo { right: auto; left: -100px; transform: rotate(12deg); }
.pillar-center .atmosphere-echo { right: auto; left: -165px; }
.atmosphere-echo svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.3; }
.atmosphere-landscape { position: absolute; bottom: 0; left: 0; width: 100%; height: 220px; stroke: currentColor; stroke-width: 1; opacity: 0.28; mask-image: linear-gradient(to bottom, transparent, #000 38%, #000); }
.chapter-atmosphere :is(path, circle, ellipse, rect) { vector-effect: non-scaling-stroke; }
.chapter-atmosphere .horizon-core { fill: var(--bg); stroke: none; }
.s-chesed .atmosphere-landscape { color: #e9dce9; opacity: 0.32; }
.s-gevurah .atmosphere-landscape { stroke-dasharray: none; }
.s-netzach .atmosphere-landscape { opacity: 0.32; }
.s-hod .atmosphere-echo { top: 42%; opacity: 0.24; }
.s-yesod .atmosphere-echo { opacity: 0.2; }
.js .chapter:not(.is-in-view) .chapter-atmosphere * { animation-play-state: paused; }
@media (max-width: 767px) {
.atmosphere-echo, .pillar-right .atmosphere-echo, .pillar-center .atmosphere-echo { top: 46%; left: auto; right: -110px; width: 260px; opacity: 0.16; }
.atmosphere-landscape { height: 130px; width: 760px; left: 50%; transform: translateX(-50%); opacity: 0.22; }
.chapter { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { .chapter-atmosphere * { animation: none !important; } }

/* 거대한 상시 합성 레이어 대신 화면 크기에 맞춘 정적 성운을 사용합니다. */
.sky::before, .sky::after { inset: 0; rotate: none; scale: none; animation: none; }
.deep-nebula span { width: min(85vw, 1100px); height: min(65vh, 700px); animation: none; }
.deep-nebula span:nth-child(2) { width: min(70vw, 900px); }
.celestial-halo { width: min(95vw, 1000px); height: min(95vw, 1000px); left: -45%; top: -25%; box-shadow: none; animation: none; }
/* 화면 밖 장식은 일시정지에 그치지 않고 합성 대상에서도 제외합니다. */
.js .chapter:not(.is-in-view) .chapter-atmosphere { visibility: hidden; }
.js .chapter:not(.is-in-view) :is(.chapter-sigil *, .boundary-orbit::before, .orb .p-idle, .contact-satellite, .contact-core),
.js .hero-tree:not(.is-in-view) :is(.cosmic-orbits span, .path-signal, .node-echo, .node-ring, .node-aura) { animation: none; }

/* 작은 빛과 문양만 반응시켜 전체 화면 크기의 합성 레이어를 추가하지 않습니다. */
.pointer-aura { position: fixed; top: 0; left: 0; width: 140px; height: 140px; z-index: 4; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgb(205 181 233 / 0.055), transparent 67%); opacity: 0; transition: opacity 0.35s; contain: strict; }
.pointer-aura.is-visible { opacity: 1; }
.pointer-ripple { position: fixed; width: 92px; height: 92px; border: 1px solid rgb(211 187 236 / 0.42); border-radius: 50%; z-index: 90; pointer-events: none; }
.chapter-sigil, .project-cover, .artwork-card > a { transition: transform 0.45s var(--ease-out-expo); }
.is-pointer-near:is(.chapter-sigil, .project-cover, .artwork-card > a) { transform: perspective(700px) rotateX(var(--pointer-rx, 0deg)) rotateY(var(--pointer-ry, 0deg)); }
.music-control { position: fixed; z-index: 60; bottom: 18px; left: clamp(16px, 3vw, 40px); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 0; border-bottom: 1px solid rgb(190 168 214 / 0.35); border-radius: 0; color: var(--text-2); background: rgb(5 4 8 / 0.92); font: 11px var(--font-mono); letter-spacing: 0.05em; cursor: pointer; transition: color 0.25s, border-color 0.25s; }
.music-control:hover { color: var(--text); border-color: var(--c1); }
.music-control[hidden] { display: none; }
.music-wave { display: inline-flex; align-items: center; gap: 3px; height: 14px; }
.music-wave i { display: block; width: 1px; height: 5px; background: var(--c1); transform-origin: center; }
.music-wave i:nth-child(2) { height: 12px; }
.music-wave i:nth-child(3) { height: 8px; }
@media (prefers-reduced-motion: no-preference) {
.music-control.is-playing .music-wave i { animation: ambient-wave 1.2s ease-in-out infinite alternate; }
.music-control.is-playing .music-wave i:nth-child(2) { animation-delay: -0.4s; }
.music-control.is-playing .music-wave i:nth-child(3) { animation-delay: -0.8s; }
}
@keyframes ambient-wave { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
.pointer-aura, .pointer-ripple { display: none; }
.is-pointer-near:is(.chapter-sigil, .project-cover, .artwork-card > a) { transform: none; }
}

@media (hover: hover) and (pointer: fine) { .chapter .chapter-sigil { pointer-events: auto; } }

/* 탐색 바와 겹치지 않는 오른쪽 상단에 소리 설정을 모읍니다. */
.audio-controls { position: fixed; z-index: 60; top: 64px; right: clamp(16px, 3vw, 40px); display: flex; align-items: center; gap: 0; padding: 0 4px; background: rgb(5 4 8 / 0.92); border-bottom: 1px solid rgb(190 168 214 / 0.35); }
.audio-controls .music-control, .audio-controls .sound-control { position: static; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 0; background: transparent; color: var(--text-2); font: 11px var(--font-mono); letter-spacing: 0.03em; cursor: pointer; transition: color 0.25s; }
.audio-controls .sound-control { border-left: 1px solid var(--line); }
.audio-controls button:hover { color: var(--text); }
.audio-controls button[hidden] { display: none; }
@media (max-width: 600px) {
.audio-controls { top: 60px; right: 12px; }
.audio-controls .music-control, .audio-controls .sound-control { padding-inline: 9px; font-size: 10px; }
}
/* 첫 화면의 제목과 본문의 탐색 바가 소리 설정에 가리지 않게 합니다. */
.audio-controls { top: 12px; }
.topbar.is-shown ~ .audio-controls { top: 64px; }
@media (max-width: 600px) {
.audio-controls { top: 8px; }
.topbar.is-shown ~ .audio-controls { top: 60px; }
.hero-tree { padding-top: 72px; }
}

/* 장면은 클릭과 읽기를 방해하지 않는 단일 배경 버퍼로 표시합니다. */
.chapter-cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; contain: strict; }
