/* ============ D안 · Light Editorial ============ */
:root {
  --bg: #f4f1ec;
  --paper: #fbfaf7;
  --ink: #171614;
  --sub: #716b63;
  --line: #ddd7cd;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* 브랜드별 색 대신 연한 회색으로 통일 (HTML의 브랜드 색 지정보다 우선) */
.index__row, .chapter { --brand: #b4afa8 !important; --brand-bg: #ebe9e5 !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  /* 영문·숫자는 Jost, 한글은 Jost에 없으므로 Pretendard로 표시 */
  font-family: "Jost", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.top nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.top nav a { color: var(--sub); transition: color 0.2s; }
.top nav a:hover { color: var(--ink); }

/* ---------- Hero: 글자 중심 ---------- */
.hero {
  display: flex; flex-direction: column;
  padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(48px, 6vw, 88px);
}
.hero h1 {
  margin: 22px 0 0; font-size: clamp(40px, 7.4vw, 112px); line-height: 1.08; letter-spacing: -0.055em; font-weight: 700;
}
.hero__row {
  display: grid; grid-template-columns: 1.1fr 1.3fr auto; gap: clamp(24px, 5vw, 72px); align-items: end;
  margin-top: clamp(48px, 7vw, 104px); padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__desc { max-width: 440px; margin: 0; color: var(--sub); font-size: 17px; }
.hero__stats { display: flex; gap: 44px; margin: 0; padding: 0; list-style: none; }
.hero__stats b {
  display: block; font-family: "Bodoni Moda", serif; font-size: clamp(44px, 4.6vw, 68px); font-weight: 400;
  font-variation-settings: "opsz" 96; line-height: 1; letter-spacing: -0.02em; color: #b4afa8;
}
.hero__stats span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub); }
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; transition: transform 0.3s var(--ease);
}
.hero__cta:hover { transform: translateY(-2px); }

/* ---------- Section heads ---------- */
.sec-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.sec-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1.1; }
.sec-head span { font-size: 15px; color: var(--sub); }

/* ---------- Brand index ---------- */
.index { padding-top: 96px; padding-bottom: 40px; }
.index__list { margin: 0; padding: 0; list-style: none; }
.index__row {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: center; gap: 24px;
  padding: 30px 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.index__row::before {
  content: ""; position: absolute; inset: 0; background: var(--brand-bg); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s var(--ease); z-index: -1;
}
.index__row:hover::before { transform: scaleY(1); }
.index__no { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; padding-left: 8px; }
.index__name { font-size: clamp(17px, 1.8vw, 24px); font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; transition: transform 0.45s var(--ease); }
/* 로고가 소문자인 브랜드는 대문자로 바꾸지 않기 */
.index__name.is-lower, .chapter__panel h2.is-lower { text-transform: none; }
.index__row:hover .index__name { transform: translateX(10px); }
.index__meta { font-size: 14px; color: var(--sub); text-align: right; }
.index__arrow { font-size: 20px; transition: transform 0.45s var(--ease); }
.index__row:hover .index__arrow { transform: translateX(6px); color: var(--brand); }

/* ---------- Brand chapter ---------- */
.chapter { padding-top: 120px; scroll-margin-top: 64px; }
.chapter__cover {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; background: var(--brand-bg);
}
.chapter__panel { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 4vw, 56px); min-height: 100%; }
/* 브랜드 번호: Bodoni Moda (구글 무료 폰트) */
.chapter__no {
  font-family: "Bodoni Moda", "Times New Roman", serif; font-size: clamp(72px, 11vw, 168px); font-weight: 400;
  font-variation-settings: "opsz" 96; line-height: 0.85; letter-spacing: -0.04em; color: var(--brand);
}
/* 숫자는 위, 브랜드명은 아래 캡션 바로 위로 */
.chapter__panel > div { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
/* 브랜드명: Jost 대문자, 자간 넓게 (Bodoni 숫자와 대비) */
.chapter__panel h2 {
  margin: 18px 0 0; font-family: "Jost", "Futura", sans-serif; font-size: clamp(22px, 2.8vw, 40px); font-weight: 400;
  letter-spacing: 0.06em; line-height: 1.1; text-transform: uppercase; color: #8a857e;
}
.chapter__cap { margin: 24px 0 0; font-size: 13px; color: var(--sub); }
.chapter__cap strong { color: var(--ink); font-weight: 600; margin-right: 8px; }
.frame { position: relative; display: block; overflow: hidden; line-height: 0; background: var(--paper); }
.frame img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s var(--ease); }
.chapter__cover > .frame img { height: 100%; }

.chapter__body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-top: 48px; }
.chapter__side { position: sticky; top: 96px; align-self: start; }
.chapter__desc { margin: 0 0 28px; font-size: 15px; color: #3d3a36; }
.meta { margin: 0 0 28px; border-top: 1px solid var(--line); }
.meta div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta dt { color: var(--sub); }
.meta dd { margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--paper);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.toc a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.toc sup { margin-left: 4px; font-size: 10px; color: var(--sub); vertical-align: 2px; }
.toc a:hover sup { color: inherit; }

.stills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 56px; }
.stills figure, .tile figure { margin: 0; }
.still .frame { border-radius: 16px; }
.still figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 13px; color: var(--sub); }
.still figcaption strong { color: var(--ink); font-weight: 600; }

.group { margin-bottom: 56px; scroll-margin-top: 96px; }
.group__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.group__head h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.group__head > span { font-size: 13px; color: var(--sub); }
.group__nav { display: flex; gap: 6px; margin-left: auto; }
.group__nav button {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.group__nav button:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.group__nav button:disabled { opacity: 0.3; cursor: default; }
.group__nav[hidden] { display: none; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.tile .frame { border-radius: 14px; }
.tile:hover .frame img, .still:hover .frame img { transform: scale(1.04); }
.tile__count {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 5px 11px; border-radius: 999px;
  background: rgba(23, 22, 20, 0.78); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4;
}
.tile__text { display: block; padding-top: 10px; }
.tile__text strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.tile__text span { font-size: 13px; color: var(--sub); }

/* Product Line-up: 넘기지 않고 전체를 격자로, 이름 앞에 순번 */
.group--grid .group__nav { display: none; }
.group--grid .rail {
  grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto;
  overflow: visible; gap: 22px 14px; margin-right: 0; padding-right: 0; counter-reset: lineup;
}
.group--grid .tile { counter-increment: lineup; }
.group--grid .tile .frame { border-radius: 12px; background: #ebe9e5; }
.group--grid .tile__count { right: 8px; bottom: 8px; padding: 3px 9px; font-size: 11px; background: rgba(23, 22, 20, 0.6); }
.group--grid .tile__text { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.group--grid .tile__text::before {
  content: counter(lineup, decimal-leading-zero); grid-row: span 2;
  font-family: "Bodoni Moda", serif; font-variation-settings: "opsz" 96; font-size: 24px; line-height: 1; color: #b4afa8;
}
.group--grid .tile__text strong { font-size: 14px; line-height: 1.35; }
.group--grid .tile__text span { font-size: 12px; }

/* 화면에 들어올 때 살짝 올라오기 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* 영상 썸네일 */
.loop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* ---------- About / Contact ---------- */
.about { padding-top: 140px; }
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 80px); padding-top: 32px; }
.about__text { margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.55; letter-spacing: -0.025em; }
.about .meta { border-top-color: var(--ink); }
.contact { margin-top: 140px; padding: clamp(56px, 9vw, 120px) 0; background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: #a8a199; }
.contact h2 { margin: 16px 0 36px; font-size: clamp(34px, 5.4vw, 72px); letter-spacing: -0.045em; line-height: 1.1; }
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__links a { padding: 13px 22px; border: 1px solid #4a4642; border-radius: 999px; font-size: 15px; transition: background 0.2s, color 0.2s; }
.contact__links a:first-child, .contact__links a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.foot { padding: 28px 0; background: var(--ink); color: #8a847c; font-size: 13px; border-top: 1px solid #2c2a27; }

/* ---------- Folder modal ---------- */
.modal {
  width: min(1080px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 22px;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45);
}
.modal::backdrop { background: rgba(23, 22, 20, 0.5); backdrop-filter: blur(6px); }
.modal[open] { animation: rise 0.4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.modal__body { max-height: calc(100vh - 48px); overflow-y: auto; padding: clamp(24px, 4vw, 44px); }
.modal__close, .lb__close {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 16px; cursor: pointer;
}
.gallery-modal__head { padding-right: 52px; margin-bottom: 24px; }
.gallery-modal__head .label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); }
.gallery-modal__head h3 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.04em; }
.gallery-modal__head h3 span { margin-left: 6px; font-size: 16px; font-weight: 500; color: var(--sub); }
.gallery-modal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-modal__grid figure { margin: 0; }
.gallery-modal__grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-modal__grid .frame { border-radius: 12px; }
.gallery-modal__grid button:hover img { transform: scale(1.04); }
.gallery-modal__grid figcaption { padding-top: 8px; font-size: 13px; color: var(--sub); }
.gallery-modal__grid .is-cutout img { background: #efece6; padding: 6%; object-fit: contain; }
.gallery-modal__grid .is-video button::after {
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; z-index: 2;
  background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.gallery-modal__grid .is-video button { position: relative; }

/* ---------- Lightbox ---------- */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lb::backdrop { background: rgba(12, 12, 11, 0.94); }
.lb__stage { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 80px 32px; }
.lb__img, .lb__video { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 8px; object-fit: contain; }
.lb__img[hidden], .lb__video[hidden] { display: none; }
.lb__cap { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.lb__close { background: #fff; color: var(--ink); }
.lb__prev, .lb__next {
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%; background: transparent; color: #fff; font-size: 18px; cursor: pointer;
}
.lb__prev { left: 20px; } .lb__next { right: 20px; }
.lb__prev:hover, .lb__next:hover { background: #fff; color: var(--ink); }

/* ---------- 편집 모드 (index.html?edit=1) ---------- */
.crop-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: calc(100% - 32px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 10px 16px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.crop-bar button, .crop-editor__actions button {
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.crop-bar button.is-primary, .crop-editor__actions .is-primary,
.crop-bar__modes button.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.crop-bar__modes { display: inline-flex; gap: 4px; }
.is-cropping .frame, .is-swapping .chapter__cover > .frame, .is-swapping .still .frame, .is-swapping .tile .frame,
.is-ordering [data-order-key] { outline: 2px dashed rgba(23, 22, 20, 0.35); outline-offset: -2px; }
.is-cropping .frame:hover, .is-swapping .frame:hover { outline-color: var(--ink); }
.is-cropping .frame { cursor: crosshair; }
.is-swapping .frame { cursor: pointer; }
.is-cropping .frame img, .is-swapping .frame img, .is-ordering .frame img { transform: none !important; }
.is-ordering [data-order-key] { position: relative; cursor: grab; }
.is-ordering .is-dragging { opacity: 0.4; }
.order-ctl { position: absolute; top: 8px; right: 8px; z-index: 4; display: flex; gap: 4px; }
.order-ctl button {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.72); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
}
.order-ctl button:hover { background: #000; }
.crop-editor {
  width: min(560px, calc(100% - 32px)); padding: 24px; border: 0; border-radius: 18px;
  background: var(--ink); color: #fff;
}
.crop-editor::backdrop { background: rgba(0, 0, 0, 0.6); }
.crop-editor__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.crop-editor__hint { margin: 0 0 16px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.crop-editor__view { margin: 0 auto; max-height: 60vh; border-radius: 10px; cursor: grab; touch-action: none; background: #2a2a2a; }
.crop-editor__view:active { cursor: grabbing; }
.crop-editor__view img { height: 100%; aspect-ratio: auto; pointer-events: none; user-select: none; transition: none; }
.crop-editor__zoom { display: flex; align-items: center; gap: 12px; margin: 18px 0 20px; font-size: 13px; }
.crop-editor__zoom input { flex: 1; accent-color: #fff; }
.crop-editor__zoom output { width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.crop-editor__actions { display: flex; gap: 8px; }
.crop-editor__actions .is-reset { margin-right: auto; }
.swap-picker { width: min(760px, calc(100% - 32px)); }
.swap-picker__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px;
  max-height: 60vh; overflow-y: auto; margin-bottom: 20px;
}
.swap-picker__grid button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: #2a2a2a; cursor: pointer; overflow: hidden; }
.swap-picker__grid button:hover { border-color: rgba(255, 255, 255, 0.5); }
.swap-picker__grid button.is-current { border-color: #fff; }
.swap-picker__grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .group--grid .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 14px) / 2); }
  .index__row { grid-template-columns: 40px 1fr 32px; }
  .index__meta { display: none; }
}
@media (max-width: 900px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__cta { justify-self: start; }
}
@media (max-width: 760px) {
  .top nav { gap: 18px; }
  .hero { min-height: 0; padding-top: 40px; }
  .hero__stats { gap: 28px; }
  .index { padding-top: 72px; }
  .index__row { grid-template-columns: 1fr 24px; gap: 14px; padding: 22px 0; }
  .index__no { display: none; }
  .chapter { padding-top: 88px; }
  .chapter__cover { grid-template-columns: 1fr; }
  .chapter__panel { order: 2; }
  .chapter__body { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .chapter__side { position: static; }
  .stills { gap: 10px; margin-bottom: 40px; }
  .rail { grid-auto-columns: 72%; gap: 10px; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); }
  .group__nav { display: none; }
  .group--grid .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; margin-right: 0; padding-right: 0; }
  .group--grid .tile__text::before { font-size: 20px; }
  .group--grid .tile__text strong { font-size: 13px; }
  .about__grid { grid-template-columns: 1fr; }
  .gallery-modal__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .modal { width: calc(100% - 16px); max-height: calc(100vh - 16px); border-radius: 18px; }
  .lb__stage { padding: 64px 12px 24px; }
  .lb__prev, .lb__next { top: auto; bottom: 20px; margin-top: 0; }
  .lb__img, .lb__video { max-height: calc(100vh - 180px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 760px) {
  .crop-bar { left: 8px; right: 8px; bottom: 8px; max-width: none; border-radius: 18px; justify-content: center; }
}

.crop-editor__bg { display: flex; align-items: center; gap: 10px; margin: -6px 0 20px; font-size: 13px; transition: opacity .2s; }
.crop-editor__bg.is-dim { opacity: .4; }
.crop-editor__bg input[type="color"] { width: 36px; height: 26px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; background: none; cursor: pointer; }
.crop-editor__bg button { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: none; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }

/* 웹 배너처럼 비율이 제각각인 폴더: 자르지 않고 원래 비율로 */
.gallery-modal__grid.is-natural { display: block; columns: 3; column-gap: 14px; }
.gallery-modal__grid.is-natural figure { break-inside: avoid; margin-bottom: 18px; }
.gallery-modal__grid.is-natural .frame img { aspect-ratio: auto; object-fit: contain; }
@media (max-width: 760px) { .gallery-modal__grid.is-natural { columns: 2; column-gap: 10px; } }

/* 삭제한 사진: 평소엔 숨기고, 편집 모드에선 흐리게 보여서 되살릴 수 있게 */
body:not(.is-editing) .is-deleted { display: none !important; }
.is-editing .is-deleted { opacity: .25; }
.is-editing .is-deleted .frame::after { content: "삭제됨"; position: absolute; inset: auto 10px 10px auto; padding: 4px 10px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; line-height: 1.4; }
.is-hiding .still .frame, .is-hiding .tile .frame, .is-hiding .gallery-modal__grid .frame { outline: 2px dashed rgba(0,0,0,.25); outline-offset: -2px; cursor: not-allowed; }
.is-hiding .still .frame:hover, .is-hiding .tile .frame:hover, .is-hiding .gallery-modal__grid .frame:hover { outline-color: #c0392b; }

.swap-picker__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.swap-picker__tabs button, .swap-picker__upload { padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.swap-picker__tabs button.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.swap-picker__upload { margin-left: auto; }
.swap-picker__grid { max-height: 56vh; overflow: auto; }

/* ===== 이력서 · 자기소개서 ===== */
.resume, .letter { padding-top: 140px; scroll-margin-top: 64px; }
.cv__title { margin: 44px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.cv__list { margin: 0; padding: 0; list-style: none; }
.cv__row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cv__period { font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.cv__row strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.cv__role { display: block; margin-top: 4px; font-size: 14px; color: var(--sub); }
.cv__row p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; }
.cv__row p:empty { display: none; }
.letter__body { display: grid; gap: 0; padding-top: 12px; }
.letter__item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.letter__item h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.letter__item p { margin: 0; font-size: 16px; line-height: 1.85; white-space: pre-line; }
.is-placeholder { color: #b1aba3; }
.is-placeholder strong, .is-placeholder h3 { color: #a39d95; }
@media (max-width: 760px) {
  .resume, .letter { padding-top: 96px; }
  .cv__row, .letter__item { grid-template-columns: 1fr; gap: 8px; }
  .top nav { gap: 16px; font-size: 13px; }
}
@media (max-width: 420px) { .top nav { gap: 11px; font-size: 12px; } }

/* ===== 이력서 · 자기소개서 별도 화면 ===== */
body.is-page-view main > :not(.page), body.is-page-view .foot { display: none; }
.page { min-height: 100vh; padding: 120px 0 140px; }
.page__back { display: inline-block; margin-bottom: 40px; font-size: 14px; color: var(--sub); }
.page__back:hover { color: var(--ink); }
.top nav a.is-on { color: var(--ink); }
.cv__intro { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 32px 0 8px; }
.cv__name { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.cv__name span { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--sub); }
.cv__lead { margin: 0; font-size: 17px; line-height: 1.8; }
.cv__period em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; color: #a39d95; }
.cv__sub { margin: 10px 0 0 !important; color: var(--sub); }
.cv__label { margin: 16px 0 6px !important; font-size: 12px !important; font-weight: 500; letter-spacing: .06em; color: var(--sub); }
.cv__bul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.75; list-style: disc; }
.cv__bul li::marker { color: #111; font-size: 0.7em; }
.cv__tags { margin: 22px 0 0; font-size: 14px; line-height: 1.8; color: var(--sub); }
.letter__item div p { margin: 0 0 14px; font-size: 16px; line-height: 1.85; }
.letter__item div p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .page { padding: 96px 0 100px; }
  .cv__intro { grid-template-columns: 1fr; gap: 12px; }
}
.cv__core { margin: 0 !important; font-size: 15px !important; letter-spacing: .01em; }

/* ===== 브랜드 목록: 분야별 묶음 (시안 B, 사진 없이) ===== */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(32px, 5vw, 80px); padding-top: 40px; }
.brands__head { display: flex; justify-content: space-between; margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--sub); }
.brands__list { margin: 0; padding: 0; list-style: none; }
.brand { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.brand__no { grid-row: span 2; font-family: "Bodoni Moda", serif; font-size: 20px; color: #b4afa8; transition: color .3s; }
.brand__name { font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; letter-spacing: .03em; text-transform: uppercase; transition: transform .35s var(--ease); }
.brand__name.is-lower { text-transform: none; }
.brand__meta { margin-top: 2px; font-size: 13px; color: var(--sub); transition: transform .35s var(--ease); }
.brand:hover .brand__name, .brand:hover .brand__meta { transform: translateX(8px); }
.brand:hover .brand__no { color: var(--ink); }
@media (max-width: 760px) {
  .brands { grid-template-columns: 1fr; gap: 40px; padding-top: 28px; }
  .brand { grid-template-columns: 36px 1fr; padding: 14px 0; }
}

/* 챕터 위쪽 큰 사진: 절반 크기 (PC 4개씩, 모바일 2개씩) */
.stills { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.still figcaption { flex-direction: column; gap: 2px; font-size: 12px; }
@media (max-width: 760px) { .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
