/* ============================================================
   Ephemera section — receipt + zine, side by side
   ============================================================ */

.home-ephemera {
  background: #fcf0f9;
  padding: 130px var(--container-pad) 120px;
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

/* ── Scattered stickers — z-index below cards ── */
.pa-sticker {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}


/* Chevrons pinned to top-right corner of magazine */
.pa-chevrons-on-zine {
  position: absolute;
  top: -55px;
  right: -75px;
  width: clamp(75px, 8vw, 105px);
  pointer-events: none;
  z-index: 10;
  transform: rotate(40deg);
}
/* 2 — blue star: top-left, largest sticker */
.pa-sticker[data-s="2"] {
  width: clamp(130px, 15vw, 210px);
  top: 4%;
  left: 2%;
  transform: rotate(-10deg) translateY(var(--py, 0px));
  will-change: transform;
}
/* 3 — disco ball: top-right of section, straight — no parallax */
.pa-sticker[data-s="3"] {
  width: clamp(140px, 16vw, 220px);
  top: 0;
  right: 0;
  transform: none;
}

/* 4 — camera: mid-left, large */
.pa-sticker[data-s="4"] {
  width: clamp(150px, 16vw, 220px);
  top: 28%;
  left: 10%;
  transform: rotate(5deg) translateY(var(--py, 0px));
  will-change: transform;
}
/* 5 — colourful stars: bottom-right */
.pa-sticker[data-s="5"] {
  width: clamp(140px, 15vw, 200px);
  bottom: 4%;
  right: 2%;
  transform: rotate(-6deg) translateY(var(--py, 0px));
  will-change: transform;
}
/* 6 — megaphone: bottom-left */
.pa-sticker[data-s="6"] {
  width: clamp(110px, 12vw, 160px);
  bottom: 6%;
  left: 2%;
  transform: rotate(-18deg) translateY(var(--py, 0px));
  will-change: transform;
}
/* 7 — chevrons now pinned to magazine, hide scattered version */
.pa-sticker[data-s="7"] { display: none; }


/* Mobile: receipt + zine stack vertically, so re-anchor stickers to the
   four corners (clear of the stacked cards) instead of hiding them. */
@media (max-width: 900px) {
  .pa-sticker[data-s="2"] {
    width: clamp(80px, 22vw, 120px);
    top: 1%;
    left: 1%;
  }
  .pa-sticker[data-s="3"] {
    width: clamp(90px, 24vw, 130px);
    top: -18px;
  }
  .pa-sticker[data-s="4"] {
    display: none; /* sits mid-height — collides with stacked cards on narrow screens */
  }
  .pa-sticker[data-s="5"] {
    width: clamp(80px, 22vw, 120px);
    bottom: 1%;
    right: 1%;
  }
  .pa-sticker[data-s="6"] {
    width: clamp(70px, 18vw, 100px);
    bottom: 1.5%;
    left: 1%;
  }
}

.home-ephemera__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  gap: clamp(20px, 4vw, 60px);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}


/* ============================================================
   Slot 1 — Receipt card
   ============================================================ */

.pa-receipt {
  position: relative; display: block; width: 300px; box-sizing: border-box;
  background: #ffffff; color: #171717; text-decoration: none;
  font-family: 'Space Mono', monospace; padding: 36px 26px 34px;
  cursor: pointer; transform: rotate(-2.4deg);
  filter: drop-shadow(-4px 20px 22px rgba(0,0,0,.32));
  transition: transform .25s ease, filter .25s ease;
  clip-path: polygon(0 1.5%,7% .4%,15% 1.2%,24% .2%,33% 1%,44% .3%,55% 1.1%,66% .4%,77% 1.2%,88% .5%,95% 1%,100% .6%,100% 97.4%,96% 99.4%,92% 97.8%,88% 99.7%,83% 97.6%,78% 99.6%,73% 98%,68% 99.7%,62% 97.7%,57% 99.5%,51% 98%,46% 99.8%,40% 97.6%,35% 99.5%,29% 98%,24% 99.7%,18% 97.7%,13% 99.5%,7% 98%,3% 99.6%,0 98%);
}
.pa-receipt:hover {
  transform: rotate(-2.4deg) translateY(-6px);
  filter: drop-shadow(-4px 26px 28px rgba(0,0,0,.38));
}
.pa-receipt::before, .pa-receipt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
}
.pa-receipt::before {
  background:
    linear-gradient(108deg,rgba(0,0,0,.05) 0%,transparent 9%,transparent 33%,rgba(0,0,0,.045) 37%,transparent 42%,transparent 60%,rgba(0,0,0,.035) 64%,transparent 69%,transparent 84%,rgba(0,0,0,.055) 100%),
    linear-gradient(15deg,transparent 42%,rgba(0,0,0,.035) 56%,transparent 61%);
}
.pa-receipt::after {
  opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}
.pa-receipt > * { position: relative; z-index: 1; }

/* ── Receipt dress line items ── */
.pa-dress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.pa-dress-thumb {
  width: 42px;
  height: 56px;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.14));
}

.pa-dress-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex: 1;
  font-family: 'Space Mono', monospace;
}

.pa-dress-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #171717;
  letter-spacing: 0.02em;
}

.pa-dress-price {
  font-size: 10px;
  color: #3a362f;
}

.pa-curl {
  position: absolute; top: 0; left: -3px; right: -3px; height: 26px; z-index: 0;
  background: linear-gradient(180deg,#ffffff 0%,var(--cream-dark) 46%,rgba(0,0,0,.09) 86%,transparent 100%);
  border-radius: 0 0 40% 40%/0 0 100% 100%; transform: rotate(-.6deg); pointer-events: none;
}

.pa-logo-text {
  display: block;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-align: center;
  color: #171717;
  margin: 2px auto 14px;
  transform: rotate(0.5deg);
  mix-blend-mode: multiply;
  position: relative;
  z-index: 1;
}

.pa-rule { overflow: hidden; white-space: nowrap; letter-spacing: .5px; font-size: 11px; color: #2b2822; }
.pa-line { display: flex; justify-content: space-between; white-space: nowrap; }
.pa-item { font-size: 12.5px; font-weight: 700; margin-top: 12px; }
.pa-sub  { font-size: 11px; color: #6a655c; font-style: italic; margin: 2px 0 12px; }
.pa-total { font-size: 15px; font-weight: 700; margin: 12px 0; }
.pa-meta { font-size: 10.5px; line-height: 1.7; color: #3a362f; margin-top: 12px; }
.pa-cta  { margin: 16px -2px 4px; border: 1.5px dashed #171717; border-radius: 3px; padding: 10px 8px; text-align: center; }
.pa-cta b { font-size: 11px; letter-spacing: .05em; }
.pa-cta span { display: block; font-size: 10px; color: #6a655c; margin-top: 3px; }
.pa-barcode {
  margin-top: 16px; height: 48px; opacity: .88;
  background-image: repeating-linear-gradient(90deg,#171717 0 2px,transparent 2px 4px,#171717 4px 7px,transparent 7px 9px,#171717 9px 10px,transparent 10px 13px,#171717 13px 16px,transparent 16px 17px,#171717 17px 20px,transparent 20px 23px);
}


/* ============================================================
   Follow row — Instagram / TikTok, made prominent per client ask
   ============================================================ */
.pa-follow {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pa-follow__label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6a655c;
}
.pa-follow__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.pa-follow__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid #171717;
  border-radius: 999px;
  background: #ffffff;
  color: #171717;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pa-follow__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.pa-follow__icon--outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
@media (hover: hover) and (pointer: fine) {
  .pa-follow__link:hover {
    background: #171717;
    color: #f5f1ea;
    transform: translateY(-2px);
  }
}

/* ============================================================
   Slot 2 — Zine / magazine flip-through
   ============================================================ */

.pa-zine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pa-zine__book {
  position: relative;
  width: 290px;
  transform: rotate(1.8deg);
  filter: drop-shadow(5px 18px 22px rgba(0,0,0,.30));
  cursor: pointer;
  transition: transform .28s ease, filter .28s ease;
  user-select: none;
}
.pa-zine__book:hover {
  transform: rotate(1.8deg) translateY(-6px);
  filter: drop-shadow(5px 24px 28px rgba(0,0,0,.36));
}

/* Page stack */
.pa-zine__pages {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 10;
  perspective: 1000px;
  border-radius: 2px 3px 3px 2px;
}

.pa-zine__page {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  border-radius: 2px 3px 3px 2px;
  overflow: hidden;
}

.pa-zine__page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% top;
  display: block;
}

/* Grain overlay on each page */
.pa-zine__page::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.09;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

/* Page flip out animation */
@keyframes pa-flip-out {
  0%   { transform: rotateY(0deg);    opacity: 1; }
  42%  { transform: rotateY(-90deg);  opacity: 1; }
  52%  { transform: rotateY(-90deg);  opacity: 0; }
  100% { transform: rotateY(-180deg); opacity: 0; }
}

.pa-zine__page--flipping {
  animation: pa-flip-out 0.72s cubic-bezier(0.645, 0.045, 0.355, 1.000) forwards;
  z-index: 20 !important;
}

/* Cover overlay — masthead + coverline */
.pa-zine__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 14px;
  background: linear-gradient(
    to bottom,
    rgba(17,17,17,0.62) 0%,
    rgba(17,17,17,0.1) 30%,
    transparent 55%,
    rgba(17,17,17,0.45) 100%
  );
  z-index: 2;
}
.pa-zine__masthead {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  color: #f5f1ea;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pa-zine__coverline {
  font-family: 'Space Mono', monospace;
  font-size: 8.5px;
  color: rgba(245,241,234,0.75);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 5px;
}
.pa-zine__cover-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.pa-zine__cover-price {
  font-family: 'Space Mono', monospace;
  font-size: 8.5px;
  color: rgba(245,241,234,0.65);
  letter-spacing: 0.06em;
}

/* Spread captions */
.pa-zine__caption {
  position: absolute;
  bottom: 13px;
  right: 13px;
  font-family: 'Space Mono', monospace;
  font-size: 8.5px;
  color: rgba(245,241,234,0.85);
  letter-spacing: 0.04em;
  text-align: right;
  max-width: 110px;
  line-height: 1.5;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Spine — a shadowed crease (how a closed magazine's cover actually
   catches light at the fold), not a pale highlight stripe */
.pa-zine__spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: linear-gradient(
    to right,
    rgba(20, 18, 15, 0.5) 0%,
    rgba(20, 18, 15, 0.28) 18%,
    rgba(20, 18, 15, 0.1) 45%,
    transparent 100%
  );
  z-index: 10;
  pointer-events: none;
}
.pa-zine__spine::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(20, 18, 15, 0.55);
}

/* Page thickness (right edge stack) */
.pa-zine__thickness {
  position: absolute;
  right: -5px;
  top: 3px;
  bottom: 3px;
  width: 6px;
  background: linear-gradient(to right, #bfbab2, #d8d4cc);
  border-radius: 0 2px 2px 0;
  z-index: -1;
}
.pa-zine__thickness-2 {
  position: absolute;
  right: -9px;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: linear-gradient(to right, #ccc8c0, #dedad3);
  border-radius: 0 2px 2px 0;
  z-index: -2;
}

/* Page counter dots */
.pa-zine__dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pa-zine__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4bfb8;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pa-zine__dot.is-active {
  background: #6a655c;
  transform: scale(1.3);
}

/* CTA */
.pa-zine__cta {
  font-family: 'Space Mono', monospace;
  font-size: 9.5px;
  color: #6a655c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   Lookbook preview card — pointer & keyboard triggers
   ============================================================ */

#pa-lookbook-open { cursor: pointer; }
#pa-lookbook-open:focus-visible .pa-zine__book {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ============================================================
   Lookbook overlay — full-screen 3D flip reader
   ============================================================ */

#pa-lookbook-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
#pa-lookbook-overlay .lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 18%, #efece5 0%, #e2ded5 55%, #d5d0c6 100%);
}
#pa-lookbook-overlay .lb-brandlabel {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  font: 400 11px 'Space Mono', monospace;
  letter-spacing: .42em;
  color: #8a8478;
  text-transform: uppercase;
}
#pa-lookbook-overlay .lb-scalewrap {
  position: relative;
  width: 760px;
  height: 520px;
  cursor: pointer;
  transition: transform .7s cubic-bezier(.2, .72, .2, 1);
}
#pa-lookbook-overlay .lb-scalewrap.reading { cursor: default; }
#pa-lookbook-overlay .lb-shadow {
  position: absolute;
  left: 8%; right: 8%; bottom: -42px;
  height: 60px;
  filter: blur(6px);
  z-index: 0;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0,0,0,.34), transparent 72%);
}
#pa-lookbook-overlay .lb-book {
  position: relative;
  width: 760px;
  height: 520px;
  transform-style: preserve-3d;
  perspective: 2400px;
  transition: transform .8s cubic-bezier(.2, .72, .2, 1);
}
#pa-lookbook-overlay .lb-leaf {
  position: absolute;
  top: 0; left: 380px;
  width: 380px; height: 520px;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .72, .2, 1);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}
#pa-lookbook-overlay .lb-leaf.lb-noTransition {
  transition: none;
}
#pa-lookbook-overlay .lb-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f6f2ea;
  color: #1c1a17;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
#pa-lookbook-overlay .lb-face--back { transform: rotateY(180deg); }
#pa-lookbook-overlay .lb-spineL {
  position: absolute; top: 0; bottom: 0; left: 0; width: 30px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.14), transparent);
}
#pa-lookbook-overlay .lb-spineR {
  position: absolute; top: 0; bottom: 0; right: 0; width: 30px;
  pointer-events: none;
  background: linear-gradient(270deg, rgba(0,0,0,.14), transparent);
}
#pa-lookbook-overlay .lb-pagenum {
  position: absolute; bottom: 34px; left: 46px; right: 46px;
  display: flex; justify-content: space-between;
  font: 400 9px 'Space Mono', monospace;
  letter-spacing: .2em; color: #a09a8d;
}
#pa-lookbook-overlay .lb-imgslot {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; background: rgba(0,0,0,.07);
  display: flex; align-items: center; justify-content: center;
}
#pa-lookbook-overlay .lb-imgslot.dark { background: rgba(255,255,255,.06); }
#pa-lookbook-overlay .lb-imgslot img:not([src]),
#pa-lookbook-overlay .lb-imgslot img[src=""] { display: none; }
#pa-lookbook-overlay .lb-imgslot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
#pa-lookbook-overlay .lb-imgslot span {
  position: relative;
  font: 400 10px 'Space Mono', monospace;
  letter-spacing: .16em; color: #8a857b;
  text-transform: uppercase; text-align: center; padding: 0 14px;
}
#pa-lookbook-overlay .lb-imgslot.dark span { color: #b7b1a6; }
#pa-lookbook-overlay .lb-idlehint {
  position: absolute; bottom: 44px; left: 0; right: 0;
  text-align: center; pointer-events: none;
}
#pa-lookbook-overlay .lb-idlehint span {
  display: inline-block; padding: 9px 20px;
  background: #141414; color: #f4f1ea; border-radius: 999px;
  font: 400 11px 'Space Mono', monospace; letter-spacing: .18em;
}
#pa-lookbook-overlay .lb-zone {
  position: absolute; top: 0; bottom: 0; width: 24%; z-index: 60; display: none;
}
#pa-lookbook-overlay .lb-zone.left  { left:  0; cursor: w-resize; }
#pa-lookbook-overlay .lb-zone.right { right: 0; cursor: e-resize; }
#pa-lookbook-overlay .lb-closebtn {
  position: absolute; top: 22px; right: 24px; z-index: 70;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid #4a463f;
  background: rgba(246,242,234,.85); color: #1c1a17;
  font-size: 17px; cursor: pointer; display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
#pa-lookbook-overlay .lb-navpill {
  position: absolute; bottom: 26px; left: 0; right: 0;
  text-align: center; z-index: 70; pointer-events: none; display: none;
}
#pa-lookbook-overlay .lb-navpill b {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 8px 18px; background: rgba(20,20,20,.82);
  color: #f4f1ea; border-radius: 999px;
  font: 400 11px 'Space Mono', monospace;
  letter-spacing: .12em; backdrop-filter: blur(4px);
  pointer-events: all;
}
#pa-lookbook-overlay .lb-navpill #lb-pPrev,
#pa-lookbook-overlay .lb-navpill #lb-pNext {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: opacity .15s;
}
#pa-lookbook-overlay .lb-navpill #lb-pPrev:hover,
#pa-lookbook-overlay .lb-navpill #lb-pNext:hover {
  opacity: .7;
}

@keyframes lbRiffle {
  0%   { transform: rotateY(0) }
  5%   { transform: rotateY(-172deg) }
  11%  { transform: rotateY(-172deg) }
  18%  { transform: rotateY(0) }
  100% { transform: rotateY(0) }
}
@keyframes lbFade {
  from { opacity: 0 } to { opacity: 1 }
}
