/* ===== fx3d.css: the eleven 3D and motion additions of v4.12 (founder 2026-11-15: "Build all the features").
   Every block here is switched on by fx3d.js adding a class, so with the script missing the page is the page it
   was. Motion is off under prefers-reduced-motion (end of file). ===== */

/* ---------- 1. Globe in the live user card ---------- */
.live-users.fx-has-globe { display: grid; grid-template-columns: minmax(0, 1fr) 190px; column-gap: 18px; align-items: center; }
.live-users.fx-has-globe > * { grid-column: 1; }
.live-users.fx-has-globe > .fx-globe { grid-column: 2; grid-row: 1 / span 4; }
.fx-globe { display: block; width: 190px; height: 190px; justify-self: end; }
@media (max-width: 620px) {
  .live-users.fx-has-globe { grid-template-columns: minmax(0, 1fr); }
  .live-users.fx-has-globe > .fx-globe { grid-column: 1; grid-row: auto; justify-self: center; width: 170px; height: 170px; margin-top: 10px; }
}

/* ---------- 3. Device showcase above the projects ---------- */
.fx-dev { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 44px; align-items: center; margin: 6px 0 46px; }
.fx-dev-stage { position: relative; perspective: 1700px; padding: 0 9% 0 4%; }
.fx-laptop { position: relative; transform: rotateY(-9deg) rotateX(3deg); transition: transform .7s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.fx-dev:hover .fx-laptop { transform: none; }          /* the one you look at is flat and sharp */
.fx-lid { transform-origin: 50% 100%; transform: rotateX(-86deg); transition: transform 1.3s cubic-bezier(.2, .8, .2, 1); }
.fx-dev.in .fx-lid { transform: none; }
.fx-screen { position: relative; aspect-ratio: 16 / 10; border: 11px solid #0c1630; border-bottom-width: 13px; border-radius: 16px 16px 0 0; overflow: hidden; background: #050b1d;
  box-shadow: 0 0 0 1px rgba(160, 200, 255, .18), 0 0 60px rgba(47, 134, 255, .28); }
.fx-screen img, .fx-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .7s ease; }
.fx-screen img.on, .fx-phone img.on { opacity: 1; }
.fx-base { height: 16px; margin: 0 -7%; border-radius: 0 0 16px 16px; background: linear-gradient(#c3cfea, #7181a8); position: relative; }
.fx-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #4c597d; }
.fx-phone { position: absolute; right: 0; bottom: -18px; width: 21%; aspect-ratio: 9 / 18.5; border: 7px solid #0c1630; border-radius: 22px; overflow: hidden; background: #050b1d;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(160, 200, 255, .2); transform: translateY(40px); opacity: 0; transition: transform 1s cubic-bezier(.2, .8, .2, 1) .5s, opacity .6s ease .5s; }
.fx-phone img { object-position: top left; }
.fx-dev.in .fx-phone { transform: none; opacity: 1; }
.fx-dev-info .tag { margin: 0 0 8px; }
.fx-dev-info h3 { font: 800 clamp(26px, 3vw, 38px)/1.12 var(--head); margin: 0 0 12px; }
.fx-dev-info p.fx-dev-text { color: var(--muted); margin: 0 0 20px; min-height: 3.2em; }
.fx-dev-dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fx-dev-dots button { font: 700 13px var(--body); color: var(--muted); padding: 7px 13px; border-radius: 99px; border: 1px solid rgba(160, 200, 255, .2); background: rgba(255, 255, 255, .04); cursor: pointer; }
.fx-dev-dots button.on { color: #06122e; background: var(--yellow); border-color: var(--yellow); }
@media (max-width: 900px) { .fx-dev { grid-template-columns: 1fr; gap: 40px; margin-bottom: 34px; } .fx-dev-stage { padding: 0 8% 0 2%; } .fx-laptop { transform: none; } }

/* ---------- 4. The "how it works" scene ---------- */
.fx-flow { position: relative; width: min(100%, 620px); margin: 0 auto 40px; }
.fx-win { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, rgba(20, 40, 92, .75), rgba(6, 16, 44, .9));
  border: 1px solid rgba(160, 200, 255, .24); box-shadow: 0 26px 60px rgba(0, 0, 0, .45); }
.fx-bar { position: absolute; left: 0; right: 0; top: 0; height: 13%; display: flex; align-items: center; gap: 6px; padding: 0 3%; background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fx-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.fx-url { margin-left: 8px; flex: 1; max-width: 62%; height: 58%; border-radius: 99px; background: rgba(0, 0, 0, .3); display: flex; align-items: center; gap: 6px; padding: 0 10px; font: 700 11.5px var(--body); color: var(--muted); white-space: nowrap; overflow: hidden; transition: color .5s, box-shadow .5s; }
.fx-url svg { width: 11px; height: 11px; flex: none; opacity: 0; transition: opacity .5s; }
.fx-flow[data-s="3"] .fx-url { color: #b8f5d0; box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .7); }
.fx-flow[data-s="3"] .fx-url svg { opacity: 1; }
.fx-body { position: absolute; left: 0; right: 0; top: 13%; bottom: 0; }
.fx-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
/* stage 1: two speech bubbles */
.fx-flow[data-s="0"] .fx-talk { opacity: 1; }
.fx-talk span { position: absolute; padding: 9px 14px; border-radius: 16px; font: 700 13.5px var(--body); max-width: 62%; transform: translateY(12px); opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
.fx-talk span:nth-child(1) { left: 6%; top: 16%; background: rgba(255, 255, 255, .92); color: #06122e; border-bottom-left-radius: 4px; }
.fx-talk span:nth-child(2) { right: 6%; top: 48%; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; transition-delay: .7s; }
.fx-flow[data-s="0"] .fx-talk span { transform: none; opacity: 1; }
/* stages 2-4 share the same blocks: outlined, then filled, then live */
.fx-flow:not([data-s="0"]) .fx-site { opacity: 1; }
.fx-blk { position: absolute; border-radius: 8px; border: 2px dashed rgba(111, 220, 255, .75); background: transparent; transform: scale(.94); opacity: 0;
  transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1), background .7s, border-color .7s; }
.fx-flow:not([data-s="0"]) .fx-blk { opacity: 1; transform: none; }
.fx-blk.b1 { left: 5%; right: 5%; top: 8%; height: 12%; }
.fx-blk.b2 { left: 5%; width: 54%; top: 26%; height: 44%; transition-delay: .12s; }
.fx-blk.b3 { right: 5%; width: 32%; top: 26%; height: 20%; transition-delay: .24s; }
.fx-blk.b4 { right: 5%; width: 32%; top: 50%; height: 20%; transition-delay: .36s; }
.fx-blk.b5 { left: 5%; right: 5%; top: 76%; height: 15%; transition-delay: .48s; }
.fx-flow[data-s="2"] .fx-blk, .fx-flow[data-s="3"] .fx-blk { border-style: solid; border-color: transparent; }
.fx-flow[data-s="2"] .b1, .fx-flow[data-s="3"] .b1 { background: rgba(255, 255, 255, .16); }
.fx-flow[data-s="2"] .b2, .fx-flow[data-s="3"] .b2 { background: linear-gradient(135deg, var(--blue), var(--violet)); }
.fx-flow[data-s="2"] .b3, .fx-flow[data-s="3"] .b3 { background: rgba(111, 220, 255, .32); }
.fx-flow[data-s="2"] .b4, .fx-flow[data-s="3"] .b4 { background: rgba(255, 214, 10, .85); }
.fx-flow[data-s="2"] .b5, .fx-flow[data-s="3"] .b5 { background: rgba(255, 255, 255, .1); }
.fx-quote { position: absolute; right: 4%; bottom: 6%; padding: 7px 12px; border-radius: 10px; background: var(--yellow); color: #06122e; font: 800 12.5px var(--head); transform: translateY(14px) rotate(-4deg); opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1) .7s, opacity .4s .7s; }
.fx-flow[data-s="1"] .fx-quote { transform: rotate(-4deg); opacity: 1; }
.fx-live { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 99px; background: #16a34a; color: #fff; font: 800 16px var(--head);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, .2), 0 14px 34px rgba(0, 0, 0, .45); transform: translate(-50%, -50%) scale(.5); opacity: 0; transition: transform .6s cubic-bezier(.2, 1.4, .3, 1) .35s, opacity .35s .35s; }
.fx-live svg { width: 18px; height: 18px; }
.fx-flow[data-s="3"] .fx-live { transform: translate(-50%, -50%); opacity: 1; }
.fx-prog { display: flex; gap: 8px; margin-top: 14px; }
.fx-prog i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; position: relative; }
.fx-prog i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.fx-flow[data-s="0"] .fx-prog i:nth-child(-n+1)::after, .fx-flow[data-s="1"] .fx-prog i:nth-child(-n+2)::after,
.fx-flow[data-s="2"] .fx-prog i:nth-child(-n+3)::after, .fx-flow[data-s="3"] .fx-prog i::after { transform: none; }
.steps .step.fx-on { border-color: rgba(111, 220, 255, .6); box-shadow: var(--glass-shadow), 0 0 0 1px rgba(111, 220, 255, .35), 0 18px 44px rgba(0, 20, 80, .5); }
.steps .step { transition: border-color .4s, box-shadow .4s; }

/* ---------- 5. Service cards that flip ---------- */
.service.fx-flip { perspective: 1200px; }
.fx-flip .sv-in { display: grid; flex: 1; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .8, .2, 1); }
.fx-flip .sv-front, .fx-flip .sv-back { grid-area: 1 / 1; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; min-width: 0; }
.fx-flip .sv-back { transform: rotateY(180deg); }
.fx-flip.is-flipped .sv-in { transform: rotateY(180deg); }
.fx-flip .sv-front > p { color: var(--muted); }
.fx-flip .sv-more { margin-top: auto; padding-top: 18px; align-self: flex-start; background: none; border: 0; cursor: pointer; font: 700 14.5px var(--body); color: rgb(var(--c)); display: inline-flex; align-items: center; gap: 7px; }
.fx-flip .sv-more svg { width: 16px; height: 16px; }
.fx-flip .sv-back h4 { font: 800 18px var(--head); margin: 0 0 4px; color: #fff; }
.fx-flip .sv-back ul { margin: 14px 0 20px; }
.fx-flip .sv-back .service-link { margin-top: auto; }
.fx-flip .sv-back .sv-less { position: absolute; right: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(160, 200, 255, .25); background: rgba(255, 255, 255, .06); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.fx-flip .sv-back { position: relative; }
.fx-flip .sv-less svg { width: 14px; height: 14px; }

/* ---------- 6. Price blocks in the estimate ---------- */
.fx-stack { display: block; margin: 4px auto 10px; max-width: 100%; overflow: visible; }
.fx-stack g { transition: transform .55s cubic-bezier(.2, 1.3, .3, 1), opacity .35s ease; }
.fx-stack g.new { transform: translateY(-46px); opacity: 0; }

/* ---------- 7. Depth on the portrait ---------- */
.about-photo.fx-depth { transform: perspective(1100px) rotateY(calc(var(--fx-px, 0) * 6deg)) rotateX(calc(var(--fx-py, 0) * -5deg)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.about-photo.fx-depth.is-moving { transition: transform .12s linear; }
.about-photo.fx-depth::after { content: ""; position: absolute; inset: 8% -5% -6% 7%; border-radius: 32px; background: linear-gradient(140deg, rgba(47, 134, 255, .4), rgba(139, 92, 246, .28)); transform: translateZ(-50px); z-index: -1; }
.about-photo.fx-depth .about-badge { transform: translateZ(46px); }

/* ---------- 8. Glass dividers between sections ---------- */
.fx-div { position: relative; height: 38px; overflow: hidden; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, .02), rgba(111, 220, 255, .09) 30%, rgba(255, 255, 255, .03) 48%, rgba(139, 92, 246, .1) 76%, rgba(255, 255, 255, .02));
  border-top: 1px solid rgba(160, 200, 255, .16); border-bottom: 1px solid rgba(160, 200, 255, .16); }
.fx-div::after { content: ""; position: absolute; top: -60%; bottom: -60%; left: -18%; width: 14%; transform: rotate(18deg); filter: blur(7px);
  background: linear-gradient(90deg, transparent, rgba(190, 225, 255, .3), transparent); opacity: 0; }
.fx-div.in::after { animation: fx-sweep 1.5s ease-out .15s 1 both; }
@keyframes fx-sweep { 0% { left: -18%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 108%; opacity: 0; } }

/* ---------- 9. Numbers that roll ---------- */
.fx-odo { display: inline-flex; align-items: flex-start; height: 1em; line-height: 1; overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.fx-odo .od { display: inline-block; height: 1em; overflow: hidden; text-align: center; }
.fx-odo .od > span { display: block; transition: transform 1.1s cubic-bezier(.2, .85, .25, 1); will-change: transform; }
.fx-odo .od > span > i { display: block; height: 1em; line-height: 1; font-style: normal; }
.fx-odo .os { display: inline-block; height: 1em; line-height: 1; }
/* the digits are spans inside a figure whose label is also a span (.about-stats span): keep the figure's own type */
.fx-odo.fx-odo span, .fx-odo.fx-odo i { font: inherit; color: inherit; letter-spacing: inherit; }
.fx-odo.fx-odo .od > span > i, .fx-odo.fx-odo .os, .fx-odo.fx-odo .od { line-height: 1; }

/* ---------- 10. Logo intro, first visit only. intro.js adds .fx-intro to <html> before the page paints. The exit is
   a CSS animation, so the page is uncovered after 1.5s even if every script on it failed. ---------- */
.fx-intro-box { display: none; }
html.fx-intro .fx-intro-box { position: fixed; inset: 0; z-index: 4000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #020716; pointer-events: none;
  animation: fx-intro-out .45s ease 1.15s 1 both; }
html.fx-intro .fx-intro-box img { width: min(38vw, 190px); height: auto; animation: fx-intro-pop .7s cubic-bezier(.2, 1.5, .3, 1) .05s 1 both; }
html.fx-intro .fx-intro-box span { font: 800 clamp(40px, 9vw, 64px)/1 var(--head, sans-serif); letter-spacing: -.03em; color: #fff; animation: fx-intro-rise .55s ease .4s 1 both; }
html.fx-intro .fx-intro-box span b { color: #6fdcff; font-weight: 800; }
@keyframes fx-intro-pop { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fx-intro-rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fx-intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- 11. Cursor light under the glass (soft blue, never white: the white glare was removed 2026-11-15) ---------- */
.fx-light:not(.fx-light-keep) { position: relative; }
.fx-light::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s ease; z-index: 0;
  background: radial-gradient(260px circle at var(--fx-lx, 50%) var(--fx-ly, 50%), rgba(111, 220, 255, .13), rgba(47, 134, 255, .06) 45%, transparent 70%); }
.fx-light.fx-lit::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fx-lid, .fx-phone, .fx-laptop, .fx-flip .sv-in, .fx-stack g, .fx-odo .od > span, .fx-blk, .fx-talk span, .fx-live, .fx-quote { transition: none !important; }
  .fx-lid { transform: none; } .fx-phone { transform: none; opacity: 1; }
  .fx-div.in::after { animation: none; }
  html.fx-intro .fx-intro-box { display: none; }
  .about-photo.fx-depth { transform: none; }
}
