/* All animations. Entrance styles only apply under html.anim, which animations.js
   adds when the visitor allows motion, so content is never left hidden.
   Movement uses translate / scale / opacity so it doesn't override layout transforms. */

/* ===== Sticky header and scroll progress ===== */
.progress { position: fixed; z-index: 60; top: 0; right: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #e3b8ff, #a52fd0); transform-origin: right; transform: scaleX(0); pointer-events: none; }
.hero .wrap.has-stuck { z-index: 40; }
.nav.stuck { position: fixed; width: 1180px; max-width: 100%; height: 92px; margin: 0 auto; }
.nav.stuck::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -50vw; right: -50vw; background: rgba(33, 13, 54, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(20, 0, 40, .35); }
.nav.stuck .brand { top: 15px; width: 160px; }
.nav.stuck .menu { top: 32px; }
.nav.stuck .burger { top: 31px; }
.nav.stuck .quote { top: 20px; }
.anim .nav.stuck { animation: nav-drop .45s ease; }
@keyframes nav-drop { from { translate: 0 -100%; } }

/* ===== Hero entrance ===== */
.anim .nav:not(.stuck) .brand, .anim .nav:not(.stuck) .menu a, .anim .nav:not(.stuck) .quote, .anim .nav:not(.stuck) .burger { animation: drop .7s cubic-bezier(.2, .8, .2, 1) backwards; }
.anim .nav:not(.stuck) .menu a:nth-of-type(1) { animation-delay: .1s; }
.anim .nav:not(.stuck) .menu a:nth-of-type(2) { animation-delay: .17s; }
.anim .nav:not(.stuck) .menu a:nth-of-type(3) { animation-delay: .24s; }
.anim .nav:not(.stuck) .menu a:nth-of-type(4) { animation-delay: .31s; }
.anim .nav:not(.stuck) .menu a:nth-of-type(5) { animation-delay: .38s; }
.anim .nav:not(.stuck) .burger { animation-delay: .45s; }
.anim .nav:not(.stuck) .quote { animation-delay: .52s; }
@keyframes drop { from { opacity: 0; translate: 0 -22px; } }

.anim .eyebrow, .anim .hero-copy h1 span, .anim .lead, .anim .hero-copy .btn { animation: slide-in .9s cubic-bezier(.2, .8, .2, 1) backwards; }
.anim .eyebrow { animation-delay: .25s; }
.anim .hero-copy h1 span { animation-delay: .45s; }
.anim .hero-copy h1 .accent { animation-delay: .65s; }
.anim .lead { animation-delay: .85s; }
.anim .hero-copy .btn { animation-delay: 1.05s; }
@keyframes slide-in { from { opacity: 0; translate: 60px 0; filter: blur(8px); } }

/* Light sweeping across the highlighted headline */
.anim .hero-copy h1 .accent { padding-bottom: .3em; margin-bottom: -.3em; background: linear-gradient(100deg, #cf8cf8 40%, #fff 50%, #cf8cf8 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slide-in .9s cubic-bezier(.2, .8, .2, 1) .65s backwards, shimmer 5s linear 2s infinite; }
@keyframes shimmer { from { background-position: 100% 0; } 55%, to { background-position: 0 0; } }

/* ===== Hero artwork ===== */
.anim .phone { animation: phone-in 1.3s cubic-bezier(.2, .9, .25, 1) .3s backwards, hover-float 6s ease-in-out 1.6s infinite; }
@keyframes phone-in { from { opacity: 0; translate: -90px 130px; rotate: -14deg; } }
@keyframes hover-float { 50% { translate: 0 -16px; rotate: 1.5deg; } }
.anim .tile, .anim .target { animation: pop .8s cubic-bezier(.3, 1.7, .5, 1) backwards, float 5s ease-in-out infinite; }
.anim .t1 { animation-delay: 1.1s, 1.9s; }
.anim .t2 { animation-delay: 1.3s, 2.6s; }
.anim .t3 { animation-delay: 1.5s, 3.1s; }
.anim .target { animation-delay: 1.7s, 2.5s; animation-duration: .8s, 6s; }
@keyframes pop { from { opacity: 0; scale: .2; } }

.anim .ribbon { animation: fade 1.8s ease .8s backwards; }
.anim .ribbon path[fill="none"] { stroke-dasharray: 260 70; animation: flow 5s linear infinite; }
.anim .ribbon-front path:first-of-type, .anim .ribbon-back > path:first-of-type { transform-origin: center; animation: sway 7s ease-in-out infinite; }
@keyframes fade { from { opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -660; } }
@keyframes sway { 50% { transform: translateY(10px) scaleY(1.06); } }

.anim .hero-city::before { animation: city-zoom 22s ease-in-out infinite alternate; transform-origin: 45% 65%; }
@keyframes city-zoom { to { scale: 1.09; } }

.particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.particles i { position: absolute; bottom: 90px; border-radius: 50%; background: #e6c4ff; box-shadow: 0 0 10px 2px rgba(190, 112, 250, .8); opacity: 0; animation: rise linear infinite; }
@keyframes rise { 15% { opacity: .85; } 80% { opacity: .35; } to { opacity: 0; translate: 30px -600px; } }

.anim .hero-wave path { animation: wave-drift 9s ease-in-out infinite; }
.anim .hero-wave path:first-child { animation-duration: 6s; animation-direction: reverse; }
@keyframes wave-drift { 50% { transform: translateY(-9px); } }
.anim .cta-bg path:first-of-type { animation: wave-drift 7s ease-in-out infinite; }

/* Mouse parallax (values set by animations.js) */
.anim .hero-art { transition: translate .5s ease-out; }
.anim .hero-copy { transition: translate .7s ease-out; }

/* ===== Reveal on scroll ===== */
.anim .rv { opacity: 0; translate: 0 50px; transition: opacity .8s ease var(--d, 0s), translate .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), scale .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.anim .rv-zoom { translate: 0 30px; scale: .75; }
.anim .rv-right { translate: 70px 0; }
.anim .rv.in { opacity: 1; translate: 0 0; scale: 1; }

/* Underline dashes grow when the section title appears */
.anim .section-tag::before, .anim .section-tag::after { transition: width .7s ease .45s; }
.anim .rv.section-tag:not(.in)::before, .anim .rv.section-tag:not(.in)::after { width: 0; }

/* Idle movement once the portfolio cards have arrived */
.anim .collage.live .shot { animation: float 6s ease-in-out infinite; }
.anim .collage.live .shot-laptop { animation-delay: -1.5s; animation-duration: 7s; }
.anim .collage.live .shot-bag { animation-delay: -3s; animation-duration: 5.5s; }
.anim .collage.live .shot-main { animation-delay: -4.5s; animation-duration: 8s; }
.anim .bars i { transform-origin: bottom; animation: bar 2.6s ease-in-out infinite alternate; }
.anim .bars i:nth-child(2n) { animation-delay: -1.1s; }
.anim .bars i:nth-child(3n) { animation-delay: -1.9s; }
@keyframes bar { to { transform: scaleY(.45); } }
.anim .donut::after { animation: spin 14s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.anim .line path { stroke-dasharray: 200; animation: draw 4s ease-in-out infinite alternate; }
@keyframes draw { from { stroke-dashoffset: 200; } 70%, to { stroke-dashoffset: 0; } }

.anim .stats svg { animation: glow 3s ease-in-out infinite; }
.anim .stats li:nth-child(2) svg { animation-delay: .75s; }
.anim .stats li:nth-child(3) svg { animation-delay: 1.5s; }
.anim .stats li:nth-child(4) svg { animation-delay: 2.25s; }
@keyframes glow { 50% { scale: 1.12; filter: drop-shadow(0 0 14px rgba(215, 140, 255, 1)); } }

.anim .plane:not(.shown) { opacity: 0; }
.anim .plane.shown { animation: plane-in 1.2s cubic-bezier(.2, .85, .3, 1.15) backwards, fly 5s ease-in-out 1.2s infinite; }
@keyframes plane-in { from { opacity: 0; translate: -260px 150px; scale: .4; rotate: -14deg; } }
@keyframes fly { 35% { translate: 22px -20px; rotate: 3deg; } 70% { translate: -8px 8px; rotate: -2deg; } }

/* ===== Hover and always-on details ===== */
.btn, .quote { overflow: hidden; }
.btn { position: relative; }
.btn::after, .quote::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(190, 120, 255, .4), transparent); transform: skewX(-20deg); pointer-events: none; }
.anim .btn:hover::after, .anim .quote:hover::after { left: 130%; transition: left .7s ease; }
.btn svg, .quote svg { transition: translate .25s; }
.btn:hover svg, .quote:hover svg { translate: -6px 0; }

.card .ico, .card .ico svg { transition: background .3s, color .3s, rotate .4s, scale .3s; }
.card:hover .ico { background: linear-gradient(135deg, #a52fd0, #5a1596); rotate: -8deg; scale: 1.08; }
.card:hover .ico svg { color: #fff; rotate: 8deg; }

.social a { transition: translate .25s, color .25s; }
.social a:hover { translate: 0 -5px; }

.anim .whatsapp::before, .anim .whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s ease-out infinite; pointer-events: none; }
.anim .whatsapp::after { animation-delay: 1.2s; }
@keyframes ping { to { scale: 1.4; opacity: 0; } }

@media (max-width: 899px) {
  .nav.stuck { position: fixed; height: 72px; }
  .nav.stuck .brand { top: 14px; width: 125px; }
  .nav.stuck .burger { top: 18px; }
  .nav.stuck .menu { top: 68px; }
  .anim .nav:not(.stuck) .menu a { animation: none; }
  .particles i:nth-child(2n) { display: none; }
}

/* Covers the gap the drifting hero wave would otherwise open along the bottom edge */
.anim .hero::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 13px; background: #f4eefb; }

/* "Why Arjan" target: on scroll the rings spin in, the arrow flies into the centre, the target shakes, then it floats */
.why-rings, .why-arrow { transform-box: view-box; transform-origin: 78px 84px; }
.why-art { overflow: visible; }
.anim .why-art:not(.shown) { opacity: 0; }
.anim .why-art.shown { animation: float 6s ease-in-out 2s infinite; }
.anim .why-art.shown .why-rings { animation: target-in .9s cubic-bezier(.25, 1.5, .5, 1) backwards, target-hit .5s ease 1.42s; }
.anim .why-art.shown .why-arrow { animation: arrow-in .55s cubic-bezier(.55, 0, .85, .35) .9s backwards, arrow-wobble .5s ease-out 1.45s; }
@keyframes target-in { from { opacity: 0; transform: scale(.15) rotate(-200deg); } }
@keyframes target-hit { 25% { transform: scale(.92); } 55% { transform: scale(1.06); } }
@keyframes arrow-in { from { opacity: 0; transform: translate(130px, -105px); } 25% { opacity: 1; } }
@keyframes arrow-wobble { 20% { transform: rotate(5deg); } 45% { transform: rotate(-3.5deg); } 70% { transform: rotate(1.5deg); } }

/* Second hero button and breadcrumb arrive with the rest of the hero text */
.anim .hero-copy [class*="-ghost"] { animation: slide-in .9s cubic-bezier(.2, .8, .2, 1) 1.2s backwards; }
.anim .hero-copy .crumbs { animation: slide-in .8s cubic-bezier(.2, .8, .2, 1) .1s backwards; }
