/* ==========================================================================
   MOTION LAYER — The Magic of V
   --------------------------------------------------------------------------
   FAIL-SAFE BY DESIGN: every hiding rule is gated behind .js-motion, which is
   only added by an inline script when JS runs AND the visitor has not asked
   for reduced motion. No JS, blocked JS, or reduced-motion => everything is
   visible at full opacity. Content can never be trapped invisible.
   ========================================================================== */

:root {
  /* Slow, confident easing. Expensive motion decelerates; it never bounces. */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-curtain:  cubic-bezier(0.77, 0, 0.175, 1);
  --dur-slow: 1100ms;
  --dur-mid:  820ms;
}

/* ---------- Text selection & scrollbar (small signals of care) ---------- */
::selection { background: rgba(212, 175, 55, 0.28); color: #fff; }
html { scrollbar-color: rgba(212,175,55,0.35) #0b0b14; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0b0b14; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212,175,55,0.5), rgba(212,175,55,0.2));
  border-radius: 20px; border: 3px solid #0b0b14;
}
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,0.65); }

/* ==========================================================================
   1. FILM GRAIN — a fixed, faintly drifting noise field.
   Reads as photographic texture rather than flat digital black.
   ========================================================================== */
.grain {
  position: fixed; inset: -150%;
  z-index: 1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
}
.js-motion .grain { animation: grain-drift 7s steps(6) infinite; }
@keyframes grain-drift {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-3%, -2%); }
  33%  { transform: translate(2%, -4%); }
  50%  { transform: translate(-2%, 3%); }
  66%  { transform: translate(3%, 1%); }
  83%  { transform: translate(-1%, -3%); }
  100% { transform: translate(0, 0); }
}

/* Vignette — pulls the eye to centre, a cinema-grade trick */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* Keep real content above the overlays */
main, footer { position: relative; z-index: 2; }
nav { z-index: 50; }  /* stays fixed - do NOT set position here */

/* ==========================================================================
   2. SCROLL REVEALS — short travel, long duration. Restraint reads as money.
   ========================================================================== */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-mid) var(--ease-out-expo),
    transform var(--dur-mid) var(--ease-out-expo);
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Headings rise out of a mask, like type being set. No node-splitting. */
.js-motion [data-reveal-line] {
  opacity: 0;
  clip-path: inset(0 0 105% 0);
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    clip-path var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}
.js-motion [data-reveal-line].is-in {
  opacity: 1; clip-path: inset(0 0 -20% 0); transform: none;
}

/* ==========================================================================
   3. IMAGE CURTAIN — a gold panel wipes away and the image settles from
   a slight over-scale. Far more expensive-looking than a fade.
   ========================================================================== */
.js-motion [data-curtain] { position: relative; overflow: hidden; }
.js-motion [data-curtain]::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, #16121f 0%, #d4af37 50%, #16121f 100%);
  transform: scaleX(1); transform-origin: right center;
  transition: transform var(--dur-slow) var(--ease-curtain);
}
.js-motion [data-curtain].is-in::after { transform: scaleX(0); }
.js-motion [data-curtain] img {
  transform: scale(1.07);
  transition: transform 1600ms var(--ease-out-expo);
}
.js-motion [data-curtain].is-in img { transform: scale(1); }

/* ==========================================================================
   4. HERO — staggered entrance on load, then a single slow shimmer.
   ========================================================================== */
.js-motion .hero-content > * {
  opacity: 0; transform: translateY(22px);
  animation: hero-in var(--dur-slow) var(--ease-out-expo) forwards;
}
.js-motion .hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.js-motion .hero-content > *:nth-child(2) { animation-delay: 0.30s; }
.js-motion .hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.js-motion .hero-content > *:nth-child(4) { animation-delay: 0.60s; }
.js-motion .hero-content > *:nth-child(5) { animation-delay: 0.75s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

.js-motion .hero-portrait {
  opacity: 0;
  animation: hero-portrait-in 1500ms var(--ease-out-expo) 0.35s forwards;
}
@keyframes hero-portrait-in {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* One slow gold sweep across the wordmark — a glint, not a disco light */
.js-motion .hero h1 {
  background-image: linear-gradient(100deg,
    transparent 20%, rgba(255,255,255,0.65) 48%, transparent 72%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  background-position: -140% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: glint 3.4s var(--ease-out-expo) 1.5s 1;
}
@keyframes glint { to { background-position: 240% 0; } }

/* Scroll hint breathes */
.js-motion .scroll-hint { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50%      { transform: translateY(7px); opacity: 0.9; }
}

/* ==========================================================================
   5. NAV — settles into a solid bar, and gets out of the way on scroll down.
   ========================================================================== */
nav {
  transition: transform 520ms var(--ease-out-expo),
              background-color 420ms ease,
              padding 420ms ease,
              border-color 420ms ease;
}
.js-motion nav.nav-solid {
  background: rgba(8, 8, 15, 0.93);
  border-bottom-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.js-motion nav.nav-hidden { transform: translateY(-102%); }

/* Nav links draw a gold rule left-to-right */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right center;
  transition: transform 480ms var(--ease-out-expo);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left center; }

/* ==========================================================================
   6. BUTTONS — a light sweeps across on hover. No bounce, no scale-up pop.
   ========================================================================== */
.btn { position: relative; overflow: hidden; transition: transform 380ms var(--ease-out-expo), box-shadow 380ms ease, color 300ms ease; }
.btn::before {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg); transition: left 750ms var(--ease-out-expo);
}
.btn:hover::before { left: 130%; }
.btn-gold:hover { box-shadow: 0 12px 34px rgba(212,175,55,0.28); }
.btn:active { transform: translateY(1px); }

/* ==========================================================================
   7. CARDS — event cards lift with a gold edge that draws itself.
   ========================================================================== */
.event-card {
  position: relative;
  transition: transform 620ms var(--ease-out-expo),
              border-color 480ms ease, box-shadow 620ms var(--ease-out-expo);
}
.event-card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 720ms var(--ease-out-expo);
}
.event-card:hover { transform: translateY(-7px); box-shadow: 0 26px 60px rgba(0,0,0,0.55); }
.event-card:hover::before { transform: scaleX(1); }
.event-card .icon { transition: transform 700ms var(--ease-out-expo); display: inline-block; }
.event-card:hover .icon { transform: rotate(180deg); }

/* Review cards drift up gently */
.review-card { transition: transform 620ms var(--ease-out-expo), border-color 420ms ease; }
.review-card:hover { transform: translateY(-5px); border-color: rgba(212,175,55,0.55); }

/* ==========================================================================
   8. POSTERS — they deal in like cards off a deck, and tilt on hover.
   ========================================================================== */
.js-motion .poster-card[data-reveal] {
  transform: translateY(30px) rotate(var(--deal-rot, -3deg));
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}
.js-motion .poster-card[data-reveal].is-in { transform: none; }
.poster-card { transition: transform 620ms var(--ease-out-expo), box-shadow 620ms ease, border-color 420ms ease; }
.poster-card:hover { transform: translateY(-10px) rotate(1.2deg) scale(1.02); }

/* ==========================================================================
   9. TRUST STRIP — a slow gold sheen travels along the rule.
   ========================================================================== */
.trust-strip { position: relative; overflow: hidden; }
.js-motion .trust-strip::after {
  content: ''; position: absolute; top: 0; left: 0; height: 1px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: sheen 6.5s linear infinite;
}
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
.trust-strip b { transition: color 420ms ease; }

/* ==========================================================================
   10. FAQ — answers open smoothly rather than snapping.
   ========================================================================== */
.faq-list details { transition: border-color 420ms ease, background-color 420ms ease; }
.faq-list details[open] { border-color: rgba(212,175,55,0.5); }
.faq-list summary { transition: color 300ms ease, letter-spacing 500ms var(--ease-out-expo); }
.faq-list summary:hover { color: var(--gold); letter-spacing: 0.07em; }
.faq-list summary::after { transition: transform 420ms var(--ease-out-expo); }
.faq-list details[open] summary::after { transform: rotate(180deg); }
.js-motion .faq-list details[open] p { animation: faq-open 620ms var(--ease-out-expo); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   11. SECTION RULES — a hairline draws itself across as you arrive.
   ========================================================================== */
.js-motion [data-rule]::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleX(0);
  width: min(680px, 62%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
  transition: transform 1400ms var(--ease-out-expo);
}
.js-motion [data-rule].is-in::before { transform: translateX(-50%) scaleX(1); }

/* ==========================================================================
   12. FULL ACCESSIBILITY STOP
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-motion [data-reveal],
  .js-motion [data-reveal-line],
  .js-motion .hero-content > *,
  .js-motion .hero-portrait {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .js-motion [data-curtain]::after { display: none !important; }
}
