/* PATCH_ID: b2c_artist_gate_transition_v3_slow_hold_20260709 */

/*
  V3 Slow Hold:
  - click page: slow entrance + short hold
  - target page: no repeated entrance, static hold then fade out
  - full artist name, max two lines, no ellipsis
*/

.b2c-artist-gate-source{
  position:relative;
  z-index:20;
  transform:translateY(-3px) scale(1.035) !important;
  box-shadow:
    0 26px 58px rgba(72,52,92,.16),
    0 0 0 1px rgba(255,255,255,.9) inset !important;
  transition:
    transform .34s cubic-bezier(.22,.8,.2,1),
    box-shadow .34s ease !important;
}

.b2c-artist-gate-source::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,.78), transparent 34%),
    linear-gradient(135deg, rgba(245,229,255,.52), rgba(255,230,244,.26));
  opacity:.72;
  animation:b2cArtistGateSourceGlowV3 .72s ease both;
}

@keyframes b2cArtistGateSourceGlowV3{
  0%{opacity:0; transform:scale(.98);}
  42%{opacity:.78; transform:scale(1);}
  100%{opacity:0; transform:scale(1.028);}
}

/* Full-page gate */
.b2c-artist-gate-v3{
  position:fixed;
  inset:0;
  z-index:99999;
  pointer-events:none;
  overflow:hidden;

  display:grid;
  place-items:center;

  background:
    radial-gradient(circle at 22% 42%, rgba(236,225,255,.44), transparent 38%),
    radial-gradient(circle at 78% 58%, rgba(255,226,241,.38), transparent 42%),
    rgba(255,255,255,.56);

  backdrop-filter:blur(0px);
  -webkit-backdrop-filter:blur(0px);

  opacity:0;
  animation:b2cArtistGateBgInV3 .72s ease forwards;
}

.b2c-artist-gate-v3.is-hold{
  opacity:1;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  animation:none !important;
}

.b2c-artist-gate-v3.is-exit{
  animation:b2cArtistGateOutV3 .78s ease forwards;
}

@keyframes b2cArtistGateBgInV3{
  0%{
    opacity:0;
    backdrop-filter:blur(0px);
    -webkit-backdrop-filter:blur(0px);
  }
  100%{
    opacity:1;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
}

@keyframes b2cArtistGateOutV3{
  from{
    opacity:1;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
  to{
    opacity:0;
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
  }
}

/* Center composition */
.b2c-artist-gate-stage-v3{
  width:min(1040px, 94vw);
  min-height:300px;
  display:grid;
  grid-template-columns:minmax(120px, .72fr) minmax(260px, 1.06fr);
  align-items:center;
  column-gap:clamp(24px, 5vw, 78px);
  padding:clamp(24px, 5vw, 56px);
  position:relative;
}

.b2c-artist-gate-stage-v3::before{
  content:"";
  position:absolute;
  inset:16% 5%;
  border-radius:999px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,236,246,.18), rgba(245,232,255,.20));
  filter:blur(32px);
  opacity:.75;
  transform:scale(.92);
  animation:b2cArtistGateCenterMistV3 .9s ease forwards;
}

.b2c-artist-gate-v3.is-hold .b2c-artist-gate-stage-v3::before{
  opacity:.75;
  transform:scale(1);
  animation:none !important;
}

@keyframes b2cArtistGateCenterMistV3{
  from{opacity:0; transform:scale(.86);}
  to{opacity:.75; transform:scale(1);}
}

/* Icon from left */
.b2c-artist-gate-icon-wrap-v3{
  justify-self:end;
  width:clamp(100px, 14vw, 164px);
  height:clamp(100px, 14vw, 164px);
  border-radius:clamp(30px, 4vw, 48px);
  position:relative;
  isolation:isolate;

  background:rgba(255,255,255,.58);
  border:1px solid rgba(255,255,255,.74);
  box-shadow:
    0 30px 78px rgba(60,40,82,.16),
    0 1px 0 rgba(255,255,255,.92) inset,
    0 0 0 1px rgba(234,222,242,.58);

  transform:translateX(-42vw) scale(.92) rotate(-3deg);
  opacity:0;
  animation:b2cArtistGateIconInV3 1.02s cubic-bezier(.18,.82,.2,1) .10s forwards;
}

.b2c-artist-gate-v3.is-hold .b2c-artist-gate-icon-wrap-v3{
  opacity:1;
  transform:translateX(0) scale(1) rotate(0);
  filter:blur(0);
  animation:none !important;
}

.b2c-artist-gate-icon-wrap-v3::before{
  content:"";
  position:absolute;
  inset:-28%;
  border-radius:inherit;
  background-image:var(--artist-img);
  background-size:cover;
  background-position:center;
  filter:blur(24px) saturate(1.12);
  opacity:.34;
  transform:scale(1.08);
  z-index:-1;
}

.b2c-artist-gate-icon-wrap-v3::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.36), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 22% 20%, rgba(255,255,255,.45), transparent 28%);
  pointer-events:none;
}

.b2c-artist-gate-icon-v3{
  width:100%;
  height:100%;
  border-radius:inherit;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#fff,#f5edff);
}

.b2c-artist-gate-icon-v3 img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;

  -webkit-mask-image:radial-gradient(circle at center, #000 58%, rgba(0,0,0,.76) 78%, transparent 100%);
  mask-image:radial-gradient(circle at center, #000 58%, rgba(0,0,0,.76) 78%, transparent 100%);

  filter:saturate(1.04) contrast(1.02);
}

.b2c-artist-gate-icon-fallback-v3{
  font-size:clamp(18px, 3vw, 34px);
  font-weight:950;
  letter-spacing:-.04em;
  color:#6e5c7d;
}

@keyframes b2cArtistGateIconInV3{
  0%{
    opacity:0;
    transform:translateX(-42vw) scale(.92) rotate(-3deg);
    filter:blur(8px);
  }
  60%{
    opacity:1;
    transform:translateX(10px) scale(1.018) rotate(.6deg);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:translateX(0) scale(1) rotate(0);
    filter:blur(0);
  }
}

/* Text from right */
.b2c-artist-gate-copy-v3{
  position:relative;
  z-index:1;
  min-width:0;
  transform:translateX(44vw);
  opacity:0;
  animation:b2cArtistGateCopyInV3 1.05s cubic-bezier(.18,.82,.2,1) .18s forwards;
}

.b2c-artist-gate-v3.is-hold .b2c-artist-gate-copy-v3{
  opacity:1;
  transform:translateX(0);
  filter:blur(0);
  animation:none !important;
}

.b2c-artist-gate-name-v3{
  font-size:clamp(42px, 7.2vw, 102px);
  line-height:.9;
  font-weight:950;
  letter-spacing:-.075em;
  color:#1f1727;

  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  max-width:min(660px, 58vw);

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  text-wrap:balance;
  word-break:keep-all;
  overflow-wrap:break-word;

  text-shadow:
    0 20px 60px rgba(49,35,65,.12),
    0 1px 0 rgba(255,255,255,.72);
}

/* long names get a slightly calmer scale */
.b2c-artist-gate-name-v3.is-long{
  font-size:clamp(36px, 5.7vw, 78px);
  letter-spacing:-.065em;
  line-height:.94;
}

.b2c-artist-gate-name-v3.is-xlong{
  font-size:clamp(32px, 4.9vw, 66px);
  letter-spacing:-.055em;
  line-height:1;
}

.b2c-artist-gate-sub-v3{
  margin-top:clamp(12px, 1.6vw, 20px);
  font-size:clamp(10px, 1.1vw, 13px);
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(82,67,94,.62);
  transform:translateY(12px);
  opacity:0;
  animation:b2cArtistGateSubInV3 .54s ease .72s forwards;
}

.b2c-artist-gate-v3.is-hold .b2c-artist-gate-sub-v3{
  opacity:1;
  transform:translateY(0);
  animation:none !important;
}

.b2c-artist-gate-line-v3{
  margin-top:clamp(15px, 2vw, 24px);
  width:min(300px, 48vw);
  height:1px;
  background:linear-gradient(90deg, rgba(31,23,39,.34), rgba(31,23,39,0));
  transform-origin:left center;
  transform:scaleX(0);
  opacity:0;
  animation:b2cArtistGateLineInV3 .58s cubic-bezier(.22,.8,.2,1) .76s forwards;
}

.b2c-artist-gate-v3.is-hold .b2c-artist-gate-line-v3{
  opacity:1;
  transform:scaleX(1);
  animation:none !important;
}

@keyframes b2cArtistGateCopyInV3{
  0%{
    opacity:0;
    transform:translateX(44vw);
    filter:blur(8px);
  }
  64%{
    opacity:1;
    transform:translateX(-10px);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:translateX(0);
    filter:blur(0);
  }
}

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

@keyframes b2cArtistGateLineInV3{
  to{opacity:1; transform:scaleX(1);}
}

/* Exit: hold then fade out, no re-entry motion */
.b2c-artist-gate-v3.is-exit .b2c-artist-gate-icon-wrap-v3{
  animation:b2cArtistGateIconOutV3 .72s ease forwards;
}

.b2c-artist-gate-v3.is-exit .b2c-artist-gate-copy-v3{
  animation:b2cArtistGateCopyOutV3 .72s ease forwards;
}

@keyframes b2cArtistGateIconOutV3{
  0%{opacity:1; transform:translateX(0) scale(1); filter:blur(0);}
  45%{opacity:1; transform:translateX(0) scale(1);}
  100%{opacity:0; transform:translateX(-18px) scale(.985); filter:blur(7px);}
}

@keyframes b2cArtistGateCopyOutV3{
  0%{opacity:1; transform:translateX(0); filter:blur(0);}
  45%{opacity:1; transform:translateX(0);}
  100%{opacity:0; transform:translateX(18px); filter:blur(7px);}
}

/* Product page enter */
body.b2c-artist-gate-entering .b2c-products-page{
  animation:b2cArtistGateProductsInV3 .62s cubic-bezier(.22,.8,.2,1) both;
}

body.b2c-artist-gate-entering .b2c-products-grid > *{
  animation:b2cArtistGateProductCardInV3 .52s cubic-bezier(.22,.8,.2,1) both;
  animation-delay:calc(min(var(--b2c-stagger-index, 0), 14) * 38ms);
}

@keyframes b2cArtistGateProductsInV3{
  from{opacity:0; transform:translateY(18px);}
  to{opacity:1; transform:translateY(0);}
}

@keyframes b2cArtistGateProductCardInV3{
  from{opacity:0; transform:translateY(16px) scale(.986);}
  to{opacity:1; transform:translateY(0) scale(1);}
}

@media(max-width:760px){
  .b2c-artist-gate-stage-v3{
    width:92vw;
    min-height:350px;
    grid-template-columns:1fr;
    row-gap:26px;
    text-align:center;
    padding:34px 20px;
  }

  .b2c-artist-gate-icon-wrap-v3{
    justify-self:center;
  }

  .b2c-artist-gate-name-v3,
  .b2c-artist-gate-name-v3.is-long,
  .b2c-artist-gate-name-v3.is-xlong{
    max-width:86vw;
    white-space:normal;
    font-size:clamp(38px, 11vw, 72px);
    line-height:.95;
    letter-spacing:-.065em;
  }

  .b2c-artist-gate-line-v3{
    margin-left:auto;
    margin-right:auto;
    background:linear-gradient(90deg, rgba(31,23,39,0), rgba(31,23,39,.34), rgba(31,23,39,0));
    transform-origin:center;
  }
}

@media(prefers-reduced-motion: reduce){
  .b2c-artist-gate-v3,
  .b2c-artist-gate-v3 *,
  body.b2c-artist-gate-entering .b2c-products-page,
  body.b2c-artist-gate-entering .b2c-products-grid > *{
    animation:none !important;
    transition:none !important;
  }
}
