/* LextNevel — design ideas batch 2 (TEST: homepage only, not yet site-wide) */

/* 1. Magnetic CTA buttons */
.btn-gold, .btn-outline, .nav-cta {
  transition: transform .15s ease-out, background .25s, border-color .2s;
  will-change: transform;
}

/* 2. Image wipe reveal on scroll (replaces plain fade for the lifestyle
   card photos). Left-to-right clip-path wipe, one-shot via IntersectionObserver. */
.lc-img img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.2,.8,.3,1), filter .4s;
}
.lc-img.ln-wipe-in img {
  clip-path: inset(0 0 0 0);
}
@media (prefers-reduced-motion: reduce) {
  .lc-img img { clip-path: none; transition: transform .7s cubic-bezier(.2,.8,.3,1), filter .4s; }
}

/* 3. Diamond divider — subtle spin+glow the first time it scrolls into view */
.divider span {
  display: inline-block;
}
.divider span.ln-diamond-in {
  animation: ln-diamond-spin 1.1s cubic-bezier(.3,.7,.2,1) both;
}
@keyframes ln-diamond-spin {
  0%   { transform: rotate(-90deg) scale(.4); opacity: 0; text-shadow: none; }
  60%  { text-shadow: 0 0 10px rgba(201,168,76,.9); }
  100% { transform: rotate(0deg) scale(1); opacity: 1; text-shadow: 0 0 4px rgba(201,168,76,.45); }
}
@media (prefers-reduced-motion: reduce) {
  .divider span.ln-diamond-in { animation: none; }
}

/* 4. Back-to-top shield button */
#ln-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(201,168,76,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .2s ease;
  z-index: 9997;
  padding: 0;
}
#ln-back-to-top.ln-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#ln-back-to-top:hover {
  border-color: #C9A84C;
}
#ln-back-to-top img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: block;
}
@media (max-width: 640px) {
  #ln-back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}
