/* ==========================================================================
   COMMUNITY — the warm part: cream instead of lilac, faces, and what
   people said, set as a conversation. The bubbles are drops (a speech
   bubble is just a circle with one sharp corner).
   ========================================================================== */

.community { background: var(--cream); }

.community__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 64px;
  align-items: start;
}

/* ── Photos ────────────────────────────────────────────────── */
.community__photos {
  grid-column: 1 / 6;
  position: sticky;
  top: 112px;
  aspect-ratio: 5 / 6.4;
}
.cph {
  position: absolute;
  overflow: hidden;
}
.cph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cph--1 {
  left: 0;
  top: 0;
  width: 78%;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 32px 32px;          /* arch */
}
.cph--2 {
  right: 0;
  top: 46%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  outline: 8px solid var(--cream);
}
.cph--3 {
  left: 8%;
  bottom: 0;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50% 0 50% 50%;                  /* drop */
  outline: 8px solid var(--cream);
}
.cph--1 img { object-position: 60% 50%; }
.cph--3 img { object-position: 50% 50%; }
.community__tag {
  position: absolute;
  right: 4%;
  top: 12%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.community__tag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 4px rgba(106, 59, 255, .18);
}

/* ── Conversation ──────────────────────────────────────────── */
.community__talk { grid-column: 7 / -1; }

.chat {
  display: grid;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
}
.bubble {
  max-width: 86%;
  padding: 24px 26px 20px;
  border-radius: 30px 30px 30px 6px;
  background: var(--white);
  box-shadow: 0 18px 44px -30px rgba(34, 16, 79, .35);
}
.bubble:nth-child(even) {
  justify-self: end;
  border-radius: 30px 30px 6px 30px;
}
.bubble blockquote p {
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--ink);
}
.bubble__who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: .8125rem;
  color: var(--text-3);
}
.bubble__who b { font-weight: 600; color: var(--ink); }
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 0 50% 50%;
  background: var(--lavender);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 600;
}
.bubble--violet { background: var(--electric); }
.bubble--violet blockquote p,
.bubble--violet .bubble__who b { color: var(--white); }
.bubble--violet .bubble__who { color: var(--on-dark-2); }
.bubble--violet .avatar { background: var(--white); }
.bubble--lilac { background: var(--lilac); }

@media (max-width: 899px) {
  .community__photos,
  .community__talk { grid-column: 1 / -1; }
  .community__photos { position: relative; top: auto; width: min(100%, 520px); }
  .bubble { max-width: 94%; }
}
