/*
 * Shared closing CTA + page credits footer.
 * Used on photography page, TenTen case study, and other long-form pages.
 *
 * Markup:
 *   .closing-cta > .closing-cta__title + .closing-cta__action
 *     > .closing-cta__btn + .closing-cta__lead
 *   footer.page-credits
 */

.closing-cta {
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 0 clamp(20px, 4vw, 36px) clamp(40px, 6vw, 56px);
  max-width: 1200px;
  text-align: center;
}

.closing-cta__title {
  margin: 0 auto;
  max-width: 28ch;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.closing-cta__action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-cta__lead {
  margin: clamp(16px, 2.5vw, 24px) 0 0;
  max-width: 52ch;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

.closing-cta__btn {
  position: relative;
  z-index: 2;
  margin-top: clamp(-8px, -1.2vw, -4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  padding: 14px 30px;
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  background: rgba(8, 12, 24, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-11deg);
  transition:
    transform var(--transition-base),
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.closing-cta__btn:hover,
.closing-cta__btn:focus-visible {
  color: #fff;
  text-decoration: none;
  background: rgba(12, 18, 32, 0.78);
  transform: rotate(-7deg) translateY(-2px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-credits {
  max-width: 1200px;
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding: 24px clamp(20px, 4vw, 36px) clamp(40px, 6vw, 56px);
  border-top: 1px solid var(--glass-border);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

.page-credits a {
  color: var(--accent);
  text-decoration: none;
}

.page-credits a:hover,
.page-credits a:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .closing-cta__btn,
  .closing-cta__btn:hover,
  .closing-cta__btn:focus-visible {
    transform: none;
  }
}
