/* ==========================================================
   페이지투웹 kit · 디자인 "책자" (book) — 2026-11-16 다시 꾸밈. page.css 다음에 읽는다.
   생김새: 인쇄 연차보고서. 화면 폭 42%의 세로 축(--bk-ax)에서 제목·본문이 시작하고, 왼쪽 42%는 사진·큰 수치·짧은 메모 자리.
     흰 종이 + 포장 주색(accent) 면 + 포장 띠 색(accent2) 면, 두 도 인쇄처럼 통짜 색만 쓴다.
     선 · 그림자 · 그라데이션 · 흐림 · 제목 위 작은 라벨 · 01/02 번호 · 고정폭 글꼴 없음. 칸 구분은 바탕 한 단계 차이로.
   글꼴: Wanted Sans(SIL OFL 1.1, engine/kit/fonts/book-WantedSans-var.woff2) 한 가지로 제목·본문·숫자를 다 쓴다.
   색: 고객 색은 content.js theme에서 온다. 글자색·어두운 면도 accent를 조금 섞어 만든다(제약은 남색 기운, 화장품은 붉은 기운).
   ========================================================== */

@font-face { font-family: "BK Sans"; src: url("../fonts/book-WantedSans-var.woff2") format("woff2"); font-weight: 400 1000; font-display: swap; }

:root {
  --bk-bar: 72px;
  --bk-m: clamp(20px, 3.4vw, 48px);           /* 바깥 여백 한 쌍 */
  --bk-tabw: 46px;                             /* 오른쪽 색인 탭 폭 */
  --bk-ax: 42vw;                               /* 세로 축 */
  --bk-right: calc(var(--bk-tabw) + var(--bk-m));
  --bk-paper: #ffffff;
  --bk-tone: color-mix(in srgb, var(--accent) 6%, #f2f3f4);   /* 바탕 한 단계 */
  --bk-ink: color-mix(in srgb, var(--accent) 16%, #111216);
  --bk-soft: color-mix(in srgb, var(--bk-ink) 72%, #fff);
  --bk-dark: color-mix(in srgb, var(--accent) 26%, #0c0d10);
  --bk-sans: "BK Sans", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --f-body: var(--bk-sans);
  --f-num: var(--bk-sans);
  --f-mono: var(--bk-sans);
  --ink: var(--bk-ink);
  --muted: var(--bk-soft);
  /* 글자 크기 다섯 단계 */
  --t-small: 14px;
  --t-body: clamp(17px, 1rem + .2vw, 19px);
  --t-lead: clamp(21px, 1.1rem + .7vw, 28px);
  --t-head: clamp(28px, 1rem + 1.7vw, 48px);
  --t-display: clamp(40px, 1rem + 2.9vw, 72px); /* 2026-11-21: 116 → 72 (쓸데없이 큰 글씨 줄임) */
  --t-stat: clamp(56px, 1.5rem + 3.8vw, 96px); /* 대표 수치만 */
  --wipe: cubic-bezier(.77, 0, .18, 1);
}
html, body { height: 100%; overflow: hidden; }
h1, h2, h3, .bk-statement, .bk-lede { word-break: keep-all; }
body { background: var(--bk-paper); color: var(--bk-ink); font-family: var(--bk-sans); font-size: var(--t-body); -webkit-font-smoothing: antialiased; }
main { display: block; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.bk { position: fixed; inset: 0; background: var(--bk-paper); }
.bk-track {
  position: absolute; inset: 0; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; outline: none;
}
.bk-track::-webkit-scrollbar { display: none; }
.bk-ch {
  position: relative; flex: 0 0 100%; height: 100%; background: var(--bk-paper);
  overflow-y: auto; overflow-x: hidden; scroll-snap-align: start; scroll-snap-stop: always;
  scroll-behavior: smooth; scrollbar-width: thin; view-timeline: --ch inline;
}

/* ---------- 상단 줄: 로고 · 목차(축 위) ---------- */
.topbar.bk-bar {
  height: var(--bk-bar); padding: 0 var(--bk-right) 0 var(--bk-m); justify-content: flex-start;
  background: var(--bk-paper); box-shadow: none; backdrop-filter: none; color: var(--bk-ink); /* page.css 덮어쓰기 taste-skill-ignore */
  transition: background-color .45s ease, color .45s ease;
}
.bk-bar[data-tone="accent"] { background: var(--accent); color: #fff; }
.bk-bar[data-tone="dark"], .bk-bar.toc-open { background: var(--bk-dark); color: #fff; }
.bk-bar[data-tone="accent"] .logo, .bk-bar[data-tone="dark"] .logo, .bk-bar.toc-open .logo { filter: brightness(0) invert(1); }
.bk-mark { display: inline-flex; align-items: center; min-height: 44px; }
.bk-menu {
  position: absolute; left: var(--bk-ax); min-height: 44px; padding: 0; display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; cursor: pointer;
  font: 650 var(--t-body)/1 var(--bk-sans); letter-spacing: -.01em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: transparent; transition: text-decoration-color .25s ease;
}
.bk-menu:hover { text-decoration-color: currentColor; }
.bk-menu i { width: 20px; height: 10px; border-block: 2.5px solid currentColor; transition: height .3s var(--ease); }
.bk-menu[aria-expanded="true"] i { height: 2.5px; border-bottom: 0; }

/* ---------- 오른쪽 가장자리 색인 탭 (살아 있는 것) ---------- */
.bk-tabs {
  position: absolute; top: var(--bk-bar); right: 0; bottom: 0; z-index: 22; width: var(--bk-tabw);
  display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px;
}
.bk-tab {
  position: relative; flex: 1; min-height: 44px; padding: 0; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: 650 var(--t-small)/1 var(--bk-sans);
  transform: translateX(10px); transition: transform .4s var(--ease), background-color .3s ease;
}
.bk-tab:nth-child(even) { background: var(--accent-2); color: var(--bk-ink); }
.bk-tab span { position: absolute; inset: 0 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 4px; writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; overflow: hidden; letter-spacing: .02em; font-size: 14px; font-weight: 700; }
.bk-tab span b { font-weight: 800; letter-spacing: 0; padding-bottom: 2px; }
.bk-tab:hover { transform: translateX(4px); }
.bk-tab.is-here { transform: translateX(-14px); background: var(--bk-ink); color: #fff; }
.bk-tab:active { transform: translateX(-6px); }
/* 파랑 면 위에서 파랑 탭이 묻히지 않게: 흰 탭에 파랑 글자 */
.bk[data-tone="accent"] .bk-tab:not(:nth-child(even)):not(.is-here) { background: #fff; color: var(--accent); }
.bk-tab:focus-visible { outline-offset: -3px; outline-color: var(--bk-ink); }
.bk[data-tone="dark"] .bk-tab.is-here { background: #fff; color: var(--bk-ink); }

/* ---------- 넘김 단추 ---------- */
.bk-turn { position: absolute; right: calc(var(--bk-tabw) + 18px); bottom: 18px; z-index: 21; display: flex; gap: 4px; }
.bk-turn-btn {
  width: 52px; height: 52px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--bk-ink); color: #fff; transition: transform .3s var(--ease), background-color .25s ease, opacity .3s;
}
.bk-turn-btn svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.bk-turn-btn:hover { background: var(--accent); }
.bk-turn-btn.is-next:hover svg { transform: translateX(3px); }
.bk-turn-btn.is-prev:hover svg { transform: translateX(-3px); }
.bk-turn-btn:active { transform: scale(.94); }
.bk-turn-btn:disabled { opacity: 0; pointer-events: none; }
.bk[data-tone="accent"] .bk-turn-btn:hover, .bk[data-tone="dark"] .bk-turn-btn { background: #fff; color: var(--bk-ink); }

/* ---------- 목차 ---------- */
.bk-toc {
  position: absolute; inset: var(--bk-bar) 0 0 0; z-index: 25; overflow-y: auto;
  padding: 4vh var(--bk-right) 48px var(--bk-ax); background: var(--bk-dark); color: #fff;
  animation: bk-toc .55s var(--wipe) both;
}
@keyframes bk-toc { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.bk-toc-title { position: absolute; left: var(--bk-m); top: 4vh; margin: 0; max-width: calc(var(--bk-ax) - var(--bk-m) * 2); font-size: var(--t-lead); font-weight: 650; color: color-mix(in srgb, #fff 78%, transparent); }
.bk-toc ol { margin: 0; padding: 0; list-style: none; }
.bk-toc button {
  display: block; width: 100%; padding: .12em 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: 700 var(--t-head)/1.12 var(--bk-sans); letter-spacing: -.035em; transition: transform .35s var(--ease), color .2s;
}
.bk-toc button:hover, .bk-toc button:focus-visible { transform: translateX(14px); }
.bk-toc button.is-here { color: var(--accent-2); }
.bk.toc-open .bk-turn, .bk.toc-open .bk-tabs { opacity: 0; pointer-events: none; }

/* ---------- 공통 글자 ---------- */
.bk-page { position: relative; min-height: 100%; padding: calc(var(--bk-bar) + 6vh) var(--bk-right) 12vh var(--bk-m); }
.bk-axis { margin-left: calc(var(--bk-ax) - var(--bk-m)); max-width: 760px; }
.bk-h { margin: 0 0 28px; font-size: var(--t-head); font-weight: 720; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.bk-h3 { margin: 0 0 24px; font-size: var(--t-lead); font-weight: 720; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.bk-display { margin: 0; font-size: var(--t-display); font-weight: 760; line-height: .96; letter-spacing: -.045em; }
.bk-lede, .bk-statement { margin: 0; font-size: var(--t-lead); font-weight: 560; line-height: 1.38; letter-spacing: -.02em; text-wrap: pretty; }
.bk-cols { columns: 2 17em; column-gap: 40px; line-height: 1.6; }
.bk-cols p, .bk-body p { margin: 0 0 .9em; break-inside: avoid; }
.bk-figs { margin: 28px 0 0; max-width: 30em; font-size: var(--t-lead); font-weight: 480; line-height: 1.4; letter-spacing: -.02em; color: var(--bk-soft); }
.bk-figs b { font-weight: 760; color: var(--bk-ink); white-space: nowrap; }
.bk-btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 26px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: 700 var(--t-body)/1 var(--bk-sans);
  transition: background-color .25s ease, transform .25s var(--ease);
}
.bk-btn svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.bk-btn:hover { background: var(--bk-ink); }
.bk-btn:hover svg { transform: translateX(4px); }
.bk-btn:active { transform: scale(.97); }

/* ---------- 표지 ---------- */
.bk-cover { position: relative; height: 100%; min-height: 600px; display: grid; grid-template-rows: 58% 1fr; overflow: hidden; } /* 제목이 작아져 사진 띠를 키움 */
.bk-mast { position: relative; display: grid; grid-template-columns: var(--bk-ax) 1fr; margin-top: var(--bk-bar); }
.bk-mast.is-photos { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-right: var(--bk-tabw); }
.bk-tile { position: relative; overflow: hidden; background: var(--bk-tone); clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--wipe); transition-delay: calc(var(--t0, .1s) + var(--i) * .08s); }
.bk-tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 2.4s var(--ease); transition-delay: calc(var(--t0, .1s) + var(--i) * .08s); }
.bk-tile.is-color { background: var(--accent); color: #fff; }
.bk-tile.is-color p { position: absolute; left: 20px; right: 16px; bottom: 18px; margin: 0; display: grid; gap: 6px; font-size: var(--t-small); font-weight: 600; }
.bk-tile.is-color p b { font-size: var(--t-head); font-weight: 760; letter-spacing: -.035em; line-height: 1; }
.bk-tile.is-band { background: var(--accent-2); color: var(--bk-ink); margin-right: var(--bk-tabw); display: flex; align-items: flex-end; padding: 0 0 22px clamp(28px, 4vw, 64px); }
.bk-tile.is-band { flex-direction: column; align-items: flex-start; justify-content: space-between; padding-top: 28px; }
.bk-tile.is-band b { font-size: var(--t-display); font-weight: 820; letter-spacing: -.04em; line-height: .9; }
.bk-recipe { margin: 0; display: grid; gap: 2px; font-size: var(--t-lead); font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.bk-tile.is-band small { font-size: .42em; margin-left: .08em; letter-spacing: 0; }
.bk-pack { position: absolute; left: 0; width: var(--bk-ax); top: 5%; height: 132%; display: flex; justify-content: center; pointer-events: none; }
.bk-pack img { height: 100%; width: auto; max-width: 92%; object-fit: contain; object-position: 50% 100%; opacity: 0; transform: translateY(-40px); transition: transform 1s var(--spring) calc(var(--t0, .1s) + .55s), opacity .4s ease calc(var(--t0, .1s) + .55s); }
.bk-stand { position: absolute; left: var(--bk-m); bottom: 40px; width: calc(var(--bk-ax) - var(--bk-m) * 2); margin: 0; opacity: 0; transition: opacity .7s ease calc(var(--t0, .1s) + 1s); }
.bk-stand p { margin: 0; max-width: 34ch; font-size: var(--t-body); line-height: 1.45; color: var(--bk-soft); }
.bk-quick { margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.bk-quick div { display: flex; flex-direction: column-reverse; gap: 2px; }
.bk-quick dt { font-size: var(--t-small); color: var(--bk-soft); }
.bk-quick dd { margin: 0; font-size: var(--t-lead); font-weight: 720; letter-spacing: -.02em; }
.bk-cover-main { align-self: center; margin-left: var(--bk-ax); padding: 0 var(--bk-right) 40px 0; }
.bk-title { margin: 0 0 18px; font-size: var(--t-display); font-weight: 760; line-height: .96; letter-spacing: -.05em; }
.bk-title .line { display: block; overflow: hidden; padding-bottom: .07em; }
.bk-title .line > span { display: block; transform: translateY(105%); transition: transform .95s var(--ease); transition-delay: calc(var(--t0, .1s) + .35s + var(--i) * .11s); }
.bk-tagline { margin: 0 0 26px; max-width: 26em; font-size: var(--t-lead); font-weight: 560; line-height: 1.3; letter-spacing: -.02em; opacity: 0; transition: opacity .7s ease calc(var(--t0, .1s) + .8s); }
.bk-cover .bk-btn { opacity: 0; transition: opacity .7s ease calc(var(--t0, .1s) + .9s), background-color .25s ease, transform .25s var(--ease); }

.bk.is-ready .bk-tile { clip-path: inset(0); }
.bk.is-ready .bk-tile img { transform: none; }
.bk.is-ready .bk-pack img { opacity: 1; transform: none; }
.bk.is-ready .bk-title .line > span { transform: none; }
.bk.is-ready .bk-tagline, .bk.is-ready .bk-stand, .bk.is-ready .bk-cover .bk-btn { opacity: 1; }
.bk.is-skip { --t0: 0s; }

/* ---------- 소개: 축 오른쪽 큰 문단, 왼쪽 정사각 사진 + 메모 ---------- */
.bk-page.is-lead { display: grid; grid-template-columns: calc(var(--bk-ax) - var(--bk-m)) minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: center; }
.is-lead .bk-axis { grid-column: 2; grid-row: 1 / 3; margin: 0; }
.is-lead .bk-statement { margin-bottom: 40px; font-size: clamp(22px, 1rem + 1vw, 34px); line-height: 1.3; }
.bk-square { grid-column: 1; grid-row: 1; width: min(22vw, 320px); aspect-ratio: 1; overflow: hidden; background: var(--bk-tone); margin-top: 14vh; }
.bk-square img { width: 100%; height: 100%; object-fit: cover; }
.bk-note { grid-column: 1; grid-row: 2; margin: 28px 0 0; width: min(22vw, 320px); display: grid; gap: 14px; font-size: var(--t-small); line-height: 1.45; }
.bk-note > div { display: flex; flex-direction: column; gap: 2px; }
.bk-note dt { color: var(--bk-soft); }
.bk-note dd { margin: 0; font-weight: 650; font-size: var(--t-body); }

/* ---------- 사진 장 ①: 왼쪽 42% 사진 ---------- */
.bk-page.is-story { display: flex; align-items: center; padding-left: var(--bk-m); }
.bk-side { position: absolute; left: 0; top: var(--bk-bar); bottom: 0; width: calc(var(--bk-ax) - 40px); overflow: hidden; background: var(--bk-tone); }
.bk-side img { width: 100%; height: 100%; object-fit: cover; }
.is-story .bk-axis { padding: 4vh 0; }

/* ---------- 사진 장 ②: 주색 한 면 + 사진을 나눈 판 ---------- */
.bk-ch.is-mosaic { background: var(--accent); color: #fff; }
.bk-page.is-mosaic { display: grid; grid-template-columns: calc(var(--bk-ax) - var(--bk-m)) minmax(0, 1fr); gap: 0; align-items: center; }
.bk-mosaic-copy { padding-right: clamp(24px, 4vw, 64px); max-width: 34em; }
.bk-mosaic-copy .bk-body { line-height: 1.6; }
.bk-board {
  --g: 8px; --side: min(calc(100vw - var(--bk-ax) - var(--bk-right)), calc(100svh - var(--bk-bar) - 14vh));
  width: var(--side); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g);
}
.bk-cell { position: relative; aspect-ratio: 1; overflow: hidden; background: color-mix(in srgb, var(--accent) 70%, #000); }
.bk-cell img {
  position: absolute; width: calc(300% + 2 * var(--g)); height: calc(300% + 2 * var(--g)); max-width: none; object-fit: cover;
  left: calc(var(--c) * (-100% - var(--g))); top: calc(var(--r) * (-100% - var(--g)));
  transition: transform .6s var(--ease); transform-origin: calc(var(--c) * 50%) calc(var(--r) * 50%);
}
.bk-cell:hover img { transform: scale(1.06); }
.bk-cell.is-fact { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; background: var(--accent-2); color: var(--bk-ink); }
.bk-cell.is-fact:nth-child(9) { background: #fff; }
.bk-cell.is-fact span { font-size: var(--t-small); font-weight: 600; }
.bk-cell.is-fact b { font-size: clamp(20px, 1rem + 1vw, 32px); font-weight: 760; letter-spacing: -.03em; line-height: 1.05; }

/* ---------- 근거 장: 여는 면 ---------- */
.bk-page.is-opener { display: flex; flex-direction: column; justify-content: flex-start; gap: 48px; padding-left: var(--bk-ax); } /* 위에서부터 쌓는다(왼쪽 색 판과 맞춤) */
.bk-chno { margin: 0 0 18px; font-size: var(--t-lead); font-weight: 700; opacity: .8; }
/* 여는 면 오른쪽 위: 장마다 다른 얼굴 */
.bk-face { width: 100%; max-width: 820px; margin: 0; }
.bk-face.is-quote p { margin: 0; font-size: clamp(28px, 1rem + 1.9vw, 46px); font-weight: 720; line-height: 1.22; letter-spacing: -.035em; text-wrap: balance; }
.bk-face.is-quote p b { color: var(--accent); font-weight: 760; }
.bk-face.is-quote footer { margin-top: 18px; font-size: var(--t-small); font-weight: 600; color: var(--bk-soft); }
.bk-face-title { margin: 0 0 18px; font-size: var(--t-lead); font-weight: 720; letter-spacing: -.02em; }
.bk-face-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.bk-face-grid figure { margin: 0; padding: 22px 22px 16px; background: var(--bk-tone); }
.bk-mini { height: 150px; }
.bk-mini svg { width: 100%; height: 100%; overflow: visible; }
.bk-face-grid figcaption { margin-top: 12px; font-size: var(--t-small); font-weight: 650; }
.bk-face.is-picture { display: grid; gap: 14px; padding: 32px; background: var(--bk-tone); }
.bk-face.is-picture img { width: 100%; max-height: 40vh; object-fit: cover; }
.bk-face.is-drawn .tablet { width: min(100%, 520px); height: auto; overflow: visible; }
.bk-face.is-drawn .tab-mark { font: 800 22px var(--bk-sans); }
.bk-face.is-drawn .tab-cap { font: 600 14px var(--bk-sans); fill: var(--bk-soft); }
.bk-face figcaption { font-size: var(--t-small); color: var(--bk-soft); }
.bk-panel {
  position: absolute; left: 0; top: var(--bk-bar); width: calc(var(--bk-ax) - 40px);
  display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(48px, 8vh, 96px) clamp(24px, 3vw, 48px) clamp(40px, 6vh, 64px) var(--bk-m); /* 색 판은 내용 높이만큼 (이름 · 요약 · 이 장의 시험). 2026-11-21 전엔 화면 높이 전부 */
  background: var(--accent); color: #fff;
}
.is-band .bk-panel { background: var(--accent-2); color: var(--bk-ink); }
.bk-panel .bk-lede { margin-top: 22px; max-width: 22em; }
.bk-trials { margin: 40px 0 0; padding: 28px 0 0; list-style: none; display: grid; gap: 18px; max-width: 34em; border-top: 2px solid currentColor; }
.bk-trials li { display: grid; gap: 4px; }
.bk-trials b { font-size: var(--t-body); font-weight: 720; }
.bk-trials span { font-size: 16px; line-height: 1.45; opacity: .86; }
.bk-rows { width: 100%; max-width: 820px; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bk-rows a:focus-visible { outline-offset: -3px; }
.bk-rows a {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "num go" "what go" "vs go"; align-items: center; gap: 4px 20px;
  padding: 22px 24px; background: var(--bk-tone); color: var(--bk-ink); text-decoration: none;
  transition: background-color .25s ease, transform .35s var(--ease);
}
.bk-rows a:hover { background: color-mix(in srgb, var(--accent) 12%, #fff); transform: translateX(-6px); }
.bk-r-num { grid-area: num; font-size: var(--t-head); font-weight: 760; letter-spacing: -.04em; line-height: 1.05; color: var(--accent); }
.bk-r-what { grid-area: what; font-weight: 650; }
.bk-r-vs { grid-area: vs; color: var(--bk-soft); }
.bk-r-vs b { font-weight: 700; color: var(--bk-ink); }
.bk-r-go { grid-area: go; display: grid; place-items: center; width: 44px; height: 44px; }
.bk-r-go svg { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.bk-rows a:hover .bk-r-go svg { transform: translateY(4px); }

/* ---------- 근거 장: 펼침면 ---------- */
.bk-page.is-proof { display: grid; grid-template-columns: calc(var(--bk-ax) - var(--bk-m)) minmax(0, 1fr); align-items: start; scroll-margin-top: 0; }
.bk-page.is-proof .bk-axis { margin: 0; }
.bk-proof-fig { position: sticky; top: calc(var(--bk-bar) + 6vh); padding-right: 32px; }
.bk-stat { display: flex; flex-direction: column; gap: 12px; }
.bk-stat .num { font-size: var(--t-stat); font-weight: 780; line-height: .9; letter-spacing: -.05em; color: var(--accent); white-space: nowrap; }
.bk-stat .stat-text { font-size: var(--t-head); font-weight: 760; line-height: 1.05; letter-spacing: -.035em; color: var(--accent); }
.bk-stat .stat-label { font-size: var(--t-body); font-weight: 650; }
.bk-vs { margin: 18px 0 0; color: var(--bk-soft); }
/* 큰 수치 아래 연구 설계 한눈에 */
.bk-design { margin: 6vh 0 0; display: grid; gap: 0; max-width: 30em; }
.bk-design div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.bk-design div:nth-child(odd) { background: var(--bk-tone); margin-inline: -14px; padding-inline: 14px; }
.bk-design dt { font-size: var(--t-small); font-weight: 650; color: var(--bk-soft); padding-top: 2px; }
.bk-design dd { margin: 0; font-weight: 650; line-height: 1.45; }
.is-proof.is-color .bk-design div:nth-child(odd) { background: color-mix(in srgb, #fff 12%, transparent); }
.is-proof.is-color .bk-design dt { color: color-mix(in srgb, #fff 82%, transparent); }
.bk-vs b { font-weight: 720; color: var(--bk-ink); }
.bk-messages { margin: 0 0 32px; padding: 0 0 0 1.1em; display: grid; gap: 10px; line-height: 1.6; }
.bk-messages li::marker { color: var(--accent); }
.bk-messages b { color: var(--accent); }
.bk-figure .figure { margin: 0 0 18px; border: 0; border-radius: 0; background: var(--bk-tone); }
.bk-figure .figure figcaption { font-size: var(--t-small); color: var(--bk-soft); }
.bk-figure .figure figcaption .p { font-family: var(--bk-sans); }
.bk-figure .card-eyebrow { font-size: var(--t-small); color: var(--bk-soft); font-weight: 600; }
.bk-figure .chart .sub { font-family: var(--bk-sans); }
.bk-link-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
  font: 700 var(--t-body)/1 var(--bk-sans); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.bk-link-btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.bk-link-btn:hover svg { transform: translateX(4px); }
/* 짝수 펼침면: 포장 주색 한 면 */
.bk-page.is-proof.is-color { background: var(--accent); color: #fff; }
.is-proof.is-color .bk-stat .num, .is-proof.is-color .bk-stat .stat-text, .is-proof.is-color .bk-messages b { color: #fff; }
.is-proof.is-color .bk-vs { color: color-mix(in srgb, #fff 82%, transparent); }
.is-proof.is-color .bk-vs b { color: #fff; }
.is-proof.is-color .bk-messages li::marker { color: var(--accent-2); }
.is-proof.is-color .bk-figure .figure { background: #fff; color: var(--bk-ink); }

/* ---------- 마지막 면: 이름 · 한 줄 · 팝업 링크 ---------- */
.bk-ch.is-end { background: var(--bk-dark); color: #fff; }
.bk-end { min-height: 100%; display: flex; flex-direction: column; padding-top: var(--bk-bar); }
.bk-end-name { margin: 10vh var(--bk-right) 0 var(--bk-ax); font-size: var(--t-display); font-weight: 800; line-height: 1; letter-spacing: -.045em; color: var(--accent-2); } /* 보통 제목 크기(예전: 화면 폭을 채우는 이름) */
.bk-end-row { flex: 1; display: grid; grid-template-columns: calc(var(--bk-ax) - var(--bk-m)) minmax(0, 1fr); align-items: start; padding: 6vh var(--bk-right) 8vh var(--bk-m); }
.bk-end-title { margin: 0; padding-right: 32px; font-size: var(--t-lead); font-weight: 600; line-height: 1.35; letter-spacing: -.02em; color: color-mix(in srgb, #fff 86%, transparent); }
.bk-end-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.bk-end-link {
  display: inline-flex; align-items: center; gap: 16px; min-height: 48px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: left;
  font: 700 clamp(22px, 1rem + .9vw, 34px)/1.2 var(--bk-sans); letter-spacing: -.03em; transition: transform .35s var(--ease), color .2s;
}
.bk-end-link svg { width: .6em; height: .6em; flex: none; }
.bk-end-link:hover { transform: translateX(12px); color: var(--accent-2); }
.bk-end .footer { padding: 34px var(--bk-right) 96px var(--bk-m); background: color-mix(in srgb, var(--bk-dark) 80%, #000); font-size: 16px; line-height: 1.6; }
.bk-end .footer ul { max-width: 60ch; }
.bk-end .footer-ae { border-radius: 0; }

/* ---------- 장 안의 등장 ---------- */
.bk .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.bk .reveal.is-in { opacity: 1; transform: none; }

/* 넘길 때: 큰 사진·큰 이름이 옆에서 살짝 늦게 따라온다 (지원하는 브라우저만) */
@supports (animation-timeline: view()) {
  .bk-side img, .bk-end-name { animation: bk-drift linear both; animation-timeline: --ch; }
  @keyframes bk-drift { from { translate: 10% 0; } 50% { translate: 0 0; } to { translate: -10% 0; } }
}

/* ---------- 태블릿·휴대폰: 축이 왼쪽 여백으로 접히고, 색인 탭은 아래 가장자리 색 막대가 된다 ---------- */
@media (max-width: 900px) {
  :root { --bk-bar: 60px; --bk-tabw: 0px; --bk-ax: var(--bk-m); --t-display: 40px; --t-head: 28px; --t-stat: 56px; }
  .bk-menu { position: static; margin-left: auto; }
  .topbar.bk-bar { padding-right: var(--bk-m); }
  .bk-tabs { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 46px; flex-direction: row; gap: 3px; padding: 0; background: var(--bk-paper); }
  .bk[data-tone="accent"] .bk-tabs { background: var(--accent); }
  .bk[data-tone="dark"] .bk-tabs { background: var(--bk-dark); }
  .bk-tab, .bk-tab:nth-child(even), .bk-tab.is-here, .bk[data-tone="accent"] .bk-tab:not(:nth-child(even)):not(.is-here) { min-height: 0; transform: none; background: transparent; color: transparent; }
  .bk-tab::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--accent); transition: height .35s var(--ease); }
  .bk-tab:nth-child(even)::before { background: var(--accent-2); }
  .bk-tab.is-here::before { height: 26px; background: var(--bk-ink); }
  .bk[data-tone="accent"] .bk-tab:not(:nth-child(even))::before { background: color-mix(in srgb, var(--accent) 60%, #fff); }
  .bk[data-tone="accent"] .bk-tab.is-here::before, .bk[data-tone="dark"] .bk-tab.is-here::before { background: #fff; }
  .bk-tab span { display: none; }
  .bk-turn { display: none; } /* 휴대폰은 옆으로 밀기 + 아래 색 막대로 넘긴다 */
  .bk-toc { padding: 92px var(--bk-m) 80px; }
  .bk-toc-title { top: 24px; max-width: none; }
  .bk-page { padding: calc(var(--bk-bar) + 28px) var(--bk-m) 132px; }
  .bk-axis { margin-left: 0; }

  .bk-cover { grid-template-rows: 44% 1fr; }
  .bk-mast { grid-template-columns: 50% 1fr; }
  .bk-mast.is-photos { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); margin-right: 0; }
  .bk-mast.is-photos .bk-tile:nth-child(n+4) { display: none; }
  .bk-mast.is-photos .bk-tile.is-color { display: block; }
  .bk-tile.is-band { margin-right: 0; padding: 0 0 14px 14px; }
  .bk-tile.is-band b { font-size: 40px; }
  .bk-tile.is-color p b { font-size: 26px; }
  .bk-pack { width: 50%; top: 7%; bottom: 3%; height: auto; padding: 0 10px; } /* 병이 칸 안에 다 보이게 */
  .bk-pack img { width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 100%; }
  .bk-tile.is-band { padding-top: 16px; }
  .bk-recipe { font-size: 14px; }
  .bk-quick { margin-bottom: 14px; gap: 10px 22px; }
  .bk-quick dd { font-size: 18px; }
  .bk-face.is-quote p { font-size: 26px; }
  .bk-mini { height: 120px; }
  .bk-face.is-picture { padding: 18px; }
  .bk-page.is-opener { gap: 28px; }
  .bk-design { margin-top: 24px; }
  .bk-stand, .bk-cover.has-photos .bk-stand { position: static; width: auto; max-width: none; margin: 18px var(--bk-m) 0; font-size: 16px; }
  .bk-cover { display: flex; flex-direction: column; }
  .bk-mast { height: 42%; flex: none; }
  .bk-cover-main { align-self: stretch; margin: auto 0 0; padding: 0 var(--bk-m) 84px; }
  .bk-cover .bk-btn { width: 100%; justify-content: space-between; }

  .bk-page.is-lead, .bk-page.is-mosaic, .bk-page.is-proof { display: block; }
  .is-lead .bk-statement { font-size: 22px; }
  .bk-square { width: 62%; aspect-ratio: 4 / 5; margin: 0 0 0 auto; }
  .bk-note { width: auto; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 20px 0 32px; }
  .is-lead .bk-axis { margin-top: 0; }
  .bk-page.is-lead { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
  .bk-page.is-lead > .bk-axis { order: 3; }
  .bk-page.is-lead > .bk-square { order: 1; margin-top: 32px; }
  .bk-page.is-lead > .bk-note { order: 0; }

  .bk-page.is-story { display: block; padding-top: 0; }
  .bk-side { position: relative; top: auto; width: auto; height: 48svh; margin: var(--bk-bar) calc(var(--bk-m) * -1) 28px; }
  .bk-cols { columns: 1; }
  .bk-board { --side: 100%; width: 100%; margin-top: 28px; --g: 6px; }
  .bk-mosaic-copy { padding: 0; }
  .bk-cell.is-fact { padding: 10px; }
  .bk-cell.is-fact b { font-size: 18px; }
  .bk-cell.is-fact span { font-size: 13px; }

  .bk-page.is-opener { display: block; padding-top: var(--bk-bar); }
  .bk-panel { position: relative; top: auto; width: auto; min-height: 42svh; margin: 0 calc(var(--bk-m) * -1) 24px; padding: 32px var(--bk-m); }
  .bk-rows a { padding: 18px 16px; }
  .bk-proof-fig { position: static; padding: 0 0 26px; }
  .bk-figure .figure { padding: 12px; }

  .bk-end-name { margin-right: var(--bk-m); }
  .bk-end-row { display: block; padding: 32px var(--bk-m) 40px; }
  .bk-end-title { padding: 0 0 22px; }
  .bk-end-link { font-size: 26px; }
  .bk-end .footer { padding: 28px var(--bk-m) 120px; }
  .bk-end .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 차분한 연출: 이동·확대를 빼고 서서히 나타나기만 ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .bk-side img, html:not(.force-motion) .bk-end-name { animation: none; }
  html:not(.force-motion) .bk-title .line > span { transform: none; opacity: 0; transition: opacity .8s ease .2s; }
  html:not(.force-motion) .bk.is-ready .bk-title .line > span { opacity: 1; }
  html:not(.force-motion) .bk-tile { clip-path: none; opacity: 0; transition: opacity .8s ease; }
  html:not(.force-motion) .bk.is-ready .bk-tile { opacity: 1; }
  html:not(.force-motion) .bk-tile img, html:not(.force-motion) .bk-pack img, html:not(.force-motion) .bk .reveal { transform: none; }
  html:not(.force-motion) .bk-ch { scroll-behavior: auto; }
}
