/* ============================================================
   BACKGROUND PATHS — Ported from 21st.dev (framer-motion → Web Animations API)
   ============================================================ */

/* Hide the blank "paths only, no text" initial frame */
body.homepage {
  animation: pageIn 0.25s ease-out 0.15s both;
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Fixed SVG canvas — behind everything */
#bp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #fafaf8;
}
#bp-svg-wrap {
  position: absolute;
  inset: 0;
  color: #0f172a; /* slate-950 paths */
}

/* Ensure site-header sits above the fixed background */
.site-header {
  position: fixed;
  z-index: 100;
}
/* cart-drawer and cart-overlay keep position:fixed from style.css */
.cart-drawer  { z-index: 200; }
.cart-overlay { z-index: 199; }
.bp-hero,
.shop-main,
.brand-story,
.email-section,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---- Hero section ---- */
.bp-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  text-align: center;
  background: transparent; /* lets bg paths show through */
}

.bp-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  padding: 0 24px;
}

/* Title — large, clipped gradient like the component */
.bp-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.5rem, 14vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  display: flex;
  gap: 0.3em;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

.bp-word {
  display: inline-flex;
}

/* Each letter animates in from below */
.bp-letter {
  display: inline-block;
  background: linear-gradient(160deg, #0f172a 0%, rgba(15,23,42,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(60px);
  animation: bpLetterIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bpLetterIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Sub text */
.bp-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.65);
  margin: 0;
  opacity: 0;
  animation: bpFadeIn 1s ease 0.8s forwards;
}

/* CTA button — matches component's ghost button style */
.bp-cta-wrap {
  opacity: 0;
  animation: bpFadeIn 1s ease 1s forwards;
}

.bp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #0f172a;
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(15,23,42,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.bp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(15,23,42,0.14);
  background: #fff;
}
.bp-cta-arrow {
  transition: transform 0.25s ease;
}
.bp-cta:hover .bp-cta-arrow {
  transform: translateX(5px);
}

/* Scroll hint */
.bp-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: bpFadeIn 1s ease 1.4s forwards;
}
.bp-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(15,23,42,0.4), transparent);
  margin: 0 auto;
  animation: bpScrollLine 2s ease infinite;
}
@keyframes bpScrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes bpFadeIn {
  to { opacity: 1; }
}

/* Shop rows section — keep its own cream bg */
.shop-main {
  background: var(--page-bg, #f5f2ee);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .bp-hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }
}
