/* HOME — Figma "HOME 개선안" (1920 · 740 · 360), HOME 전달 문서 03~05번 카드
   Brand Story · About 섹션은 ABOUT 페이지와 함께 쓰므로 sections.css 에 있다. */

/* ════════════════════════════════════════════════════════
   02 Selected Works
   ════════════════════════════════════════════════════════ */
.home-works {
  display: flex;
  flex-direction: column;
  gap: calc(48 * var(--u));
  padding: calc(120 * var(--u)) var(--side);
  background: var(--color-surface-page);
}

.home-works__heading {
  display: flex;
  flex-direction: column;
  gap: calc(25 * var(--u));
}
.home-works__title-block {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
}

.home-works__body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(48 * var(--u));
}

/* ── 740 ── */
html[data-bp="t"] .home-works {
  gap: calc(28 * var(--u));
  padding: calc(56 * var(--u)) var(--side);
}
html[data-bp="t"] .home-works__heading { gap: calc(16 * var(--u)); }
html[data-bp="t"] .home-works__title-block { gap: calc(24 * var(--u)); }
html[data-bp="t"] .home-works__body { align-items: center; gap: calc(24 * var(--u)); }

/* ── 360 ── */
html[data-bp="m"] .home-works {
  gap: calc(24 * var(--u));
  padding: calc(40 * var(--u)) var(--side);
}
html[data-bp="m"] .home-works__heading { gap: calc(12 * var(--u)); }
html[data-bp="m"] .home-works__body { align-items: center; gap: calc(24 * var(--u)); }

/* ════════════════════════════════════════════════════════
   03 Creators
   ════════════════════════════════════════════════════════ */
.home-creators {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(48 * var(--u));
  padding: calc(120 * var(--u)) var(--side);
  background: var(--color-surface-page) url("../../images/v2/home/bg_creators_dot_pattern.png") center / 100% 100% no-repeat;
}

.home-creators__heading {
  display: flex;
  align-items: center;
  gap: calc(40 * var(--u));
  width: 100%;
}
.home-creators__title-block {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
  flex: none;
  width: calc(1000 * var(--u));
}
.home-creators__desc {
  flex: 1;
  min-width: 0;
  font-weight: 400;
  font-size: calc(18 * var(--u));
  line-height: calc(25 * var(--u));
  text-align: right;
  color: var(--color-text-secondary);
}

/* 작업물과 같은 이유로 열 수 고정 그리드 (376×4 + 32×3 = 1600) */
.home-creators__grid > .v2-notice { grid-column: 1 / -1; }
.home-creators__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: calc(32 * var(--u));
  width: 100%;
}

/* ── 740 ── */
html[data-bp="t"] .home-creators {
  align-items: center;
  gap: calc(36 * var(--u));
  padding: calc(56 * var(--u)) var(--side);
  background-size: cover;
}
html[data-bp="t"] .home-creators__heading {
  flex-direction: column;
  align-items: stretch;
  gap: calc(12 * var(--u));
}
html[data-bp="t"] .home-creators__title-block { width: 100%; gap: calc(16 * var(--u)); }
html[data-bp="t"] .home-creators__desc { flex: none; font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="t"] .home-creators__grid {
  grid-template-columns: repeat(3, calc(184 * var(--u)));   /* 184×3 + 32×2 = 616, 가운데 정렬 */
  justify-content: center;
  gap: calc(36 * var(--u)) calc(32 * var(--u));
}

/* ── 360 ── */
html[data-bp="m"] .home-creators {
  align-items: center;
  gap: calc(24 * var(--u));
  padding: calc(32 * var(--u)) var(--side);
  background-size: cover;
}
html[data-bp="m"] .home-creators__heading {
  flex-direction: column;
  align-items: stretch;
  gap: calc(12 * var(--u));
}
html[data-bp="m"] .home-creators__title-block { width: 100%; }
html[data-bp="m"] .home-creators__desc { flex: none; font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="m"] .home-creators__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(24 * var(--u)) calc(16 * var(--u)); }
