/* =====================================================================
   베싸 박정은 — 육아 전문가 소개 페이지
   Design system: warm editorial (cream canvas · serif display w400 ·
   humanist sans body · deep violet accent · depth by surface, not shadow)
   Color tokens follow design-system/베싸 컬러 시스템.dc.html (v2, 2026-08-27).
   ===================================================================== */

:root {
  /* Surfaces (cream, unchanged) */
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --card: #efe9de;
  --cream-strong: #e8e0d2;
  --white: #ffffff;

  /* Surfaces (dark, violet-shifted) */
  --dark: #17141c;
  --dark-elev: #221d2b;
  --dark-elev-2: #2e2839;
  --dark-soft: #1c1823;
  --dark-line: rgba(250, 249, 245, 0.14);

  /* Ink */
  --ink: #141413;
  --body-strong: #252523;
  --body: #3d3d3a;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --hairline: #e6dfd8;
  --hairline-soft: #ebe6df;
  --on-dark: #faf9f5;
  --on-dark-soft: #aaa4b6;
  --on-dark-hair: rgba(250, 249, 245, 0.14);

  /* 상태 색상 — 지금은 폼 에러 문구 하나뿐이지만 raw hex 대신 토큰으로 */
  --error: #b3261e;

  /* Brand accent — deep violet (primary) */
  --primary: #4a1b6c;
  --primary-hover: #5c2683;
  --primary-active: #35134e;
  --primary-ink: #2a0f3e;
  --primary-soft: #efe9f3;
  --primary-soft-strong: #e1d6ea;
  --primary-border: #cbbad8;
  --on-primary: #fffdf8;

  /* Secondary accent — gold / yellow. 면(버튼·아이콘·밑줄)에만, 크림 배경 위 텍스트 금지 */
  --accent-gold: #ffc800;
  --accent-yellow: #ffe600;
  --gold-deep: #8a5f00;
  --gold-soft: #fbf1d6;
  --yellow-soft: #fdf6c9;
  --accent-teal: #2e7a6c;

  /* 콘텐츠 시리즈 그룹(A/B/C/D) 태깅용 색 */
  --cat-a: #a6415e;
  --cat-a-soft: #f7e7eb;
  --cat-b: #8a5f00;
  --cat-b-soft: #fbf1d6;
  --cat-c: #2e7a6c;
  --cat-c-soft: #e4efec;
  --cat-d: #4a5ca6;
  --cat-d-soft: #e7eaf6;
  --cat-a-tint: rgba(166, 65, 94, 0.2);
  --cat-b-tint: rgba(138, 95, 0, 0.2);
  --cat-c-tint: rgba(46, 122, 108, 0.18);
  --cat-d-tint: rgba(74, 92, 166, 0.2);
  --cat-a-cover: linear-gradient(160deg, #3a232a, #1c1720);
  --cat-b-cover: linear-gradient(160deg, #3b3324, #1c1720);
  --cat-c-cover: linear-gradient(160deg, #1f2f2b, #171d1c);
  --cat-d-cover: linear-gradient(160deg, #262a3f, #1a1823);

  /* Type */
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Apple Myungjo', Georgia, 'Times New Roman', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', system-ui, sans-serif;

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-pill: 9999px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --nav-h: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Motion — guide/작업_프로세스/내비게이션_전환_팝업_가이드.md §1 참고, 새 지속시간을 짓지 말고 이 중에서 고른다 */
  --duration-fast: .16s;       /* 단순 색상/배경/보더 변화 */
  --duration-base: .2s;        /* 다이얼로그·드롭다운 열고 닫기, transform+opacity */
  --duration-slow: .3s;        /* 카드 hover 등 공간감 있는 움직임 */
  --duration-cinematic: .8s;   /* 이미지 hover 확대, 스크롤 등장(.reveal) */

  /* Elevation — 같은 문서 §2. "shadow rare"가 원칙이라 이 4단계 밖의 값을 새로 만들지 않는다 */
  --shadow-xs: 0 1px 2px rgba(20, 20, 19, .06);
  --shadow-sm: 0 6px 20px rgba(20, 20, 19, .14);
  --shadow-md: 0 12px 40px rgba(20, 20, 19, .10);
  --shadow-lg: 0 30px 80px rgba(20, 20, 19, .35);

  /* Z-index — 같은 문서 §2 */
  --z-sticky: 50;
  --z-dropdown: 60;
  --z-toast: 900;
  --z-modal: 1000;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--canvas);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv01';
}

/* Paper grain — very faint, fixed, never interactive */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--body-strong); font-weight: 600; }
::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); }

.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.012em;
}

.display-xl { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.24; }
.display-lg { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.26; }
.display-md { font-size: clamp(25px, 2.6vw, 34px); line-height: 1.32; }
.display-sm { font-size: clamp(21px, 2vw, 26px); line-height: 1.4; }

.title-lg { font-family: var(--sans); font-weight: 600; font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.title-md { font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); }

.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.75; color: var(--body-strong); }
.small { font-size: 14px; line-height: 1.6; }
.muted { color: var(--muted); }
.muted-soft { color: var(--muted-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-active);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.on-dark .eyebrow { color: var(--accent-gold); }

.serif-num {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.band-soft { background: var(--surface-soft); }
.band-dark { background: var(--dark); color: var(--on-dark-soft); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--on-dark); }
.band-dark strong { color: var(--on-dark); }
/* --primary(2.3:1)는 다크 표면 위에서 거의 안 보여 포커스 링은 서브컬러(골드)로 교체 */
.band-dark a:focus-visible, .band-dark button:focus-visible, .band-dark summary:focus-visible,
.choice:focus-visible, .choice a:focus-visible,
.content-card--channel:focus-visible,
body.theater a:focus-visible, body.theater button:focus-visible, body.theater summary:focus-visible {
  outline-color: var(--accent-gold);
}
.hairline-top { border-top: 1px solid var(--hairline); }
.hairline-bottom { border-bottom: 1px solid var(--hairline); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--canvas);
  --btn-fg: var(--ink);
  --btn-border: var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary {
  /* --primary(#4a1b6c) + 흰 글자는 12.3:1(AAA)이라 기본값 그대로 사용 */
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  --btn-border: var(--primary);
}
.btn-primary:hover { --btn-bg: var(--primary-hover); --btn-border: var(--primary-hover); }
.btn-primary:active { --btn-bg: var(--primary-active); --btn-border: var(--primary-active); }

.btn-secondary:hover { --btn-bg: var(--surface-soft); --btn-border: #d9d1c6; }

.btn-ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  --btn-border: var(--ink);
}
.btn-ink:hover { --btn-bg: #2a2926; --btn-border: #2a2926; }

.btn-on-dark {
  --btn-bg: var(--dark-elev);
  --btn-fg: var(--on-dark);
  --btn-border: var(--dark-line);
}
.btn-on-dark:hover { --btn-bg: var(--dark-elev-2); }

.btn-sm { min-height: 38px; padding: 9px 16px; font-size: 14px; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  z-index: var(--z-toast);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) ease, transform var(--duration-base) ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.text-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.text-link:hover { color: var(--primary-active); border-color: currentColor; }
.text-link svg { width: 15px; height: 15px; transition: transform var(--duration-base) var(--ease-out); }
.text-link:hover svg { transform: translateX(3px); }

.inline-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-border);
  text-underline-offset: 3px;
  transition: color var(--duration-fast) ease, text-decoration-color var(--duration-fast) ease;
}
.inline-link:hover { color: var(--primary-active); text-decoration-color: currentColor; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(250, 249, 245, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand small {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}
.nav-tabs a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--r-pill);
  transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}
.nav-tabs a:hover { color: var(--ink); }
.nav-tabs a[aria-current="page"] {
  color: var(--ink);
  background: var(--canvas);
  box-shadow: var(--shadow-xs);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* "프로젝트" 탭 서브메뉴 — PC: 클릭 시 드롭다운, 모바일: 항상 펼침(server/nav.js 참고) */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  min-width: 168px;
  padding: 6px;
  background: var(--canvas);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--duration-base) ease, transform var(--duration-base) var(--ease-out);
}
.nav-submenu a { padding: 8px 12px; font-size: 14px; border-radius: var(--r-sm); color: var(--muted); }
.nav-submenu a:hover { color: var(--ink); background: var(--surface-soft); }
.nav-item.is-open .nav-submenu { opacity: 1; transform: none; pointer-events: auto; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav-tabs {
    position: absolute;
    top: calc(var(--nav-h) + 8px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: var(--z-dropdown);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: var(--r-lg);
    background: var(--canvas);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
  }
  .nav-tabs.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-tabs a { padding: 12px 14px; border-radius: var(--r-md); }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-yt { display: none; }

  /* 모바일 햄버거 메뉴 안에서는 프로젝트 3개를 토글 없이 항상 펼쳐 보여준다(바로 접근) */
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-submenu {
    position: static;
    padding: 0 0 4px 14px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
  .nav-submenu a { padding: 10px 14px; font-size: 13.5px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(40px, 6vw, 72px);
}
.hero::before {
  /* warm bloom behind the portrait — atmosphere, not decoration */
  content: '';
  position: absolute;
  right: -8%;
  top: -20%;
  width: 62vw;
  max-width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--accent-gold) 10%, transparent) 55%, transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 22px;
}
.hero-name .name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-name .role {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}
.hero h1 { margin: 0 0 22px; }
.hero h1 .thesis { display: block; }
.hero h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}
.hero .lead { max-width: 560px; margin-bottom: 30px; }

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 34px;
}
.proof-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body-strong);
  background: var(--card);
  border-radius: var(--r-pill);
}
.proof-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.hero-figure {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.portrait-tile {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(180deg, #f8f4ee 0%, #f4ecE2 100%);
  border: 1px solid var(--hairline);
  aspect-ratio: 3 / 4;
}
.portrait-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.portrait-tile::after {
  /* soft ground so the studio backdrop settles into the cream canvas */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(244, 236, 226, 0) 0%, rgba(239, 233, 222, 0.65) 100%);
  pointer-events: none;
}
.credential-card {
  position: absolute;
  left: -28px;
  bottom: 34px;
  max-width: 262px;
  padding: 16px 18px 16px 16px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(20, 20, 19, 0.10), 0 1px 2px rgba(20, 20, 19, 0.05);
}
.credential-card .cap {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-active);
  margin-bottom: 6px;
}
.credential-card .val {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}
.credential-card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-figure { justify-self: start; max-width: 420px; }
  .hero::before { right: -30%; top: 10%; width: 90vw; }
}
@media (max-width: 640px) {
  .hero-grid { gap: 28px; }
  .hero-figure { max-width: none; }
  .portrait-tile { aspect-ratio: 4 / 4.6; }
  .credential-card { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .proof-list li { font-size: 13.5px; }
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat {
  padding: 30px 26px 28px;
  border-right: 1px solid var(--hairline);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.stat .num .stat-number { font-variant-numeric: tabular-nums; } /* 카운트업 애니메이션 중 자릿수 폭이 흔들리지 않도록 */
.stat .num sup { font-size: 0.5em; vertical-align: top; top: 0.2em; position: relative; margin-left: 2px; color: var(--primary-active); }
.stat .num .unit { font-size: 0.5em; margin-left: 4px; color: var(--muted); letter-spacing: 0; }
.stat .label { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--body-strong); }
.stat .basis { margin-top: 4px; font-size: 13px; color: var(--muted-soft); }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 480px) {
  .stat { padding: 22px 16px 20px; }
}
@media (max-width: 380px) {
  .stat .num { font-size: 28px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
}
.card-outline {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
}
.card-white {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
}
.card-dark {
  background: var(--dark-elev);
  color: var(--on-dark-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
}

/* ---------- Philosophy (dark band) ---------- */
.philosophy { position: relative; overflow: hidden; }
.philosophy::before {
  content: '';
  position: absolute;
  left: -10%;
  bottom: -40%;
  width: 60vw;
  max-width: 800px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.philosophy .container { position: relative; }
.thesis-quote {
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--on-dark);
  margin: 0 0 clamp(44px, 6vw, 72px);
}
.thesis-quote em { font-style: normal; color: var(--accent-gold); }
.principles {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--on-dark-hair);
}
.principle {
  display: grid;
  grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
  gap: 8px 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--on-dark-hair);
}
.principle:last-child { border-bottom: 0; }
.principle .no {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 12px;
}
.principle h3 { font-size: 23px; }
.principle p { font-size: 16px; line-height: 1.75; }
.principle .ref { margin-top: 14px; font-size: 13px; color: var(--on-dark-soft); opacity: 0.85; }

@media (max-width: 960px) {
  .principle { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 0; }
}

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.story-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.timeline { margin-top: 32px; border-left: 1px solid var(--hairline); }
.timeline li {
  position: relative;
  padding: 0 0 22px 22px;
  font-size: 15px;
  color: var(--muted);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--canvas);
  border: 2px solid var(--primary);
}
.timeline li b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
.timeline li .when { font-family: var(--serif); font-size: 13px; letter-spacing: 0.04em; color: var(--muted-soft); }

.story-body { font-size: 17.5px; line-height: 1.85; color: var(--body); }
.story-body p { margin-bottom: 1.2em; }
.story-body .pull {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.5;
  color: var(--ink);
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--primary);
  margin: 1.6em 0;
}

/* Native disclosure, styled */
.disclosure { border-top: 1px solid var(--hairline); }
.disclosure summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .chev {
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-base) ease;
}
.disclosure summary .chev svg { width: 14px; height: 14px; }
.disclosure[open] summary .chev { transform: rotate(180deg); background: var(--card); }
.disclosure summary .label-open { display: none; }
.disclosure[open] summary .label-closed { display: none; }
.disclosure[open] summary .label-open { display: inline; }
.disclosure .disclosure-body { padding: 4px 0 26px; }
.disclosure .disclosure-body > *:first-child { margin-top: 0; }

@media (max-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-aside { position: static; }
}

/* ---------- Photo strip (활동 사진) ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.ph {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 4 / 3;
  cursor: zoom-in; /* 클릭하면 라이트박스로 확대 */
}
.ph:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.ph--lg { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ph picture, .ph img { width: 100%; height: 100%; }
.ph img {
  object-fit: cover;
  transition: transform var(--duration-cinematic) var(--ease-out);
}
.ph:hover img { transform: scale(1.03); }
.ph figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 20, 19, 0) 0%, rgba(20, 20, 19, 0.62) 100%);
}
.ph--lg figcaption { font-size: 14.5px; padding: 48px 20px 18px; }
.photo-note { font-size: 13px; color: var(--muted-soft); margin: -12px 0 clamp(28px, 4vw, 44px); }
@media (max-width: 960px) {
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph--lg { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
}
@media (max-width: 480px) {
  .photo-strip { gap: 10px; }
  .ph figcaption { font-size: 12px; padding: 28px 12px 10px; }
}

/* ---------- Content cards ---------- */
.content-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--card);
  border-radius: var(--r-xl);
  min-height: 100%;
  transition: transform var(--duration-slow) var(--ease-out), background-color var(--duration-slow) ease;
}
.content-card:hover { transform: translateY(-3px); background: #ece5d8; }
.content-card .kind {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.content-card .kind .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.content-card h3 { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.42; }
.content-card p { font-size: 15.5px; color: var(--body); }
.content-card .meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 20, 19, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}
/* 첫 번째 span(라벨)은 필요하면 말줄임, 두 번째 span("상세 보기"+화살표)은 항상 한 줄 유지 —
   그렇지 않으면 카드 폭이 좁을 때 화살표 아이콘이 텍스트 아래로 줄바꿈되는 버그가 생긴다. */
.content-card .meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-card .meta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.content-card .meta svg { width: 15px; height: 15px; color: var(--primary-active); transition: transform var(--duration-base) var(--ease-out); flex-shrink: 0; }
.content-card:hover .meta svg { transform: translateX(3px); }
.content-card--channel { background: var(--dark); color: var(--on-dark-soft); }
.content-card--channel:hover { background: var(--dark-elev); }
.content-card--channel h3 { color: var(--on-dark); }
.content-card--channel p { color: var(--on-dark-soft); }
.content-card--channel .kind { color: var(--on-dark-soft); }
.content-card--channel .meta { border-top-color: var(--on-dark-hair); color: var(--on-dark-soft); }
.content-card--channel .meta svg { color: var(--accent-gold); }
.content-card--channel .kind .dot { background: var(--accent-gold); }

/* 홈 프로젝트 카드 — 리디자인 탐색본 방향(하이라인 보더 + 보더·섀도 호버)으로 다듬은 변형.
   타이포·kind 점 표시·meta 화살표 호버 등 기존 .content-card 요소는 그대로 상속한다. */
.content-card--editorial {
  background: var(--white);
  border: 1px solid var(--hairline);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.content-card--editorial:hover {
  background: var(--white);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---------- Video cards (대표 콘텐츠) ---------- */
.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  color: inherit;
}
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--hairline);
  margin-bottom: 6px;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-cinematic) var(--ease-out);
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-thumb .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(250, 249, 245, 0.92);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(20, 20, 19, 0.22);
  transition: transform var(--duration-slow) var(--ease-out), background-color var(--duration-base) ease;
}
.video-thumb .play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card:hover .play { transform: scale(1.08); background: var(--primary); color: #fff; }
.video-thumb .dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: rgba(20, 20, 19, 0.78);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.video-card .kind {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.video-card .kind .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.video-card h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.42; }
.video-card p { font-size: 15px; line-height: 1.7; color: var(--body); }
.video-card .meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.video-card .play-label {
  font-weight: 700;
  color: var(--primary-active);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
body.theater .video-thumb { background: var(--dark-elev); border-color: var(--on-dark-hair); }
body.theater .video-card p { color: var(--on-dark-soft); }
body.theater .video-card .kind { color: var(--on-dark-soft); }
body.theater .video-card .kind .dot { background: var(--accent-gold); }
body.theater .video-card .meta { color: var(--on-dark-soft); border-top-color: var(--on-dark-hair); }
body.theater .video-card .play-label { color: var(--accent-gold); }

/* ---------- Community & Products ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

.principle-list { display: grid; gap: 10px; margin-top: 22px; }
.principle-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--body);
}
.principle-list li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--primary-active); }

.community-panel {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
}
.community-panel .head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
}
.community-panel .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; object-position: 50% 20%;
  border: 1px solid var(--hairline);
}
.community-panel .head b { display: block; font-size: 16px; color: var(--ink); }
.community-panel .head span { font-size: 13.5px; color: var(--muted); }
.q-thread { display: grid; gap: 12px; }
.q-thread li {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--card);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-strong);
}
.q-thread li small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.q-thread li.answer { background: var(--surface-soft); border: 1px solid var(--hairline); }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Books */
.book-grid { gap: 20px; }
.book {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  align-items: start;
}
/* 책 표지·책장 관련 그림자(.book-cover ~ .pick-dialog__cover 등)는 §2 elevation 스케일 대상이
   아니다 — UI 표면의 깊이가 아니라 책이라는 물성을 표현하는 사진적 연출이라 의도적으로 각자 값을
   쓴다(내비게이션_전환_팝업_가이드.md §6 예외 규칙). */
.book-cover {
  display: block;
  width: 132px;
  height: auto;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 14px 30px rgba(20,20,19,0.16);
}
.book h3 { font-size: 22px; line-height: 1.4; margin-bottom: 4px; }
.book .pub { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.book p { font-size: 15.5px; color: var(--body); }
.book .for {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.book .for b { color: var(--body-strong); font-weight: 600; }
.book .links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
@media (max-width: 520px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .book-cover { width: 120px; }
}

/* ---------- 베싸 Pick: 책장 ---------- */
.pick-shelves { display: grid; gap: clamp(30px, 4vw, 44px); }
.pick-shelves .rail__head h2 { color: var(--ink); font-size: 17px; }
.pick-shelves .rail__head span { color: var(--muted); }
.pick-shelves .rail__viewport::before { background: linear-gradient(90deg, var(--canvas) 15%, transparent); }
.pick-shelves .rail__viewport::after { background: linear-gradient(270deg, var(--canvas) 15%, transparent); }
.pick-shelves .rail__btn {
  background: rgba(250, 249, 245, 0.94); color: var(--ink);
  border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
}
.pick-shelves .rail__btn:hover { background: var(--white); }
.pick-shelves .rail__track { padding-bottom: 20px; align-items: flex-end; }

.shelf-plank {
  height: 12px;
  margin: -4px var(--gutter) 0;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--cream-strong), var(--card));
  box-shadow: 0 10px 16px -8px rgba(20, 20, 19, 0.3);
}

.spine {
  flex: none; width: clamp(118px, 12.5vw, 146px);
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  border: none; background: none; padding: 0; margin: 0;
  cursor: pointer; text-align: left; font-family: inherit; color: inherit;
}
.spine__cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden;
  background: var(--dark-elev);
  box-shadow: 0 10px 22px rgba(20, 20, 19, 0.22);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.spine:hover .spine__cover, .spine:focus-visible .spine__cover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(20, 20, 19, 0.3);
}
.spine__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spine__cover--a { background: var(--cat-a-cover); }
.spine__cover--b { background: var(--cat-b-cover); }
.spine__cover--c { background: var(--cat-c-cover); }
.spine__cover--d { background: var(--cat-d-cover); }
.spine__cover-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 12px; font-family: var(--serif); font-size: 12.5px; line-height: 1.45; text-align: center; color: var(--on-dark);
}
.spine__title {
  font-size: 13.5px; font-weight: 600; color: var(--body-strong); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em; /* 항상 2줄 높이를 확보해 제목 길이와 무관하게 표지 줄이 맞도록 */
}
.spine__author {
  font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* 저자 여러 명이어도 한 줄로 고정 */
}

/* Pick 상세 다이얼로그 */
.pick-dialog {
  border: none; border-radius: var(--r-xl); padding: 0;
  width: min(var(--container), calc(100vw - 32px)); max-height: min(84vh, 760px);
  margin-inline: auto;
  background: var(--canvas); color: var(--body);
  box-shadow: var(--shadow-lg);
}
.pick-dialog::backdrop { background: rgba(20, 20, 19, 0.55); }
.pick-dialog__body { padding: 28px clamp(20px, 4vw, 32px) 32px; overflow-y: auto; max-height: inherit; }
.pick-dialog__close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink); cursor: pointer;
}
.pick-dialog__close:hover { background: var(--cream-strong); }
.pick-dialog__close svg { width: 18px; height: 18px; }
.pick-dialog__head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.pick-dialog__cover { width: 104px; flex: none; border-radius: 4px 8px 8px 4px; box-shadow: 0 12px 26px rgba(20, 20, 19, 0.2); aspect-ratio: 2/3; object-fit: cover; }
.pick-dialog__cover-fallback {
  width: 104px; flex: none; aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  font-family: var(--serif); font-size: 12.5px; text-align: center; color: var(--on-dark);
  box-shadow: 0 12px 26px rgba(20, 20, 19, 0.2);
}
.pick-dialog h3 { font-size: 21px; line-height: 1.35; margin-bottom: 4px; }
.pick-dialog .pub { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pick-dialog .oop-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--gold-deep);
  background: var(--gold-soft); padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: 8px;
}
.pick-dialog .author-bio { font-size: 14px; color: var(--body); margin-bottom: 18px; }
.pick-dialog .bessa-quote {
  position: relative;
  margin: 0 0 20px; padding: 18px 20px 16px 44px;
  background: var(--primary-soft); border-radius: var(--r-md);
}
.pick-dialog .bessa-quote::before {
  content: '“'; position: absolute; left: 12px; top: 6px;
  font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--primary-border);
}
.pick-dialog .bessa-quote-label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--primary);
  margin-bottom: 6px;
}
.pick-dialog .bessa-quote p {
  font-size: 15.5px; color: var(--primary-ink); font-family: var(--serif); line-height: 1.65; margin: 0;
}
.pick-dialog .one-line {
  font-size: 15.5px; color: var(--body-strong); font-family: var(--serif); line-height: 1.6;
  margin: 0 0 20px; padding: 14px 16px; background: var(--surface-soft); border-radius: var(--r-md);
}
.pick-dialog .toc-label { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: var(--muted); margin-bottom: 8px; }
.pick-dialog .toc-list { display: grid; gap: 6px; font-size: 14.5px; color: var(--body); margin: 0 0 20px; padding: 0; list-style: none; }
.pick-dialog .toc-list li { padding-left: 14px; position: relative; }
.pick-dialog .toc-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-border);
}
.pick-dialog .links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
@media (max-width: 480px) {
  .pick-dialog__head { flex-direction: column; }
  .pick-dialog__cover, .pick-dialog__cover-fallback { width: 96px; }
}

/* 도서 공유 — 공유하기 버튼 → 전화번호 리드(건너뛰기 가능) → OS 공유 시트 */
.pick-share { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); }
/* .btn과 .pick-share__form 모두 항상 display를 지정해서, hidden 속성만으로는 안 숨겨진다
   (UA 기본 [hidden]{display:none}이 나중에 로드되는 이 규칙들에 밀림) — 명시적으로 되살린다. */
.pick-share__toggle[hidden], .pick-share__form[hidden] { display: none; }
.pick-share__form { display: flex; flex-direction: column; gap: 10px; }
.pick-share__hint { font-size: 13px; color: var(--muted); margin: 0; }
.pick-share__form input[type="tel"] {
  padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-md);
  font-size: 14px; font-family: inherit; background: var(--white); color: var(--ink);
}
.pick-share__consent {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted);
}
.pick-share__consent input { margin-top: 3px; flex: none; }
.pick-share__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 활동사진 라이트박스 — .pick-dialog와 같은 <dialog> 패턴 */
.photo-lightbox {
  border: none; border-radius: var(--r-xl); padding: 0;
  width: min(1100px, calc(100vw - 32px)); max-height: min(88vh, 900px);
  margin-inline: auto;
  background: var(--dark); color: var(--on-dark-soft);
  box-shadow: var(--shadow-lg);
}
.photo-lightbox::backdrop { background: rgba(20, 20, 19, 0.72); }
.photo-lightbox__img { display: block; width: 100%; max-height: 74vh; object-fit: contain; background: var(--dark); }
.photo-lightbox__caption { font-size: 14px; padding: 14px clamp(20px, 4vw, 32px) 20px; border-top: 1px solid var(--on-dark-hair); }
.photo-lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(250, 249, 245, 0.14); color: var(--on-dark); cursor: pointer;
}
.photo-lightbox__close:hover { background: rgba(250, 249, 245, 0.24); }
.photo-lightbox__close svg { width: 18px; height: 18px; }

/* 리드 폼 제출 결과 팝업 — assets/js/main.js의 leadFormBanner()가 매번 새로 만들어 붙인다.
   .pick-dialog/.photo-lightbox와 같은 <dialog> 패턴(가이드 §3). */
.lead-result-dialog {
  border: none; border-radius: var(--r-xl); padding: 28px 24px;
  width: min(360px, calc(100vw - 32px));
  margin-inline: auto;
  background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.lead-result-dialog::backdrop { background: rgba(20, 20, 19, 0.55); }
.lead-result-dialog p { margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.lead-result-dialog.is-error p { color: var(--error); }
.lead-result-dialog__close { width: 100%; }

/* 프로젝트 소개 팝업 — 전문가 이야기에서 프로젝트가 언급된 링크를 누르면 뜬다.
   .pick-dialog/.photo-lightbox와 같은 <dialog> 패턴(가이드 §3). */
.project-dialog {
  border: none; border-radius: var(--r-xl); padding: 0;
  width: min(400px, calc(100vw - 32px)); max-height: min(84vh, 480px);
  margin-inline: auto;
  background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.project-dialog::backdrop { background: rgba(20, 20, 19, 0.55); }
.project-dialog__body { padding: 32px clamp(20px, 4vw, 32px); overflow-y: auto; max-height: inherit; }
.project-dialog__close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink); cursor: pointer;
}
.project-dialog__close:hover { background: var(--cream-strong); }
.project-dialog__close svg { width: 18px; height: 18px; }
.project-dialog__body .kind {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.project-dialog__body .kind .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.project-dialog__body h3 { font-size: 21px; line-height: 1.35; margin-bottom: 14px; }
.project-dialog__body .pull {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--primary);
  margin: 0 0 26px;
}
.project-dialog__body .btn { width: 100%; justify-content: center; }

/* 모든 <dialog> 팝업이 공유하는 진입 애니메이션 — 내비게이션_전환_팝업_가이드.md §3.2 */
@media (prefers-reduced-motion: no-preference) {
  .pick-dialog[open], .photo-lightbox[open], .lead-result-dialog[open], .project-dialog[open] { animation: dialog-in var(--duration-base) var(--ease-out); }
  @keyframes dialog-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
}

/* ---------- Final CTA ---------- */
.choice-grid { gap: 16px; }
.choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--dark-elev);
  color: var(--on-dark-soft);
  border: 1px solid var(--on-dark-hair);
  transition: transform var(--duration-slow) var(--ease-out), background-color var(--duration-slow) ease, border-color var(--duration-slow) ease;
}
.choice:hover { transform: translateY(-3px); background: var(--dark-elev-2); border-color: rgba(250,249,245,0.22); }
.choice .who { font-size: 13.5px; color: var(--on-dark-soft); }
.choice h3 { font-size: 22px; color: var(--on-dark); }
.choice .go {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-gold);
}
.choice .go svg { width: 16px; height: 16px; transition: transform var(--duration-base) var(--ease-out); }
.choice:hover .go svg { transform: translateX(4px); }
/* 규칙: 밝은 배경 섹션 = 보라(--primary), 어두운 배경 섹션 = 노랑(--accent-gold) */
.choice--primary { background: var(--accent-gold); border-color: var(--accent-gold); color: color-mix(in srgb, var(--primary-ink) 85%, transparent); }
.choice--primary:hover { background: var(--accent-yellow); border-color: var(--accent-yellow); }
.choice--primary h3 { color: var(--primary-ink); }
.choice--primary .who { color: color-mix(in srgb, var(--primary-ink) 90%, transparent); }
.choice--primary .go { color: var(--primary-ink); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden; /* 배경 워드마크가 카드 밖으로 새지 않도록 */
  background: var(--dark);
  color: var(--on-dark-soft);
  padding: 56px 0 32px;
  font-size: 14.5px;
}
.site-footer > .container { position: relative; } /* 워드마크(형제 요소)보다 항상 위에 그려지도록 */
.footer-wordmark {
  position: absolute; right: -.02em; bottom: -.16em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(90px, 15vw, 240px);
  line-height: 1; letter-spacing: -2px;
  color: var(--on-dark);
  opacity: .05;
  pointer-events: none; white-space: nowrap; user-select: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--on-dark-hair);
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 14px;
}
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand .brand small { color: var(--on-dark-soft); }
.footer-brand p { margin-top: 14px; max-width: 380px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--on-dark-soft);
}
.footer-bottom .pending { opacity: 0.7; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duration-cinematic) var(--ease-out), transform var(--duration-cinematic) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.hero .rise {
  opacity: 0;
  transform: translateY(16px);
  animation: rise var(--duration-cinematic) var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-figure .rise-figure {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  /* 히어로 인물 사진 한 번만 쓰는 연출용 지속시간 — .rise 텍스트(--duration-cinematic)보다
     살짝 늦고 길게 등장하도록 의도적으로 토큰 밖 값을 씀(가이드 §6 예외 규칙) */
  animation: riseFigure 1.1s var(--ease-out) .15s forwards;
}
@keyframes riseFigure { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .rise, .hero-figure .rise-figure {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .scroll-hint svg { animation: none; }
  .btn, .content-card, .choice { transition: none; }
}

/* ---------- Sub pages (community / products) ---------- */
.subpage-hero { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.subpage-hero .display-lg { max-width: 760px; }
.notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body-strong);
  margin-bottom: 22px;
}
.notice .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* =====================================================================
   육아 콘텐츠 탭 — 2차 (브라우즈·타이틀은 극장 모드, 글은 크림 리더)
   ===================================================================== */

/* ---------- Theater mode (dark pages) ---------- */
body.theater { background: var(--dark); color: var(--on-dark-soft); }
body.theater::before { opacity: 0.035; mix-blend-mode: screen; }
body.theater h1, body.theater h2, body.theater h3, body.theater h4 { color: var(--on-dark); }
body.theater .eyebrow { color: var(--accent-gold); }
body.theater .site-header { background: color-mix(in srgb, var(--dark) 82%, transparent); }
body.theater .site-header.is-scrolled { border-bottom-color: var(--on-dark-hair); }
body.theater .brand { color: var(--on-dark); }
body.theater .brand small { color: var(--on-dark-soft); }
body.theater .nav-tabs { background: var(--dark-elev); border-color: var(--on-dark-hair); }
body.theater .nav-tabs a { color: var(--on-dark-soft); }
body.theater .nav-tabs a:hover { color: var(--on-dark); }
body.theater .nav-tabs a[aria-current="page"] { background: var(--dark); color: var(--on-dark); box-shadow: none; }
body.theater .nav-toggle { color: var(--on-dark); border-color: var(--on-dark-hair); }
body.theater .nav-submenu { background: var(--dark-elev); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
body.theater .nav-submenu a:hover { background: var(--dark); color: var(--on-dark); }
body.theater .btn-secondary { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-border: var(--on-dark-hair); }
body.theater .btn-secondary:hover { --btn-bg: var(--dark-elev); --btn-border: rgba(250, 249, 245, 0.28); }
/* 규칙: 밝은 배경 섹션 = 보라(--primary), 어두운 배경 섹션 = 노랑(--accent-gold) */
body.theater .btn-primary { --btn-bg: var(--accent-gold); --btn-fg: var(--primary-ink); --btn-border: var(--accent-gold); }
body.theater .btn-primary:hover { --btn-bg: var(--accent-yellow); --btn-border: var(--accent-yellow); }
body.theater .section-head .lead { color: var(--on-dark-soft); }
body.theater .site-footer { border-top: 1px solid var(--on-dark-hair); }
body.theater .breadcrumb ol { color: var(--on-dark-soft); }
body.theater .breadcrumb li[aria-current] { color: var(--on-dark); }
body.theater .breadcrumb a:hover { color: var(--on-dark); }
@media (max-width: 820px) {
  body.theater .nav-tabs { background: var(--dark-elev); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
}
.btn-light { --btn-bg: var(--on-dark); --btn-fg: var(--dark); --btn-border: var(--on-dark); }
.btn-light:hover { --btn-bg: #ffffff; --btn-border: #ffffff; }
.btn-light svg { width: 14px; height: 14px; }
.btn-yt-solid { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-border: var(--primary); width: 100%; }
.btn-yt-solid:hover { --btn-bg: var(--primary-hover); --btn-border: var(--primary-hover); }
.btn-yt-solid svg { width: 18px; height: 18px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li[aria-current] { color: var(--body-strong); font-weight: 600; }

/* ---------- Billboard ---------- */
.billboard {
  position: relative; overflow: hidden;
  min-height: clamp(440px, 54vw, 640px);
  display: grid; align-items: end;
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
}
.billboard__art { position: absolute; inset: 0; z-index: 0; }
.billboard__art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; opacity: 0.55; filter: saturate(0.7); }
.billboard__art::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #141413 0%, rgba(20, 20, 19, 0.92) 34%, rgba(20, 20, 19, 0.55) 62%, rgba(20, 20, 19, 0.25) 100%),
    linear-gradient(180deg, rgba(20, 20, 19, 0.25) 0%, rgba(20, 20, 19, 0) 40%, #141413 100%);
}
.billboard__body { position: relative; z-index: 1; }
.billboard__body > * { max-width: 640px; }
.billboard h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.2; margin: 0 0 18px; }
.billboard__ask { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--on-dark); opacity: 0.92; margin-bottom: 10px; }
.billboard__gain { font-size: 15.5px; color: var(--on-dark-soft); margin-bottom: 16px; }
.billboard__meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 13.5px; color: var(--on-dark-soft); margin-bottom: 22px; }
.billboard__meta span + span::before { content: '·'; margin: 0 10px; opacity: 0.5; }

/* ---------- Rails ---------- */
.rails { display: grid; gap: clamp(28px, 4vw, 44px); padding: clamp(16px, 3vw, 32px) 0 clamp(40px, 6vw, 64px); }
.rail { min-width: 0; max-width: 100%; }
.rail[hidden] { display: none; }
.rail__viewport { min-width: 0; }
.rail__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.rail__head h2 { font-family: var(--sans); font-size: 17px; font-weight: 700; }
.rail__head span { font-size: 13px; color: var(--on-dark-soft); }
.rail__more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--on-dark-soft); white-space: nowrap; }
.rail__more svg { width: 14px; height: 14px; }
.rail__more:hover { color: var(--on-dark); }
.rail__viewport {
  position: relative;
  --rail-pad: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
.rail__track {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px var(--rail-pad) 12px;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
/* 트랙 좌우 끝에서 카드가 잘려 보이는 대신 배경으로 자연스럽게 사그라들게 함 */
.rail__viewport::before, .rail__viewport::after {
  content: ''; position: absolute; top: 0; bottom: 12px; width: var(--rail-pad); z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity var(--duration-base) ease;
}
.rail__viewport::before { left: 0; background: linear-gradient(90deg, var(--dark) 15%, transparent); }
.rail__viewport::after { right: 0; background: linear-gradient(270deg, var(--dark) 15%, transparent); }
.rail__viewport.has-overflow:not(.at-start)::before,
.rail__viewport.has-overflow:not(.at-end)::after { opacity: 1; }
.rail__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: rgba(20, 20, 19, 0.88); color: var(--on-dark);
  border: 1px solid rgba(250, 249, 245, 0.22); cursor: pointer;
  transition: background-color var(--duration-fast) ease;
}
.rail__btn:hover { background: var(--dark-elev); }
.rail__btn svg { width: 18px; height: 18px; }
.rail__btn--prev { left: 10px; }
.rail__btn--prev svg { transform: rotate(180deg); }
.rail__btn--next { right: 10px; }
.rail__viewport.has-overflow .rail__btn { display: inline-flex; }
.rail__viewport.at-start .rail__btn--prev, .rail__viewport.at-end .rail__btn--next { display: none; }
@media (hover: none) { .rail__btn { display: none !important; } }

/* ---------- Cover card ---------- */
.cover {
  flex: none; width: clamp(210px, 22vw, 262px); aspect-ratio: 16 / 9;
  scroll-snap-align: start; position: relative; overflow: hidden;
  border-radius: 6px; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  background: var(--dark-elev); border: 1px solid transparent;
  transition: transform var(--duration-base) var(--ease-out), border-color var(--duration-base) ease;
}
.cover:hover, .cover:focus-visible { transform: scale(1.04); border-color: rgba(250, 249, 245, 0.35); z-index: 1; }
.cover--a { background: var(--cat-a-cover); }
.cover--b { background: var(--cat-b-cover); }
.cover--c { background: var(--cat-c-cover); }
.cover--d { background: var(--cat-d-cover); }
.cover__id { position: absolute; left: 16px; top: 12px; font-family: var(--serif); font-size: 12.5px; letter-spacing: 0.08em; color: var(--accent-gold); }
.cover__badge {
  position: absolute; right: 12px; top: 10px; z-index: 1;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--accent-gold); color: var(--primary-ink);
}
.cover__t {
  font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--on-dark); position: relative;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cover__m { font-size: 11.5px; color: var(--on-dark-soft); position: relative; }

/* ---------- Theater sections ---------- */
.theater-section { border-top: 1px solid var(--on-dark-hair); }
.theater-cta { background: var(--dark-soft); border-top: 1px solid var(--on-dark-hair); }
.all-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.all-list__group h3 {
  display: flex; gap: 8px; font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 8px;
}
.all-list__group h3 span { color: var(--accent-gold); }
.all-list li a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 0; border-top: 1px solid var(--on-dark-hair); font-size: 14.5px; line-height: 1.5; color: var(--on-dark);
}
.all-list li a:hover { color: var(--accent-gold); }
.all-list__t { display: block; }
.all-list small { display: block; font-size: 12px; color: var(--on-dark-soft); }
@media (max-width: 960px) { .all-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .all-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Title hero (series) ---------- */
.title-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.title-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 88% 6%, var(--tint), transparent 70%); pointer-events: none; }
.title-hero--a { --tint: var(--cat-a-tint); }
.title-hero--b { --tint: var(--cat-b-tint); }
.title-hero--c { --tint: var(--cat-c-tint); }
.title-hero--d { --tint: var(--cat-d-tint); }
.title-hero .container { position: relative; }
.title-hero h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.22; max-width: 760px; margin-bottom: 18px; }
.title-hero__ask { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--on-dark); max-width: 680px; margin-bottom: 10px; }
.title-hero__gain { font-size: 15.5px; color: var(--on-dark-soft); max-width: 680px; margin-bottom: 16px; }
/* ---------- Stage labels ---------- */
.stage {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.3; white-space: nowrap;
  background: var(--card); color: var(--body-strong);
}
.stage--0 { background: var(--ink); color: var(--on-dark); }
.stage--2 { background: var(--primary-soft); color: var(--primary-active); }
body.theater .stage { background: var(--dark-elev); color: var(--on-dark); }
body.theater .stage--0 { background: var(--on-dark); color: var(--dark); }
body.theater .stage--2 { background: var(--accent-gold); color: var(--primary-ink); }
.stage-legend { display: grid; border-top: 1px solid var(--hairline); }
.stage-legend > div {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--body);
}
.stage-legend dt, .stage-legend dd { margin: 0; }
.stage-help { border-bottom: 1px solid var(--hairline); }
.stage-help summary { font-size: 14.5px; padding: 12px 0; }
.stage-help .disclosure-body { padding-bottom: 14px; }
body.theater .stage-help, body.theater .stage-help summary .chev { border-color: var(--on-dark-hair); }
body.theater .stage-help summary { color: var(--on-dark); }
body.theater .stage-help[open] summary .chev { background: var(--dark-elev); }
body.theater .stage-legend, body.theater .stage-legend > div { border-color: var(--on-dark-hair); color: var(--on-dark-soft); }

/* ---------- Episode list ---------- */
.ep-head { display: grid; gap: 12px; margin-bottom: 22px; max-width: 760px; }
.ep-hint { font-size: 14px; color: var(--on-dark-soft); }
.ep-list { border-top: 1px solid var(--on-dark-hair); }
.ep-group { padding: 28px 0 8px; }
.ep-group h3 { font-size: 20px; display: flex; align-items: center; gap: 12px; }
.ep-group h3::after { content: ''; flex: 1; height: 1px; background: var(--on-dark-hair); }
.ep {
  display: grid; grid-template-columns: 36px 168px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--on-dark-hair);
}
.ep__no { font-family: var(--serif); font-size: 18px; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.ep__thumb { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--dark-elev); }
.ep__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-cinematic) var(--ease-out); }
.ep:hover .ep__thumb img { transform: scale(1.04); }
.ep__thumb--post {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--dark-elev-2), var(--dark));
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.1em; color: var(--on-dark);
}
.ep__thumb--post span { position: relative; padding-bottom: 6px; }
.ep__thumb--post span::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: var(--accent-gold); }
.ep__body { display: grid; gap: 5px; min-width: 0; }
.ep__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 12.5px; color: var(--on-dark-soft); }
.ep__fmt { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ep__fmt svg { width: 14px; height: 14px; color: var(--accent-gold); }
.ep__year { opacity: 0.7; }
.ep__title { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--on-dark); }
.ep__title:hover { color: var(--accent-gold); }
.ep__sum { font-size: 14px; line-height: 1.6; color: var(--on-dark-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ep__read {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 6px;
  background: var(--on-dark); color: var(--dark); font-size: 13.5px; font-weight: 700; white-space: nowrap;
  transition: background-color var(--duration-fast) ease;
}
.ep__read:hover { background: #fff; }
.ep__read svg { width: 14px; height: 14px; }
.ep__read--ext { background: transparent; color: var(--on-dark-soft); border: 1px solid var(--on-dark-hair); }
.ep__read--ext:hover { background: var(--dark-elev); }
.ep__yt { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--on-dark-soft); }
.ep__yt svg { width: 16px; height: 16px; }
.ep__yt:hover { color: var(--on-dark); }
.ep-note { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--on-dark-hair); border-radius: var(--r-lg); display: grid; gap: 8px; justify-items: start; }
.ep-note .text-link { color: var(--accent-gold); }
.ep-note .text-link:hover { color: var(--accent-gold); opacity: 0.8; }
.ep-scope { margin-top: 24px; font-size: 13px; color: var(--on-dark-soft); }
@media (max-width: 820px) {
  .ep { grid-template-columns: 26px 124px minmax(0, 1fr); gap: 12px; }
  .ep__no { font-size: 15px; }
  .ep__actions { grid-column: 3; flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; }
}
@media (max-width: 480px) {
  .ep { grid-template-columns: 22px 96px minmax(0, 1fr); gap: 10px; }
  .ep__title { font-size: 15.5px; }
  .ep__sum { display: none; }
}

/* ---------- Reader (cream) ---------- */
.post-hero .display-lg { max-width: 820px; }
.post-lead { max-width: 720px; margin-top: 16px; }
.post-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.post-chips a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 13px;
  font-size: 13.5px; font-weight: 600; color: var(--body-strong); background: var(--card); border-radius: var(--r-pill);
  transition: background-color var(--duration-fast) ease;
}
.post-chips a:hover { background: var(--cream-strong); }
.post-chips small { font-size: 12px; color: var(--muted); }
.post-layout {
  display: grid; grid-template-columns: minmax(0, 7.5fr) minmax(0, 3.5fr); grid-template-areas: "body aside";
  gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--section);
}
.post-layout .article-body { grid-area: body; }
.post-aside { grid-area: aside; position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; }
.post-aside .card-outline { padding: 20px 22px; }
.post-aside .eyebrow { margin-bottom: 8px; }
.post-aside .small { color: var(--muted); }
.post-aside .text-link { margin-top: 8px; font-size: 15px; }
@media (max-width: 960px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "body"; }
  .post-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 640px) { .post-aside { grid-template-columns: minmax(0, 1fr); } }

.video-cta { display: grid; gap: 12px; padding: 14px; background: var(--dark); border-radius: var(--r-lg); color: var(--on-dark-soft); }
.video-cta__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--dark-elev); }
.video-cta__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-cinematic) var(--ease-out); }
.video-cta__thumb:hover img { transform: scale(1.04); }
.video-cta__thumb .play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(250, 249, 245, 0.92); color: var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-base) ease;
}
.video-cta__thumb .play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-cta__thumb:hover .play { transform: scale(1.08); background: var(--primary); color: #fff; }
.video-cta__thumb .dur {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--r-sm);
  background: rgba(20, 20, 19, 0.8); color: var(--on-dark); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.video-cta .small { font-size: 12.5px; line-height: 1.55; color: var(--on-dark-soft); }

.article-body { max-width: 720px; font-size: 17.5px; line-height: 1.85; color: var(--body); }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.25em; }
.article-body h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: clamp(22px, 2vw, 27px); line-height: 1.4;
  margin: 2em 0 0.8em; padding-top: 0.9em; border-top: 1px solid var(--hairline);
}
.article-body h2 .num { font-family: var(--serif); font-size: 0.85em; color: var(--primary-active); }
.article-body h3 { font-size: 20px; line-height: 1.45; margin: 1.6em 0 0.6em; }
.article-body ul, .article-body ol { margin: 0 0 1.25em; }
.article-body ul li { position: relative; padding-left: 18px; margin-bottom: 0.45em; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--primary); }
.article-body ol { padding-left: 1.5em; list-style: decimal; }
.article-body ol li { margin-bottom: 0.45em; padding-left: 4px; }
.article-body blockquote { margin: 0 0 1.25em; padding: 4px 0 4px 20px; border-left: 2px solid var(--primary); font-family: var(--serif); font-size: 1.04em; color: var(--ink); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 1.25em; }
.article-body th, .article-body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.article-body th { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.article-body code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; background: var(--surface-soft); padding: 1px 5px; border-radius: 4px; }
.article-body h2:last-of-type + ul { background: var(--surface-soft); border-radius: var(--r-lg); padding: 18px 22px 18px 40px; }
.article-body h2:last-of-type + ul li::before { left: -18px; }
.article-body .refs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; margin: -0.6em 0 1.4em; }
.article-body .refs a { padding: 3px 11px; border: 1px solid var(--hairline); border-radius: var(--r-pill); color: var(--muted); background: var(--canvas); transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease; }
.article-body .refs a:hover { color: var(--ink); border-color: #d3cabd; }
.article-body .ref-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-soft); margin-right: 4px; }
.article-body p.ref-label { margin: -0.4em 0 1em; }
.article-body .ref-card { font-size: 14px; line-height: 1.55; color: var(--muted); padding: 12px 16px; border: 1px solid var(--hairline); border-radius: var(--r-md); }
.article-body .ref-card a { color: var(--primary-active); font-weight: 600; }
.article-body .ref-card .dom { margin-left: 6px; font-size: 12.5px; color: var(--muted-soft); }
.article-body .ratings { display: grid; gap: 2px; font-size: 15px; color: var(--muted); }
.article-body .ratings li { padding-left: 0; margin-bottom: 0; }
.article-body .ratings li::before { display: none; }
.article-body .signoff { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--hairline); font-family: var(--serif); font-size: 16px; color: var(--muted); }
.article-body .bib-title { font-size: 17px; font-family: var(--sans); font-weight: 600; margin-top: 2.5em; }
.article-body .bib { padding-left: 1.4em; list-style: decimal; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.article-body .bib li { margin-bottom: 0.5em; padding-left: 4px; }

/* ---------- Series navigation under an article ---------- */
.sn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .sn-list { grid-template-columns: minmax(0, 1fr); } }
.sn { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.sn__head { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; transition: background-color var(--duration-base) ease; }
.sn__head:hover { background: var(--surface-soft); }
.sn__head .idx { font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.08em; color: var(--primary-active); }
.sn__head .title { font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); }
.sn__head .role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sn__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hairline); background: var(--surface-soft); }
.sn__link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 18px; font-size: 14px; color: var(--body-strong); min-width: 0; }
.sn__link + .sn__link { border-left: 1px solid var(--hairline); }
.sn__link .k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sn__link .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn__link svg { width: 14px; height: 14px; color: var(--primary-active); }
a.sn__link:hover { background: var(--card); }
.sn__link--none { color: var(--muted); }
.sn__link--none .t { font-weight: 500; }
@media (max-width: 640px) {
  .sn__links { grid-template-columns: minmax(0, 1fr); }
  .sn__link + .sn__link { border-left: 0; border-top: 1px solid var(--hairline); }
}

@media (prefers-reduced-motion: reduce) {
  .cover, .ep__thumb img, .video-cta__thumb img, .video-cta__thumb .play, .rail__track { transition: none; scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  body::before, .site-header, .scroll-hint, .nav-toggle { display: none; }
  .band-dark, .choice, .site-footer { background: #fff !important; color: #000 !important; }
  .footer-wordmark { display: none; }
  .reveal { opacity: 1; transform: none; }
}
