/* ==========================================================================
   Fabulous IT — 3D, illustrations & motion layer (loads after theme.css)
   ========================================================================== */

:root { --container: 1360px; }
.container { padding-left: 32px; padding-right: 32px; }
.fit-wrap { max-width: var(--container); padding-left: 32px; padding-right: 32px; }

/* ---------- Logo ---------- */
.brand__mark { display: block; width: 44px; height: 47px; flex: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1.3); }
.brand__mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__text strong { font-size: 1.22rem; font-weight: 800; letter-spacing: -.025em; }
.brand__text strong em { font-style: normal; background: linear-gradient(135deg, #3B82F6, #1D4ED8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer .brand__text strong em { background: linear-gradient(135deg, #7DD3FC, #60A5FA); -webkit-background-clip: text; background-clip: text; }
.brand__text span { letter-spacing: .32em; font-size: .66rem; }

/* ---------- Illustration base ---------- */
.art { display: block; width: 100%; height: auto; overflow: visible; }
/* Parallax uses the independent `translate` property so it never fights the float animations. */
.art .layer, [data-depth] { transition: translate .4s cubic-bezier(.2, .7, .2, 1); }

.art .flt, .float-card, .art .flt2, .art .flt-slow { transform-box: fill-box; }
.art .flt { animation: fitt-float 6s ease-in-out infinite; }
.art .flt2 { animation: fitt-float 7.5s ease-in-out -2.5s infinite; }
.art .flt-slow { animation: fitt-float 9s ease-in-out -4s infinite; }
@keyframes fitt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.art .pulse { transform-box: fill-box; transform-origin: center; animation: fitt-pulse 2.4s ease-out infinite; }
@keyframes fitt-pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.1); opacity: 0; } }
.art .pulse-dot { animation: fitt-glow 1.8s ease-in-out infinite; }
@keyframes fitt-glow { 50% { opacity: .35; } }
.art .blink { transform-box: fill-box; transform-origin: center; animation: fitt-blink 5s infinite; }
@keyframes fitt-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.art .caret { animation: fitt-glow 1s steps(1) infinite; }

.art .bar { transform-box: fill-box; transform-origin: bottom; animation: fitt-grow 1.1s cubic-bezier(.2, .8, .2, 1.2) .3s both; }
.art .bar.b2 { animation-delay: .45s; } .art .bar.b3 { animation-delay: .6s; } .art .bar.b4 { animation-delay: .75s; }
.art .grow { transform-box: fill-box; transform-origin: bottom; animation: fitt-grow 1.1s cubic-bezier(.2, .8, .2, 1.2) .2s both; }
.art .grow.g2 { animation-delay: .4s; } .art .grow.g3 { animation-delay: .6s; }
@keyframes fitt-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.art .draw { stroke-dasharray: 260; stroke-dashoffset: 260; animation: fitt-draw 1.6s ease .9s forwards; }
@keyframes fitt-draw { to { stroke-dashoffset: 0; } }
.art .pop { transform-box: fill-box; transform-origin: center; animation: fitt-pop 3.6s ease-in-out 1.2s infinite; }
@keyframes fitt-pop { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.04); } }

.art .wave-arm { transform-box: view-box; transform-origin: 182px 290px; animation: fitt-wave 1.6s ease-in-out infinite alternate; }
.art .wave-arm2 { transform-box: view-box; transform-origin: 180px 290px; animation: fitt-wave 1.4s ease-in-out -.4s infinite alternate; }
@keyframes fitt-wave { from { transform: rotate(-10deg); } to { transform: rotate(8deg); } }

.art .spin { animation: fitt-spin 12s linear infinite; }
.art .spin-slow { animation: fitt-spin 18s linear infinite; }
@keyframes fitt-spin { to { transform: rotate(360deg); } }
.art .led { animation: fitt-glow 1.2s steps(2) infinite; }
.art .led.l1 { animation-delay: .4s; } .art .led.l2 { animation-delay: .8s; }

.art .rocket { animation: fitt-rocket 2.4s ease-in-out infinite; }
@keyframes fitt-rocket { 50% { transform: translateY(-8px); } }
.art .flame { transform-box: fill-box; transform-origin: top; animation: fitt-flame .18s ease-in-out infinite alternate; }
@keyframes fitt-flame { to { transform: scaleY(.75); } }
.art .smoke { transform-box: fill-box; transform-origin: center; animation: fitt-smoke 2.4s ease-out infinite; }
.art .smoke.s2 { animation-delay: -1.2s; }
@keyframes fitt-smoke { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8) translateY(6px); opacity: 0; } }

.art .type { transform-box: fill-box; transform-origin: left; animation: fitt-type 6s ease-in-out infinite; }
.art .type.t2 { animation-delay: .3s; } .art .type.t3 { animation-delay: .6s; } .art .type.t4 { animation-delay: .9s; } .art .type.t5 { animation-delay: 1.2s; }
@keyframes fitt-type { 0% { transform: scaleX(0); } 15%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.art .wave-line { animation: fitt-glow 1.6s ease-in-out infinite; }
.art .wave-line.w2 { animation-delay: .5s; }
.art .dash { animation: fitt-dash 2.4s linear infinite; }
@keyframes fitt-dash { to { stroke-dashoffset: -72; } }

/* ---------- 3D glass cube ---------- */
.cube3d { position: absolute; width: 84px; height: 84px; transform-style: preserve-3d; animation: fitt-cube 22s linear infinite; pointer-events: none; z-index: 0; }
.cube3d span { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(135deg, rgba(125, 211, 252, .32), rgba(29, 78, 216, .12)); border: 1px solid rgba(186, 230, 253, .45); box-shadow: inset 0 0 24px rgba(125, 211, 252, .18); }
.cube3d span:nth-child(1) { transform: translateZ(42px); }
.cube3d span:nth-child(2) { transform: rotateY(180deg) translateZ(42px); }
.cube3d span:nth-child(3) { transform: rotateY(90deg) translateZ(42px); }
.cube3d span:nth-child(4) { transform: rotateY(-90deg) translateZ(42px); }
.cube3d span:nth-child(5) { transform: rotateX(90deg) translateZ(42px); }
.cube3d span:nth-child(6) { transform: rotateX(-90deg) translateZ(42px); }
@keyframes fitt-cube { from { transform: rotateX(-18deg) rotateY(0) rotateZ(8deg); } to { transform: rotateX(-18deg) rotateY(360deg) rotateZ(8deg); } }
.cube3d--hero { left: 47%; top: 12%; width: 56px; height: 56px; opacity: .85; }
.cube3d--hero span:nth-child(1) { transform: translateZ(28px); } .cube3d--hero span:nth-child(2) { transform: rotateY(180deg) translateZ(28px); }
.cube3d--hero span:nth-child(3) { transform: rotateY(90deg) translateZ(28px); } .cube3d--hero span:nth-child(4) { transform: rotateY(-90deg) translateZ(28px); }
.cube3d--hero span:nth-child(5) { transform: rotateX(90deg) translateZ(28px); } .cube3d--hero span:nth-child(6) { transform: rotateX(-90deg) translateZ(28px); }
.cube3d--hero span { border-radius: 10px; }
.cube3d--banner { right: 40%; top: 18%; width: 48px; height: 48px; opacity: .8; }
.cube3d--banner span:nth-child(1) { transform: translateZ(24px); } .cube3d--banner span:nth-child(2) { transform: rotateY(180deg) translateZ(24px); }
.cube3d--banner span:nth-child(3) { transform: rotateY(90deg) translateZ(24px); } .cube3d--banner span:nth-child(4) { transform: rotateY(-90deg) translateZ(24px); }
.cube3d--banner span:nth-child(5) { transform: rotateX(90deg) translateZ(24px); } .cube3d--banner span:nth-child(6) { transform: rotateX(-90deg) translateZ(24px); }
.cube3d--banner span { border-radius: 9px; }

/* Blurred colour orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; animation: fitt-orb 16s ease-in-out infinite alternate; }
.orb--a { width: 420px; height: 420px; background: #1D4ED8; left: -120px; top: -80px; }
.orb--b { width: 360px; height: 360px; background: #0EA5E9; right: -100px; bottom: -120px; animation-delay: -8s; opacity: .35; }
@keyframes fitt-orb { to { transform: translate(60px, 40px) scale(1.1); } }

/* ---------- Hero: full height, full width ---------- */
.hero { min-height: min(900px, calc(100vh - 116px)); display: flex; align-items: center; perspective: 1200px; padding: 72px 0 96px; }
.hero > .container { position: relative; z-index: 1; }
.hero__grid { grid-template-columns: 1fr 1.12fr; gap: 40px; }
.hero__title { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem); }
.hero__title { background: linear-gradient(180deg, #fff 30%, #C7DBFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__visual { position: relative; animation: fitt-rise3d 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
.hero__copy > * { animation: fitt-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__copy > *:nth-child(2) { animation-delay: .08s; } .hero__copy > *:nth-child(3) { animation-delay: .16s; }
.hero__copy > *:nth-child(4) { animation-delay: .24s; } .hero__copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes fitt-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fitt-rise3d { from { opacity: 0; transform: perspective(1200px) rotateY(-14deg) rotateX(6deg) translateY(30px); } }
.hero__visual .art--hero { max-width: 720px; margin-left: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .25)); }
.float-card { backdrop-filter: blur(8px); background: rgba(255, 255, 255, .92); }
.float-card--a { left: 2%; bottom: 6%; animation: fitt-float 7s ease-in-out -2s infinite; }
.float-card--b { right: 2%; top: 2%; animation: fitt-float 8s ease-in-out -4s infinite; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; z-index: 1; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #7DD3FC; animation: fitt-scroll 1.8s ease-in-out infinite; }
@keyframes fitt-scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- 3D buttons ---------- */
.btn--primary, .fit-btn--primary { box-shadow: 0 5px 0 #1E3A8A, 0 16px 26px -12px rgba(29, 78, 216, .75) !important; transform: translateY(0); }
.btn--primary:hover, .fit-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #1E3A8A, 0 22px 30px -12px rgba(29, 78, 216, .8) !important; }
.btn--primary:active, .fit-btn--primary:active { transform: translateY(4px); box-shadow: 0 1px 0 #1E3A8A, 0 6px 12px -8px rgba(29, 78, 216, .8) !important; }
.btn--light { box-shadow: 0 5px 0 #A9C1F5, 0 16px 26px -14px rgba(0, 0, 0, .5); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #A9C1F5, 0 20px 30px -14px rgba(0, 0, 0, .5); }
.btn--light:active { transform: translateY(4px); box-shadow: 0 1px 0 #A9C1F5; }

/* ---------- Tilt cards (JS sets inline transform while hovering) ---------- */
.fit-service-card, .feature, .price-list__item, .ai-card, .fit-package, .step, .post-card, .fit-stat { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.fit-service-card__icon, .feature__icon, .ai-card__icon, .price-list__icon, .steps__n { transform: translateZ(36px); }
.fit-service-card .fit-service-card__title, .feature h3 { transform: translateZ(20px); }
.is-tilting { box-shadow: 0 30px 60px -28px rgba(7, 20, 38, .5) !important; z-index: 2; }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .55), transparent 55%); opacity: 0; transition: opacity .25s; mix-blend-mode: soft-light; }
.is-tilting > .tilt-glare { opacity: 1; }
.fit-service-card, .feature, .price-list__item, .ai-card, .fit-package, .step, .post-card, .fit-stat { position: relative; }

/* Service cards: gradient edge (blue hover + white text live in the plugin's portal.css) */
.fit-service-card { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, #DCE7FF, #fff 40%, #E0F2FE) border-box; border: 1px solid transparent; }
.fit-service-card:hover { background: transparent; }
.fit-service-card__icon--3d, .feature__icon--3d, .price-list__icon--3d, .ai-card__icon:has(.fit-icon3d) { transform: translateZ(40px); }

/* Same blue hover on the home page's feature cards and price list */
.feature, .price-list__item { position: relative; isolation: isolate; overflow: hidden; }
.feature::before, .price-list__item::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px 220px at 85% -10%, rgba(125, 211, 252, .45), transparent 60%), linear-gradient(150deg, #2563EB, #1D4ED8 45%, #0B1F3A); opacity: 0; transition: opacity .35s ease; }
.feature:hover::before, .price-list__item:hover::before { opacity: 1; }
.feature:hover, .price-list__item:hover { border-color: transparent; box-shadow: 0 28px 50px -22px rgba(29, 78, 216, .7); }
.feature h3, .feature p, .price-list__name, .price-list__price, .price-list__price small { transition: color .3s ease; }
.feature:hover h3, .price-list__item:hover .price-list__name, .price-list__item:hover .price-list__price { color: #fff; }
.feature:hover p, .price-list__item:hover .price-list__price small { color: #DBEAFE; }

/* 3D icon containers (no flat box behind the glossy tile) */
.feature__icon--3d { width: 62px; height: 66px; background: none !important; box-shadow: none !important; border-radius: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1.3); }
.feature__icon--3d { border-radius: 20px; }
.feature:hover .feature__icon--3d { transform: translateZ(40px) translateY(-4px) rotate(-6deg) scale(1.08); background: rgba(255, 255, 255, .16) !important; box-shadow: 0 0 0 6px rgba(255, 255, 255, .1), 0 18px 30px -12px rgba(0, 0, 0, .45) !important; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .9)); }
.price-list__icon--3d { width: 46px; height: 50px; background: none !important; border-radius: 0; }
.ai-card__icon:has(.fit-icon3d) { width: 54px; height: 58px; background: none; border-radius: 0; }

/* ---------- 3D reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: perspective(1000px) rotateX(16deg) translateY(40px); transform-origin: 50% 0; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Clients marquee ---------- */
.clients { overflow: hidden; }
.clients__inner { display: flex; align-items: center; gap: 32px; padding: 26px 0 26px 32px; max-width: none; }
.marquee { display: flex; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 56px; padding-right: 56px; flex: none; animation: fitt-marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: #475569; }
.marquee__track .icon { color: #3B82F6; width: 1rem; height: 1rem; }
@keyframes fitt-marquee { to { transform: translateX(-100%); } }

/* Client logo strip: 3D white cards with the clients' real logos */
.clients--logos { padding: 56px 0 64px; background: linear-gradient(180deg, #fff, #F8FAFC); }
.clients__head { text-align: center; margin-bottom: 28px; }
.clients__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin: 0; }
.marquee--logos { padding: 18px 0 26px; }
.marquee--logos .marquee__track { gap: 22px; padding-right: 22px; animation-duration: 42s; }
.client-logo a { display: grid; place-items: center; width: 210px; height: 100px; padding: 16px 22px; background: #fff; border: 1px solid #E2E8F0; border-radius: 18px; box-shadow: 0 1px 2px rgba(7, 20, 38, .05), 0 12px 24px -18px rgba(7, 20, 38, .35); transition: transform .35s cubic-bezier(.2, .8, .2, 1.2), box-shadow .35s, border-color .35s; }
.client-logo img { max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain; transition: transform .35s; }
.client-logo a:hover, .client-logo a:focus-visible { transform: perspective(600px) rotateX(8deg) translateY(-6px); border-color: #BFD3FB; box-shadow: 0 26px 40px -22px rgba(29, 78, 216, .55); }
.client-logo a:hover img, .client-logo a:focus-visible img { transform: scale(1.06); }
.client-logo--square a { padding: 6px 22px; }
.client-logo--square img { max-height: 88px; }
@media (max-width: 640px) {
	.client-logo a { width: 160px; height: 80px; padding: 12px 16px; }
	.client-logo img { max-height: 50px; }
}

.check-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.check-list .icon { flex: none; width: 1.6rem; height: 1.6rem; padding: 4px; border-radius: 50%; background: #DCFCE7; color: #15803D; }

/* ---------- Stats (sourced numbers) ---------- */
.section--stats { position: relative; overflow: hidden; }
.section--stats > .container { position: relative; z-index: 1; }
.section--stats .section-head p { color: var(--on-navy); }
.stats-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stats-group { display: grid; gap: 16px; align-content: start; }
.stats-group__label { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 4px; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sky) !important; font-family: var(--font); }
.stats-group__label .icon { width: 1.1rem; height: 1.1rem; }
.stat-card { text-align: left; position: relative; margin: 0; padding: 26px 24px 22px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.stat-card__num { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(135deg, #fff 20%, #7DD3FC); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.stat-card figcaption { display: grid; gap: 10px; }
.stat-card figcaption span { color: #DBEAFE; font-size: .98rem; line-height: 1.5; }
.stat-card figcaption a { color: var(--on-navy); font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.stat-card figcaption a:hover { color: #fff; }

/* ---------- Real search results ---------- */
.section--results { overflow: hidden; background: linear-gradient(180deg, #fff, #F8FAFC); }
.results-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.results-split > *, .industries > *, .photo-split > * { min-width: 0; }
.results-note { font-size: .82rem; color: var(--muted); margin: -6px 0 22px; }
.serp-stack { position: relative; min-height: 560px; perspective: 1600px; }
.serp { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 50px 80px -40px rgba(7, 20, 38, .55), 0 0 0 1px #E2E8F0; }
.serp img { display: block; width: 100%; height: auto; }
.serp__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1F5F9; border-bottom: 1px solid #E2E8F0; }
.serp__bar span { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.serp__bar span:nth-child(1) { background: #F87171; } .serp__bar span:nth-child(2) { background: #FBBF24; } .serp__bar span:nth-child(3) { background: #34D399; }
.serp__bar em { margin-left: 8px; font-style: normal; font-size: .75rem; color: var(--muted); background: #fff; padding: 2px 10px; border-radius: 6px; }
.serp--back { width: 82%; right: 0; top: 0; transform: rotateY(-12deg) rotateX(4deg); opacity: .95; }
.serp--front { width: 54%; left: 0; bottom: 0; transform: rotateY(10deg) rotateX(2deg) translateZ(60px); }
.serp-badge { position: absolute; left: 46%; top: 40%; z-index: 3; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(140deg, #22C55E, #15803D); color: #fff; box-shadow: 0 20px 40px -14px rgba(21, 128, 61, .7), 0 0 0 6px #fff; animation: fitt-float 6s ease-in-out infinite; text-align: center; line-height: 1; }
.serp-badge strong { font-family: var(--font-display); font-size: 1.8rem; }
.serp-badge span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: -18px; }

/* ---------- Portfolio: live client sites in 3D browser frames ---------- */
.section--portfolio { background: var(--bg-soft); }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.work-card { position: relative; display: grid; gap: 14px; text-decoration: none; color: var(--text); }
.work-card__browser { display: block; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 30px 50px -30px rgba(7, 20, 38, .55); transition: box-shadow .3s; }
.work-card:hover .work-card__browser { box-shadow: 0 40px 70px -30px rgba(29, 78, 216, .6); border-color: #BFD3FB; }
.work-card__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #F1F5F9; border-bottom: 1px solid #E2E8F0; }
.work-card__bar i { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.work-card__bar i:nth-child(1) { background: #F87171; } .work-card__bar i:nth-child(2) { background: #FBBF24; } .work-card__bar i:nth-child(3) { background: #34D399; }
.work-card__bar em { margin-left: 6px; font-style: normal; font-size: .7rem; color: var(--muted); background: #fff; padding: 2px 8px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-card__screen { display: block; position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: #E2E8F0; }
.work-card__screen img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transform: translateY(0); transition: transform 6s cubic-bezier(.45, 0, .55, 1); }
.work-card:hover .work-card__screen img, .work-card:focus-visible .work-card__screen img { transform: translateY(calc(-100% + 100cqh)); }
.work-card__screen { container-type: size; }
.work-card__meta { display: grid; gap: 2px; padding: 0 4px; }
.work-card__meta strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.work-card__meta span { font-size: .85rem; color: var(--muted); }

@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } .stats-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) {
	.results-split { grid-template-columns: 1fr; gap: 40px; }
	.serp-stack { min-height: 480px; }
}
@media (max-width: 640px) {
	.stats-groups, .work-grid { grid-template-columns: 1fr; }
	.serp-stack { min-height: 360px; }
	.serp--back { width: 92%; }
	.serp--front { width: 70%; }
	.serp-badge { width: 72px; height: 72px; left: auto; right: 4%; top: 46%; }
}
@media (prefers-reduced-motion: reduce) { .work-card__screen img { transition: none; } }

/* ---------- AI band ---------- */
.section--ai { position: relative; overflow: hidden; }
.section--ai > .container { position: relative; z-index: 1; }
.ai-band { grid-template-columns: .95fr 1.05fr; grid-template-areas: "art copy" "art grid"; gap: 28px 64px; }
.ai-band__art { grid-area: art; align-self: center; }
.ai-band__copy { grid-area: copy; }
.ai-band__grid { grid-area: grid; }
.ai-band__art .art { max-width: 540px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.ai-card { background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); }

/* ---------- Steps with illustrations ---------- */
.steps::before { display: none; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px 26px; text-align: center; box-shadow: 0 1px 2px rgba(7, 20, 38, .05); }
.step__art { margin: 0 auto 4px; max-width: 220px; }
.step .steps__n { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; margin: -6px 0 12px; box-shadow: 0 8px 18px -8px rgba(7, 20, 38, .6); }

/* ---------- Sections get soft 3D depth ---------- */
.section--tint { background: radial-gradient(1000px 400px at 10% 0%, #EEF4FF, transparent 60%), var(--bg-soft); }
.feature { background: linear-gradient(180deg, #fff, #FBFCFF); }
.pay-band { background: linear-gradient(120deg, #EEF4FF, #E0F2FE); box-shadow: 0 30px 60px -40px rgba(29, 78, 216, .6); }

/* ---------- Page banner with art ---------- */
.page-banner { perspective: 1200px; }
.page-banner__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; align-items: center; gap: 40px; }
.page-banner--art .page-banner__grid { grid-template-columns: 1.25fr .75fr; }
.page-banner--art { padding: 48px 0 40px; }
.page-banner__art { max-width: 340px; margin-left: auto; width: 100%; }
.page-banner__art .art { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .3)); }

/* Plugin service hero art */
.fit-hero { perspective: 1200px; }
.fit-hero__art { min-height: 0; }
.fit-hero__art .hero-art { width: 100%; max-width: 480px; }
.fit-hero__art .art { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.fit-hero__chip { z-index: 2; animation: fitt-float 7s ease-in-out infinite; }
.fit-hero__chip--b { animation-delay: -3s; }

/* ---------- CTA band with art ---------- */
.cta-band__inner { display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 40px; }
.cta-band__art { margin: -40px 0 -64px; }

/* ---------- 404 ---------- */
.error-page { padding: 64px 0 96px; }
.error-page__art { max-width: 420px; margin: 0 auto -10px; }
.error-page__code { font-size: clamp(3.5rem, 3rem + 3vw, 6rem); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.cta-band__inner { grid-template-columns: 200px 1fr; }
	.cta-band__actions { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
	.hero { min-height: 0; }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual .art--hero { margin: 0 auto; max-width: 560px; }
	.hero__scroll, .cube3d--hero { display: none; }
	.ai-band { grid-template-columns: 1fr; grid-template-areas: "copy" "art" "grid"; }
	.ai-band__art .art { max-width: 420px; }
	.page-banner--art .page-banner__grid { grid-template-columns: 1fr; }
	.page-banner__art, .cube3d--banner { display: none; }
	.cta-band__inner { grid-template-columns: 1fr; text-align: left; }
	.cta-band__art { display: none; }
}
@media (max-width: 640px) {
	.container, .fit-wrap { padding-left: 16px; padding-right: 16px; }
	.hero__visual { display: block; }
	.hero__visual .float-card { display: none; }
	.clients__inner { padding-left: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
	.marquee { width: 100%; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.art *, .cube3d, .orb, .marquee__track, .float-card, .fit-hero__chip, .hero__scroll span, .hero__visual, .hero__copy > * { animation: none !important; }
	.art .bar, .art .grow { transform: none; }
	.art .draw { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Services mega menu
   ========================================================================== */
.main-nav .menu > li.has-mega { position: static; display: flex; align-items: center; }
.main-nav .menu > li.has-mega > a { padding-top: 26px; padding-bottom: 26px; margin: -18px 0; }
.mega-toggle { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; border: 0; background: none; color: var(--muted); border-radius: 6px; cursor: pointer; }
.mega-toggle svg { width: 16px; height: 16px; transition: transform .25s; }
.mega-toggle:hover { color: var(--primary); background: var(--tint); }
.has-mega:hover .mega-toggle svg, .has-mega.is-open .mega-toggle svg, .has-mega:focus-within .mega-toggle svg { transform: rotate(180deg); color: var(--primary); }
.has-mega:hover > a, .has-mega.is-open > a { color: var(--primary); background: var(--tint); }

.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 999; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(7, 20, 38, .45); opacity: 0; visibility: hidden; transform: perspective(1400px) rotateX(-6deg) translateY(8px); transform-origin: 50% 0; transition: opacity .22s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .22s; }
.has-mega:hover > .mega, .has-mega.is-open > .mega, .has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.mega__inner { display: grid; grid-template-columns: 1fr 280px; gap: 32px; padding-top: 30px; padding-bottom: 28px; }
.mega__cols { columns: 3; column-gap: 28px; }
.mega__col { break-inside: avoid; margin-bottom: 18px; }
.mega__group { margin: 0 0 8px; padding: 0 10px 8px; border-bottom: 1px solid var(--line); display: grid; gap: 1px; }
.mega__group span { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.mega__group small { font-size: .8rem; color: var(--muted); }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.main-nav .mega .mega__item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--text); background: none; transition: background .2s, transform .2s; }
.main-nav .mega .mega__item:hover, .main-nav .mega .mega__item:focus-visible { background: var(--tint); transform: translateX(3px); color: var(--text); }
.mega__icon { width: 36px; height: 38px; transition: transform .3s cubic-bezier(.2, .8, .2, 1.3); }
.mega__item:hover .mega__icon { transform: rotate(-8deg) scale(1.1); }
.mega__text { display: grid; min-width: 0; }
.mega__text strong { font-size: .95rem; color: var(--ink); line-height: 1.25; }
.mega__text span { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega__price { font-size: .76rem; color: var(--muted); white-space: nowrap; text-align: right; }
.mega__price b { display: block; font-size: .9rem; color: var(--ink); }
.mega__feature { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 20px; color: #fff; background: radial-gradient(300px 200px at 90% 0%, rgba(125, 211, 252, .35), transparent 60%), linear-gradient(160deg, var(--navy), var(--ink)); box-shadow: 0 30px 50px -30px rgba(7, 20, 38, .7); }
.mega__feature-art { display: block; width: 150px; margin: -10px auto -6px; }
.mega__feature strong { font-family: var(--font-display); font-size: 1.15rem; }
.mega__feature p { margin: 0 0 6px; color: var(--on-navy); font-size: .9rem; }
.main-nav .mega .mega__feature .btn { display: flex; justify-content: center; padding: .7rem 1rem; border-radius: var(--radius-sm); }
.main-nav .mega .mega__feature-link { color: var(--sky); font-weight: 600; font-size: .88rem; text-decoration: none; text-align: center; padding: 0; background: none; }
.main-nav .mega .mega__feature-link:hover { color: #fff; background: none; }
.mega__foot { background: var(--bg-soft); border-top: 1px solid var(--line); }
.mega__foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; font-size: .85rem; color: var(--muted); }
.mega__foot-inner > span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.mega__foot-inner .icon { color: #16A34A; width: 1.1rem; height: 1.1rem; }
.mega__foot-links { display: flex; gap: 22px; }
.main-nav .mega .mega__foot-links a { padding: 0; background: none; color: var(--text); font-weight: 600; text-decoration: none; }
.main-nav .mega .mega__foot-links a.is-strong { color: var(--primary); }
.main-nav .mega .mega__foot-links a:hover { color: var(--primary); background: none; }

@media (max-width: 1200px) { .mega__cols { columns: 2; } .mega__inner { grid-template-columns: 1fr 240px; } }

/* Mobile: the mega menu becomes an accordion inside the slide-in menu */
@media (max-width: 960px) {
	/* backdrop-filter would make the header the containing block of the fixed slide-in menu (clipping it) */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.nav-open .topbar { display: none; }
	.main-nav .menu > li.has-mega { display: flex; flex-wrap: wrap; }
	.main-nav .menu > li.has-mega > a { flex: 1; padding: .9rem .75rem; margin: 0; }
	.mega-toggle { width: 44px; height: 44px; margin: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
	.mega { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; transition: none; }
	.has-mega:hover > .mega, .has-mega:focus-within > .mega { display: none; }
	.has-mega.is-open > .mega { display: block; }
	.mega__inner { grid-template-columns: 1fr; padding: 12px 0 0; gap: 16px; }
	.mega__cols { columns: 1; }
	.mega__feature-art, .mega__foot { display: none; }
	.main-nav .mega .mega__item { border-bottom: 0; }
	.main-nav .mega a { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .mega { transition: none; transform: none; } }
