/* Gold Piece motion layer. Everything here is progressive: without the `motion` class on <html>
   (reduced motion, ?motion=off, or scripts failing) the page renders fully static. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ scroll progress */
.sprog { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.sprog i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sea), var(--gold) 60%, var(--red)); }

/* ------------------------------------------------------------------ enter reveals (IntersectionObserver adds .is-in) */
.motion [data-reveal] {
  opacity: 0; transform: translate3d(0, 44px, 0);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal="scale"] { transform: scale(.9); }
.motion [data-reveal="left"] { transform: translate3d(-60px, 0, 0); }
.motion [data-reveal="right"] { transform: translate3d(60px, 0, 0); }
.motion [data-reveal="flip"] { transform: perspective(1000px) rotateX(22deg) translate3d(0, 70px, 0); transform-origin: 50% 100%; }
.motion [data-reveal="slam"] { transform: scale(1.55) rotate(-11deg); filter: blur(3px);
  transition: opacity .22s ease-out, transform .6s cubic-bezier(.2, 1.45, .35, 1), filter .3s; transition-delay: calc(var(--i, 0) * 170ms + var(--d, 0ms)); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="slam"].is-in { filter: none; }
.motion .wposter__paper.is-tilt { transition: transform .1s ease-out; }
.motion .nav { animation: navIn .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes navIn { from { translate: 0 -100%; } }

/* ------------------------------------------------------------------ split headings */
.motion [data-split]:not(.is-split) { visibility: hidden; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .03em; margin: -.12em -.03em; }
.swc { display: inline-block; white-space: nowrap; }
.sw__i { display: inline-block; }
.motion [data-split] .sw .sw__i {
  transform: translate3d(0, 118%, 0) rotate(6deg); transform-origin: 0 100%;
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms + var(--d, 0ms));
}
.motion [data-split].is-in .sw .sw__i { transform: none; }
.motion [data-split="chars"] { perspective: 700px; }
.motion [data-split="chars"] .swc .sw__i {
  opacity: 0; transform: translate3d(0, 55%, 0) rotateX(-96deg); transform-origin: 50% 100%;
  transition: transform 1s cubic-bezier(.2, .9, .25, 1.2), opacity .45s; transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms));
}
.motion [data-split="chars"].is-in .swc .sw__i { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ tilt + holo (pointer driven, see motion.js) */
.tcard, .pack { --mx: 50%; --my: 50%; }
.motion .tcard { transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.motion .pack:hover { transform: none; }
.motion .tcard.is-tilt, .motion .pack.is-tilt { transition: transform .1s ease-out; z-index: 5; }
.tcard::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 58%); mix-blend-mode: soft-light;
}
.tcard.is-tilt::before { opacity: 1; }
.tcard--big.is-tilt::after {
  animation: none; opacity: .55; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 24%, rgba(255, 90, 160, .6) 38%, rgba(90, 240, 255, .55) 50%, rgba(255, 235, 110, .6) 62%, transparent 76%);
  background-size: 260% 260%; background-position: var(--mx) var(--my);
}
.pack.is-tilt .pack__shine { animation: none; background-position: calc(120% - var(--mx) * 1.4) 0; }
.motion .btn--lg { transition: transform .15s ease, background .15s ease, opacity .15s ease, border-color .15s ease, translate .35s cubic-bezier(.2, .8, .2, 1); }

/* ------------------------------------------------------------------ hero */
.fan__mouse, .fan__float { width: 100%; }
.hero__fan--l .fan__float { --fx: -280px; --fr: -34deg; }
.hero__fan--r .fan__float { --fx: 280px; --fr: 34deg; }
.motion .fan__float {
  opacity: 0; transform: translate3d(var(--fx, 0), 150px, 0) rotate(var(--fr, 0deg)) scale(.65);
  transition: transform 1.35s cubic-bezier(.2, 1.15, .3, 1), opacity .6s; transition-delay: calc(var(--i, 0) * 120ms + 350ms);
}
.motion .fan__float.is-in { opacity: 1; transform: none; animation: bob 6.5s ease-in-out calc(var(--i, 0) * -1.9s) infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 1.2deg; } }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero__panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 58%, rgba(245, 197, 66, .95) 74%, rgba(43, 179, 255, .95) 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ang 6s linear infinite;
}
@keyframes ang { to { --ang: 360deg; } }

/* ------------------------------------------------------------------ pack shelf */
.pack-swing { display: grid; place-items: center; }
.motion .pack-swing { transition: transform 1.5s cubic-bezier(.2, 1.3, .3, 1); transition-delay: calc(var(--i, 0) * 90ms + 180ms); }
.motion .pack-card[data-reveal]:not(.is-in) .pack-swing { transform: perspective(900px) rotateY(-105deg); }
.motion .pack-card.is-in .pack-swing { animation: bob 7s ease-in-out calc(var(--i, 0) * -2.3s) infinite; }

/* ------------------------------------------------------------------ chase drum (3D marquee) */
.gsap-on .marquee { perspective: 1250px; perspective-origin: 50% 50%; }
.gsap-on .marquee__track, .gsap-on .tape span { animation: none; }
.gsap-on .marquee__track { transform-style: preserve-3d; will-change: transform; }
/* let the tilted tapes poke out above and below, but never widen the page */
@supports (overflow: clip) { .gsap-on .tapes { overflow-x: clip; overflow-y: visible; } }
.tape i { display: inline-block; font-style: normal; padding-right: 1.05em; }

/* ------------------------------------------------------------------ parallax decor */
/* glows hang off the page edge, so they only exist where the section can clip sideways without scrolling */
/* scoped to .has-glow so the blob styles can never land on another element that happens to be called "glow" */
.has-glow > .glow { display: none; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; pointer-events: none; filter: blur(30px); opacity: .5; }
.glow--sea { background: radial-gradient(circle, rgba(43, 179, 255, .34), transparent 65%); }
.glow--gold { background: radial-gradient(circle, rgba(245, 197, 66, .22), transparent 65%); }
.glow--red { background: radial-gradient(circle, rgba(255, 77, 94, .2), transparent 65%); }
.has-glow { position: relative; isolation: isolate; }
@supports (overflow: clip) {
  .has-glow > .glow { display: block; }
  .has-glow { overflow-x: clip; }
}
.cta__card { position: absolute; width: 150px; top: 50%; z-index: 2; }
.cta__card--l { left: -34px; margin-top: -150px; rotate: -13deg; }
.cta__card--r { right: -34px; margin-top: -60px; rotate: 11deg; }
@media (max-width: 1100px) { .cta__card { display: none; } }
.footer__mark {
  grid-column: 1 / -1; margin: 10px 0 -34px; text-align: center; overflow: hidden; user-select: none; pointer-events: none;
  /* sized so the two-word mark stays on one line: "GOLD PIECE" is 4.23em wide, 18.5vw keeps it near 78% of the page */
  font: 800 clamp(64px, 18.5vw, 282px)/.86 var(--display); letter-spacing: .01em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .24);
}
.footer__mark span[data-split] { display: block; }

/* ------------------------------------------------------------------ pack back face */
.pack__backmark { position: absolute; left: 0; right: 0; top: calc(50px * var(--k, 1)); display: grid; place-items: center; }
.pack__backmark .flag { width: calc(116px * var(--k, 1)); border-radius: 50%;
  box-shadow: 0 0 0 calc(2px * var(--k, 1)) rgba(255, 255, 255, .9), 0 calc(8px * var(--k, 1)) calc(18px * var(--k, 1)) rgba(0, 0, 0, .45); }
.pack__backtxt { position: absolute; left: 0; right: 0; top: calc(178px * var(--k, 1)); text-align: center; font: 600 calc(10px * var(--k, 1))/1.9 var(--mono); letter-spacing: .16em; opacity: .85; }
.pack__bar { position: absolute; left: 28%; right: 28%; bottom: calc(50px * var(--k, 1)); height: calc(26px * var(--k, 1)); opacity: .7;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px); }

/* ------------------------------------------------------------------ "how it works" scroll scene */
.rs { position: relative; overflow: hidden; padding: 100px 0; }
.rs__grid { display: grid; gap: 26px 44px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "steps"; }
.rs__head { grid-area: head; }
.rs__head .h2 { margin-bottom: 0; }
.rs__stagebox { grid-area: stage; display: none; position: relative; width: 100%; height: calc(560px * var(--rs-s, 1)); }
.rs.is-live .rs__stagebox { display: block; }
.rs__steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rs__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  transition: opacity .45s, background .45s, border-color .45s; }
.rs__step .n { font: 600 12px/1 var(--mono); color: var(--dim); padding-top: 8px; transition: color .4s; }
.rs__step h4 { font: 800 28px/1 var(--display); text-transform: uppercase; margin: 0; }
.rs__step .desc p { margin: 0; padding-top: 6px; color: var(--muted); font-size: 15px; min-height: 0; }
.rs__step .bar { grid-column: 1 / -1; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--line); overflow: hidden; display: none; }
.rs__step .bar i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.rs.is-live .rs__step { opacity: .42; background: transparent; border-color: transparent; }
.rs.is-live .rs__step.is-on { opacity: 1; background: var(--panel); border-color: var(--line); }
.rs.is-live .rs__step.is-on .n { color: var(--gold); }
.rs.is-live .rs__step.is-on .bar { display: block; }
.rs--pin .rs__step { cursor: pointer; }
.rs--pin .rs__step .desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1); }
.rs--pin .rs__step.is-on .desc { grid-template-rows: 1fr; }
.rs--pin .rs__step .desc p { overflow: hidden; }
@media (min-width: 760px) and (min-height: 560px) {
  .rs.is-live { min-height: 100vh; padding: 84px 0 28px; display: grid; align-items: center; }
  .rs.is-live .rs__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "head stage" "steps stage"; align-content: center; align-items: center; row-gap: 22px; }
  .rs.is-live .rs__head { align-self: end; }
  .rs.is-live .rs__steps { align-self: start; }
  .rs.is-live .rs__head .h2 { font-size: clamp(38px, 4.6vw, 68px); }
  .rs.is-live .rs__step { padding: 11px 14px; }
  .rs.is-live .rs__step h4 { font-size: 24px; }
}

/* a fixed 520 x 560 drawing board, centred in its box and scaled to fit (--rs-s is set in home-motion.js) */
.rs__stage { position: absolute; left: 50%; top: 50%; width: 520px; height: 560px; margin: -280px 0 0 -260px; transform: scale(var(--rs-s, 1)); }
.rs__stage > * { position: absolute; left: 50%; top: 50%; }
.rs__glow { width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 179, 255, .2), transparent 62%); }
.rs__halo { width: 300px; height: 300px; border-radius: 50%; z-index: 1; filter: blur(8px);
  background: radial-gradient(circle, color-mix(in srgb, var(--tier, #9b6bff) 70%, transparent), transparent 66%); }
.rs__flash { width: 760px; height: 760px; border-radius: 50%; z-index: 8; pointer-events: none; background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0) 62%); }
.rs__wallet { width: 264px; height: 46px; border-radius: 999px; z-index: 30; background: #14171c; border: 1px solid var(--line-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); font-size: 14px; font-weight: 600; }
.rs__wallet > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: inherit; }
.rs__w-a { background: #fff; color: #0b0c0f; }
.rs__w-b { justify-content: space-between !important; padding: 0 16px 0 14px; }
.rs__w-b b { font-weight: 600; margin-left: auto; }
.rs__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(70, 195, 123, .18); flex: none; }
.rs__plus { z-index: 31; color: var(--green); font-weight: 600; font-size: 15px; white-space: nowrap; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.rs__pk { z-index: 6; }
.rs__pk .pack { --k: .714; filter: none; cursor: default; }
.rs__pk3d { position: relative; width: 150px; aspect-ratio: 5 / 8; transform-style: preserve-3d; }
.rs__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rs__face--back { transform: rotateY(180deg); }
.rs__face--top, .tear__p--top { clip-path: polygon(0 0, 100% 0, 100% 9%, 93% 10.6%, 86% 8.4%, 79% 10.6%, 72% 8.4%, 65% 10.6%, 58% 8.4%, 51% 10.6%, 44% 8.4%, 37% 10.6%, 30% 8.4%, 23% 10.6%, 16% 8.4%, 9% 10.6%, 0 9%); }
.rs__face--body, .tear__p--body { clip-path: polygon(0 9%, 9% 10.6%, 16% 8.4%, 23% 10.6%, 30% 8.4%, 37% 10.6%, 44% 8.4%, 51% 10.6%, 58% 8.4%, 65% 10.6%, 72% 8.4%, 79% 10.6%, 86% 8.4%, 93% 10.6%, 100% 9%, 100% 100%, 0 100%); }
.rs__card { width: 100px; z-index: 4; }
.rs__card--hit { z-index: 5; }
.rs__card-i { position: relative; width: 100%; aspect-ratio: 5 / 7; transform-style: preserve-3d; }
.rs__back, .rs__front { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rs__back { transform: rotateY(180deg); display: grid; place-items: center; overflow: hidden; border: 1.5px solid rgba(255, 255, 255, .22);
  background: #000; box-shadow: 0 12px 26px rgba(0, 0, 0, .5); }
.rs__back::after { content: ""; position: absolute; inset: 4px; border-radius: 5px; border: 1px solid rgba(245, 197, 66, .45); }
.rs__back .flag { width: 92%; }
.rs__front .tcard { width: 100%; height: 100%; border-radius: 8px; }
.rs__front .tcard__tag { left: 5px; right: 5px; bottom: 5px; padding: 4px; justify-content: center; font-size: 11px; }
.rs__front .tcard__tag .dim { display: none; }
.rs__front .tcard__tier { top: 5px; left: 5px; padding: 3px 5px; font-size: 8px; }
.rs__chip { z-index: 20; height: 36px; padding: 0 16px; border-radius: 999px; display: grid; place-items: center; white-space: nowrap; font-size: 13px;
  background: #14171c; border: 1px solid var(--line-2); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.rs__chip > span, .rs__col > span { grid-area: 1 / 1; }
.rs__chip .c { color: var(--green); }
.rs__col { z-index: 20; display: grid; place-items: center; white-space: nowrap; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rs__sell { z-index: 20; height: 38px; padding: 0 18px; border-radius: 999px; display: grid; place-items: center; white-space: nowrap; font-weight: 700; font-size: 14px;
  background: linear-gradient(180deg, #ffd766, #e9ac1f); color: #1b1300; box-shadow: 0 10px 26px rgba(233, 172, 31, .35); }
.rs__cursor { z-index: 40; width: 26px; height: 26px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .65)); }
.rs__cursor svg { display: block; width: 100%; height: 100%; }
