/* ═══════════════════════════════════════════════════════════════
   FRIENDS' BLESSINGS  (vertical scroll page, 3 variants)
   ═══════════════════════════════════════════════════════════════ */

/* Shared page shell ------------------------------------------------ */
.blessings-page {
  position: relative;
  z-index: 6;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

.blessings-page * { box-sizing: border-box; }

.blessings-header {
  position: relative;
  text-align: center;
  padding: 7vh 1.5rem 4vh;
  max-width: 760px;
  margin: 0 auto;
  z-index: 2;
}

.blessings-eyebrow {
  font-size: clamp(0.78rem, 1.6vw, 0.9rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.1rem;
  opacity: 0.55;
}

.blessings-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.blessings-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  opacity: 0.65;
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.blessings-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 6vh 1.5rem 9vh;
  z-index: 2;
}

.blessings-footer-label {
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  opacity: 0.7;
  margin-bottom: 0.4rem;
  text-align: center;
}

.blessings-continue-btn {
  padding: 0.95rem 2.6rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blessings-continue-btn:hover  { transform: scale(1.04); box-shadow: 0 14px 38px rgba(244, 114, 182, 0.6); }
.blessings-continue-btn:active { transform: scale(0.97); }

/* Scroll-driven reveal (shared) ----------------------------------- */
.b-reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s cubic-bezier(.16,.84,.34,1), transform 1s cubic-bezier(.16,.84,.34,1);
  will-change: transform, opacity;
}
.b-reveal.in-view { opacity: 1; transform: translateY(0); }

/* Image hover-zoom (shared) --------------------------------------- */
.b-imgwrap {
  overflow: hidden;
  position: relative;
}
.b-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.9s ease;
  will-change: transform;
}
.b-imgwrap:hover img { transform: scale(1.12); filter: brightness(1.04); }


/* ═══════════════════════════════════════════════════════════════
   VARIANT A — POLAROID WALL
   ═══════════════════════════════════════════════════════════════ */
.blessings-polaroid {
  --paper:        #fbf3ec;
  --paper-deep:   #f3e3d4;
  --ink:          #2d2520;
  --ink-soft:     #6f5d50;
  --accent-rose:  #d76f86;
  background: var(--paper);
  color: var(--ink);
}

/* Paper texture + faint floral wash */
.blessings-polaroid::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 8%,  rgba(215,111,134,0.22) 0, transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(215,111,134,0.18) 0, transparent 24%),
    radial-gradient(circle at 6%  62%, rgba(215,111,134,0.16) 0, transparent 26%),
    radial-gradient(circle at 94% 70%, rgba(215,111,134,0.18) 0, transparent 24%),
    radial-gradient(circle at 50% 95%, rgba(215,111,134,0.14) 0, transparent 28%),
    repeating-linear-gradient(45deg, rgba(155,115,90,0.04) 0 2px, transparent 2px 6px);
  pointer-events: none;
  z-index: 0;
}

.blessings-polaroid .blessings-eyebrow {
  font-family: 'Poppins', sans-serif;
  color: var(--ink-soft);
  letter-spacing: 0.4em;
}

.blessings-polaroid .blessings-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  line-height: 0.95;
  color: var(--accent-rose);
  text-shadow: 0 2px 0 rgba(0,0,0,0.04);
}

.blessings-polaroid .blessings-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink-soft);
  opacity: 1;
}

.polaroid-stack {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.polaroid {
  position: relative;
  background: #fff;
  padding: 18px 18px 64px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 14px 30px rgba(80,40,20,0.18),
    0 30px 60px rgba(80,40,20,0.08);
  align-self: center;
  width: 100%;
  max-width: 340px;
}

/* Slight rotations to feel hand-placed */
.polaroid.rot-0 { transform: rotate(-3.2deg); }
.polaroid.rot-1 { transform: rotate( 2.6deg); }
.polaroid.rot-2 { transform: rotate(-1.4deg); margin-left: 18%; }
.polaroid.rot-3 { transform: rotate( 3.8deg); margin-right: 14%; }
.polaroid.rot-4 { transform: rotate(-2.2deg); }

.polaroid .tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 28px;
  transform: translateX(-50%) rotate(-3deg);
  opacity: 0.85;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.polaroid .tape-pink  { background: repeating-linear-gradient(135deg, rgba(244,114,182,0.55) 0 6px, rgba(244,114,182,0.35) 6px 12px); }
.polaroid .tape-blue  { background: repeating-linear-gradient(135deg, rgba(96,165,250,0.50) 0 6px, rgba(96,165,250,0.30) 6px 12px); }
.polaroid .tape-cream { background: repeating-linear-gradient(135deg, rgba(250,212,144,0.55) 0 6px, rgba(250,212,144,0.30) 6px 12px); }
.polaroid.rot-1 .tape { transform: translateX(-50%) rotate(4deg); left: 30%; }
.polaroid.rot-3 .tape { transform: translateX(-50%) rotate(-6deg); left: 70%; }

.polaroid-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #efe7df;
  overflow: hidden;
}
.polaroid-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.polaroid-photo:hover img { transform: scale(1.12); }

.polaroid-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(215,111,134,0.18), transparent 60%),
    repeating-linear-gradient(45deg, #efe1d6 0 8px, #ede0d5 8px 16px);
}
.polaroid-photo-empty::after {
  content: "♡";
  font-size: 2.4rem;
  color: var(--accent-rose);
  opacity: 0.55;
}

.polaroid-caption {
  position: relative;
  padding-top: 14px;
  text-align: center;
}

.polaroid-name {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.polaroid-msg {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 6px auto 0;
}

.polaroid-logo {
  position: absolute;
  bottom: -14px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.blessings-polaroid .blessings-footer-label {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--accent-rose);
  opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════
   VARIANT B — POSTCARD / LETTER STACK
   ═══════════════════════════════════════════════════════════════ */
.blessings-postcard {
  --kraft:      #e9dfcd;
  --kraft-deep: #d8c9af;
  --paper:      #fdf9f1;
  --ink:        #2b2418;
  --ink-soft:   #6c5e48;
  --ink-blue:   #2f4e7a;
  --stamp:      #b6364b;
  background: var(--kraft);
  color: var(--ink);
}

.blessings-postcard::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(120,80,40,0.08), transparent 55%),
    repeating-linear-gradient(0deg,   rgba(120,80,40,0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,  rgba(120,80,40,0.025) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 0;
}

.blessings-postcard .blessings-eyebrow {
  color: var(--ink-soft);
}
.blessings-postcard .blessings-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
}
.blessings-postcard .blessings-subtitle {
  color: var(--ink-soft);
}

.postcard-stack {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.postcard {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid rgba(120,80,40,0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 22px 40px rgba(80,50,20,0.18),
    0 2px 0 rgba(80,50,20,0.06);
  overflow: hidden;
}
.postcard.tilt-l { transform: rotate(-1.1deg); }
.postcard.tilt-r { transform: rotate( 1.2deg); }

.postcard-stamp-col {
  position: relative;
  background: var(--paper);
  border-right: 1.5px dashed rgba(120,80,40,0.3);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.postcard-stamp {
  width: 78px;
  height: 92px;
  background: linear-gradient(160deg, var(--stamp), #8a2438);
  color: #fffaf0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  align-self: flex-end;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
}
.postcard-stamp::before {
  content: "";
  position: absolute;
  inset: -6px;
  background:
    radial-gradient(circle at 6px 0,   transparent 4px, var(--kraft) 4px) repeat-x top    / 12px 6px,
    radial-gradient(circle at 6px 6px, transparent 4px, var(--kraft) 4px) repeat-x bottom / 12px 6px,
    radial-gradient(circle at 0 6px,   transparent 4px, var(--kraft) 4px) repeat-y left   / 6px 12px,
    radial-gradient(circle at 6px 6px, transparent 4px, var(--kraft) 4px) repeat-y right  / 6px 12px;
  pointer-events: none;
}
.postcard-stamp b { font-size: 1.4rem; letter-spacing: 0; }

.postcard-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #efe1cf;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(80,50,20,0.18);
  border: 6px solid #fff;
}
.postcard-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.postcard-photo:hover img { transform: scale(1.12); }
.postcard-photo-empty {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f1e3cf 0 8px, #efe0cb 8px 16px);
  color: var(--ink-soft);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border-color: #fff;
}

.postcard-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--paper);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  align-self: flex-start;
  margin-top: 4px;
}

.postcard-note {
  position: relative;
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(transparent 28px, rgba(120,80,40,0.07) 28px, rgba(120,80,40,0.07) 29px, transparent 29px) 0 4px / 100% 30px;
}

.postcard-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed rgba(120,80,40,0.25);
  padding-bottom: 10px;
}

.postcard-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
}

.postcard-from {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
}

.postcard-msg {
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--ink-blue);
}

.postcard-signature {
  margin-top: 6px;
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  color: var(--ink-blue);
  text-align: right;
  font-weight: 700;
}

.blessings-postcard .blessings-footer-label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--ink-soft);
}


/* ═══════════════════════════════════════════════════════════════
   VARIANT C — MODERN GLASS CARDS
   ═══════════════════════════════════════════════════════════════ */
.blessings-glass {
  --g-bg:    #0a0f1f;
  --g-bg-2:  #1a1238;
  --g-text:  #ecedf3;
  --g-soft:  rgba(236,237,243,0.62);
  --g-line:  rgba(255,255,255,0.10);
  background: var(--g-bg);
  color: var(--g-text);
}

/* Atmospheric backdrop: deep navy with soft aurora glows */
.blessings-glass::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 18% 12%, rgba(244,114,182,0.22), transparent 70%),
    radial-gradient(ellipse 55% 50% at 82% 22%, rgba(250,140,96,0.18),  transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 88%, rgba(96,165,250,0.18),  transparent 70%),
    linear-gradient(180deg, var(--g-bg) 0%, var(--g-bg-2) 60%, var(--g-bg) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Star field */
.blessings-glass::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 47% 14%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 64% 36%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 80% 22%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 92% 8%,  rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at  9% 72%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 35% 86%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 58% 64%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 88% 92%, rgba(255,255,255,0.5), transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.blessings-glass .blessings-eyebrow { color: var(--g-soft); }
.blessings-glass .blessings-title   { font-weight: 600; }
.blessings-glass .blessings-title .accent {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blessings-glass .blessings-subtitle { color: var(--g-soft); }

.glass-stack {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.glass-card {
  position: relative;
  padding: 1.6rem 1.7rem 1.5rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--g-line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}

/* Soft accent glow behind each card */
.glass-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, var(--primary), transparent 65%);
  opacity: 0.08;
  pointer-events: none;
}
.glass-card:nth-child(even)::before {
  left: auto; right: -10%;
  background: radial-gradient(circle, var(--accent), transparent 65%);
}

.glass-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.glass-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.18);
  overflow: hidden;
}
.glass-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.glass-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--g-text);
  margin-bottom: 2px;
}

.glass-role {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g-soft);
}

.glass-msg {
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 300;
  color: var(--g-text);
  opacity: 0.92;
}

.glass-photo {
  margin-top: 1.1rem;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--g-line);
}
.glass-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.glass-photo:hover img { transform: scale(1.1); }

.blessings-glass .blessings-footer-label { color: var(--g-soft); }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .blessings-header { padding: 5vh 1.2rem 3vh; }
  .polaroid-stack   { gap: 4.2rem; }
  .polaroid.rot-2   { margin-left: 6%; }
  .polaroid.rot-3   { margin-right: 6%; }

  .postcard {
    grid-template-columns: 1fr;
  }
  .postcard-stamp-col {
    border-right: none;
    border-bottom: 1.5px dashed rgba(120,80,40,0.3);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
  }
  .postcard-photo { width: 50%; aspect-ratio: 5/4; }
  .postcard-stamp { align-self: center; }

  .glass-stack    { padding: 1rem; gap: 1.2rem; }
  .glass-card     { padding: 1.3rem 1.3rem 1.2rem; }
}