/* ==========================================================================
   page: home (model feed / masonry)
   ========================================================================== */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 82px 4% 62px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.03;
  letter-spacing: -.06em;
  margin: 0;
  font-weight: 600;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-weight: 500;
  color: #9c9a93;
}

.hero-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 410px;
  margin: 25px 0 0;
}

.hero-note {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  min-width: 180px;
}

.hero-note span,
.hero-note small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
}

.hero-note strong {
  font-size: 30px;
  display: block;
  letter-spacing: -.05em;
  margin: 11px 0 3px;
}

.search-row {
  max-width: var(--maxw);
  margin: auto;
  padding: 0 4%;
  display: flex;
  gap: 16px;
}

.search {
  height: 50px;
  border: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex: 1;
  color: #94938f;
}

.search input {
  border: 0;
  background: none;
  outline: 0;
  width: 100%;
  font-size: 13px;
  color: var(--ink);
}

.filter-row {
  max-width: var(--maxw);
  margin: 35px auto 54px;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 27px;
}

.tabs button {
  padding: 0 0 15px;
  color: #999;
  font-size: 12px;
}

.tabs button.selected {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

.sort {
  color: #777;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 15px;
}

.section-heading {
  max-width: var(--maxw);
  margin: 0 auto 24px;
  padding: 0 4%;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h2 {
  font-size: 25px;
  margin: 0;
  letter-spacing: -.04em;
}

.section-heading>span {
  font-size: 11px;
  color: #aaa;
}

.masonry {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.pin {
  break-inside: avoid;
  margin-bottom: 32px;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}

.image-wrap {
  position: relative;
  background: #eee;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

.pin:hover img {
  transform: scale(1.035);
}

/* 작품 목록 썸네일 블러 처리 (호버 시 선명하게) */
.app[data-page="works"] .pin .image-wrap img {
  filter: blur(8px);
  transition: filter .35s ease, transform .5s ease;
}

.app[data-page="works"] .pin:hover .image-wrap img {
  filter: blur(0);
}

.save {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 9px 13px;
  background: #fff;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: .2s;
}

.pin:hover .save {
  opacity: 1;
  transform: none;
}

.save.is-saved {
  background: var(--accent);
  color: #fff;
  opacity: 1;
  transform: none;
}

.hover-detail {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #fff;
  background: rgba(25, 25, 24, .76);
  padding: 8px 10px;
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  opacity: 0;
  transition: .2s;
}

.pin:hover .hover-detail {
  opacity: 1;
}

.pin-meta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  padding-top: 12px;
}

.pin-info {
  min-width: 0;
}

.pin-meta h3 {
  font-size: 14px;
  margin: 0 0 5px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-meta h3 small {
  font-size: 11px;
  color: #aaa;
  font-weight: 400;
  margin-left: 3px;
}

.pin-meta p {
  font-size: 11px;
  color: #999;
  margin: 0;
}

.heart {
  flex: 0 0 auto;
  color: #bbb;
  padding: 4px;
  font-size: 14px;
  line-height: 1;
  transition: color .15s, transform .15s;
}

.heart:hover {
  color: var(--accent);
}

.heart.is-saved {
  color: var(--accent);
}

.heart.is-saved i {
  animation: heart-pop .2s ease;
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.infinite-loading,
.infinite-end {
  text-align: center;
  color: #999;
  font-size: 11px;
  padding: 26px;
}

.work-poster-empty {
  width: 92px;
  height: 120px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 600;
  border-radius: 4px;
}
