/* ==========================================================================
   CTV Software Solutions — motion & interaction layer
   Loaded after style.css. Everything here animates transform/opacity/filter
   only, and is switched off under prefers-reduced-motion (see the end).
   ========================================================================== */

:root {
  --grad-brand: linear-gradient(110deg, #1f5bd6 0%, #3a73ea 35%, #5b8cff 55%, #1f5bd6 100%);
  --glow-blue: 0 0 0 1px rgba(91, 140, 255, .35), 0 10px 30px -8px rgba(31, 91, 214, .65);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.site-header { view-transition-name: site-header; }
.js main { animation: page-in .6s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Buttons ---------- */
.c-btn { position: relative; isolation: isolate; overflow: hidden; }
.c-btn:hover { transform: translateY(-2px); }
.c-btn:active { transform: translateY(0); }

/* Animated arrow on primary-style buttons */
.c-btn--primary::after, .c-btn--light::after, .c-btn--ghost::after {
  content: ""; width: 16px; height: 16px; flex: none; margin-right: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease-out);
}
.c-btn:hover::after { transform: translateX(4px); }

/* Gradient sweep + glow on primary */
.c-btn--primary {
  background: var(--grad-brand); background-size: 220% 100%; background-position: 0% 50%;
  transition: background-position .6s var(--ease-out), box-shadow .3s var(--ease), transform .3s var(--ease-out), color .2s;
}
.c-btn--primary:hover { background-position: 100% 50%; box-shadow: var(--glow-blue); }
/* Light sheen that crosses the button on hover */
.c-btn--primary::before, .c-btn--whatsapp::before, .header-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.c-btn--primary:hover::before, .c-btn--whatsapp:hover::before, .header-cta:hover::before { transform: translateX(120%); }
.c-btn--whatsapp:hover { box-shadow: 0 0 0 1px rgba(18, 140, 75, .3), 0 10px 26px -8px rgba(18, 140, 75, .6); }

/* Glowing border on outline buttons */
.c-btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); box-shadow: 0 0 0 4px rgba(31, 91, 214, .1); }
.c-btn--outline-light:hover { box-shadow: 0 0 0 4px rgba(141, 187, 255, .15), 0 0 24px -4px rgba(141, 187, 255, .5); border-color: var(--sky); }
.c-btn--light:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 12px 30px -10px rgba(0, 0, 0, .45); }
.header-cta { position: relative; overflow: hidden; isolation: isolate; }
.header-cta:hover { transform: translateY(-1px); }

/* ---------- Navigation ---------- */
.burger-lines { position: relative; width: 18px; height: 12px; display: block; }
.burger-lines span {
  position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease-out), opacity .2s, width .3s var(--ease-out), top .35s var(--ease-out);
}
.burger-lines span:nth-child(1) { top: 0; width: 18px; }
.burger-lines span:nth-child(2) { top: 5px; width: 12px; }
.burger-lines span:nth-child(3) { top: 10px; width: 16px; }
.nav-burger:hover .burger-lines span { width: 18px; }
.menu-open .burger-lines span:nth-child(1) { top: 5px; transform: rotate(45deg); width: 18px; }
.menu-open .burger-lines span:nth-child(2) { opacity: 0; transform: translateX(-6px); }
.menu-open .burger-lines span:nth-child(3) { top: 5px; transform: rotate(-45deg); width: 18px; }

/* Header slides in on load */
.js .header-inner { animation: header-in .7s var(--ease-out) both; }
@keyframes header-in { from { opacity: 0; transform: translateY(-14px); } }

/* Staggered mega menu items */
.mega__item { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background-color .2s; }
.has-menu:hover .mega__item, .has-menu:focus-within .mega__item, .has-menu.is-open .mega__item { opacity: 1; transform: none; }
.mega__item:nth-child(2) { transition-delay: .03s; } .mega__item:nth-child(3) { transition-delay: .06s; }
.mega__item:nth-child(4) { transition-delay: .09s; } .mega__item:nth-child(5) { transition-delay: .12s; }
.mega__item:nth-child(6) { transition-delay: .15s; } .mega__item:nth-child(7) { transition-delay: .18s; }
.mega__icon { transition: background-color .25s, color .25s, transform .35s var(--ease-out); }
.mega__item:hover .mega__icon { transform: rotate(-8deg) scale(1.08); }

/* Mobile menu: links slide in */
.mobile-nav.show .mobile-nav__list > li { animation: slide-in .5s var(--ease-out) both; }
.mobile-nav.show .mobile-nav__list > li:nth-child(2) { animation-delay: .04s; }
.mobile-nav.show .mobile-nav__list > li:nth-child(3) { animation-delay: .08s; }
.mobile-nav.show .mobile-nav__list > li:nth-child(4) { animation-delay: .12s; }
.mobile-nav.show .mobile-nav__list > li:nth-child(5) { animation-delay: .16s; }
.mobile-nav.show .mobile-nav__list > li:nth-child(6) { animation-delay: .2s; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-18px); } }

/* ---------- Shared background effects ---------- */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); opacity: .55;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -30px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 20px, 0) scale(.95); }
}
@keyframes grid-pan { to { background-position: 56px 56px, 56px 56px; } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, #f6f9ff, #e8f0fd 30%, #f3f7ff 55%, #e2ecfd 80%, #f6f9ff);
  background-size: 300% 300%; animation: gradient-shift 22s ease-in-out infinite;
}
.hero__fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__fx .hero__grid-bg { animation: grid-pan 14s linear infinite; }
.hero .orb--a { width: 460px; height: 460px; top: -120px; right: 4%; background: radial-gradient(circle, #8db8ff, transparent 70%); }
.hero .orb--b { width: 380px; height: 380px; bottom: -140px; left: 30%; background: radial-gradient(circle, #b9d2ff, transparent 70%); animation-duration: 24s; animation-delay: -6s; }
.hero .orb--c { width: 260px; height: 260px; top: 20%; left: -80px; background: radial-gradient(circle, #a5c4ff, transparent 70%); animation-duration: 20s; animation-delay: -12s; opacity: .4; }
.hero__network { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

/* Heading reveal: words start at mixed sizes, faded and soft, then settle into place */
.hx-word {
  display: inline-block; transform-origin: 50% 82%;
  transform: translate3d(0, .12em, 0) scale(var(--s, 1));
  opacity: .22; filter: blur(3px);
  transition:
    transform 1.2s cubic-bezier(.25, .8, .25, 1),
    opacity 1s cubic-bezier(.25, .8, .25, 1),
    filter .9s cubic-bezier(.25, .8, .25, 1);
  transition-delay: calc(var(--i, 0) * 32ms);
  will-change: transform, opacity;
}
.hx.is-in .hx-word { transform: none; opacity: 1; filter: none; }
.hx.is-done .hx-word { will-change: auto; }
.js .hero__lead, .js .hero__actions, .js .hero__proof { animation: fade-up .9s var(--ease-out) both; }
.js .hero__lead { animation-delay: .55s; }
.js .hero__actions { animation-delay: .7s; }
.js .hero__proof { animation-delay: .85s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

/* Hero visual: wall + floating glass chips with 3D tilt */
.hero-visual { position: relative; perspective: 1200px; }
.js .hero-visual { animation: scale-in 1.1s var(--ease-out) .3s both; }
@keyframes scale-in { from { opacity: 0; transform: scale(.94); } }
.hero-wall { transform: rotateY(calc(var(--rx, 0) * 1deg)) rotateX(calc(var(--ry, 0) * -1deg)); transition: transform .6s var(--ease-out); transform-style: preserve-3d; }
.tech-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 16px; font-weight: 650; font-size: .9rem; color: var(--navy-900);
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(6, 18, 46, .35), inset 0 1px 0 #fff;
  transform: translate3d(calc(var(--px, 0) * var(--d, 10) * 1px), calc(var(--py, 0) * var(--d, 10) * 1px), 0);
  transition: transform .5s var(--ease-out);
}
.tech-chip .icon {
  width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); box-shadow: 0 6px 14px -6px rgba(31, 91, 214, .8);
}
.tech-chip > span { animation: chip-float 6s ease-in-out infinite; }
.tech-chip--1 { top: 8%; left: -38px; --d: 18; animation: chip-bob 7s ease-in-out infinite; }
.tech-chip--2 { top: 42%; right: -26px; --d: 28; animation: chip-bob 8s ease-in-out -2s infinite; }
.tech-chip--3 { bottom: 12%; left: -20px; --d: 12; animation: chip-bob 9s ease-in-out -4s infinite; }
.tech-chip--4 { top: -14px; right: 18%; --d: 22; animation: chip-bob 7.5s ease-in-out -1s infinite; }
@keyframes chip-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes chip-float { 0%, 100% { opacity: 1; } 50% { opacity: .85; } }
@media (max-width: 991.98px) { .tech-chip--1 { left: 0; } .tech-chip--2 { right: 0; } .tech-chip--3 { left: 4px; } }
@media (max-width: 575.98px) { .tech-chip { font-size: .78rem; padding: 7px 12px 7px 7px; } .tech-chip .icon { width: 28px; height: 28px; padding: 6px; } .tech-chip--3, .tech-chip--4 { display: none; } }

/* ---------- Inner page heroes: moving gradient, drifting grid, orb ---------- */
.page-hero { background-size: 160% 160%; animation: gradient-shift 20s ease-in-out infinite; }
.page-hero::after { animation: grid-pan 16s linear infinite; }
.page-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, .45), transparent 65%); filter: blur(30px);
  animation: orb-drift 16s ease-in-out infinite alternate; pointer-events: none;
}
.js .page-hero .crumbs, .js .page-hero__title, .js .page-hero__lead, .js .page-hero__icon, .js .page-hero__actions { animation: fade-up .8s var(--ease-out) both; }
.js .page-hero__icon { animation-delay: .05s; }
.js .page-hero__title { animation-delay: .12s; }
.js .page-hero__lead { animation-delay: .24s; }
.js .page-hero__actions { animation-delay: .34s; }

/* ---------- Dark sections: animated grid + orbs + network lines ---------- */
.services, .process, .cta-band, .site-footer { position: relative; overflow: hidden; isolation: isolate; }
.services::before, .process::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(141, 187, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(141, 187, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px; animation: grid-pan 18s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent 75%);
}
.services::after, .cta-band::after {
  content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; border-radius: 50%; left: -200px; bottom: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(58, 115, 234, .35), transparent 65%); filter: blur(40px);
  animation: orb-drift 20s ease-in-out infinite alternate;
}
.cta-band { background-size: 180% 180%; animation: gradient-shift 18s ease-in-out infinite; }
.cta-band__inner { position: relative; z-index: 1; }
/* Network lines in the process section */
.process::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300'%3E%3Cg fill='none' stroke='%238dbbff' stroke-width='1' stroke-opacity='.5'%3E%3Cpath d='M0 220 L120 160 L240 200 L360 90 L480 140 L600 60'/%3E%3Cpath d='M0 80 L140 120 L260 40 L380 150 L520 100 L600 180'/%3E%3C/g%3E%3Cg fill='%238dbbff'%3E%3Ccircle cx='120' cy='160' r='2.5'/%3E%3Ccircle cx='240' cy='200' r='2.5'/%3E%3Ccircle cx='360' cy='90' r='2.5'/%3E%3Ccircle cx='480' cy='140' r='2.5'/%3E%3Ccircle cx='140' cy='120' r='2.5'/%3E%3Ccircle cx='260' cy='40' r='2.5'/%3E%3Ccircle cx='380' cy='150' r='2.5'/%3E%3Ccircle cx='520' cy='100' r='2.5'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 70% / 600px 300px;
  animation: lines-pan 40s linear infinite;
}
@keyframes lines-pan { to { background-position: 600px 70%; } }

/* Timeline: line draws in, nodes pulse */
.timeline__step:not(:last-child)::after { transform-origin: left center; }
.js .timeline.reveal-ready .timeline__step:not(:last-child)::after { transform: scaleX(0); transition: transform .8s var(--ease-out); }
.js .timeline.is-visible .timeline__step:not(:last-child)::after { transform: none; }
.js .timeline.is-visible .timeline__step:nth-child(2)::after { transition-delay: .15s; }
.js .timeline.is-visible .timeline__step:nth-child(3)::after { transition-delay: .3s; }
.js .timeline.is-visible .timeline__step:nth-child(4)::after { transition-delay: .45s; }
.js .timeline.is-visible .timeline__step:nth-child(5)::after { transition-delay: .6s; }
@media (max-width: 991.98px) { .timeline__step:not(:last-child)::after { transform-origin: center top; } .js .timeline.reveal-ready .timeline__step:not(:last-child)::after { transform: scaleY(0); } }
.timeline__num { transition: box-shadow .4s, background-color .4s; }
.timeline__step:hover .timeline__num { background: var(--blue-600); box-shadow: 0 0 0 6px rgba(58, 115, 234, .2), 0 0 24px rgba(58, 115, 234, .6); }
.timeline__step:last-child .timeline__num { animation: node-pulse 2.8s ease-out infinite; }
@keyframes node-pulse { 0% { box-shadow: 0 0 0 0 rgba(58, 115, 234, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(58, 115, 234, 0); } }

/* ---------- Service cards: spotlight glow follows the pointer ---------- */
.service-card { --mx: 50%; --my: 50%; transition: transform .45s var(--ease-out), border-color .3s, background-color .3s, box-shadow .45s; }
.service-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(141, 187, 255, .85), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 40px -18px rgba(91, 140, 255, .6); }
.service-card:hover::before { opacity: 1; }
.service-card__icon { transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .3s; }
.service-card:hover .service-card__icon { transform: translateY(-3px) rotate(-6deg); background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -8px rgba(58, 115, 234, .9); }
.service-card__icon .icon { transition: transform .5s var(--ease-out); }
.service-card:hover .service-card__icon .icon { transform: scale(1.1); }
.service-card__shot img { transition: transform .8s var(--ease-out); }
.service-card--feature:hover .service-card__shot img { transform: translateY(-8px); }
.service-cta { background-size: 200% 200%; animation: gradient-shift 12s ease-in-out infinite; }

/* Light-surface cards share the same lift + icon motion */
.offer, .industry-tile, .why-list__item, .fact-panel li, .service-row__offers li { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s, background-color .3s; }
.offer:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(10, 27, 63, .35), 0 0 0 1px rgba(31, 91, 214, .2); border-color: transparent; }
.offer__icon, .industry-tile__icon, .why-list__icon, .fact-panel__icon, .service-row__icon, .contact__icon { transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .3s; }
.offer:hover .offer__icon, .industry-tile:hover .industry-tile__icon, .why-list__item:hover .why-list__icon, .fact-panel li:hover .fact-panel__icon {
  transform: translateY(-2px) rotate(-6deg); background: var(--blue-600); color: #fff; box-shadow: 0 10px 22px -8px rgba(31, 91, 214, .7);
}
.industry-tile:hover { box-shadow: 0 24px 50px -26px rgba(10, 27, 63, .4), 0 0 0 1px rgba(31, 91, 214, .18); }
.industry-tile--feature { background-size: auto, 110%; transition: background-size .8s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s; }
.industry-tile--feature:hover { background-size: auto, 118%; }
.industry-tile--feature:hover .industry-tile__icon { background: var(--blue-600); }
.why-list__item:hover h3 { color: var(--blue-600); }
.why-list__item h3 { transition: color .25s; }
.contact__list li:hover .contact__icon { transform: scale(1.08); background: rgba(141, 187, 255, .18); }
.chip-list li { transition: transform .3s var(--ease-out), border-color .3s, color .3s, box-shadow .3s; }
.chip-list li:hover { transform: translateY(-3px); border-color: var(--blue-500); color: var(--blue-600); box-shadow: 0 10px 20px -12px rgba(31, 91, 214, .5); }

/* ---------- Portfolio: zoom, overlay reveal, title animation, CTA ---------- */
.project-card { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 27, 63, .45), 0 0 0 1px rgba(31, 91, 214, .15); border-color: transparent; }
.project-card__media { position: relative; }
.project-card__media img { transition: transform 1s var(--ease-out); }
.project-card:hover .project-card__media img { transform: scale(1.14); }
.project-card__overlay {
  position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 22px;
  background: linear-gradient(180deg, rgba(10, 27, 63, 0) 30%, rgba(10, 27, 63, .78));
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.project-card__cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--navy-900); font-weight: 650; font-size: .9rem;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5); transform: translateY(16px); transition: transform .5s var(--ease-out), background-color .25s, color .25s;
}
.project-card__cta .icon { width: 16px; height: 16px; }
.project-card:hover .project-card__overlay { opacity: 1; }
.project-card:hover .project-card__cta { transform: none; }
.project-card__cta:hover { background: var(--blue-600); color: #fff; }
.project-card__title {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  display: inline; padding-bottom: 2px; transition: background-size .5s var(--ease-out), color .3s;
}
.project-card:hover .project-card__title { background-size: 100% 2px; color: var(--blue-600); }
.project-card__title + .project-card__desc { margin-top: 8px; }
.project-card__cat { transition: letter-spacing .4s var(--ease-out); }
.project-card:hover .project-card__cat { letter-spacing: .02em; }
.gallery-card { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.gallery-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(10, 27, 63, .45); }
.gallery-card__btn img { transition: transform 1s var(--ease-out); }
.gallery-card__btn:hover img { transform: scale(1.1); }
.gallery-card__label { transition: transform .4s var(--ease-out), background-color .25s, color .25s; }
.gallery-card__btn:hover .gallery-card__label { transform: translateY(-4px); background: var(--blue-600); color: #fff; }
.filter-btn { transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out), box-shadow .3s; }
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn[aria-pressed="true"] { box-shadow: 0 10px 22px -12px rgba(10, 27, 63, .7); }
/* Cards re-enter smoothly after filtering */
.is-entering { animation: card-in .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.lightbox[open] { animation: scale-in .4s var(--ease-out); }
.lightbox[open]::backdrop { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Scroll reveals (classes added by effects.js) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), clip-path 1.1s var(--ease-out); transition-delay: calc(var(--stagger, 0) * 90ms); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translate3d(0, 34px, 0); }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="clip"] { opacity: 1; clip-path: inset(0 0 100% 0 round 20px); transform: translate3d(0, 20px, 0); }
.js [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }
.js [data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round 20px); }
/* Neutralise the older single-effect reveal from main.js */
.js .reveal { opacity: 1; transform: none; }

/* ---------- Stats ---------- */
.stat__num { background: linear-gradient(120deg, var(--navy-900) 40%, var(--blue-600) 60%, var(--navy-900) 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__num span { color: inherit; }
.stat.is-counted .stat__num, .stat-pair__item.is-counted .stat__num { animation: shine 2.2s var(--ease-out) .2s both; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.stats { position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; left: 50%; top: 50%; width: 700px; height: 300px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(141, 187, 255, .25), transparent 70%); pointer-events: none; }

/* ---------- Testimonials ---------- */
.testimonial { transition: transform .6s var(--ease-out), opacity .6s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.testimonial-track.is-enhanced .testimonial:not(.is-active) { opacity: .55; transform: scale(.97); }
.testimonial:hover { transform: translateY(-5px) !important; opacity: 1 !important; box-shadow: 0 26px 50px -28px rgba(10, 27, 63, .4); border-color: var(--blue-200); }
.testimonial__mark { transition: transform .6s var(--ease-out), color .3s; }
.testimonial:hover .testimonial__mark { transform: rotate(-10deg) scale(1.1); color: var(--blue-500); }
.testimonial__avatar { background: linear-gradient(135deg, var(--blue-600), var(--navy-900)); }
.carousel-progress { height: 3px; margin: 4px auto 0; max-width: 1192px; border-radius: 3px; background: var(--blue-100); overflow: hidden; }
.carousel-progress span { display: block; height: 100%; width: 0; background: var(--blue-600); border-radius: inherit; transition: width .5s var(--ease-out); }

/* FAQ answer opens smoothly */
.qa__answer { animation: fade-up .45s var(--ease-out); }
.qa summary span { transition: transform .35s var(--ease-out); }
.qa summary:hover span { transform: translateX(4px); }

/* Form fields */
.enquiry-form .form-control, .enquiry-form .form-select { transition: border-color .25s, box-shadow .25s, background-color .25s, transform .25s var(--ease-out); }
.enquiry-form .form-control:focus, .enquiry-form .form-select:focus { transform: translateY(-1px); }

/* Images: subtle zoom on hover for feature images */
.sadvis-feature__card img, .sadvis-strip img { transition: transform .8s var(--ease-out); }
.sadvis-feature__card:hover img, .sadvis-strip:hover img { transform: scale(1.04); }
[data-parallax] { will-change: transform; }

/* ---------- Footer ---------- */
.site-footer::before {
  content: ""; position: absolute; z-index: -1; width: 700px; height: 400px; right: -200px; top: -200px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(58, 115, 234, .22), transparent 65%); filter: blur(40px); animation: orb-drift 22s ease-in-out infinite alternate;
}
.site-footer__links a, .site-footer__contact a { position: relative; display: inline-block; transition: color .25s, transform .3s var(--ease-out); }
.site-footer__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.site-footer__links a:hover { transform: translateX(4px); }
.site-footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.social-list a { transition: transform .4s var(--ease-out), background-color .3s, border-color .3s, box-shadow .3s; }
.social-list a:hover { transform: translateY(-4px) rotate(-8deg); box-shadow: 0 10px 22px -8px rgba(31, 91, 214, .8); }
.social-list a .icon { transition: transform .4s var(--ease-out); }
.social-list a:hover .icon { transform: scale(1.15); }

/* Floating quick-contact buttons */
.float-btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease-out), background-color .25s, box-shadow .3s; }
.float-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.float-btn:hover::before { transform: translateX(120%); }
.float-btn--quote:hover { box-shadow: 0 0 0 6px rgba(31, 91, 214, .15), 0 14px 30px -10px rgba(31, 91, 214, .8); }
.float-btn--call:hover { box-shadow: 0 0 0 6px rgba(10, 27, 63, .12), 0 14px 30px -10px rgba(6, 18, 46, .8); }
.float-btn--wa:hover { box-shadow: 0 0 0 6px rgba(18, 140, 75, .15), 0 14px 30px -10px rgba(18, 140, 75, .8); }
.float-btn .icon { transition: transform .4s var(--ease-out); }
.float-btn--call:hover .icon { transform: rotate(-12deg) scale(1.08); }
.float-btn--quote:hover .icon { transform: rotate(18deg) scale(1.1); }
.float-btn--wa .icon { animation: wa-nudge 6s ease-in-out 3s infinite; }
@keyframes wa-nudge { 0%, 90%, 100% { transform: none; } 92% { transform: rotate(-14deg); } 94% { transform: rotate(12deg); } 96% { transform: rotate(-8deg); } }
.js .float-actions .float-btn { animation: float-in .6s var(--ease-out) both; }
.js .float-actions .float-btn:nth-child(1) { animation-delay: 1.2s; }
.js .float-actions .float-btn:nth-child(2) { animation-delay: 1.1s; }
.js .float-actions .float-btn--wa { animation: float-in .6s var(--ease-out) 1s both; }
@keyframes float-in { from { opacity: 0; transform: translateX(-16px); } }

/* ---------- Touch devices: no hover-only lifts that stick after a tap ---------- */
@media (hover: none) {
  .service-card:hover, .project-card:hover, .offer:hover, .industry-tile:hover, .gallery-card:hover, .testimonial:hover { transform: none !important; }
  .project-card__overlay { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(10, 27, 63, .55)); }
  .project-card__cta { transform: none; padding: 8px 14px; font-size: .82rem; }
}

/* ---------- Reduced motion: everything static, content fully visible ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero, .page-hero, .cta-band, .service-cta, .hero__fx .hero__grid-bg, .page-hero::after, .services::before, .process::before, .process::after,
  .orb, .page-hero::before, .services::after, .cta-band::after, .site-footer::before, .tech-chip, .tech-chip > span, .float-btn, .float-btn .icon, .timeline__step:last-child .timeline__num { animation: none !important; }
  .hero__network { display: none; }
  .hx-word { transform: none !important; opacity: 1 !important; filter: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js main, .js .header-inner, .js .hero-visual, .js .hero__lead, .js .hero__actions, .js .hero__proof { animation: none; }
  .mega__item { opacity: 1; transform: none; }
  .hero-wall, .tech-chip { transform: none !important; }
}

/* ==========================================================================
   Premium polish (v1.3): motion
   ========================================================================== */
/* Floating mockups drift gently (pointer parallax is added by effects.js) */
.mock-code { animation: chip-bob 9s ease-in-out -3s infinite; transition: transform .6s var(--ease-out); }
.mock-phone { animation: chip-bob 8s ease-in-out -1s infinite; transition: transform .6s var(--ease-out); }
.js .mock-code .ln { opacity: 0; transform: translateX(-6px); animation: code-line .5s var(--ease-out) forwards; }
.js .mock-code .ln:nth-child(1) { animation-delay: 1.1s; } .js .mock-code .ln:nth-child(2) { animation-delay: 1.3s; }
.js .mock-code .ln:nth-child(3) { animation-delay: 1.5s; } .js .mock-code .ln:nth-child(4) { animation-delay: 1.7s; }
.js .mock-code .ln:nth-child(5) { animation-delay: 1.9s; } .js .mock-code .ln:nth-child(6) { animation-delay: 2.1s; }
@keyframes code-line { to { opacity: 1; transform: none; } }
.js .mock-phone .bub { opacity: 0; transform: translateY(8px) scale(.96); animation: bub-in .5s var(--ease-out) forwards; }
.js .mock-phone .bub:nth-child(1) { animation-delay: 1.4s; } .js .mock-phone .bub:nth-child(2) { animation-delay: 2.2s; }
.js .mock-phone .bub:nth-child(3) { animation-delay: 3s; } .js .mock-phone .bub:nth-child(4) { animation-delay: 3.6s; }
@keyframes bub-in { to { opacity: 1; transform: none; } }
.js .hero__pill { animation: fade-up .8s var(--ease-out) .05s both; }

/* About visual: floating badges and a soft screen sheen */
.about-badge { animation: chip-bob 8s ease-in-out infinite; }
.about-badge--b { animation-delay: -3s; } .about-badge--c { animation-delay: -5s; }
.about-visual__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%); transform: translateX(-100%); animation: screen-sheen 7s ease-in-out 1.5s infinite; }
@keyframes screen-sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Services: gradient border on hover plus pointer spotlight; icons draw themselves */
.service-card::before {
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(141, 187, 255, .9), transparent 60%),
    linear-gradient(135deg, rgba(141, 187, 255, .7), rgba(58, 115, 234, .15) 45%, rgba(141, 187, 255, .55));
}
.service-card:hover .service-card__icon .icon :is(path, circle, rect, line, polyline) { stroke-dasharray: 80; animation: icon-draw 1s var(--ease-out) both; }
.offer:hover .offer__icon .icon :is(path, circle, rect, line, polyline),
.industry-tile:hover .industry-tile__icon .icon :is(path, circle, rect, line, polyline) { stroke-dasharray: 80; animation: icon-draw 1s var(--ease-out) both; }
@keyframes icon-draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }

/* Project link arrow */
.project-card__link:hover .icon { transform: translate(2px, -2px); }

/* FAQ: answers open and close with a height animation where supported */
:root { interpolate-size: allow-keywords; }
.qa::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
.qa[open]::details-content { height: auto; }
.qa__icon { transition: transform .4s var(--ease-out), background-color .3s, color .3s; }

/* Industries page: category pills animate */
.jump-nav a { transition: background-color .3s var(--ease-out), color .3s; }

/* CTA panel: drifting glow */
.cta-band__inner { background-size: 140% 140%, 140% 140%, auto; animation: gradient-shift 16s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .mock-code, .mock-phone, .about-badge, .about-visual__screen::after, .cta-band__inner, .hero__pulse::after, .caret, .bub--typing i { animation: none !important; }
  .js .mock-code .ln, .js .mock-phone .bub { opacity: 1; transform: none; animation: none; }
  .qa::details-content { transition: none; }
}

/* v1.4 motion */
.mock-dash { animation: chip-bob 8.5s ease-in-out -2s infinite; transition: transform .6s var(--ease-out); }
.js .mock-dash__bars b { transform: scaleY(0); animation: bar-grow .9s var(--ease-out) forwards; }
.js .mock-dash__bars b:nth-child(1) { animation-delay: 1.2s; } .js .mock-dash__bars b:nth-child(2) { animation-delay: 1.3s; }
.js .mock-dash__bars b:nth-child(3) { animation-delay: 1.4s; } .js .mock-dash__bars b:nth-child(4) { animation-delay: 1.5s; }
.js .mock-dash__bars b:nth-child(5) { animation-delay: 1.6s; } .js .mock-dash__bars b:nth-child(6) { animation-delay: 1.7s; }
@keyframes bar-grow { to { transform: scaleY(1); } }
.scroll-cue__mouse i { animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.service-card--ai { animation: ai-glow 4s ease-in-out infinite; }
@keyframes ai-glow { 0%, 100% { box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .6), 0 0 0 0 rgba(91, 140, 255, 0); } 50% { box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .6), 0 0 34px -10px rgba(91, 140, 255, .55); } }
.logo-marquee__track { animation: logos 70s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(calc(-50% - clamp(36px, 5vw, 64px) / 2)); } }
.chat-ui__body:not([hidden]) .msg { animation: bub-in .5s var(--ease-out) both; }
.chat-ui__body .msg:nth-child(2) { animation-delay: .25s; } .chat-ui__body .msg:nth-child(3) { animation-delay: .5s; }
.chat-ui__body .msg:nth-child(4) { animation-delay: .75s; } .chat-ui__body .msg:nth-child(5) { animation-delay: 1s; }
.case { transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.case:hover { box-shadow: 0 34px 70px -40px rgba(10, 27, 63, .45); }
@media (prefers-reduced-motion: reduce) {
  .mock-dash, .scroll-cue__mouse i, .service-card--ai, .chat-ui__body .msg { animation: none !important; }
  .js .mock-dash__bars b { transform: none; animation: none; }
  .logo-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 24px; }
  .logo-marquee__track li[aria-hidden="true"] { display: none; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}
