/* ============================================================
   Singdia — Songs for Your People (block 4)
   3 cards: Mom / Wife / Husband.
   ============================================================ */

.people {
  position: relative;
  padding: 110px 0 130px;
  background: var(--cream);
  overflow: hidden;
}

.people__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.people__bg::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  top: 40px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 79, 109, 0.16) 0%, transparent 70%);
  filter: blur(40px);
}
.people__bg::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  bottom: -120px;
  left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.18) 0%, transparent 70%);
  filter: blur(40px);
}

.people__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.people__head {
  text-align: center;
  margin-bottom: 56px;
}
.people__head .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}
.people__head .eyebrow::before {
  display: none;
}
.people__head .eyebrow::after {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--saffron);
}
.people__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.people__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
}

/* Grid */
.people__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.people__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(107, 18, 49, 0.08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(74, 8, 32, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.people__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 60px -24px rgba(74, 8, 32, 0.4);
}

/* Visual area */
.people__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(217,164,65,0.35) 0%, transparent 60%),
    linear-gradient(135deg, var(--rose-pale) 0%, var(--rose) 60%, var(--maroon) 100%);
}
.people__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.people__video.is-loaded { opacity: 1; }

.people__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 4, 9, 0.25) 0%,
    rgba(26, 4, 9, 0) 28%,
    rgba(26, 4, 9, 0) 55%,
    rgba(26, 4, 9, 0.85) 100%
  );
  pointer-events: none;
}

/* Tag chip (top-left) */
.people__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
}
.people__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.25);
}

/* Dedication (bottom of visual, overlaid) */
.people__dedication {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 2;
  color: #fff;
}
.people__dedication-pre {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}
.people__dedication-who {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--gold-soft);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Body */
.people__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.people__card-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.people__lyric {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  text-wrap: pretty;
}

/* Player */
.people__player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.people__play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px -6px rgba(107, 18, 49, 0.5);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.people__play:hover { transform: scale(1.06); }
.people__play.is-playing { background: var(--ink); }
.people__play:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.people__play:disabled:hover { transform: none; }

/* Loading spinner shown until the track actually starts playing */
.people__spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: people-spin 0.7s linear infinite;
}
@keyframes people-spin { to { transform: rotate(360deg); } }

.people__wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
}
.people__player.is-active .people__wave { cursor: pointer; }
.people__wave span {
  flex: 1;
  background: var(--maroon);
  border-radius: 1.5px;
  opacity: 0.28;
  min-height: 16%;
  transition: opacity 0.18s ease, background 0.18s ease;
}
/* Bars already played fill in solid */
.people__wave span.is-played {
  opacity: 1;
  background: linear-gradient(180deg, var(--saffron), var(--maroon));
}
/* gentle pulse only while sound is actually playing */
.people__player.is-active .people__play.is-playing ~ .people__wave span.is-played:last-of-type {
  animation: people-wave 0.9s ease-in-out infinite;
}
@keyframes people-wave {
  0%, 100% { transform: scaleY(0.7); }
  50% { transform: scaleY(1.1); }
}

.people__dur {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.people__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--maroon);
  background: rgba(107, 18, 49, 0.05);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.people__cta:hover {
  background: var(--maroon);
  color: #fff;
}
.people__cta svg {
  transition: transform 0.2s ease;
}
.people__cta:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 980px) {
  .people__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .people__card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .people {
    padding: 72px 0 88px;
  }
  .people__inner {
    padding: 0 18px;
  }
  .people__head {
    margin-bottom: 36px;
  }
  .people__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .people__card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
  .people__dedication-who {
    font-size: 26px;
  }
  .people__body {
    padding: 18px 20px 22px;
  }
}
