/* =========================================================
   Imposter Artists — Home block [imposter_home_artists]
   Scoped: .im-home-artists only. Do not leak globally.
   ========================================================= */

.im-home-artists {
  --im-ha-ink: #f4f7f5;
  --im-ha-muted: rgba(244, 247, 245, 0.72);
  --im-ha-green: var(--im-green, #18b26b);
  --im-ha-bg: #03150c;
  --im-ha-bg-2: #062418;
  --im-ha-line: rgba(244, 247, 245, 0.12);
  --im-ha-radius: var(--im-art-radius, 28px);
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto;
  font-family: inherit;
  color: var(--im-ha-ink);
}

.im-home-artists__shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--im-ha-radius);
  background:
    radial-gradient(120% 90% at 12% 18%, rgba(24, 178, 107, 0.16), transparent 55%),
    radial-gradient(90% 70% at 88% 82%, rgba(14, 165, 95, 0.1), transparent 50%),
    linear-gradient(160deg, var(--im-ha-bg-2) 0%, var(--im-ha-bg) 55%, #020c07 100%);
  border: 1px solid rgba(24, 178, 107, 0.18);
  box-shadow: 0 24px 60px rgba(2, 12, 7, 0.35);
  padding: clamp(28px, 4vw, 52px);
}

.im-home-artists__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

/* —— Stage / collage —— */
.im-home-artists__stage {
  position: relative;
  min-height: clamp(340px, 38vw, 460px);
  isolation: isolate;
}

.im-home-artists__piece,
.im-home-artists__invite {
  position: absolute;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.im-home-artists__frame {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0a1a12;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.im-home-artists__img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  margin: 0 !important;
  /* Crop baked-in white mats so art fills the poster frame */
  transform: scale(1.14);
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.im-home-artists__piece:hover .im-home-artists__img {
  transform: scale(1.2);
}

.im-home-artists__piece:hover {
  z-index: 6;
}

.im-home-artists__piece--1:hover {
  transform: translateY(-4px);
}

.im-home-artists__piece--2:hover {
  transform: translate(4px, 6px);
}

.im-home-artists__piece--3:hover {
  transform: translate(-6px, -8px);
}

.im-home-artists__invite:hover {
  transform: translateY(-5px) rotate(-0.6deg);
  z-index: 12;
}

.im-home-artists__caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(3, 21, 12, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.im-home-artists__piece:hover .im-home-artists__caption,
.im-home-artists__piece:focus-visible .im-home-artists__caption {
  opacity: 1;
  transform: translateY(0);
}

.im-home-artists__caption-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #fff;
}

.im-home-artists__caption-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(244, 247, 245, 0.72);
}

/* Collage positions — subtle offsets, no wild rotations */
.im-home-artists__piece--1 {
  width: 52%;
  height: 64%;
  left: 2%;
  top: 4%;
  z-index: 3;
}

.im-home-artists__piece--2 {
  width: 42%;
  height: 48%;
  right: 4%;
  top: 0;
  z-index: 2;
  transform: translate(4px, 10px);
}

.im-home-artists__piece--3 {
  width: 40%;
  height: 46%;
  left: 18%;
  bottom: 2%;
  z-index: 4;
  transform: translate(-6px, -4px);
}

/* Invite poster — always in front of artworks */
.im-home-artists__invite {
  width: min(38%, 196px);
  aspect-ratio: 3 / 4;
  min-height: 0;
  height: auto;
  right: 5%;
  bottom: 4%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px 18px;
  border-radius: 10px;
  border: 1px solid rgba(244, 247, 245, 0.14);
  background:
    linear-gradient(165deg, rgba(24, 178, 107, 0.2) 0%, transparent 42%),
    linear-gradient(180deg, #0a2418 0%, #04150d 100%);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  transform: rotate(-1.2deg);
}

.im-home-artists__invite-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--im-ha-green);
}

.im-home-artists__invite-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.im-home-artists__invite-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--im-ha-green);
}

/* —— Editorial copy —— */
.im-home-artists__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 34rem;
}

.im-home-artists__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--im-ha-green);
}

.im-home-artists__title {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
}

.im-home-artists__lede {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
  color: var(--im-ha-muted);
}

.im-home-artists__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.im-home-artists__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.im-home-artists__btn:active {
  transform: scale(0.98);
}

.im-home-artists__btn--primary {
  background: var(--im-ha-green);
  color: #03150c !important;
  border: 1px solid transparent;
}

.im-home-artists__btn--primary:hover {
  background: #2bc87c;
}

.im-home-artists__btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(244, 247, 245, 0.28);
}

.im-home-artists__btn--ghost:hover {
  border-color: rgba(24, 178, 107, 0.55);
  color: var(--im-ha-green) !important;
}

.im-home-artists__chips {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 247, 245, 0.45);
}

.im-home-artists__piece:focus-visible,
.im-home-artists__invite:focus-visible,
.im-home-artists__btn:focus-visible {
  outline: 2px solid rgba(24, 178, 107, 0.7);
  outline-offset: 3px;
}

/* —— Tablet —— */
@media (max-width: 980px) {
  .im-home-artists__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .im-home-artists__copy {
    order: -1;
    max-width: none;
  }

  .im-home-artists__stage {
    min-height: 360px;
  }
}

/* —— Mobile —— */
@media (max-width: 640px) {
  .im-home-artists {
    width: calc(100% - 24px);
    margin: 32px auto;
  }

  .im-home-artists__shell {
    padding: 22px 18px 26px;
    border-radius: 22px;
  }

  .im-home-artists__stage {
    min-height: 300px;
  }

  /* Keep 2 works + invite readable; hide 3rd to avoid tall stack */
  .im-home-artists__piece--3 {
    display: none;
  }

  .im-home-artists__piece--1 {
    width: 58%;
    height: 58%;
    left: 0;
    top: 6%;
  }

  .im-home-artists__piece--2 {
    width: 46%;
    height: 44%;
    right: 0;
    top: 0;
    transform: none;
  }

  .im-home-artists__invite {
    width: 44%;
    aspect-ratio: 3 / 4;
    min-height: 0;
    right: 0;
    bottom: 0;
    padding: 14px 12px;
    z-index: 10;
    transform: rotate(-1deg);
  }

  .im-home-artists__invite-text {
    font-size: 0.95rem;
  }

  .im-home-artists__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .im-home-artists__btn {
    justify-content: center;
  }

  .im-home-artists__caption {
    opacity: 1;
    transform: none;
    background: rgba(3, 21, 12, 0.78);
  }

  .im-home-artists__chips {
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .im-home-artists__piece,
  .im-home-artists__invite,
  .im-home-artists__img,
  .im-home-artists__caption,
  .im-home-artists__btn {
    transition: none !important;
  }

  .im-home-artists__piece:hover,
  .im-home-artists__invite:hover {
    transform: none;
  }

  .im-home-artists__piece:hover .im-home-artists__img {
    transform: scale(1.14);
  }

  .im-home-artists__invite {
    transform: none;
  }
}
