/* Shared styles for the /clients/ showcase pages.
   Geometry, pseudo-elements and animation that compiled Tailwind utilities
   can't express. Typography/color stays on utility classes in the markup. */

/* ── Phone mockup (same device as our-weddings.html) ─────────────────── */
.ow-phone {
  position: relative;
  width: 300px;
  max-width: 86%;
  margin: 0 auto;
  border-radius: 3rem;
  padding: 0.55rem;
  background: linear-gradient(150deg, #3d3a36, #282624 55%, #1c1c19);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.20),
    0 40px 70px -28px rgba(28, 28, 25, 0.6);
}
.ow-phone::after { /* side button */
  content: "";
  position: absolute; right: -2px; top: 135px;
  width: 3px; height: 64px; border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
}
.ow-phone-screen {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  aspect-ratio: 9 / 19.3;
  background: linear-gradient(180deg, #efe9e1, #d9c1be);
}
.ow-phone-screen img,
.ow-phone-screen iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.ow-phone-screen iframe { z-index: 2; }
.ow-phone-island {
  position: absolute; top: 0.6rem; left: 50%; transform: translateX(-50%);
  width: 32%; height: 1.3rem; border-radius: 1rem; background: #15120f; z-index: 6;
}

/* ── Iris reveal: "Open the invitation" ──────────────────────────────── */
/* The live iframe opens like a lens from the button's position while the
   cover art softly blurs and scales away underneath. No loading state on
   the button — it simply fades out once the reveal starts. */
#cp-frame {
  visibility: hidden;
  clip-path: circle(0% at 50% 86%);
}
.cp-playing #cp-frame {
  visibility: visible;
  clip-path: circle(142% at 50% 86%);
  transition: clip-path 1.15s cubic-bezier(0.65, 0, 0.35, 1);
}
#cp-cover {
  transition: opacity 0.9s ease, transform 1.15s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}
.cp-playing #cp-cover {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(10px);
}
#cp-open-btn { transition: opacity 0.4s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease; }
.cp-playing #cp-open-btn { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .cp-playing #cp-frame { transition: none; clip-path: none; }
  #cp-cover, .cp-playing #cp-cover { transition: none; filter: none; transform: none; }
}

/* ── "Want to see more?" cross-sell cards ────────────────────────────── */
/* Same tile pattern as the homepage owPreviewGrid: card with a square
   media box + object-fit: contain (never crops the wide mockup art),
   name/location/arrow row underneath. 1 col → 2 cols → 4 cols. */
.cp-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .cp-more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .cp-more-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.5rem; }
}
.cp-more-card {
  display: flex;
  flex-direction: column;
  background: #f4f1ed;
  border-radius: 1rem;
  overflow: hidden;
  padding: 1rem;
  box-shadow: 0 24px 48px -12px rgba(28, 28, 25, 0.08);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .cp-more-card { padding: 1.25rem; border-radius: 1.25rem; max-width: 480px; }
}
@media (min-width: 1280px) {
  .cp-more-card { padding: 0.875rem; max-width: none; margin: 0; }
}
.cp-more-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.cp-more-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cp-more-card:hover .cp-more-media img,
.cp-more-card:focus-visible .cp-more-media img { transform: scale(1.02); }
.cp-more-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.cp-more-info { min-width: 0; }
.cp-more-info p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-more-name { transition: color 0.3s ease; }
.cp-more-card:hover .cp-more-name { color: #1c1c19; }
.cp-more-arrow { flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease; }
.cp-more-card:hover .cp-more-arrow,
.cp-more-card:focus-visible .cp-more-arrow { transform: translateX(4px); color: #1c1c19; }

/* ── Scroll reveal (GSAP-driven; client-page.js shows these if GSAP is absent) */
.cp-reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .cp-reveal { opacity: 1 !important; transform: none !important; }
}
