/*
 * base.css — burn.kim 디자인 시스템.
 * 색/치수는 전부 tokens.css의 커스텀 프로퍼티만 사용 (raw 값 금지).
 * 흰 바탕 + 검정 선. 반전은 data-theme="dark" 한 방.
 */

@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body, var(--font-sans));
  font-weight: var(--w-body, 400);
  letter-spacing: var(--track-body, 0);
  font-size: var(--text-m);
  line-height: var(--leading-body);
  transition: background 0.25s ease, color 0.25s ease;
}
img, video, canvas, iframe { max-width: 100%; display: block; }
/* 반응형 이미지의 핵심 한 줄 — width/height 속성(미디어 매니페스트)이 붙은 큰 이미지가
 * max-width로 줄어들 때 높이가 속성값에 고정돼 세로로 늘어나던 버그를 막는다.
 * 명시 높이를 준 클래스(.nav-link-img·.cl-cover·.gallery-justify 등)는 특이도로 이 규칙을 이긴다. */
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display, var(--font-body));
  font-weight: var(--w-display, 800);
  letter-spacing: var(--track-display, -0.02em);
  line-height: var(--leading-tight);
  margin: 0 0 var(--sp-3);
}
h1 { font-size: var(--text-xxl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-l); }
p { margin: 0 0 var(--sp-3); }

/* 서체 강제 클래스 (블록 style.font) */
.f-display { font-family: var(--font-display); }
.f-body { font-family: var(--font-body); }
.f-mono { font-family: var(--font-mono); }
.f-display h1, .f-display h2, .f-display p, .f-body h1, .f-body h2, .f-body p, .f-mono p { font-family: inherit; }
hr { border: 0; border-top: var(--stroke-w) solid var(--ink); margin: var(--sp-5) 0; }
::selection { background: var(--ink); color: var(--paper); }

/* 키보드 포커스 링 — 잉크 선 하나(--ink 읽어 다크에서 자동 반전), 0-specificity(:where)라
   컴포넌트 포커스 스타일을 안 밟는다. 마우스엔 안 뜨고 키보드 탐색(:focus-visible)에만.
   (UX 감사: 발행 사이트 nav·카드에 포커스 링 부재 = WCAG 2.4.7 실패) */
:where(a, button, summary, [tabindex], input, textarea, select):focus-visible {
  outline: var(--stroke-w, 2px) solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.blk-search input:focus-visible { box-shadow: 0 2px 0 var(--ink); } /* outline:none 대체 큐 복원 */

/* 본문 링크(리치 텍스트 안) */
.blk-text a { border-bottom: var(--stroke-w) solid var(--ink); }
.blk-text a:hover { background: var(--ink); color: var(--paper); }

/* ---------- 사이트 크롬 ---------- */
.site-nav {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
}
.site-logo {
  font-family: var(--font-display, inherit); font-weight: var(--w-display, 800);
  font-size: var(--text-l); letter-spacing: var(--track-display, -0.02em); white-space: nowrap;
}
.nav-links { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); margin-left: auto; }
.nav-link { position: relative; font-size: var(--text-s); padding-bottom: 6px; }
.nav-link.is-current { font-weight: 700; }
.nav-lang {
  position: relative; font-family: var(--font-mono); font-size: var(--text-xs);
  padding: 2px 8px 6px; border: 1px solid var(--ink-faint); border-radius: 3px;
  margin-left: var(--sp-2); align-self: center;
}
.nav-lang:hover { border-color: var(--ink); }
.nav-overlay-lang { font-family: var(--font-mono); font-size: var(--text-l) !important; color: var(--ink-soft); }
.theme-toggle {
  background: none; border: none; color: var(--ink);
  font-size: var(--text-l); cursor: pointer; padding: 0 0 0 var(--sp-2); line-height: 1;
}

/* ---------- 모바일 오버레이 메뉴 ---------- */
.nav-burger {
  display: none; background: none; border: none; color: var(--ink); cursor: pointer;
  width: 44px; height: 44px; padding: 8px; margin: -8px -8px -8px 0;
}
.nav-burger svg { width: 100%; height: 100%; }
.nav-burger .bg1, .nav-burger .bg2, .nav-burger .bg3 { transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center; }
.nav-burger:hover .bg2 { transform: translateX(1.5px); }
.nav-burger.is-open .bg1 { transform: translateY(5px) rotate(18deg); }
.nav-burger.is-open .bg2 { opacity: 0; }
.nav-burger.is-open .bg3 { transform: translateY(-5px) rotate(-18deg); }
.nav-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: var(--paper);
}
.nav-overlay-bg { position: absolute; inset: 0; opacity: 0.35; }
.nav-overlay-inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: var(--sp-4); padding: var(--sp-6) var(--sp-5);
}
.nav-overlay-link {
  font-family: var(--font-display, inherit); font-weight: var(--w-display, 800);
  font-size: clamp(1.8rem, 8vw, 2.8rem); letter-spacing: var(--track-display, -0.02em);
  line-height: 1.2;
}
.nav-overlay-link.is-current { border-bottom: 3px solid var(--ink); }
.nav-overlay-social {
  display: flex; gap: var(--sp-4); margin-top: var(--sp-5);
  font-size: var(--text-s); color: var(--ink-soft);
}

.site-main { min-height: 60vh; }

/* ---------- 내비 배치 (site.navStyle.position) ---------- */
/* 좌/우 레일 — 데스크톱 전용, ≤640px에서는 상단+햄버거로 복귀 */
body.nav-pos-left, body.nav-pos-right { --nav-rail: 216px; }
body.nav-pos-left .site-nav, body.nav-pos-right .site-nav {
  position: fixed; top: 0; bottom: 0; width: var(--nav-rail);
  flex-direction: column; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-4);
  background: var(--paper); backdrop-filter: none;
}
body.nav-pos-left .site-nav { left: 0; border-right: var(--stroke-w) solid var(--ink); }
body.nav-pos-right .site-nav { right: 0; border-left: var(--stroke-w) solid var(--ink); }
body.nav-pos-left .nav-links, body.nav-pos-right .nav-links {
  flex-direction: column; align-items: flex-start; gap: var(--sp-3); margin-left: 0; margin-top: var(--sp-5);
}
body.nav-pos-left .theme-toggle, body.nav-pos-right .theme-toggle { margin-top: auto; padding: 0; }
body.nav-pos-left .site-main, body.nav-pos-left .site-footer { margin-left: var(--nav-rail); }
body.nav-pos-right .site-main, body.nav-pos-right .site-footer { margin-right: var(--nav-rail); }
/* 하단 바 — 모바일에서도 하단 유지 (모바일 하단 내비 패턴) */
body.nav-pos-bottom .site-nav {
  position: fixed; top: auto; bottom: 0; left: 0; right: 0;
  border-top: var(--stroke-w) solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
body.nav-pos-bottom .site-main { padding-top: var(--sp-5); }
body.nav-pos-bottom .site-footer { margin-bottom: 64px; }
body.nav-pos-bottom { padding-bottom: 64px; }

/* ---------- 내비 룩 (site.navStyle.look) ---------- */
/* pill — 잉크 테두리 알약, 꿀렁 밑줄 대신 반전 활성 */
body.nav-look-pill .nav-link { border: var(--stroke-w) solid var(--ink); border-radius: 999px; padding: 4px 14px 5px; }
body.nav-look-pill .nav-link .nav-wl { display: none; }
body.nav-look-pill .nav-link.is-current, body.nav-look-pill .nav-link:hover { background: var(--ink); color: var(--paper); }
/* mono — 모노스페이스 소문자 인덱스 감각 */
body.nav-look-mono .nav-link, body.nav-look-mono .nav-lang {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.05em; text-transform: lowercase;
}
body.nav-look-mono .nav-link .nav-wl { display: none; }
body.nav-look-mono .nav-link.is-current { font-weight: 400; background: var(--ink); color: var(--paper); padding: 2px 7px; }

/* ---------- 내비 서체·크기 (look 뒤에 와서 명시적 선택이 우선) ---------- */
body.nav-font-display .nav-link { font-family: var(--font-display); }
body.nav-font-body .nav-link { font-family: var(--font-body); }
body.nav-font-mono .nav-link { font-family: var(--font-mono); letter-spacing: 0.03em; }
body.nav-size-xs .nav-link { font-size: var(--text-xs); }
body.nav-size-s .nav-link { font-size: var(--text-s); }
body.nav-size-m .nav-link { font-size: var(--text-m); }
body.nav-size-l .nav-link { font-size: var(--text-l); }
/* 이미지 내비 항목 — 텍스트 대신 로고/아이콘 */
.nav-link.nav-link-img-host { padding-bottom: 0; display: inline-flex; align-items: center; }
.nav-link-img { height: 22px; width: auto; display: block; transition: opacity var(--mo-dur, .15s) ease; }
.nav-link-img-host:hover .nav-link-img { opacity: 0.6; }
.nav-link-img-host.is-current .nav-link-img { outline: var(--stroke-w) solid var(--ink); outline-offset: 3px; border-radius: 2px; }
body.nav-size-m .nav-link-img { height: 26px; }
body.nav-size-l .nav-link-img { height: 32px; }

/* ---------- 하위 메뉴 (드롭다운) — hover/focus-within 플라이아웃, JS 불요 ---------- */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 3px; }
.nav-dd-caret { font-size: 0.66em; line-height: 1; opacity: 0.55; }
.nav-dd-menu {
  position: absolute; top: 100%; left: 0; z-index: 60; margin-top: 6px;
  display: flex; flex-direction: column; min-width: 150px;
  background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(8px);
  border: var(--stroke-w) solid var(--ink); border-radius: 3px; padding: var(--sp-2);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity var(--mo-dur, .15s) ease, transform var(--mo-dur, .15s) ease, visibility var(--mo-dur, .15s);
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
.nav-sub-link { font-size: var(--text-s); padding: var(--sp-2); border-radius: 2px; white-space: nowrap; }
/* 현재/호버는 검정 박스 반전(네모칸·역상) 대신 은은한 강조 — 하위항목이 박스처럼 안 튄다 */
.nav-sub-link:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.nav-sub-link.is-current { font-weight: 700; }
body.nav-pos-right .nav-dd-menu { left: auto; right: 0; }
/* 룩 '없음' — 꿀렁 밑줄까지 완전히 끈 플레인 내비 (토글 OFF = 아무 장식 없음) */
body.nav-look-none .nav-wl { display: none; }
/* 하위 메뉴 우측 float — 부모 오른쪽에 뜬다 (상단 내비 한정) */
body.nav-sub-right.nav-pos-top .nav-dd-menu { top: 0; left: 100%; right: auto; margin: 0 0 0 6px; }
/* 하위 글자 크기 */
body.nav-sub-size-xs .nav-sub-link { font-size: var(--text-xs); }
body.nav-sub-size-s .nav-sub-link { font-size: var(--text-s); }
body.nav-sub-size-m .nav-sub-link { font-size: var(--text-m); }
body.nav-sub-size-l .nav-sub-link { font-size: var(--text-l); }
/* 하위 자간 */
body.nav-sub-track-tight .nav-sub-link { letter-spacing: -0.02em; }
body.nav-sub-track-wide .nav-sub-link { letter-spacing: 0.08em; }
/* 좌/우 레일(세로 내비) — 하위를 들여쓴 정적 목록으로 */
body.nav-pos-left .nav-dd, body.nav-pos-right .nav-dd { flex-direction: column; align-items: flex-start; }
body.nav-pos-left .nav-dd-menu, body.nav-pos-right .nav-dd-menu {
  position: static; opacity: 1; visibility: visible; transform: none;
  border: 0; border-left: 1px solid var(--ink-faint); border-radius: 0; background: none;
  backdrop-filter: none; margin: var(--sp-1) 0 var(--sp-1) var(--sp-2); padding: 0 0 0 var(--sp-2); min-width: 0;
}
body.nav-pos-left .nav-dd-caret, body.nav-pos-right .nav-dd-caret { display: none; }
/* 모바일 오버레이 하위 */
.nav-overlay-subs { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin: calc(-1 * var(--sp-3)) 0 var(--sp-2); }
.nav-overlay-sub { font-size: var(--text-l); color: var(--ink-soft); }
.nav-overlay-sub.is-current { color: var(--ink); }
/* 모바일 오버레이(햄버거) 서체 — 배경 반전(ink)은 data-theme 토큰 반전으로 자동 */
.nav-ov-font-display .nav-overlay-link { font-family: var(--font-display); }
.nav-ov-font-body .nav-overlay-link { font-family: var(--font-body); font-weight: 600; }
.nav-ov-font-mono .nav-overlay-link { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1.3rem, 6vw, 2rem); }
.nav-ov-font-mono .nav-overlay-sub { font-family: var(--font-mono); text-transform: uppercase; font-size: var(--text-m); }

.site-footer {
  padding: var(--sp-6) var(--sp-5);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-4);
  border-top: var(--stroke-w) solid var(--ink);
  margin-top: var(--sp-7);
}
.footer-social { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-social a { position: relative; padding-bottom: 6px; font-size: var(--text-s); }
.footer-copy { margin-left: auto; font-size: var(--text-xs); color: var(--ink-soft); margin-bottom: 0; }

/* ---------- 블록 공통 ---------- */
.blk { padding-left: var(--sp-5); padding-right: var(--sp-5); }
.blk { max-width: 880px; margin-left: auto; margin-right: auto; }
.w-narrow { max-width: 620px; }
.w-wide { max-width: 1200px; }
/* full = 컨테이너만 풀폭 — 텍스트류는 숨쉴 여백 유지, 미디어류만 진짜 가장자리까지 */
.w-full { max-width: none; }
.blk-image.w-full, .blk-video.w-full, .blk-gallery.w-full, .blk-embed.w-full,
.blk-oembed.w-full, .blk-marquee.w-full, .blk-freeform.w-full, .blk-scroll-story.w-full {
  padding-left: 0; padding-right: 0;
}
.a-left { text-align: left; }
.a-center { text-align: center; }
.a-right { text-align: right; }
.s-xs { font-size: var(--text-xs); } .s-s { font-size: var(--text-s); }
.s-m { font-size: var(--text-m); } .s-l { font-size: var(--text-l); }
.s-xl { font-size: var(--text-xl); line-height: var(--leading-tight); }
.s-xxl { font-size: var(--text-xxl); line-height: var(--leading-tight); }
.s-hero { font-size: var(--text-hero); line-height: var(--leading-tight); }
.p-0 { padding-top: 0; padding-bottom: 0; }
.p-1 { padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
.p-2 { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.p-3 { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.p-4 { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.p-5 { padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.p-6 { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.p-7 { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
/* 안쪽 여백(사방) — .blk.ipad-*(0,2,0)로 카드 등 baked padding까지 덮는다. 꿀렁 테두리·내용 사이 숨쉴 틈 */
.blk.ipad-0 { padding: 0; }
.blk.ipad-1 { padding: var(--sp-1); }
.blk.ipad-2 { padding: var(--sp-2); }
.blk.ipad-3 { padding: var(--sp-3); }
.blk.ipad-4 { padding: var(--sp-4); }
.blk.ipad-5 { padding: var(--sp-5); }
.blk.ipad-6 { padding: var(--sp-6); }
/* 블록 들여쓰기 (Tab/⇧Tab) — 컨테이너 폭 안에서 좌측 여백 단계 */
.i-1 { padding-left: calc(var(--sp-5) + var(--sp-5)); }
.i-2 { padding-left: calc(var(--sp-6) + var(--sp-5)); }
.i-3 { padding-left: calc(var(--sp-7) + var(--sp-5)); }
.i-4 { padding-left: calc(var(--sp-7) + var(--sp-6) + var(--sp-5)); }
blockquote { margin: 0 0 var(--sp-3); padding-left: var(--sp-4); border-left: var(--stroke-w) solid var(--ink-faint); color: var(--ink-soft); }
/* 인라인 텍스트 토큰 — 에디터 서식 바가 만드는 서브셋 (raw 색 없음, 잉크/페이퍼만) */
mark { background: var(--ink); color: var(--paper); padding: 0 0.18em; }
.tk-dim { color: var(--ink-soft); }
/* 문단 들여쓰기 (에디터 Tab) — em 단위라 글자 크기를 따라간다 */
.ind-1 { padding-left: 1.5em; }
.ind-2 { padding-left: 3em; }
.ind-3 { padding-left: 4.5em; }
.ind-4 { padding-left: 6em; }
.blk[data-theme] { background: var(--paper); color: var(--ink); }

/* ---------- wriggle 캔버스 ---------- */
[data-wriggle] { position: relative; }
.wriggle-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* ---------- hero ---------- */
.blk-hero {
  position: relative; max-width: none;
  min-height: min(78vh, 720px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-wriggle { position: absolute; inset: 0; }
.hero-inner { position: relative; text-align: center; padding: var(--sp-6) var(--sp-4); pointer-events: none; }
.hero-title {
  font-family: var(--font-display, inherit); font-weight: var(--w-display, 800);
  font-size: var(--text-hero); letter-spacing: calc(var(--track-display, -0.02em) * 1.5); margin: 0;
}
.hero-subtitle { font-size: var(--text-l); color: var(--ink-soft); margin: var(--sp-3) 0 0; }

/* ---------- divider ---------- */
.blk-divider { max-width: 880px; }
.divider-wriggle { height: 40px; }

/* ---------- image / gallery ---------- */
/* figure 블록은 UA 상하 마진만 리셋 — 좌우 auto(가운데 정렬)는 유지해야 한다 */
.blk-image { margin: 0 auto; padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
/* img는 display:block이라 text-align이 안 먹는다 — 정렬 클래스를 마진으로 구현 */
.blk-image.a-center img { margin-inline: auto; }
.blk-image.a-right img { margin-left: auto; }
.blk-image figcaption { font-size: var(--text-xs); color: var(--ink-soft); margin-top: var(--sp-2); }
/* 이미지 크기 (max-width) — 미지정이면 블록 폭 */
.blk-image.imgw-s img { max-width: 220px; }
.blk-image.imgw-m img { max-width: 400px; }
.blk-image.imgw-l img { max-width: 620px; }
/* 비율 크롭 — img가 지정 비율 박스를 채운다. object-fit:cover라 절대 늘어나지 않음 */
.blk-image:is(.ar-1x1, .ar-4x3, .ar-16x9, .ar-3x2, .ar-3x4) img { width: 100%; height: auto; object-fit: cover; }
.blk-image.ar-1x1 img { aspect-ratio: 1 / 1; }
.blk-image.ar-4x3 img { aspect-ratio: 4 / 3; }
.blk-image.ar-16x9 img { aspect-ratio: 16 / 9; }
.blk-image.ar-3x2 img { aspect-ratio: 3 / 2; }
.blk-image.ar-3x4 img { aspect-ratio: 3 / 4; }
.blk-image.of-contain img { object-fit: contain; }
.img-placeholder {
  border: var(--stroke-w) dashed var(--ink-faint);
  color: var(--ink-soft); font-size: var(--text-s);
  padding: var(--sp-6); text-align: center;
}
.blk-gallery { display: grid; gap: var(--sp-3); padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery-strip { grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery-strip .g-item { scroll-snap-align: start; }
.g-item { position: relative; margin: 0; }
.g-item img { width: 100%; display: block; }
.g-item figcaption { font-size: var(--text-xs); color: var(--ink-soft); margin-top: var(--sp-1); }
.g-zoom { cursor: zoom-in; }
/* justify — 매니페스트 종횡비(--ar) 기반 플렉스 정렬 행 */
.gallery-justify { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.gallery-justify .g-item { aspect-ratio: var(--ar, 1.5); flex: calc(var(--ar, 1.5) * 100) 1 calc(var(--ar, 1.5) * 190px); min-width: 130px; }
.gallery-justify .g-item img { height: 100%; object-fit: cover; }
/* masonry — CSS 컬럼 */
.gallery-masonry { display: block; columns: 3 240px; column-gap: var(--sp-3); }
.gallery-masonry .g-item { break-inside: avoid; margin-bottom: var(--sp-3); }
/* slideshow — 페이드 + 화살표/점 (hydrate) */
.gallery-slideshow { display: block; position: relative; aspect-ratio: var(--ar, 16 / 9); overflow: hidden; border: var(--stroke-w) solid var(--ink); }
.gallery-slideshow .g-item { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.gallery-slideshow .g-item.on { opacity: 1; }
.gallery-slideshow .g-item img { width: 100%; height: 100%; object-fit: cover; }
.gs-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  background: color-mix(in srgb, var(--paper) 75%, transparent); color: var(--ink);
  border: none; cursor: pointer; font-size: var(--text-l); padding: var(--sp-2) var(--sp-3);
}
.gs-prev { left: 0; } .gs-next { right: 0; }
.gs-dots { position: absolute; bottom: var(--sp-3); left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.gs-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); padding: 0; cursor: pointer; }
.gs-dots button.on { background: var(--ink); }

/* ---------- 라이트박스 (Quick View) ---------- */
.bk-lightbox {
  position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--paper) 94%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-5); backdrop-filter: blur(6px);
}
.bk-lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border: var(--stroke-w) solid var(--ink); }
.bk-lightbox figcaption { margin-top: var(--sp-3); font-size: var(--text-s); color: var(--ink-soft); }
.bk-lightbox .lb-close {
  position: absolute; top: var(--sp-4); right: var(--sp-4); background: none; border: none;
  font-size: var(--text-xl); color: var(--ink); cursor: pointer; line-height: 1;
}
.bk-lightbox .lb-nav {
  position: absolute; top: 50%; translate: 0 -50%; background: none; border: none;
  font-size: var(--text-xl); color: var(--ink); cursor: pointer; padding: var(--sp-4);
}
.bk-lightbox .lb-prev { left: var(--sp-2); } .bk-lightbox .lb-next { right: var(--sp-2); }

/* ---------- marquee ---------- */
.blk-marquee { overflow: hidden; white-space: nowrap; padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.mq-track { display: inline-flex; gap: var(--sp-5); animation: bk-mq var(--mq-dur, 18s) linear infinite; will-change: transform; }
.blk-marquee:hover .mq-track { animation-play-state: paused; }
.mq-rev .mq-track { animation-direction: reverse; }
.mq-item { display: inline-flex; gap: var(--sp-5); font-family: var(--font-display); font-weight: var(--w-display, 800); }
@keyframes bk-mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ---------- audio ---------- */
.blk-audio { margin: 0 auto; padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.blk-audio audio { width: 100%; accent-color: var(--ink); }
.audio-title { font-size: var(--text-s); font-weight: 700; margin-bottom: var(--sp-2); display: flex; align-items: center; gap: var(--sp-2); }
.audio-wl { flex: 1; height: 12px; min-width: 60px; }

/* ---------- columns (가변 분할) ---------- */
.blk-columns { display: grid; gap: var(--sp-4); grid-template-columns: var(--cols, 1fr 1fr); }
.blk-columns > .blk { padding-left: 0; padding-right: 0; max-width: none; margin-left: 0; margin-right: 0; }

/* ---------- table ---------- */
.blk-table table { width: 100%; border-collapse: collapse; font-size: var(--text-s); }
.blk-table th { font-weight: 700; text-align: left; border-bottom: var(--stroke-w) solid var(--ink); padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; }
.blk-table td { border-bottom: 1px solid var(--ink-faint); padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; vertical-align: top; }

/* ---------- accordion ---------- */
.blk-accordion details { border-bottom: 1px solid var(--ink-faint); }
.blk-accordion summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: var(--sp-3);
  padding: var(--sp-3) 0; font-weight: 700;
}
.blk-accordion summary::-webkit-details-marker { display: none; }
.blk-accordion summary::before { content: "+"; font-family: var(--font-mono); color: var(--ink-soft); }
.blk-accordion details[open] summary::before { content: "−"; }
.blk-accordion .acc-body { padding: 0 0 var(--sp-3) calc(var(--sp-3) + 1ch); color: var(--ink-soft); }

/* ---------- oembed ---------- */
.blk-oembed { margin: 0 auto; padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.oe-frame { width: 100%; aspect-ratio: var(--oe-aspect, 16 / 9); border: var(--stroke-w) solid var(--ink); }
.oe-poster {
  position: relative; width: 100%; aspect-ratio: var(--oe-aspect, 16 / 9);
  border: var(--stroke-w) solid var(--ink); background: var(--paper);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: var(--sp-2); cursor: pointer; font: inherit; padding: 0;
}
.oe-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oe-provider { position: relative; font-family: var(--font-mono); font-size: var(--text-xs); border: 1px solid var(--ink-soft); padding: 1px 8px; color: var(--ink-soft); background: var(--paper); }
.oe-play { position: relative; font-size: var(--text-xl); color: var(--ink); text-shadow: 0 0 18px var(--paper); }

/* ---------- form ---------- */
.blk-form form { display: flex; flex-direction: column; gap: var(--sp-3); }
.blk-form input, .blk-form textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: var(--stroke-w) solid var(--ink); padding: var(--sp-2) var(--sp-3); outline: none;
}
.blk-form input:focus, .blk-form textarea:focus { box-shadow: 3px 3px 0 var(--ink); }
.blk-form textarea { min-height: 110px; resize: vertical; }
.blk-form .form-row { display: flex; gap: var(--sp-3); }
.blk-form .form-row input { flex: 1; }
.blk-form button {
  font: inherit; font-weight: 700; background: var(--ink); color: var(--paper);
  border: var(--stroke-w) solid var(--ink); padding: var(--sp-2) var(--sp-5); cursor: pointer; align-self: flex-start;
}
.blk-form button:hover { background: var(--paper); color: var(--ink); }
.form-note { font-size: var(--text-s); color: var(--ink-soft); }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- search ---------- */
.blk-search input {
  width: 100%; font: inherit; font-size: var(--text-l); color: var(--ink); background: var(--paper);
  border: 0; border-bottom: var(--stroke-w) solid var(--ink); padding: var(--sp-2) 0; outline: none;
}
.search-results { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: flex; flex-direction: column; }
.search-results a { display: flex; gap: var(--sp-3); align-items: baseline; padding: var(--sp-2) 0; border-bottom: 1px solid var(--ink-faint); }
.search-results .sr-kind { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); min-width: 64px; }

/* ---------- collection-list 확장 ---------- */
/* 섹션 눈금 라벨 — mono 라벨 · 하이라인 · 실제 개수. 계기판 눈금 문법(§2.2). */
.cl-head {
  display: flex; align-items: baseline; gap: var(--sp-3);
  grid-column: 1 / -1;   /* grid 블록 안에서는 전 컬럼을 가로지른다 */
  font-family: var(--font-mono); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.16em;
  padding-bottom: var(--sp-2); margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--ink-faint);
}
.cl-head-label { color: var(--ink); }
.cl-head-count, .cl-head-more { margin-left: auto; color: var(--ink-soft); letter-spacing: 0.08em; }
.cl-head-more { text-decoration: none; border-bottom: 0; }
.cl-head-more:hover { color: var(--ink); }
.cl-head-more span { display: inline-block; transition: transform var(--mo-dur, 0.15s) var(--mo-ease, ease); }
.cl-head-more:hover span { transform: translateX(3px); }

.cl-filter { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.cl-chip {
  font: inherit; font-size: var(--text-xs); font-family: var(--font-mono);
  border: 1px solid var(--ink-soft); color: var(--ink-soft); background: var(--paper);
  padding: 2px 10px; cursor: pointer;
}
.cl-chip.on, .cl-chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cl-more {
  display: block; margin: var(--sp-4) auto 0; font: inherit; font-weight: 700;
  background: none; border: var(--stroke-w) solid var(--ink); color: var(--ink);
  padding: var(--sp-2) var(--sp-5); cursor: pointer;
}
.cl-more:hover { background: var(--ink); color: var(--paper); }
.cl-index { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cl-index .cl-item { position: relative; }
.cl-index .cl-cover { aspect-ratio: 1; }
.cl-index .cl-title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--paper) 82%, transparent); opacity: 0; transition: opacity 0.15s ease;
  font-size: var(--text-s); text-align: center; padding: var(--sp-2);
}
.cl-index .cl-item:hover .cl-title { opacity: 1; }
.cl-hidden { display: none; }

/* ---------- video / embed ---------- */
.blk-video, .blk-embed { margin: 0 auto; padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.video-poster {
  position: relative; display: block; width: 100%; padding: 0;
  border: var(--stroke-w) solid var(--ink); background: var(--paper); cursor: pointer;
}
.video-poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl); color: var(--paper);
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.55);
}
.video-poster:hover .video-play { transform: scale(1.15); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: var(--stroke-w) solid var(--ink); }
.embed-loading { color: var(--ink-soft); text-align: center; padding: var(--sp-5); }

/* ---------- 임베드 호스트 ---------- */
.embed-host { position: relative; }
.embed-poster, .embed-frame-wrap {
  position: relative; width: 100%;
  aspect-ratio: var(--embed-aspect, 16 / 9);
  border: var(--stroke-w) solid var(--ink);
  overflow: hidden; background: var(--paper);
}
.embed-poster-img { width: 100%; height: 100%; object-fit: cover; }
.embed-poster-blank { position: absolute; inset: 0; }
.embed-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--sp-3);
  text-align: center; padding: var(--sp-4);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.embed-title { font-weight: 800; font-size: var(--text-l); letter-spacing: -0.01em; }
.embed-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.embed-badge {
  font-size: var(--text-xs); font-family: var(--font-mono);
  border: 1px solid var(--ink-soft); color: var(--ink-soft); padding: 1px 8px;
}
.embed-play {
  font: inherit; font-weight: 700; font-size: var(--text-m);
  background: var(--ink); color: var(--paper);
  border: var(--stroke-w) solid var(--ink); padding: var(--sp-2) var(--sp-5); cursor: pointer;
}
.embed-play:hover { background: var(--paper); color: var(--ink); }
.embed-full-link { font-size: var(--text-xs); color: var(--ink-soft); border-bottom: 1px solid var(--ink-faint); }
.embed-note { color: var(--ink-soft); font-size: var(--text-s); margin: 0; }
.embed-missing {
  border: var(--stroke-w) dashed var(--ink-faint); color: var(--ink-soft);
  padding: var(--sp-6); text-align: center; font-size: var(--text-s);
}
.embed-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-frame-bar {
  position: absolute; top: 0; right: 0; display: flex; gap: 2px; align-items: center;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  font-size: var(--text-xs); padding: 2px 4px 2px 10px;
}
.embed-frame-bar button {
  background: none; border: none; color: var(--ink); cursor: pointer;
  font-size: var(--text-s); padding: 2px 6px;
}
.embed-frame-bar button:hover { background: var(--ink); color: var(--paper); }
.embed-host:fullscreen .embed-frame-wrap { aspect-ratio: auto; height: 100%; border: 0; }

/* ---------- grid / button ---------- */
.blk-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(var(--grid-cols, 3), 1fr);
}
.blk-grid > .blk { padding-left: 0; padding-right: 0; max-width: none; margin-left: 0; margin-right: 0; }

.btn-inline { border-bottom: var(--stroke-w) solid var(--ink); }
.btn-inline:hover { background: var(--ink); color: var(--paper); }
.btn-primary {
  display: inline-block; border: var(--stroke-w) solid var(--ink);
  padding: var(--sp-2) var(--sp-4); font-weight: 700;
}
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-card {
  display: flex; flex-direction: column; gap: var(--sp-2);
  border: var(--stroke-w) solid var(--ink);
  padding: var(--sp-5) var(--sp-4);
  position: relative; min-height: 132px;
  transition: transform 0.15s ease;
}
.btn-card:hover { transform: translateY(-3px); }
.btn-card-label {
  font-family: var(--font-display, inherit); font-weight: var(--w-display, 800);
  font-size: var(--text-l); letter-spacing: var(--track-display, -0.01em);
}
.btn-card-sub { font-size: var(--text-s); color: var(--ink-soft); }
.btn-card-wl { position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-3); height: 8px; }

/* ---------- card 블록 ---------- */
.blk-card {
  display: flex; flex-direction: column; gap: var(--sp-2);
  border: var(--stroke-w) solid var(--ink);
  padding: var(--sp-4);
  position: relative; min-height: 132px;
  transition: transform 0.15s ease;
}
a.blk-card:hover, .card-linked:hover { transform: translateY(-3px); cursor: pointer; }
.blk-card > .blk { padding-left: 0; padding-right: 0; max-width: none; margin-left: 0; margin-right: 0; }
.blk-card h3 { margin-bottom: var(--sp-1); }
.blk-card p { color: var(--ink-soft); font-size: var(--text-s); margin: 0; }
.card-wl { position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-3); height: 8px; }
.blk-card:has(.card-wl) { padding-bottom: var(--sp-6); }
.cl-item-layout {
  display: flex; flex-direction: column; gap: var(--sp-2);
  border: var(--stroke-w) solid var(--ink); padding: var(--sp-4);
  transition: transform 0.15s ease;
}
.cl-item-layout:hover { transform: translateY(-3px); }
.cl-item-layout .blk { padding-left: 0; padding-right: 0; max-width: none; margin: 0; }
.cl-item-layout .blk-image { padding-top: 0; padding-bottom: 0; }

/* 꿀렁 밑줄 (nav/footer/카드) */
.nav-wl, .footer-social [data-wriggle] { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; }

/* ---------- collection-list ---------- */
.blk-collection-list { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.cl-grid { display: grid; gap: var(--sp-5) var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cl-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.cl-item { display: flex; flex-direction: column; gap: var(--sp-2); }
.cl-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: var(--stroke-w) solid var(--ink); }
.cl-cover-blank { position: relative; background: var(--paper); }
.cl-title { font-weight: 700; }
.cl-meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); letter-spacing: 0.02em; }
.cl-price { font-family: var(--font-mono); font-size: var(--text-s); }
.cl-soldout {
  margin-left: var(--sp-2); font-size: var(--text-xs); font-weight: 400;
  border: 1px solid var(--ink-soft); color: var(--ink-soft); padding: 1px 6px;
}
.cl-empty-msg { color: var(--ink-soft); text-align: center; padding: var(--sp-6) 0; }

/* ---------- 커머스: 상품 구매(product-buy) + 헤더 카트 + 드로어 ---------- */
.blk-product-buy { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.pb-price { font-family: var(--font-mono); font-size: var(--text-l); font-weight: 700; margin: 0; }
.pb-price del { color: var(--ink-soft); font-weight: 400; }
.pb-notice { color: var(--ink-soft); font-size: var(--text-s); margin: 0; }
.pb-field { display: flex; flex-direction: column; gap: var(--sp-1); align-items: center; }
.pb-flabel { font-size: var(--text-xs); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.pb-field select, .pb-qty-input {
  font: inherit; font-family: var(--font-mono); padding: var(--sp-2) var(--sp-3);
  border: var(--stroke-w) solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 0;
}
.pb-qty-input { width: 5em; text-align: center; }
.pb-field option:disabled { color: var(--ink-faint); }
.pb-add { min-width: 12em; }
.pb-external { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

.nav-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: inherit; cursor: pointer; padding: var(--sp-1);
}
.nav-cart svg { width: 22px; height: 22px; display: block; }
.nav-cart:hover { opacity: 0.65; }
.nav-cart-count {
  position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 10px; border-radius: 999px;
}

.bk-cart-backdrop { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 40%, transparent); z-index: 1000; }
.bk-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 1001;
  background: var(--paper); color: var(--ink); border-left: var(--stroke-w) solid var(--ink);
  display: flex; flex-direction: column; overflow-y: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .bk-cart-drawer { animation: bk-cart-in 0.22s ease; }
  @keyframes bk-cart-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
}
.bk-cart-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: var(--stroke-w) solid var(--ink); }
.bk-cart-head h2 { margin: 0; font-size: var(--text-l); }
.bk-cart-x, .bk-cart-rm { background: none; border: 0; color: inherit; cursor: pointer; font-size: 20px; line-height: 1; padding: 4px; }
.bk-cart-list { list-style: none; margin: 0; padding: 0; }
.bk-cart-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--ink-faint); }
.bk-cart-row.is-out { opacity: 0.6; }
.bk-cart-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bk-cart-title { font-size: var(--text-s); }
.bk-cart-price { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); }
.bk-cart-qty { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); }
.bk-cart-qty button { width: 22px; height: 22px; border: var(--stroke-w) solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.bk-cart-out { font-size: var(--text-xs); color: var(--ink-soft); }
.bk-cart-empty { padding: var(--sp-6) var(--sp-5); color: var(--ink-soft); }
.bk-cart-msg { padding: var(--sp-2) var(--sp-5); color: var(--ink-soft); font-size: var(--text-s); }
.bk-cart-foot { margin-top: auto; padding: var(--sp-4) var(--sp-5); border-top: var(--stroke-w) solid var(--ink); display: flex; flex-direction: column; gap: var(--sp-3); }
.bk-cart-sub { display: flex; justify-content: space-between; font-family: var(--font-mono); font-weight: 700; }
.bk-cart-checkout { width: 100%; }
.bk-cart-checkout:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- v4.3 표현력 축 (토큰 어휘) ---------- */
/* 테두리 토큰 = 단일 진실원천. .blk.b-* (0,2,0)로 블록 자체 baked-in border(예: .blk-card)까지 덮는다 */
.blk.b-none { border: none; }
.blk.b-ink { border: var(--stroke-w) solid var(--ink); }
.blk.b-soft { border: 1px solid var(--ink-faint); }
/* 꿀렁 테두리 — CSS border 제거, 캔버스 프레임(hydrate가 .wriggle-frame 주입)이 손그림 선을 그린다 */
.blk.b-wriggle { position: relative; border: none; }
.wriggle-frame { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
/* 테두리 두께 (잉크/꿀렁) — --stroke-w 오버라이드. b-ink CSS 선과 캔버스 프레임 모두 반영 */
.bw-1 { --stroke-w: 1px; }
.bw-2 { --stroke-w: 2.6px; }
.bw-3 { --stroke-w: 3.6px; }
.r-s { border-radius: 8px; overflow: hidden; }
.r-m { border-radius: 18px; overflow: hidden; }
.r-round { border-radius: 999px; overflow: hidden; }
.sh-soft { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.09); }
.sh-ink { box-shadow: 7px 7px 0 var(--ink); } /* 잉크 하드섀도 */
.rot--2 { rotate: -2deg; } .rot--1 { rotate: -1deg; }
.rot-1 { rotate: 1deg; } .rot-2 { rotate: 2deg; }
.h-lift { transition: translate 0.18s ease; }
.h-lift:hover { translate: 0 -4px; }
.h-invert { transition: background 0.15s ease, color 0.15s ease; }
.h-invert:hover { background: var(--ink); color: var(--paper); }
.h-wiggle:hover { animation: bk-wiggle 0.45s ease; }
@keyframes bk-wiggle { 25% { rotate: 0.9deg; } 75% { rotate: -0.9deg; } }
.st-top { position: sticky; top: 62px; z-index: 5; background: var(--paper); }
.t-metal {
  background: linear-gradient(115deg, var(--metal-a), var(--metal-b) 45%, var(--metal-c));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.t-accent { color: var(--accent); }

/* ---------- v5 계기판 키트 — panel · readout · rule (꿀렁 선의 기계적 짝) ---------- */
/* 라벨 붙은 모듈/패널: .blk 거터는 유지하고 프레임은 안쪽 div에 (테두리 밖 숨쉴 여백) */
.panel-frame { border: var(--stroke-w) solid var(--ink); border-radius: 3px; overflow: clip; }
.panel-head {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--ink-faint);
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1;
}
.panel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.panel-index { color: var(--accent); letter-spacing: 0.08em; }
.panel-label { text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }
.panel-title { margin-left: auto; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; color: var(--ink); }
.panel-body { padding: var(--sp-4) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-3); }
.panel-body > .blk { padding-left: 0; padding-right: 0; max-width: none; margin-left: 0; margin-right: 0; }

/* 리드아웃 / 레벨 미터 / 큰 인덱스 숫자 */
.blk-readout { font-family: var(--font-mono); }
.ro-value-row, .ro-meter { display: flex; align-items: center; gap: var(--sp-3); }
.ro-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); flex: none; }
.ro-meter .ro-label { width: 72px; }
.ro-value { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.ro-meter .ro-value { min-width: 3ch; text-align: right; }
.ro-unit { color: var(--ink-soft); font-weight: 400; margin-left: 2px; }
.ro-bar { flex: 1; height: 8px; background: color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 1px; overflow: hidden; }
.ro-live {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 0.55em; vertical-align: 0.12em;
}
@media (prefers-reduced-motion: no-preference) {
  .ro-live { animation: ro-pulse 2.4s ease-in-out infinite; }
  @keyframes ro-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}
.ro-bar > span { display: block; height: 100%; background: var(--accent); transition: width var(--mo-dur, 0.15s) var(--mo-ease, ease); }
.ro-index { display: flex; align-items: baseline; gap: var(--sp-3); }
.ro-num { font-size: var(--text-xxl); font-weight: 700; letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.ro-cap { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }

/* 정밀 선 — hair · dotted · double · labeled · vertical */
.blk-rule { display: flex; align-items: center; gap: var(--sp-3); }
.blk-rule .rl-line { flex: 1; height: 0; border-top: var(--stroke-w) solid var(--ink); }
.blk-rule.rl-w-thin .rl-line { border-top-width: 1px; }
.rl-dotted .rl-line { border-top-style: dotted; border-top-width: 2px; }
.rl-double .rl-line { height: 4px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.rl-label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); flex: none; }
.blk-rule.rl-vertical { display: inline-flex; height: 1.4em; vertical-align: middle; max-width: none; }
.rl-vertical .rl-line { flex: none; width: 0; height: 100%; border-top: 0; border-left: var(--stroke-w) solid var(--ink); }
.rl-vertical.rl-w-thin .rl-line { border-left-width: 1px; }

/* ---------- v5 섹션 블록 (마케팅/구조) ---------- */
/* hero 확장 — 아이브로 · CTA · 정렬 */
.hero-inner.hero-a-left { text-align: left; }
/* accent는 구매 CTA와 NOW/LIVE 상태에만 쓴다(§2.1) — eyebrow는 장식이라 잉크로 회수. */
.hero-eyebrow { display: block; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-soft); margin-bottom: var(--sp-3); }
.hero-ctas { display: flex; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-4); pointer-events: auto; flex-wrap: wrap; }
.hero-a-left .hero-ctas { justify-content: flex-start; }

/* CTA 배너 */
.blk-cta .cta-frame { border: var(--stroke-w) solid var(--ink); border-radius: 3px; padding: var(--sp-6) var(--sp-5); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.cta-eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); }
.cta-title { margin: 0; font-size: var(--text-xl); }
.cta-text { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.cta-btns { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); flex-wrap: wrap; justify-content: center; }

/* 기능 그리드 — 번호 매김 */
.blk-features { display: grid; gap: var(--sp-5) var(--sp-4); grid-template-columns: repeat(var(--grid-cols, 3), 1fr); }
.ft-item { display: flex; flex-direction: column; gap: var(--sp-2); }
.ft-idx { font-family: var(--font-mono); font-size: var(--text-s); color: var(--accent); letter-spacing: 0.08em; }
.ft-title { margin: 0; font-size: var(--text-l); }
.ft-body { margin: 0; color: var(--ink-soft); font-size: var(--text-s); }

/* 인용/추천 */
.ts-quote { margin: 0 0 var(--sp-3); font-family: var(--font-display); font-weight: var(--w-display, 800); font-size: var(--text-l); line-height: var(--leading-tight); letter-spacing: var(--track-display, -0.01em); }
.ts-quote::before { content: "\201C"; color: var(--accent); }
.ts-cite { display: flex; gap: var(--sp-2); align-items: baseline; font-size: var(--text-s); }
.ts-author { font-weight: 700; }
.ts-role { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); }

/* 로고 스트립 */
.lg-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-5); }
.lg-item img { height: 34px; width: auto; object-fit: contain; }
.lg-gray .lg-item img { filter: grayscale(1); opacity: 0.55; transition: opacity var(--mo-dur, .15s), filter var(--mo-dur, .15s); }
.lg-gray .lg-item img:hover { filter: none; opacity: 1; }

/* 지표/카운터 */
.blk-stats { display: grid; gap: var(--sp-4); grid-template-columns: repeat(var(--grid-cols, 3), 1fr); text-align: center; }
.st-item { display: flex; flex-direction: column; gap: var(--sp-1); }
.st-value { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-xxl); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.st-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }

/* FAQ — 네이티브 details + JSON-LD */
.blk-faq .faq-item { border-bottom: 1px solid var(--ink-faint); }
.blk-faq summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: var(--sp-3); padding: var(--sp-3) 0; font-weight: 700; }
.blk-faq summary::-webkit-details-marker { display: none; }
.blk-faq summary::before { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.blk-faq details[open] summary::before { content: "\2212"; }
.blk-faq .faq-a { padding: 0 0 var(--sp-3) calc(var(--sp-3) + 1ch); color: var(--ink-soft); }

/* 탭 — 순수 CSS (:checked) */
.blk-tabs .tab-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.tab-bar { display: flex; gap: var(--sp-4); border-bottom: 1px solid var(--ink-faint); flex-wrap: wrap; }
.tab-label { cursor: pointer; padding: var(--sp-2) 0; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-label:hover { color: var(--ink); }
.tab-panels { padding-top: var(--sp-4); }
.tab-panel { display: none; }

/* 타임라인 */
.blk-timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 18px 1fr; gap: var(--sp-3); padding-bottom: var(--sp-4); position: relative; }
.tl-item::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: -6px; width: 1px; background: var(--ink-faint); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-node { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 5px; position: relative; z-index: 1; }
.tl-title { font-weight: 700; }
.tl-body { margin: var(--sp-1) 0 0; color: var(--ink-soft); font-size: var(--text-s); }

/* 프로필 카드 */
.blk-profile { display: flex; gap: var(--sp-3); align-items: flex-start; border: var(--stroke-w) solid var(--ink); border-radius: 3px; padding: var(--sp-4); }
.pf-avatar img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.pf-meta { display: flex; flex-direction: column; gap: var(--sp-1); }
.pf-name { font-weight: 700; font-size: var(--text-l); }
a.pf-name:hover { color: var(--accent); }
.pf-role { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.pf-bio { margin: var(--sp-1) 0 0; color: var(--ink-soft); font-size: var(--text-s); }

/* 사이트 크롬 v5 — 로고 이미지 · 내비 CTA · 컬럼 푸터 */
.site-logo-img { display: inline-flex; align-items: center; }
.site-logo-img img { height: 22px; width: auto; display: block; }
.site-nav .nav-cta { padding: 5px 14px; font-size: var(--text-xs); align-self: center; }
.site-footer-cols { flex-direction: column; align-items: stretch; gap: var(--sp-5); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-5); width: 100%; }
.footer-col-title { display: block; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { position: relative; font-size: var(--text-s); padding-bottom: 4px; }
.footer-base { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-4); width: 100%; border-top: 1px solid var(--ink-faint); padding-top: var(--sp-4); }
.footer-base .footer-copy { margin-left: auto; }

@media (max-width: 640px) {
  .blk-features, .blk-stats { grid-template-columns: 1fr; }
  .blk-tabs .tab-bar { overflow-x: auto; flex-wrap: nowrap; }
}

/* 이미지 이펙트 — 모노크롬 브랜드 정합 (grain/dither/halftone/duotone) */
.fx-grain, .fx-dither, .fx-halftone, .fx-duotone { position: relative; }
.fx-grain img { filter: contrast(1.03); }
.fx-grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0.35 0.35 0 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.fx-dither img { filter: grayscale(1) contrast(1.25) url(#bk-fx-dither); }
.fx-halftone img { filter: grayscale(1) contrast(1.18); }
.fx-halftone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.85) 22%, transparent 24%);
  background-size: 4px 4px; mix-blend-mode: screen;
}
.fx-duotone img { filter: grayscale(1) contrast(1.25) brightness(1.02); }
/* 캡션은 오버레이 위로 (그레인/도트 겹침 방지) */
.fx-grain figcaption, .fx-halftone figcaption { position: relative; z-index: 1; background: var(--paper); }

/* ---------- v4.4 등장 모션 (IO가 .ap-in 부여, reduced-motion은 hydrate가 스킵) ---------- */
.ap-wait { opacity: 0; }
.ap-rise.ap-wait { translate: 0 26px; }
.ap-rise-lg.ap-wait { translate: 0 64px; }
.ap-blur.ap-wait { filter: blur(10px); }
.ap-wipe.ap-wait { clip-path: inset(0 100% 0 0); opacity: 1; }
.ap-in {
  opacity: 1 !important; translate: 0 0 !important; filter: none !important; clip-path: inset(0 0 0 0) !important;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.7s ease, clip-path 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
/* stagger — 컨테이너 자식 순차 등장 (최대 10) */
.stg-on.ap-in > * { opacity: 0; translate: 0 18px; animation: bk-ap-child 0.6s ease forwards; }
.stg-on.ap-in > :nth-child(1) { animation-delay: 0.05s; } .stg-on.ap-in > :nth-child(2) { animation-delay: 0.13s; }
.stg-on.ap-in > :nth-child(3) { animation-delay: 0.21s; } .stg-on.ap-in > :nth-child(4) { animation-delay: 0.29s; }
.stg-on.ap-in > :nth-child(5) { animation-delay: 0.37s; } .stg-on.ap-in > :nth-child(6) { animation-delay: 0.45s; }
.stg-on.ap-in > :nth-child(7) { animation-delay: 0.53s; } .stg-on.ap-in > :nth-child(8) { animation-delay: 0.61s; }
.stg-on.ap-in > :nth-child(9) { animation-delay: 0.69s; } .stg-on.ap-in > :nth-child(n+10) { animation-delay: 0.77s; }
@keyframes bk-ap-child { to { opacity: 1; translate: 0 0; } }

/* 등장: 테두리 그리기 (draw) — hydrate가 .ap-draw-svg(rect) 주입, ap-in에 stroke-dashoffset 애니메이션.
   내용은 숨기지 않고 테두리만 그려진다. reduced-motion은 완성된 테두리로 정지. */
.ap-draw { position: relative; }
.ap-draw > .ap-draw-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.ap-draw > .ap-draw-svg rect {
  fill: none; stroke: var(--ink); stroke-width: var(--stroke-w);
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.ap-draw.ap-in > .ap-draw-svg rect { animation: bk-draw 0.9s cubic-bezier(0.4, 0.7, 0.3, 1) forwards; }
@keyframes bk-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ap-draw > .ap-draw-svg rect { stroke-dashoffset: 0; animation: none; }
}

/* 장난 이펙트 */
.pl-blink { animation: bk-blink 1.6s steps(1) infinite; }
@keyframes bk-blink { 50% { opacity: 0.12; } }
.pl-drag { user-select: none; }

/* 순서 (컨테이너 안) */
.o-first { order: -1; } .o-last { order: 99; }

/* ---------- freeform (자유 배치 — Lab) ---------- */
.blk-freeform { position: relative; height: var(--ff-h, 70vh); max-width: none; overflow: hidden; }
.ff-item { position: absolute; }
.ff-item > .blk { padding-left: 0; padding-right: 0; max-width: none; margin: 0; }

/* ---------- scroll-story ---------- */
.blk-scroll-story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; }
.ss-media { margin: 0; position: sticky; top: 90px; }
.ss-media img { width: 100%; border: var(--stroke-w) solid var(--ink); }
.ss-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.18; transition: opacity 0.4s ease; }
.ss-step.on { opacity: 1; }
@media (max-width: 640px) {
  .blk-scroll-story { grid-template-columns: 1fr; }
  .ss-media { position: relative; top: 0; }
  .ss-step { min-height: auto; opacity: 1; padding: var(--sp-4) 0; }
}

/* ---------- 백드롭 (페이지 배경 엔진) ---------- */
.page-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.page-backdrop.bd-gradient-soft { background: linear-gradient(var(--bd-angle, 160deg), var(--paper), var(--ink-faint)); }
.page-backdrop.bd-gradient-deep { background: linear-gradient(var(--bd-angle, 160deg), var(--paper) 30%, var(--ink-soft)); opacity: .5; }
.page-backdrop.bd-grain::after {
  content: ""; position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.3 0.3 0 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: var(--bd-opacity, 0.16); object-position: var(--bd-focus, center); }
/* 청사진 격자 — 계기판 배경 (선 격자 / 점 격자) */
.page-backdrop.bd-grid {
  background-image:
    linear-gradient(var(--ink-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-faint) 1px, transparent 1px);
  background-size: var(--bd-cell, 32px) var(--bd-cell, 32px);
  opacity: 0.55;
}
.page-backdrop.bd-grid-dots {
  background-image: radial-gradient(var(--ink-faint) 1.4px, transparent 1.6px);
  background-size: var(--bd-cell, 32px) var(--bd-cell, 32px);
  opacity: 0.75;
}

/* ---------- 핀 요소 (전 페이지 고정) ---------- */
.site-pinned { position: fixed; z-index: 45; pointer-events: none; }
.site-pinned > * { pointer-events: auto; }
.site-pinned.pin-bottom { left: 0; right: 0; bottom: 0; }
.site-pinned.pin-top { left: 0; right: 0; top: 0; }
.site-pinned.pin-corner-left { left: var(--sp-4); bottom: var(--sp-4); }
.site-pinned.pin-corner-right { right: var(--sp-4); bottom: var(--sp-4); }
.site-pinned .blk { padding-top: 0; padding-bottom: 0; }
.site-pinned .blk-marquee { background: var(--paper); border-top: var(--stroke-w) solid var(--ink); padding: var(--sp-2) 0; }

/* ---------- 오버레이 페이지 ---------- */
.bk-overlay-page {
  position: fixed; inset: 0; z-index: 120; overflow-y: auto;
  background: var(--paper); animation: bk-ov-in 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  border-top: var(--stroke-w) solid var(--ink);
}
@keyframes bk-ov-in { from { translate: 0 4vh; opacity: 0; } }
.bk-overlay-close {
  position: sticky; top: var(--sp-3); margin-left: auto; margin-right: var(--sp-4); display: block;
  background: var(--paper); border: var(--stroke-w) solid var(--ink); color: var(--ink);
  font-size: var(--text-l); line-height: 1; padding: var(--sp-1) var(--sp-3); cursor: pointer; z-index: 2;
}
.bk-overlay-close:hover { background: var(--ink); color: var(--paper); }

/* ---------- 페이지 전환 (View Transitions — 지원 브라우저만) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: bk-vt-out 0.22s ease forwards; }
::view-transition-new(root) { animation: bk-vt-in 0.3s ease; }
@keyframes bk-vt-out { to { opacity: 0; } }
@keyframes bk-vt-in { from { opacity: 0; translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- 금속 질감 (v1: CSS 포일) ---------- */
.metal {
  background: linear-gradient(115deg,
    var(--metal-a) 0%, var(--metal-b) 30%, var(--metal-c) 50%, var(--metal-b) 70%, var(--metal-a) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transition: background-position 0.6s ease;
}
.metal:hover, a:hover .metal { background-position: 100% 0; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .blk-grid { grid-template-columns: repeat(min(var(--grid-cols, 3), 2), 1fr); }
}
@media (max-width: 640px) {
  .site-nav { padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
  .nav-links { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .site-nav .theme-toggle { margin-left: auto; }
  .nav-burger { margin-left: 0; }
  /* 좌/우 레일은 모바일에서 상단 바로 복귀 (햄버거 오버레이 사용) */
  body.nav-pos-left .site-nav, body.nav-pos-right .site-nav {
    position: sticky; top: 0; bottom: auto; width: auto; flex-direction: row; align-items: center;
    border: 0; padding: var(--sp-3) var(--sp-4);
    background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px);
  }
  body.nav-pos-left .site-main, body.nav-pos-left .site-footer,
  body.nav-pos-right .site-main, body.nav-pos-right .site-footer { margin-left: 0; margin-right: 0; }
  body.nav-pos-left .theme-toggle, body.nav-pos-right .theme-toggle { margin-top: 0; }
  /* 하단 바 모바일: 링크를 가로 스크롤로 유지 (햄버거 대신) */
  body.nav-pos-bottom .nav-links {
    display: flex; flex-wrap: nowrap; overflow-x: auto; margin-left: auto; gap: var(--sp-3);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  body.nav-pos-bottom .nav-burger { display: none; }
  /* NOW 리드아웃: 좁은 폭에서 값이 잘리지 않게 줄바꿈 후 좌측 정렬 */
  .ro-value-row { flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
  .ro-value-row .ro-value { margin-left: 0; }
  .blk { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .blk-grid { grid-template-columns: 1fr; }
  .blk-hero { min-height: 66vh; }
  .gallery-strip { grid-auto-columns: 88%; }
}

/* ---------- 모바일 전용 오버라이드 (style.sm → sm-* 클래스) ---------- */
@media (max-width: 640px) {
  .sm-hide { display: none !important; }
  .sm-a-left { text-align: left; } .sm-a-center { text-align: center; } .sm-a-right { text-align: right; }
  .sm-s-xs { font-size: var(--text-xs); } .sm-s-s { font-size: var(--text-s); }
  .sm-s-m { font-size: var(--text-m); } .sm-s-l { font-size: var(--text-l); }
  .sm-s-xl { font-size: var(--text-xl); } .sm-s-xxl { font-size: var(--text-xxl); }
  .sm-s-hero { font-size: var(--text-hero); }
  .sm-p-0 { padding-top: 0; padding-bottom: 0; }
  .sm-p-1 { padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
  .sm-p-2 { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
  .sm-p-3 { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
  .sm-p-4 { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
  .sm-p-5 { padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
  .sm-p-6 { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
  .sm-p-7 { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
  .sm-f-display { font-family: var(--font-display); } .sm-f-body { font-family: var(--font-body); } .sm-f-mono { font-family: var(--font-mono); }
  .sm-w-narrow { max-width: 620px; }
  .sm-w-normal { max-width: 880px; }
  .sm-w-wide { max-width: 1200px; }
  .sm-w-full { max-width: none; padding-left: 0; padding-right: 0; }
  .sm-i-1 { padding-left: calc(var(--sp-5) + var(--sp-4)); }
  .sm-i-2 { padding-left: calc(var(--sp-6) + var(--sp-4)); }
  .sm-i-3 { padding-left: calc(var(--sp-7) + var(--sp-4)); }
  .sm-i-4 { padding-left: calc(var(--sp-7) + var(--sp-6) + var(--sp-4)); }
}

/* ---------- 모션 감소 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
