/* Artnation Studio — colour, motion and mouse-interaction layer (v3.3).
   Colour is always on. Motion lives under .ans-motion, which is only set when the visitor allows
   motion, so prefers-reduced-motion users get the colours without the movement. */

:root {
  --violet: #7c3aed;
  --coral: #ff5a5f;
  --amber: #ffb020;
  --teal: #0ea5a4;
  --pink: #e11d8f;
  --grad: linear-gradient(110deg, #2e4bf0 0%, #7c3aed 52%, #ff5a5f 100%);
  --grad-warm: linear-gradient(110deg, #ffb020, #ff5a5f);
  --c: var(--accent);
}

/* ---------------------------------------------------------------- colour */
.ans-eyebrow::before { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.ans-eyebrow { color: var(--violet); }
.ans-eyebrow--light { color: #b7c3ff; }
.ans-section--tint { background: linear-gradient(180deg, #ebe7fb 0%, #e3e8ff 100%); }
.ans-head h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--grad); }
.ans-link { color: var(--accent-d); }
.ans-link:hover { color: var(--violet); }

.ans-btn--accent { background: linear-gradient(110deg, var(--accent), #6a4bff); }
.ans-btn--accent:hover { background: linear-gradient(110deg, var(--accent-d), var(--violet)); }
.ans-btn { position: relative; overflow: hidden; }
.ans-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); pointer-events: none; }
.ans-btn:hover::after { left: 130%; transition: left .7s var(--ease-out); }
.ans-tag:hover { color: var(--coral); }

/* Collections: every tile gets its own colour */
.ans-col:nth-child(6n+1) { --c: #2e4bf0; }
.ans-col:nth-child(6n+2) { --c: #7c3aed; }
.ans-col:nth-child(6n+3) { --c: #ff5a5f; }
.ans-col:nth-child(6n+4) { --c: #0ea5a4; }
.ans-col:nth-child(6n+5) { --c: #ff9f1c; }
.ans-col:nth-child(6n+6) { --c: #e11d8f; }
.ans-col__img { position: relative; box-shadow: 0 0 0 0 var(--c); transition: box-shadow .4s var(--ease-out); }
.ans-col__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .0; background: linear-gradient(160deg, transparent 40%, var(--c)); mix-blend-mode: multiply; transition: opacity .5s; }
.ans-col:hover .ans-col__img { box-shadow: 0 0 0 3px var(--c); }
.ans-col:hover .ans-col__img::after { opacity: .55; }
.ans-col__count { background: var(--c); color: #fff; padding: 3px 8px; border-radius: 20px; font-size: 11px; }
.ans-col:hover .ans-col__txt { border-color: var(--c); }
.ans-col:hover .ans-col__name { color: var(--c); }

/* Design cards: rotating accent per card */
.ans-card:nth-child(5n+1) { --cc: #2e4bf0; }
.ans-card:nth-child(5n+2) { --cc: #7c3aed; }
.ans-card:nth-child(5n+3) { --cc: #ff5a5f; }
.ans-card:nth-child(5n+4) { --cc: #0ea5a4; }
.ans-card:nth-child(5n+5) { --cc: #ff9f1c; }
.ans-card__cat { color: var(--cc, var(--accent)); }
.ans-card__code { color: var(--cc, var(--accent-d)); }
.ans-card:hover .ans-card__media { box-shadow: 0 0 0 3px var(--cc, var(--accent)); }
.ans-card:hover .ans-card__title { color: var(--cc, var(--accent-d)); }

/* Division rows and steps */
.ans-div { position: relative; isolation: isolate; }
.ans-div::before { content: ""; position: absolute; inset: 0 -16px; z-index: -1; border-radius: 14px; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, .14), rgba(46, 75, 240, .07) 45%, transparent 70%); }
.ans-div:hover::before { opacity: 1; }
.ans-div__no { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.ans-div:hover .ans-div__go { background: var(--grad); border-color: transparent; }
.ans-steps li { position: relative; border-top: 2px solid var(--line-2); }
.ans-steps li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--grad); transition: width 1.3s var(--ease-out) .2s; }
.ans-steps li.is-in::before, html:not(.ans-motion) .ans-steps li::before { width: 100%; }
.ans-steps span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 600; margin-bottom: 24px; box-shadow: 0 10px 22px -10px rgba(124, 58, 237, .8); }
.ans-steps li:hover span { transform: rotate(-8deg) scale(1.08); }
.ans-steps span { transition: transform .4s var(--ease-out); }

/* Dark sections glow with colour */
.ans-section--ink, .ans-footer { position: relative; overflow: hidden; isolation: isolate; }
.ans-section--ink::before, .ans-footer::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; background:
  radial-gradient(34% 34% at 15% 25%, rgba(124, 58, 237, .38), transparent 70%),
  radial-gradient(30% 30% at 85% 20%, rgba(46, 75, 240, .42), transparent 70%),
  radial-gradient(32% 32% at 60% 90%, rgba(255, 90, 95, .28), transparent 70%); }
.ans-hero::after { content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none; background:
  radial-gradient(32% 32% at 18% 30%, rgba(124, 58, 237, .5), transparent 70%),
  radial-gradient(30% 30% at 82% 18%, rgba(46, 75, 240, .55), transparent 70%),
  radial-gradient(34% 34% at 72% 88%, rgba(255, 90, 95, .38), transparent 70%),
  radial-gradient(22% 22% at 40% 70%, rgba(14, 165, 164, .3), transparent 70%); }
.ans-footer__cta h2, .ans-section--ink h2 { background: linear-gradient(100deg, #fff 30%, #c9b8ff 70%, #ffb3b5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ans-fx-g { background: linear-gradient(100deg, #8fa5ff, #c18bff 45%, #ff8a8d 85%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.ans-btn--wa { background: linear-gradient(110deg, #1fa855, #14b87a); }
.ans-hero__stats dd { background: linear-gradient(100deg, #fff, #b7c3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Marquee band (injected by fx.js) */
.ans-fx-marq { overflow: hidden; background: var(--grad); color: #fff; padding: 13px 0; position: relative; z-index: 2; border-block: 1px solid rgba(255, 255, 255, .15); }
.ans-fx-marq .track { display: flex; width: max-content; }
.ans-fx-marq span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 600 13px/1 var(--font-m); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ans-fx-marq span::after { content: "✦"; opacity: .75; }

/* Progress bar, back-to-top */
.ans-fx-bar { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); }
.admin-bar .ans-fx-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .ans-fx-bar { top: 46px; } }
.ans-fx-top { position: fixed; left: 16px; bottom: 16px; z-index: 50; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out), background .3s; box-shadow: 0 12px 26px -10px rgba(15, 17, 21, .6); }
.ans-fx-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ans-fx-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ans-fx-top circle { fill: none; stroke-width: 2.5; }
.ans-fx-top .t { stroke: rgba(255, 255, 255, .18); }
.ans-fx-top .r { stroke: #b18cff; stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: calc(126 - 126 * var(--p, 0)); }
.ans-fx-top b { font-size: 18px; line-height: 1; position: relative; }
.ans-fx-top:hover { background: var(--violet); }

/* Click burst */
.ans-fx-dot { position: fixed; z-index: 500; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none; animation: ans-fx-burst .75s cubic-bezier(.1, .8, .3, 1) forwards; }
@keyframes ans-fx-burst { to { transform: translate(var(--bx), var(--by)) scale(.2); opacity: 0; } }
.ans-fx-rip { position: absolute; border-radius: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: rgba(255, 255, 255, .5); pointer-events: none; transform: scale(0); animation: ans-fx-rip .65s ease-out forwards; }
@keyframes ans-fx-rip { to { transform: scale(26); opacity: 0; } }

/* Cursor: small dot + light ring (fine pointers only) */
.ans-fx-dotc, .ans-fx-ring { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; will-change: transform; }
.ans-fx-dotc { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--accent); transition: opacity .2s, scale .25s; }
.ans-fx-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 1.5px solid rgba(124, 58, 237, .7); display: grid; place-items: center; transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background .25s, border-color .25s, opacity .25s; }
.ans-fx-ring i { font: 600 9px/1 var(--font-m); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.ans-fx-on .ans-fx-dotc, .ans-fx-on .ans-fx-ring { opacity: 1; }
.ans-fx-link .ans-fx-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(124, 58, 237, .1); }
.ans-fx-link .ans-fx-dotc { scale: .4; }
.ans-fx-view .ans-fx-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: var(--violet); border-color: var(--violet); }
.ans-fx-view .ans-fx-ring i { opacity: 1; }
.ans-fx-view .ans-fx-dotc { opacity: 0; }
.ans-fx-text .ans-fx-ring { opacity: 0; }
.ans-fx-down .ans-fx-ring { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.ans-fx-cur .ans-card__view { display: none; }

/* Card tilt and glare */
.ans-card__media { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out), box-shadow .4s; }
.ans-card__media.is-tilting { transition: transform .08s linear, box-shadow .4s; }
.ans-card__media::after { content: ""; position: absolute; inset: 0; z-index: 11; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .32), transparent 62%); }
.ans-card__media.is-tilting::after { opacity: 1; }

/* Spotlight surfaces get the cursor glow too */
.ans-steps li { transition: transform .4s var(--ease-out); }
.ans-steps li:hover { transform: translateY(-4px); }

/* Product photo zoom */
.ans-fx-zoom img { transition: transform .5s var(--ease-out); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.ans-fx-zoom.is-zoom img { transform: scale(1.7); transition: transform .25s ease-out; }

/* Draggable strip */
[data-strip] { cursor: grab; }
[data-strip].is-drag { cursor: grabbing; scroll-snap-type: none; }
[data-strip].is-drag a { pointer-events: none; }

/* ---------------------------------------------------------------- motion */
.ans-motion .ans-header { transition: background .25s, transform .4s var(--ease-out), box-shadow .3s; }
.ans-motion .ans-header.is-hidden { transform: translateY(calc(-100% - 40px)); }
.ans-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(15, 17, 21, .35); }
.ans-motion .ans-main { animation: ans-fx-in .35s ease both; }
.ans-motion.ans-fx-leaving .ans-main, .ans-motion.ans-fx-leaving .ans-footer { opacity: 0; transition: opacity .18s ease; }
@keyframes ans-fx-in { from { opacity: 0; } to { opacity: 1; } }

.ans-motion .ans-hero::after { animation: ans-fx-aurora 16s ease-in-out infinite alternate; }
.ans-motion .ans-section--ink::before, .ans-motion .ans-footer::before { animation: ans-fx-aurora 20s ease-in-out infinite alternate; }
@keyframes ans-fx-aurora {
  0%   { transform: translate3d(-4%, -3%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(5%, 4%, 0) rotate(8deg) scale(1.12); }
  100% { transform: translate3d(-2%, 6%, 0) rotate(-6deg) scale(1.05); }
}
.ans-motion .ans-fx-g { animation: ans-fx-shimmer 5s ease-in-out infinite alternate; }
@keyframes ans-fx-shimmer { to { background-position: 100% 0; } }
.ans-motion .ans-fx-marq .track { animation: ans-fx-marq 38s linear infinite; }
.ans-motion .ans-fx-marq:hover .track { animation-play-state: paused; }
@keyframes ans-fx-marq { to { transform: translateX(-50%); } }

/* Hero headline: words rise one by one */
.ans-fx-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ans-fx-split .w > span { display: inline-block; }
.ans-motion .ans-fx-split .w > span { animation: ans-fx-word .9s var(--ease-out) backwards; animation-delay: calc(.25s + var(--i, 0) * .07s); }
@keyframes ans-fx-word { from { transform: translateY(110%) rotate(4deg); opacity: 0; } }

/* Hero layers react to the mouse */
.ans-fx-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(480px circle at var(--hx, 50%) var(--hy, 40%), rgba(177, 140, 255, .26), transparent 65%); mix-blend-mode: screen; }
.ans-hero.is-live .ans-fx-glow { opacity: 1; }
.ans-motion .ans-hero__copy { transform: translate3d(calc(var(--dx, 0) * -8px), calc(var(--dy, 0) * -5px), 0); transition: transform .5s var(--ease-out); }
.ans-motion .ans-hero__stage { transform: translate3d(calc(var(--dx, 0) * 12px), calc(var(--dy, 0) * 9px), 0); transition: transform .6s var(--ease-out); }

/* Idle attention: WhatsApp buttons breathe */
.ans-motion .ans-fab, .ans-motion .ans-header__wa { animation: ans-fx-pulse 3.2s ease-out infinite; }
@keyframes ans-fx-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 168, 85, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(31, 168, 85, 0); } }
.ans-motion .ans-eyebrow::before { animation: ans-fx-beat 2.4s ease-in-out infinite; }
@keyframes ans-fx-beat { 50% { transform: scale(1.5); opacity: .6; } }
.ans-motion .ans-hero__live i { animation: ans-pulse 2.4s ease-out infinite; }

/* Scroll reveals: bigger, with direction */
html.ans-motion:not(.ans-failsafe) .ans-section [data-reveal]:not(.is-in),
html.ans-motion:not(.ans-failsafe) .ans-section [data-reveal-group] > :not(.is-in),
html.ans-motion:not(.ans-failsafe) [data-cards] > .ans-new:not(.is-in) { opacity: 0; transform: translateY(44px) scale(.95); filter: blur(7px); }
html.ans-motion:not(.ans-failsafe) .ans-divs > li:not(.is-in) { transform: translateX(-60px); }
html.ans-motion:not(.ans-failsafe) .ans-steps > li:nth-child(2):not(.is-in) { transform: translateY(60px); }
html.ans-motion:not(.ans-failsafe) .ans-steps > li:nth-child(3):not(.is-in) { transform: translateX(60px); }
html.ans-motion:not(.ans-failsafe) .ans-cols > :nth-child(odd):not(.is-in) { transform: translate(-30px, 40px) scale(.95); }
html.ans-motion:not(.ans-failsafe) .ans-cols > :nth-child(even):not(.is-in) { transform: translate(30px, 40px) scale(.95); }
.ans-motion [data-reveal], .ans-motion [data-reveal-group] > *, .ans-motion [data-cards] > * { transition: opacity .9s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms), filter .9s var(--ease-out) var(--d, 0ms); }
.ans-motion .ans-head.is-in h2::after { animation: ans-fx-line .9s var(--ease-out) .25s backwards; }
@keyframes ans-fx-line { from { transform: scaleX(0); transform-origin: left; } }

/* Scroll parallax on images (driven by fx.js) */
.ans-motion .ans-col__img img, .ans-motion .ans-strip__item img { scale: 1.12; translate: 0 var(--pl, 0px); }

/* Small hover lifts */
.ans-motion .ans-tag, .ans-motion .ans-chip { transition: transform .3s var(--ease-out), opacity .2s, background .25s, color .25s, border-color .25s; }
.ans-motion .ans-tag:hover, .ans-motion .ans-chip:hover { transform: translateY(-3px); }
.ans-motion .ans-div { transition: padding .45s var(--ease-out); }
.ans-motion .ans-div:hover { padding-left: 14px; }
.ans-motion .ans-btn { transition: background .25s, color .25s, box-shadow .3s, translate .35s var(--ease-out); }
.ans-motion .ans-btn:hover { box-shadow: 0 16px 28px -14px rgba(46, 75, 240, .6); }
.ans-motion .ans-card:active .ans-card__media { scale: .98; }

@media (hover: none), (pointer: coarse) { .ans-fx-dotc, .ans-fx-ring, .ans-fx-glow { display: none; } .ans-card__media { transform: none !important; } [data-strip] { cursor: auto; } }
@media (prefers-reduced-motion: reduce) {
  .ans-fx-dotc, .ans-fx-ring, .ans-fx-glow, .ans-fx-bar { display: none; }
  .ans-card__media, .ans-hero__copy, .ans-hero__stage { transform: none !important; }
}

/* Soft colour blobs in light sections */
.ans-section:not(.ans-section--ink) { position: relative; overflow: clip; isolation: isolate; }
.ans-section:not(.ans-section--ink)::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 520px; height: 520px; right: -140px; top: -120px; border-radius: 50%; filter: blur(70px); opacity: .5; background: radial-gradient(circle at 40% 40%, rgba(124, 58, 237, .38), rgba(46, 75, 240, .22) 55%, transparent 72%); }
.ans-section:not(.ans-section--ink):nth-of-type(even)::before { right: auto; left: -160px; top: auto; bottom: -140px; background: radial-gradient(circle at 50% 50%, rgba(255, 90, 95, .3), rgba(255, 176, 32, .2) 55%, transparent 72%); }
.ans-motion .ans-section:not(.ans-section--ink)::before { animation: ans-fx-float 14s ease-in-out infinite alternate; }
@keyframes ans-fx-float { to { transform: translate3d(-50px, 40px, 0) scale(1.15); } }

/* About: founders */
.ans-head--people { margin-top: clamp(48px, 6vw, 88px); }
.ans-people { grid-template-columns: repeat(auto-fit, minmax(240px, 380px)); gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(48px, 6vw, 88px); }
.ans-person { position: relative; padding: 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-2); transition: transform .5s var(--ease-out), box-shadow .4s; }
.ans-person::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 20px; background: var(--grad); opacity: .85; }
.ans-person:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 50px -24px rgba(124, 58, 237, .55); }
.ans-person:nth-child(even):hover { transform: translateY(-6px) rotate(.6deg); }
.ans-person img { border-radius: 12px; aspect-ratio: 4 / 5; object-position: center 25%; transition: transform .8s var(--ease-out); }
.ans-person { overflow: hidden; }
.ans-person:hover img { transform: scale(1.03); }
.ans-person figcaption { border: 0; padding: 16px 8px 8px; }
.ans-person strong { font: 700 22px/1.15 var(--font-d); font-stretch: 108%; letter-spacing: -.01em; }
.ans-person figcaption span { display: inline-block; justify-self: start; margin-top: 8px; padding: 4px 12px; border-radius: 20px; background: var(--grad); color: #fff; font: 600 12px/1.4 var(--font-m); letter-spacing: .06em; text-transform: uppercase; }
