/*
 * N43Mont — luxury.css
 * ─────────────────────────────────────────────────────────────────────────
 * Presentation-layer polish effects, deliberately kept in their OWN file,
 * separate from reveal.css and app.css. These are purely additive: entry
 * curtain, scroll progress bar, magnetic tilt support, ambient cursor glow.
 *
 * None of these selectors overlap with anything in reveal.css or the
 * Tailwind-compiled app.css — verified by grep before shipping. Removing
 * this file entirely (unhooking one line in functions.php) instantly and
 * completely removes every effect below with zero impact on the rest of
 * the site, by design.
 * ─────────────────────────────────────────────────────────────────────────
 */

/* ── Entry curtain (brief branded intro on page load) ─────────────────── */
#n43-curtain {
  position: fixed;
  inset: 0;
  z-index: 999999; /* must sit above absolutely everything, including the header */
  background: #0c0a09;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none; /* never blocks a click, even during the brief fade */
}
#n43-curtain.n43-curtain-exit {
  opacity: 0;
}
.n43-curtain-mark {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 1.75rem;
  letter-spacing: 0.35em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  animation: n43CurtainMarkIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
@keyframes n43CurtainMarkIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll progress bar ──────────────────────────────────────────────── */
#n43-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, #a8a29e, #ffffff);
  z-index: 200; /* above content, below the header's z-[100]... intentionally
                   ABOVE it slightly so the thin line reads as a top accent —
                   at 2px tall it never visually competes with the header */
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Magnetic tilt (JS sets transform inline; this just primes the element) */
.n43-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Ambient cursor glow (hero section only) ─────────────────────────── */
.n43-cursor-glow {
  position: absolute;
  inset: 0;
  z-index: 5; /* between background media (implicit 0) and hero content (z-10) */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    480px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
}

@media (prefers-reduced-motion: reduce) {
  #n43-curtain,
  .n43-curtain-mark {
    display: none !important;
  }
  .n43-cursor-glow {
    display: none !important;
  }
}

/* Touch devices: hide cursor-glow and skip tilt priming (no persistent hover) */
@media (hover: none), (pointer: coarse) {
  .n43-cursor-glow {
    display: none !important;
  }
}
