/* Vistrix Studio — showcase motion layer (homepage review build).
   Pairs with vx-showcase.js. Everything is scoped to body.vx-showcase so it can
   be rolled out page by page. With prefers-reduced-motion, all content shows
   in its final state and nothing moves. */

.vx-showcase { --vx-ink: var(--text); --vx-dim: rgba(122,134,160,0.35); }
[data-theme="light"] .vx-showcase,
[data-theme="light"] body.vx-showcase { --vx-dim: rgba(26,29,46,0.16); }

/* ── 1 · Blur-in headings (word by word) ───────────────────────────────── */
.vx-showcase .has-reveal .reveal-line { transform:none !important; }
.vx-showcase .vx-w { display:inline-block; opacity:0; filter:blur(12px); transform:translateY(0.35em);
  transition:opacity .7s ease, filter .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.vx-showcase .vx-blur-in .vx-w { opacity:1; filter:blur(0); transform:none; }

/* ── 2 · Staggered cards are handled with transition-delay from JS ─────── */

/* ── 3 · Big text marquee ──────────────────────────────────────────────── */
.vx-marquee { overflow:hidden; padding:56px 0; background:var(--bg);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }
.vx-marquee-track { display:flex; width:max-content; animation:vx-marquee 38s linear infinite; }
.vx-marquee:hover .vx-marquee-track { animation-play-state:paused; }
.vx-marquee-item { font-size:clamp(3rem,9vw,7.5rem); font-weight:900; letter-spacing:-0.04em; line-height:1;
  text-transform:uppercase; white-space:nowrap; padding-right:0.45em; color:var(--text); }
.vx-marquee-item.alt { color:transparent; -webkit-text-stroke:2px var(--accent-2); }
.vx-marquee-item .dot { display:inline-block; width:.18em; height:.18em; border-radius:50%; background:var(--gradient);
  vertical-align:middle; margin-left:.45em; }
@keyframes vx-marquee { to { transform:translateX(-50%); } }

/* ── 4 · Scroll-scrubbed paragraph with pills + floating tiles ─────────── */
.vx-scrub-section { position:relative; padding:140px 0; overflow:hidden; background:var(--bg); }
.vx-scrub { position:relative; z-index:1; max-width:960px; margin:0 auto; text-align:center;
  font-size:clamp(1.6rem,3.4vw,2.7rem); font-weight:600; line-height:1.55; letter-spacing:-0.02em; }
.vx-scrub .vx-sw { color:var(--vx-dim); transition:color .25s ease; }
.vx-scrub .vx-sw.on { color:var(--vx-ink); }
.vx-pill { display:inline-flex; align-items:center; gap:.35em; vertical-align:middle; margin:0 .15em;
  padding:.18em .6em; border-radius:999px; font-size:.62em; font-weight:700; letter-spacing:0;
  background:var(--surface); border:1px solid var(--border); color:var(--text);
  box-shadow:0 8px 24px rgba(99,102,241,0.15); transform:scale(.6) rotate(-6deg); opacity:0;
  transition:transform .55s cubic-bezier(.3,1.6,.5,1), opacity .3s ease; }
.vx-pill.on { transform:scale(1) rotate(0); opacity:1; }
.vx-pill.grad { background:var(--gradient); color:#fff; border-color:transparent; }
.vx-pill svg { width:1.1em; height:1.1em; }
[data-theme="light"] .vx-pill { background:#fff; border-color:rgba(99,102,241,0.15); }
[data-theme="light"] .vx-pill.grad { background:var(--gradient); }
.vx-tile { position:absolute; z-index:0; display:flex; align-items:center; justify-content:center; border-radius:22px;
  background:var(--gradient); color:#fff; box-shadow:0 18px 40px rgba(99,102,241,0.35); will-change:transform; }
.vx-tile svg { width:44%; height:44%; }
@media (max-width:768px) { .vx-tile { display:none; } .vx-scrub-section { padding:90px 0; } }

/* ── 5 · Floating Instagram mockups in the hero ────────────────────────── */
.vx-hero-floats { position:absolute; inset:0; pointer-events:none; z-index:0; }
.vx-float { position:absolute; will-change:transform; }
.vx-float-inner { animation:vx-bob 6s ease-in-out infinite; }
.vx-float:nth-child(2) .vx-float-inner { animation-delay:-1.5s; }
.vx-float:nth-child(3) .vx-float-inner { animation-delay:-3s; }
.vx-float:nth-child(4) .vx-float-inner { animation-delay:-4.5s; }
@keyframes vx-bob { 50% { transform:translateY(-12px); } }
.vx-card { background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:0 24px 60px rgba(10,14,40,0.18);
  overflow:hidden; font-size:12px; color:var(--text); }
[data-theme="light"] .vx-card { background:rgba(255,255,255,0.92); border-color:rgba(99,102,241,0.12); }
.vx-post { width:178px; transform:rotate(-7deg); }
.vx-post-head { display:flex; align-items:center; gap:8px; padding:9px 10px; font-weight:700; }
.vx-avatar { width:22px; height:22px; border-radius:50%; background:conic-gradient(#f59e0b,#ec4899,#8b5cf6,#f59e0b); padding:2px; }
.vx-avatar i { display:block; width:100%; height:100%; border-radius:50%; background:var(--surface); }
.vx-post-img { aspect-ratio:1; background:linear-gradient(135deg,#fbcfe8,#c7d2fe 45%,#a5f3fc); display:flex; align-items:center; justify-content:center; }
.vx-post-img svg { width:46px; height:46px; color:rgba(255,255,255,0.95); }
.vx-post-foot { display:flex; gap:12px; padding:9px 10px; font-weight:600; color:var(--text-muted); }
.vx-post-foot b { color:#ec4899; }
.vx-reel { width:128px; transform:rotate(8deg); }
.vx-reel-img { aspect-ratio:9/16; background:linear-gradient(160deg,#6366f1,#a855f7 55%,#22d3ee); display:flex; align-items:center; justify-content:center; position:relative; }
.vx-reel-img::after { content:''; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,0.25); backdrop-filter:blur(6px); }
.vx-reel-img svg { position:absolute; width:18px; height:18px; color:#fff; z-index:1; margin-left:3px; }
.vx-reel-cap { position:absolute; left:10px; bottom:10px; right:10px; color:#fff; font-weight:700; font-size:11px; z-index:1; }
.vx-chip { display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:16px; font-weight:700; white-space:nowrap; }
.vx-chip-ico { width:30px; height:30px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--gradient); color:#fff; }
.vx-chip-ico svg { width:16px; height:16px; }
.vx-chip small { display:block; font-weight:500; color:var(--text-muted); font-size:11px; }
@media (max-width:1180px) { .vx-hero-floats { display:none; } }

/* ── 6 · Results cards that fan out on scroll (pinned, dark) ───────────── */
.vx-results { position:relative; height:260vh; background:#06081a; color:#eef2ff; }
.vx-results-pin { position:sticky; top:0; height:100vh; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.vx-results-pin::before { content:''; position:absolute; width:900px; height:900px; border-radius:50%; top:50%; left:50%; transform:translate(-50%,-30%);
  background:radial-gradient(circle,rgba(99,102,241,0.35),transparent 65%); pointer-events:none; }
.vx-results h2 { position:relative; z-index:2; text-align:center; font-size:clamp(2rem,4vw,2.8rem); font-weight:800; line-height:1.2; margin:0 0 8px; }
.vx-results .sub { position:relative; z-index:2; color:#9aa4c4; margin:0 0 36px; text-align:center; padding:0 16px; }
.vx-stack { position:relative; width:300px; height:330px; z-index:1; }
.vx-stat { position:absolute; inset:0; border-radius:26px; padding:26px; display:flex; flex-direction:column; justify-content:space-between;
  border:1px solid rgba(255,255,255,0.35); box-shadow:0 30px 80px rgba(0,0,0,0.45); will-change:transform; color:#0f142d; }
.vx-stat:nth-child(1) { background:linear-gradient(150deg,#e0e7ff,#a5b4fc); }
.vx-stat:nth-child(2) { background:linear-gradient(150deg,#cffafe,#93c5fd); }
.vx-stat:nth-child(3) { background:linear-gradient(150deg,#fce7f3,#f0abfc); }
.vx-stat:nth-child(4) { background:linear-gradient(150deg,#ede9fe,#c4b5fd); }
.vx-stat .n { font-size:3.1rem; font-weight:900; letter-spacing:-0.04em; line-height:1; }
.vx-stat .l { font-weight:700; font-size:1.05rem; margin-top:6px; }
.vx-stat p { margin:0; font-size:0.85rem; color:#3b4166; line-height:1.5; }
.vx-stat .idx { position:absolute; top:18px; right:22px; font-size:0.75rem; font-weight:700; opacity:0.5; }

/* Phones and small tablets: no pinning, cards in a 2x2 grid (JS flips them in). */
@media (max-width:899px) {
  .vx-results { height:auto; }
  .vx-results-pin { position:relative; height:auto; padding:90px 16px 100px; }
  .vx-results-pin::before { width:600px; height:600px; }
  .vx-results .sub { margin-bottom:28px; }
  .vx-stack { display:grid; grid-template-columns:1fr 1fr; gap:12px; width:100%; max-width:460px; height:auto; }
  .vx-stat { position:relative; inset:auto; min-height:178px; padding:18px 16px; border-radius:20px; }
  .vx-stat .n { font-size:2.2rem; }
  .vx-stat .l { font-size:.88rem; }
  .vx-stat p { font-size:.74rem; }
  .vx-stat .idx { top:12px; right:14px; }
}

/* ── 7 · Pinned process with changing visual ───────────────────────────── */
.vx-process { position:relative; height:420vh; background:var(--bg-2); }
.vx-process-pin { position:sticky; top:0; height:100vh; display:flex; align-items:center; }
.vx-process-grid { display:grid; grid-template-columns:1fr 1.1fr; gap:64px; align-items:center; width:100%; }
.vx-steps { list-style:none; margin:28px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.vx-step { display:flex; gap:16px; padding:16px 18px; border-radius:16px; opacity:0.38; transition:opacity .35s ease, background .35s ease; }
.vx-step.on { opacity:1; background:var(--surface); box-shadow:0 10px 30px rgba(99,102,241,0.12); }
[data-theme="light"] .vx-step.on { background:#fff; }
.vx-step-num { flex:0 0 34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.85rem;
  background:var(--bg-3); color:var(--text-muted); transition:background .35s ease,color .35s ease; }
.vx-step.on .vx-step-num { background:var(--gradient); color:#fff; }
.vx-step h3 { margin:0 0 2px; font-size:1.05rem; }
.vx-step p { margin:0; font-size:.88rem; color:var(--text-muted); line-height:1.55; }
.vx-progress { height:3px; border-radius:3px; background:var(--border); margin-top:18px; overflow:hidden; }
.vx-progress i { display:block; height:100%; width:0; background:var(--gradient); }
.vx-stage { position:relative; aspect-ratio:4/3.4; border-radius:32px; background:linear-gradient(150deg,#e0e7ff,#c7d2fe 50%,#cffafe);
  border:8px solid var(--surface); box-shadow:0 30px 80px rgba(10,14,40,0.18); overflow:hidden; }
[data-theme="light"] .vx-stage { border-color:#fff; }
.vx-scene { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transform:scale(.94) translateY(16px);
  transition:opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.vx-scene.on { opacity:1; transform:none; }
.vx-panel { background:#fff; color:#0f142d; border-radius:20px; box-shadow:0 20px 50px rgba(30,27,75,0.18); padding:20px; width:62%; }
.vx-panel h4 { margin:0 0 12px; font-size:.95rem; }
.vx-check { display:flex; align-items:center; gap:10px; font-size:.85rem; padding:7px 0; border-bottom:1px solid #eef0f7; }
.vx-check:last-child { border-bottom:0; }
.vx-check i { width:18px; height:18px; border-radius:6px; background:var(--gradient); flex:0 0 18px; }
.vx-viewfinder { position:relative; width:64%; aspect-ratio:4/3; border-radius:18px; background:linear-gradient(135deg,#fbcfe8,#c7d2fe 50%,#a5f3fc); box-shadow:0 20px 50px rgba(30,27,75,0.2); }
.vx-viewfinder::before { content:''; position:absolute; inset:0; border-radius:18px;
  background:linear-gradient(90deg,transparent 33%,rgba(255,255,255,.55) 33%,rgba(255,255,255,.55) calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,rgba(255,255,255,.55) 66%,rgba(255,255,255,.55) calc(66% + 1px),transparent calc(66% + 1px)),
             linear-gradient(0deg,transparent 33%,rgba(255,255,255,.55) 33%,rgba(255,255,255,.55) calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,rgba(255,255,255,.55) 66%,rgba(255,255,255,.55) calc(66% + 1px),transparent calc(66% + 1px)); }
.vx-rec { position:absolute; top:12px; left:14px; color:#fff; font-weight:800; font-size:.75rem; display:flex; align-items:center; gap:6px; }
.vx-rec::before { content:''; width:9px; height:9px; border-radius:50%; background:#ef4444; animation:vx-blink 1.2s infinite; }
@keyframes vx-blink { 50% { opacity:.2; } }
.vx-focus { position:absolute; left:50%; top:50%; width:64px; height:64px; transform:translate(-50%,-50%); border:2px solid #fff; border-radius:10px; }
.vx-gridtiles { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; width:58%; padding:10px; background:#fff; border-radius:18px; box-shadow:0 20px 50px rgba(30,27,75,0.18); }
.vx-gridtiles span { aspect-ratio:1; border-radius:8px; }
.vx-gridtiles span:nth-child(3n+1) { background:linear-gradient(135deg,#c7d2fe,#a5b4fc); }
.vx-gridtiles span:nth-child(3n+2) { background:linear-gradient(135deg,#fbcfe8,#f9a8d4); }
.vx-gridtiles span:nth-child(3n)   { background:linear-gradient(135deg,#a5f3fc,#67e8f9); }
.vx-cal { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-top:4px; }
.vx-cal span { aspect-ratio:1; border-radius:6px; background:#eef0f7; }
.vx-cal span.p { background:var(--gradient); }
.vx-approved { display:inline-flex; align-items:center; gap:6px; margin-top:14px; padding:6px 12px; border-radius:999px; background:#d1fae5; color:#065f46; font-weight:700; font-size:.8rem; }
.vx-bars { display:flex; align-items:flex-end; gap:10px; height:120px; margin-top:6px; }
.vx-bars span { flex:1; border-radius:8px 8px 3px 3px; background:var(--gradient); transform-origin:bottom; transform:scaleY(.1); transition:transform .8s cubic-bezier(.2,.7,.2,1); }
.vx-scene.on .vx-bars span { transform:scaleY(1); }
.vx-scene.on .vx-bars span:nth-child(2) { transition-delay:.08s; } .vx-scene.on .vx-bars span:nth-child(3) { transition-delay:.16s; }
.vx-scene.on .vx-bars span:nth-child(4) { transition-delay:.24s; } .vx-scene.on .vx-bars span:nth-child(5) { transition-delay:.32s; }
.vx-up { color:#059669; font-weight:800; font-size:.85rem; }
@media (max-width:900px) {
  .vx-process { height:auto; }
  .vx-process-pin { position:static; height:auto; padding:90px 0; }
  .vx-process-grid { grid-template-columns:1fr; gap:32px; }
  .vx-step { opacity:1; }
  .vx-stage { display:none; }
  .vx-progress { display:none; }
}

/* ── 8 · Floating pill nav that changes colour by section ──────────────── */
.vx-showcase .navbar, .vx-showcase .navbar.scrolled { background:transparent !important; border-bottom:0 !important; backdrop-filter:none !important; }
.vx-showcase .navbar .nav-inner { transition:background .4s ease, box-shadow .4s ease, padding .4s ease, max-width .4s ease; border-radius:999px; }
.vx-showcase .navbar.scrolled .nav-inner { max-width:1060px; padding:8px 10px 8px 22px; background:rgba(12,18,40,0.72);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border:1px solid var(--border); box-shadow:0 12px 40px rgba(0,0,0,0.25); }
[data-theme="light"] .vx-showcase .navbar.scrolled .nav-inner { background:rgba(255,255,255,0.78); border-color:rgba(99,102,241,0.12); box-shadow:0 12px 40px rgba(30,27,75,0.10); }
.vx-showcase .navbar.vx-nav-dark .nav-inner { background:rgba(6,8,26,0.82) !important; border-color:rgba(255,255,255,0.1) !important; }
.vx-showcase .navbar.vx-nav-dark .nav-links a:not(.btn), .vx-showcase .navbar.vx-nav-dark .logo-wordmark { color:#eef2ff !important; }
.vx-showcase .navbar.vx-nav-dark .theme-toggle { color:#eef2ff; }
.vx-showcase .navbar.vx-nav-dark .hamburger span { background:#eef2ff !important; }
@media (min-width:1025px) { [data-theme="light"] .vx-showcase .nav-links { background:transparent; } }

/* ── 9 · Giant glowing brand word in the footer ────────────────────────── */
.vx-footer-word { position:relative; text-align:center; font-weight:900; letter-spacing:-0.06em; line-height:.8; text-transform:uppercase;
  font-size:clamp(4rem,19vw,17rem); margin:12px 0 -0.08em; user-select:none; pointer-events:none;
  background:linear-gradient(180deg,rgba(99,102,241,0.9),rgba(129,140,248,0.45) 55%,rgba(34,211,238,0.08) 92%); -webkit-background-clip:text; background-clip:text; color:transparent;
  opacity:0; transform:translateY(40px); filter:blur(10px); transition:opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.2,1), filter 1.2s ease; }
.vx-footer-word.on { opacity:1; transform:none; filter:drop-shadow(0 0 40px rgba(99,102,241,0.35)); }

/* ── 2b · Generic rise-in for cards and blocks ─────────────────────────── */
.vx-rise { opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.vx-rise.in { opacity:1; transform:none; }

/* ── 10 · Blurred tech artwork behind hero areas ───────────────────────── */
.vx-has-tech { isolation:isolate; }
.cta-banner.vx-has-tech { position:relative; overflow:hidden; }
.vx-results-pin.vx-has-tech .vx-techbg { opacity:.45; }
.vx-techbg { position:absolute; inset:-40px; z-index:-1; pointer-events:none; background:center / cover no-repeat;
  filter:blur(3px) saturate(1.15); opacity:.55; will-change:transform;
  -webkit-mask-image:radial-gradient(ellipse 60% 65% at 50% 50%, transparent 0, rgba(0,0,0,.2) 40%, #000 85%);
          mask-image:radial-gradient(ellipse 60% 65% at 50% 50%, transparent 0, rgba(0,0,0,.2) 40%, #000 85%); }
/* Original renders (circuit board, holographic lens HUD, dotted globe).
   Transparent glow layers, so they sit on the light and dark themes alike. */
.vx-techbg.circuit { background-image:url(img/tech-photo-circuit.webp); }
.vx-techbg.lens    { background-image:url(img/tech-photo-hud.webp); }
.vx-techbg.ui      { background-image:url(img/tech-photo-globe.webp); }
[data-theme="light"] .vx-techbg { opacity:.55; filter:blur(2px) saturate(1.3); }
.cta-banner .vx-techbg { opacity:.35; filter:blur(4px); }

/* Homepage hero: the studio photo, pre-blurred (img/hero-studio-blur*.webp),
   with a soft wash so the headline stays readable. */
.vx-techbg.photo, [data-theme="light"] .vx-techbg.photo {
  background-image:url(img/hero-studio-blur.webp); opacity:1; filter:blur(6.24px) saturate(1.1);
  -webkit-mask-image:none; mask-image:none; }
.vx-techbg.photo::after { content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 40% 42% at 50% 50%, rgba(4,8,18,.8), rgba(4,8,18,.55) 55%, rgba(4,8,18,.15) 100%); }
[data-theme="light"] .vx-techbg.photo::after {
  background:radial-gradient(ellipse 40% 42% at 50% 50%, rgba(248,249,255,.85), rgba(248,249,255,.55) 55%, rgba(248,249,255,.08) 100%); }
.vx-showcase .hero.vx-has-tech .hero-sub { color:#c7cde3; text-shadow:0 1px 14px rgba(4,8,18,.95), 0 0 2px rgba(4,8,18,.6); }
[data-theme="light"] .vx-showcase .hero.vx-has-tech .hero-sub { color:#3b4166; text-shadow:0 1px 14px rgba(255,255,255,.95), 0 0 2px rgba(255,255,255,.8); }
@media (max-width:768px) {
  .vx-techbg.photo, [data-theme="light"] .vx-techbg.photo { background-image:url(img/hero-studio-blur-sm.webp); filter:blur(3.9px) saturate(1.1); opacity:1; }
}
@media (max-width:768px) { .vx-techbg { filter:blur(4px); opacity:.35; } }

/* ── Reduced motion: final state, no movement ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vx-showcase .vx-w, .vx-pill, .vx-footer-word, .vx-scene, .vx-rise { opacity:1 !important; filter:none !important; transform:none !important; transition:none !important; }
  .vx-scrub .vx-sw { color:var(--vx-ink); }
  .vx-marquee-track, .vx-float-inner, .vx-rec::before { animation:none; }
  .vx-results { height:auto; } .vx-results-pin { position:static; height:auto; padding:100px 0; }
  .vx-stack { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; width:min(1000px,92vw); height:auto; }
  .vx-stat { position:relative; inset:auto; min-height:220px; }
  .vx-process { height:auto; } .vx-process-pin { position:static; height:auto; padding:90px 0; }
  .vx-scene:not(.on) { display:none; }
}
