/* Victorious Innovations — motion by plan.
   html.fx-basic   = Subtle:    soft entrance, hover glint on buttons, gentle card lift.
   html.fx-starter = Animated:  + light motes, golden push-in, gold shine, rules that draw, sections that rise in.
   html.fx-full    = Cinematic: + opening light reveal, god-rays, letter-by-letter headline, mouse parallax,
                                  image wipes, 3D cards with gold glare, magnetic buttons, gold cursor, scroll bar.
   Everything rests under reduced motion. */

/* ---------- ALL PLANS ---------- */
.btn-gold { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); z-index: -1; transition: left .6s ease; }
.btn-gold:hover::after { left: 130%; }
.btn:active { transform: translateY(1px) scale(.99); }
.pcard { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.pcard:hover { transform: translateY(-4px); }
.mtf figure img, .mband figure img, .qb-pics img, .ig a img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mtf figure:hover img, .mband figure:hover img, .qb-pics figure:hover img { transform: scale(1.04); }
.sizes button { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.ih .panel { animation: fadeUp 1s cubic-bezier(.2,.7,.2,1) .15s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* ---------- STARTER + FULL ---------- */
.fx-starter .ih .bg, .fx-full .ih .bg { animation: kenburns 16s cubic-bezier(.2,.6,.2,1) both; transform-origin: 30% 40%; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.motes i { position: absolute; bottom: -10px; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, #f0c96a 45%, rgba(240,201,106,0) 70%); opacity: 0; animation: mote var(--d, 9s) linear var(--dl, 0s) infinite; }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translate(var(--x, 20px), -78vh); opacity: 0; } }
.gold.shine { background-image: linear-gradient(110deg, transparent 35%, rgba(255,250,225,.95) 50%, transparent 65%), var(--goldgrad); background-size: 250% 100%, 100% 100%; background-repeat: no-repeat; background-position: 160% 0, 0 0; animation: shine 2.4s .5s ease-out both; }
.gold.shine:hover { animation: shine 1.4s ease-out both; }
@keyframes shine { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
.fx-starter .ruled::before, .fx-starter .ruled::after, .fx-full .ruled::before, .fx-full .ruled::after,
.fx-starter .ih .cross::before, .fx-starter .ih .cross::after, .fx-full .ih .cross::before, .fx-full .ih .cross::after { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.ruled::before, .ih .cross::before { transform-origin: right; }
.ruled::after, .ih .cross::after { transform-origin: left; }
.ruled.in::before, .ruled.in::after, .ih .cross.in::before, .ih .cross.in::after { transform: scaleX(1) !important; }
.fx-group > * { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.fx-group.in > * { opacity: 1; transform: none; }
.fx-starter .ih .cross, .fx-full .ih .cross { text-shadow: 0 0 12px rgba(240,201,106,.7); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { text-shadow: 0 0 22px rgba(255,227,154,1); } }
.fx-starter .pcard:hover .pimg, .fx-full .pcard:hover .pimg { box-shadow: 0 0 0 1px #c9922f, 0 14px 30px rgba(120,80,20,.25); }
.fx-starter .trustbar svg, .fx-full .trustbar svg { transition: transform .35s cubic-bezier(.3,1.6,.5,1), color .3s; }
.fx-starter .trustbar li:hover svg, .fx-full .trustbar li:hover svg { transform: translateY(-3px) scale(1.08); color: #ffe39a; }
.fx-starter .sizes button[aria-pressed="true"], .fx-full .sizes button[aria-pressed="true"] { animation: pick .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes pick { 40% { transform: scale(1.08); } }

/* ---------- FULL ONLY: cinematic ---------- */
/* opening light reveal */
#vi-intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; }
#vi-intro .half { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transition: transform 1s cubic-bezier(.7,0,.2,1); }
#vi-intro .top { top: 0; } #vi-intro .bot { bottom: 0; }
#vi-intro .mark { position: relative; z-index: 2; text-align: center; transition: opacity .5s, transform 1s; }
#vi-intro img { width: 110px; height: 110px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(240,201,106,.6)); animation: introGlow 1.4s ease-out both; }
#vi-intro b { display: block; margin-top: 14px; font: 700 clamp(22px, 3vw, 34px) var(--cinzel); letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(110deg, #9a6a1c 20%, #fff3c4 50%, #9a6a1c 80%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: introShine 1.6s ease-out both; }
#vi-intro .beam { position: absolute; z-index: 1; left: 50%; top: 50%; width: 2px; height: 0; background: linear-gradient(#fff3c4, #f0c96a); box-shadow: 0 0 24px 6px rgba(240,201,106,.7); transform: translate(-50%, -50%); animation: beam .9s .5s ease-in-out both; }
@keyframes introGlow { from { opacity: 0; transform: scale(.85); } }
@keyframes introShine { from { background-position: 100% 0; opacity: 0; } 30% { opacity: 1; } to { background-position: 0 0; } }
@keyframes beam { 0% { height: 0; opacity: 0; } 50% { height: 100vh; opacity: 1; width: 2px; } 100% { height: 100vh; width: 100vw; opacity: 0; } }
#vi-intro.open .top { transform: translateY(-100%); }
#vi-intro.open .bot { transform: translateY(100%); }
#vi-intro.open .mark { opacity: 0; transform: scale(1.15); }

/* god rays from the cross */
.rays { position: absolute; z-index: 1; left: -10%; top: -40%; width: 70%; aspect-ratio: 1; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255,228,150,.0) 0deg 7deg, rgba(255,228,150,.16) 9deg 11deg, rgba(255,228,150,0) 13deg 20deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 75%); mask: radial-gradient(closest-side, #000 20%, transparent 75%); mix-blend-mode: screen; animation: rays 40s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }

/* letter-by-letter headline */
.fx-full .ih h1 .ch { display: inline-block; white-space: nowrap; opacity: 0; transform: translateY(.35em); filter: blur(6px); animation: ch 1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.5s + var(--c) * 160ms); }
@keyframes ch { to { opacity: 1; transform: none; filter: none; } }

/* image wipes */
.fx-full .wipe { clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.7,0,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.fx-full .wipe.in { clip-path: inset(0 0 0 0); }

/* 3D cards with gold glare */
.fx-full .pgrid { perspective: 900px; }
.fx-full .pcard { transform-style: preserve-3d; transition: transform .25s ease-out; }
.fx-full .pcard .pimg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,236,170,.55), transparent 45%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.fx-full .pcard:hover .pimg::after { opacity: 1; }

/* scroll progress + gold cursor */
#vi-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #9a6a1c, #ffe39a, #c9922f); box-shadow: 0 0 10px rgba(240,201,106,.8); z-index: 150; pointer-events: none; }
#vi-cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid #f0c96a; border-radius: 50%; pointer-events: none; z-index: 160; transition: width .25s, height .25s, margin .25s, background .25s, opacity .3s; mix-blend-mode: difference; opacity: 0; }
#vi-cursor.on { opacity: 1; }
#vi-cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(240,201,106,.15); }
.fx-full .ih .bg, .fx-full .ih .panel { will-change: transform; }

@media (hover: none), (max-width: 980px) { #vi-cursor { display: none; } .rays { width: 140%; left: -40%; top: -60%; } }

@media (prefers-reduced-motion: reduce) {
  .ih .bg, .ih .panel, .motes, .gold.shine, .ih .cross, .sizes button[aria-pressed="true"], .rays, .fx-full .ih h1 .ch { animation: none !important; }
  .fx-full .ih h1 .ch { opacity: 1; transform: none; }
  .motes, .rays, #vi-intro, #vi-cursor, #vi-progress { display: none !important; }
  .fx-group > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fx-full .wipe { clip-path: none !important; transition: none !important; }
  .ruled::before, .ruled::after, .ih .cross::before, .ih .cross::after { transform: none !important; transition: none !important; }
  .btn-gold::after { display: none; }
}
.fx-full .ih h1 .ch { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-full .ih h1 { perspective: 600px; }
.fx-full .ih h1.h1-words { color: #e6bb5e; }
.fx-full .ih h1.h1-words .ch { padding-bottom: .08em; }
