/* 25, more love (site/sections/25-more-love.html). Linked by
   scripts/build-home.mjs. Six testimonial video cards (.vs-card--media from
   css/components.css: lift, sweep and a 1.03 thumbnail zoom on hover),
   slowed further here for a resting poster instead of a quick snap, with a
   play control in the site's own dot-in-a-ring motif over the poster. */

.vs-love { border-top: 1px solid var(--vs-line); }

.vs-love__head { margin: 0 0 var(--vs-head-gap); max-width: 46ch; }
.vs-love__title {
  margin: 0;
  font-family: var(--sc-font-display); font-weight: var(--vs-display-weight);
  font-size: var(--vs-h2); line-height: var(--sc-leading-tight);
  letter-spacing: var(--vs-display-track);
}
.vs-love__lede {
  margin: var(--sc-3) 0 0; max-width: 40ch;
  font-size: var(--sc-t-base); line-height: 1.5; color: var(--sc-ink-soft);
  text-wrap: pretty;
}

.vs-love__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
  margin: 0; padding: 0; list-style: none;
}
.vs-love__item { display: flex; min-width: 0; }
.vs-love__card { display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* A slower, slightly larger zoom than the shared card default (240ms,
   1.03): the poster is the point here, so it gets a resting movement of
   its own rather than a quick snap. */
.vs-love .vs-card--media .vs-card__media img { transition: transform 900ms var(--vs-ease-card); }
@media (hover: hover) and (pointer: fine) {
  .vs-love .vs-card--media:hover .vs-card__media img,
  .vs-love .vs-card--media:focus-within .vs-card__media img { transform: scale(1.06); }
}

.vs-love__body {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.vs-love__name { font-size: var(--sc-t-base); }
.vs-love__role { margin: 0; }
.vs-love__disclosure {
  margin: 0.5rem 0 0; padding-top: 0.5rem;
  border-top: 1px dashed var(--vs-line-strong);
  font-family: var(--vs-mono); font-size: var(--sc-t-xs); line-height: 1.5;
  color: var(--sc-ink-soft);
}

/* --------------------------------------------------------- the play dot -- */
/* Bottom-right corner, not the centre: centred, it sat on the speaker's
   face, and bottom-left covers the face bubble in screen-share recordings. */
.vs-love__play {
  position: absolute; right: 0.85rem; bottom: 0.85rem;
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
}
.vs-love__play-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--vs-ok);
  background: rgba(22, 23, 21, 0.55);
  transition: transform 240ms var(--vs-ease-card, ease), background-color 240ms var(--vs-ease-card, ease);
}
.vs-love__play-dot {
  position: relative;
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  color: var(--sc-accent-ink);
  background: var(--sc-accent);
  box-shadow: 0 6px 18px -8px rgba(22, 23, 21, 0.6);
  transition: transform 240ms var(--vs-ease-card, ease);
}
.vs-love__play-dot svg { width: 1.15rem; height: 1.15rem; }

@media (hover: hover) and (pointer: fine) {
  .vs-love__card:hover .vs-love__play-ring,
  .vs-love__card:focus-visible .vs-love__play-ring { transform: scale(1.08); background: rgba(22, 23, 21, 0.72); }
  .vs-love__card:hover .vs-love__play-dot,
  .vs-love__card:focus-visible .vs-love__play-dot { transform: scale(1.08); }
}

@media (max-width: 1023px) {
  .vs-love__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: a horizontal scroll-snap row, same pattern as the results rail
   (css/acts/20-results.css), so the page itself never scrolls sideways. */
@media (max-width: 640px) {
  .vs-love__grid {
    display: flex; gap: var(--sc-3);
    margin-inline: calc(var(--sc-gutter) * -1);
    padding: 0.15rem var(--sc-gutter) var(--sc-1);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sc-gutter);
    scrollbar-width: none;
  }
  .vs-love__grid::-webkit-scrollbar { display: none; }
  .vs-love__grid:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: -2px; }
  .vs-love__item { flex: 0 0 min(78%, 20rem); scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .vs-love .vs-card--media .vs-card__media img,
  .vs-love__play-ring,
  .vs-love__play-dot { transition: none; }
}
