/* ============================================================
   VASAVAS — digital business card page
   Loads after styles.css; reuses its custom properties.
   No Lenis, no canvas — must load instantly on cellular.
   ============================================================ */

.card-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.bcard {
  width: min(440px, 92vw);
  margin: 0 auto;
  padding: 96px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* portrait */
.bcard-photo {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(160deg, var(--accent) 0%, rgba(23, 232, 143, 0.15) 60%, transparent 100%);
  box-shadow: 0 0 60px rgba(23, 232, 143, 0.22), 0 18px 50px rgba(0, 0, 0, 0.6);
  animation: card-pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bcard-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bcard-kicker {
  margin: 26px 0 0;
  animation: card-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
/* override hero-kicker's own entrance animation timing */
.card-page .hero-kicker { opacity: 1; animation-name: card-rise; }

.bcard-name {
  font-family: var(--display-latin);
  font-weight: 400;
  font-size: clamp(3.4rem, 16vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-top: 10px;
  text-shadow: 0 0 70px rgba(23, 232, 143, 0.25);
  animation: card-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.bcard-tagline {
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 34ch;
  animation: card-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

/* actions */
.bcard-actions {
  width: 100%;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: card-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.bcard-save { width: 100%; text-align: center; }
.bcard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bcard-grid .btn { text-align: center; padding: 15px 10px; }
.bcard-share {
  width: 100%;
  background: none;
  cursor: pointer;
  font-family: var(--body);
}

/* on-page offline vCard QR */
.bcard-qr {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: card-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}
.bcard-qr-tile {
  background: var(--ink);
  border-radius: 18px;
  padding: 14px;
  line-height: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.bcard-qr-caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.bcard-foot {
  margin-top: 44px;
  font-size: 11px;
  letter-spacing: 0.3em;
}
.bcard-foot a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.bcard-foot a:hover { color: var(--accent); }

@keyframes card-pop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Thai metrics */
:root[data-lang="th"] .bcard-tagline { line-height: 1.75; }
:root[data-lang="th"] .bcard-qr-caption { letter-spacing: 0.1em; }

@media (prefers-reduced-motion: reduce) {
  .bcard-photo, .bcard-kicker, .bcard-name, .bcard-tagline,
  .bcard-actions, .bcard-qr { animation: none; }
}
