/* =========================================================
   Photo story · "Your Saturdays, back." (shared by how-it-works + packages)
   Markup:
   section.story > a.story__card.zoom-host > .story__photo.zoom-img > img
                                         + .story__caption > .story__text (strong + span) + span.story__btn
   Hover (Figma): photo eases in, pill rises.
   ========================================================= */
.story { padding: 24px var(--pad-x) 80px; display: flex; justify-content: center; }
.story__card {
  position: relative; display: block; width: 100%; max-width: 1120px; height: 640px;
  border-radius: 16px; overflow: hidden; isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.story__photo { position: absolute; inset: 0; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }

.story__caption {
  position: absolute; left: 50%; bottom: 40px;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(20,20,18,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--background); white-space: nowrap;
  transform: translateX(-50%);
  transition: transform 400ms var(--ease-out);
}
.story__text { display: flex; gap: 6px; font-size: 14px; line-height: 20px; }
.story__text strong { font-weight: 500; }
.story__text span { opacity: .72; }
.story__btn {
  display: inline-flex; align-items: center;
  background: var(--background); color: var(--foreground);
  border-radius: 999px; padding: 8px 14px;
  font-weight: 500; font-size: 14px; line-height: 20px;
  transition: background-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}
/* Photo uses the shared .zoom-img hover; a slightly slower ease-in for this large frame */
.story__card.zoom-host .zoom-img img { transition-duration: 900ms; }

@media (hover: hover) and (pointer: fine) {
  .story__card:hover .story__caption { transform: translateX(-50%) translateY(-6px); }
  .story__card:hover .story__btn { background: var(--secondary); }
}
.story__card:active .story__btn { transform: scale(0.97); }

@media (max-width: 960px) {
  .story { padding: 8px var(--pad-x) 48px; }
  .story__card { height: 440px; border-radius: 20px; }
  .story__caption {
    left: 12px; right: 12px; bottom: 12px; transform: none;
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 14px 18px; border-radius: 16px;
    background: rgba(20,20,20,.82); backdrop-filter: none; -webkit-backdrop-filter: none;
    white-space: normal; max-width: 460px;
  }
  .story__text { flex-direction: column; gap: 6px; }
  .story__text span { opacity: 1; color: rgba(255,255,255,.72); font-size: 12px; line-height: 16px; }
  .story__btn { height: 36px; padding: 0 16px; background: var(--secondary); color: var(--secondary-foreground); }
}
@media (hover: hover) and (pointer: fine) and (max-width: 960px) {
  .story__card:hover .story__caption { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .story__caption { transition: none; }
  .story__card:active .story__btn { transform: none; }
  .story__card:hover .story__caption { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 960px) {
  .story__card:hover .story__caption { transform: none; }
}
