/* liquid.css: the twelve "liquid glass and 3D" additions of v5.6 (founder 2026-11-15: "Add all the features").
   Scripts: liquid.js (all pages) and liquid3d.js (three.js, homepage only). Numbers match the pictures he approved:
     1 glass that bends · 2 liquid header · 3 merging drops · 4 water ripple · 5 the robot travels · 6 service objects
     7 devices open on scroll · 8 living liquid · 9 camera through the glass · 10 card grows · 11 sound · 12 glass lens
   House rules kept: blue family only, no white haze, nothing here is needed to read or use the page. */

.lq-defs { position: absolute; width: 0; height: 0; pointer-events: none; }

/* ---------- 1. Glass that bends what is behind it (Chromium on computers; everyone else keeps the frost) ---------- */
@media (min-width: 921px) {
  .lq-bent { -webkit-backdrop-filter: url(#lq-bend) blur(4px) saturate(175%) !important; backdrop-filter: url(#lq-bend) blur(4px) saturate(175%) !important; }
  .site-header .lq-bent.nav-wrap, .site-header.scrolled .lq-bent.nav-wrap { background: linear-gradient(140deg, rgba(20, 50, 120, .46), rgba(6, 16, 44, .58)); }
}

/* ---------- 2. Liquid header ---------- */
@media (min-width: 921px) {
  .lq-head .nav-wrap { max-width: var(--container); transition: max-width .7s cubic-bezier(.3, 1.45, .45, 1), height .5s cubic-bezier(.3, 1.45, .45, 1), box-shadow .3s ease, background .3s ease; }
  .lq-head.lq-compact .nav-wrap { max-width: var(--lq-w, 1000px); height: 58px; }
  .lq-head.lq-compact .nav-wrap.lq-squash { animation: lq-squash .7s cubic-bezier(.3, .7, .3, 1); }
  .lq-nav { position: relative; }
  .lq-nav > a:not(.btn) { position: relative; z-index: 1; }
  .lq-nav.lq-has-drop > a:not(.btn):hover, .lq-nav.lq-has-drop > a.is-active { background: none; box-shadow: none; }
  .lq-drop { position: absolute; left: 0; top: 50%; height: 38px; width: 60px; margin-top: -19px; border-radius: 999px; pointer-events: none; z-index: 0; opacity: 0;
    background: linear-gradient(180deg, rgba(111, 220, 255, .3), rgba(47, 134, 255, .36));
    box-shadow: inset 0 0 0 1px rgba(140, 205, 255, .55), inset 0 -6px 12px rgba(20, 70, 190, .35), 0 6px 18px rgba(20, 80, 220, .35);
    transition: transform .34s cubic-bezier(.3, 1.35, .5, 1), width .34s cubic-bezier(.3, 1.35, .5, 1), opacity .25s ease; }
  .lq-drop.on { opacity: 1; }
  .lq-drop.stretch { transition-duration: .16s; transition-timing-function: ease-out; }
}
@keyframes lq-squash { 0% { border-radius: 999px; } 35% { border-radius: 38px 38px 64px 64px / 30px 30px 46px 46px; } 100% { border-radius: 999px; } }

/* ---------- 3. Merging drops (the project filters) ---------- */
.lq-drops { position: relative; }
.lq-drops > .chip { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; z-index: 1; }
.lq-drops > .chip::before { display: none; }
.lq-drops > .chip.is-active { background: none; box-shadow: none; }
.lq-goo[hidden] { display: none; }
.lq-goo { position: absolute; inset: -14px; pointer-events: none; z-index: 0; filter: url(#lq-goo); }
.lq-goo i { position: absolute; border-radius: 999px; background: #1c4fc4; transition: transform .38s cubic-bezier(.3, 1.4, .5, 1), background-color .3s ease; }
.lq-goo i.on { background: #ffcc05; }
.lq-goo i.big { transform: scale(1.13, 1.14); }
.lq-goo i.pull-l { transform: translateX(7px) scaleX(1.06); }
.lq-goo i.pull-r { transform: translateX(-7px) scaleX(1.06); }
.lq-goo b { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #ffcc05; opacity: 0; }
.lq-goo b.go { animation: lq-drip .75s cubic-bezier(.4, 0, .6, 1); }
@keyframes lq-drip { 0% { opacity: 1; transform: translateY(-10px) scale(.7); } 45% { opacity: 1; transform: translateY(9px) scale(1, 1.25); } 100% { opacity: 1; transform: translateY(-12px) scale(.4); } }

/* ---------- 4. Water ripple on touch ---------- */
.lq-rip { position: absolute; overflow: hidden; pointer-events: none; z-index: 45; contain: strict; }
.lq-rip i { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid rgba(111, 220, 255, .75); opacity: 0; animation: lq-ring .9s cubic-bezier(.2, .6, .3, 1) forwards; }
.lq-rip i:nth-child(2) { animation-delay: .12s; border-color: rgba(111, 220, 255, .5); }
.lq-rip i:nth-child(3) { animation-delay: .24s; border-color: rgba(47, 134, 255, .45); }
.lq-rip u { position: absolute; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 134, 255, .28), rgba(47, 134, 255, 0) 65%); animation: lq-spot .7s ease-out forwards; }
@keyframes lq-ring { 0% { opacity: .95; transform: scale(.2); } 100% { opacity: 0; transform: scale(var(--lq-s, 9)); } }
@keyframes lq-spot { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- 5. The robot travels the page ---------- */
.lq-guide { position: fixed; left: 0; top: 0; width: 132px; height: 200px; z-index: 40; pointer-events: none; opacity: 0; will-change: transform, opacity; transition: opacity .35s ease; }
.lq-guide.on { opacity: 1; }
.lq-guide canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 920px) { .lq-guide { width: 76px; height: 114px; } }

/* ---------- 6. Services as glass 3D objects ---------- */
.lq-objs .sv-front { position: relative; }
.lq-obj { position: absolute; right: -14px; top: -18px; width: 124px; height: 124px; cursor: grab; touch-action: pan-y; z-index: 2; opacity: 0; transition: opacity .6s ease; }
.lq-obj.ready { opacity: 1; }
.lq-obj:active { cursor: grabbing; }
@media (max-width: 420px) { .lq-obj { width: 96px; height: 96px; } }

/* ---------- 7. The laptop and phone open as you scroll; the page scrolls on their screens ---------- */
.fx-dev.lq-hinge .fx-lid { transition: none; transform: rotateX(var(--lq-lid, -86deg)); }
.fx-dev.lq-hinge .fx-phone { transition: transform .5s ease, opacity .5s ease; }
.fx-dev.lq-hinge .fx-screen { box-shadow: 0 -3px 0 #24345f, 0 -5px 0 #101a38, 0 30px 60px rgba(0, 6, 28, .5); }
.fx-dev.lq-hinge .fx-base { height: 18px; background: linear-gradient(#cfd9f2 0, #aab8dc 28%, #7181a8 70%, #4f5d85 100%); box-shadow: 0 3px 0 #3a4670, 0 26px 34px rgba(0, 6, 28, .6); }
.fx-dev.lq-hinge .fx-phone { box-shadow: 3px 3px 0 #24345f, 5px 5px 0 #101a38, 0 24px 44px rgba(0, 6, 28, .6); }
.fx-screen img.lq-long, .fx-phone img.lq-long { object-position: 50% 0; }
.fx-screen img.lq-long.on { animation: lq-page 22s ease-in-out 1.2s infinite alternate; }
.fx-phone img.lq-long.on { animation: lq-page 26s ease-in-out 1.2s infinite alternate; }
@keyframes lq-page { 0%, 6% { object-position: 50% 0; } 94%, 100% { object-position: 50% 100%; } }
.lq-glare { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; background: linear-gradient(115deg, rgba(111, 220, 255, 0) 38%, rgba(111, 220, 255, .16) 48%, rgba(111, 220, 255, 0) 58%); background-size: 260% 100%; }
.lq-glare.go { animation: lq-glare 1.2s ease-out; }
@keyframes lq-glare { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -60% 0; } }

/* ---------- 8. Living liquid behind the hero ---------- */
.lq-fluid { position: absolute; left: 0; top: -130px; width: 100%; height: calc(100% + 130px); z-index: -2; pointer-events: none; opacity: 0; transition: opacity 1.4s ease;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%); mask-image: linear-gradient(#000 62%, transparent 100%); }
.lq-fluid.on { opacity: .9; }
.wow-night-on .lq-fluid.on { opacity: .45; }

/* ---------- 9. The camera flies through the glass (computers only) ---------- */
.lq-cam { will-change: transform, opacity; }
.lq-portal { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; z-index: 30; opacity: 0;
  box-shadow: inset 0 0 0 2px rgba(140, 205, 255, .7), inset 0 0 60px rgba(47, 134, 255, .35), inset 14px 0 30px rgba(111, 220, 255, .12), inset -14px 0 30px rgba(110, 100, 255, .14), 0 0 50px rgba(47, 134, 255, .3); }

/* ---------- 10. The card you click grows into the project ---------- */
.lq-proj { width: min(1040px, 100% - 28px); max-width: none; max-height: none; padding: 0; border: 0; overflow: visible; background: none; color: var(--text); }
.lq-proj::backdrop { background: rgba(2, 7, 22, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: lq-fade .35s ease; }
.lq-proj.closing::backdrop { opacity: 0; transition: opacity .3s ease; }
.lq-proj-in { position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 28px); }
.lq-proj-bg { position: absolute; inset: 0; border-radius: 26px; background: linear-gradient(160deg, #0e2456, #071640 55%, #050f2c); box-shadow: inset 0 0 0 1px rgba(120, 180, 255, .3), 0 40px 110px rgba(0, 4, 24, .8); transition: opacity .3s ease; }
.lq-proj.anim .lq-proj-bg { opacity: 0; }
.lq-proj-shot { position: relative; z-index: 1; flex: 0 1 auto; aspect-ratio: 16 / 10; max-height: 62dvh; border-radius: 26px 26px 0 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: #050b1d; transform-origin: 0 0; scrollbar-width: thin; scrollbar-color: rgba(120, 180, 255, .5) transparent; }
.lq-proj-shot img { display: block; width: 100%; height: auto; }
.lq-proj-body { position: relative; z-index: 1; padding: 22px 28px 26px; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; }
.lq-proj-body .tag { margin: 0; grid-column: 1; }
.lq-proj-body h3 { margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.15 var(--head); grid-column: 1; }
.lq-proj-body p.lq-proj-text { margin: 4px 0 0; color: var(--muted); grid-column: 1; }
.lq-proj-body .btn { grid-column: 2; grid-row: 1 / span 3; white-space: nowrap; }
.lq-proj-x { position: absolute; right: 14px; top: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: rgba(6, 16, 44, .82); box-shadow: inset 0 0 0 1px rgba(120, 180, 255, .45), 0 6px 18px rgba(0, 4, 24, .5); }
.lq-proj-x svg { width: 18px; height: 18px; }
.lq-proj.anim .lq-proj-body, .lq-proj.anim .lq-proj-x { opacity: 0; }
.lq-proj .lq-proj-body, .lq-proj .lq-proj-x { transition: opacity .3s ease .12s; }
@keyframes lq-fade { from { opacity: 0; } }
@media (max-width: 640px) { .lq-proj-body { grid-template-columns: 1fr; padding: 18px 18px 20px; } .lq-proj-body .btn { grid-column: 1; grid-row: auto; margin-top: 10px; } .lq-proj-shot { max-height: 54dvh; } }

/* ---------- 11. Sound and touch feedback: one switch, off until the visitor turns it on ---------- */
.lq-sound { flex: none; width: 36px; height: 36px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.lq-sound svg { width: 17px; height: 17px; }
.lq-sound .w { display: none; } .lq-sound .x { display: block; }
.lq-sound[aria-pressed="true"] { color: var(--cyan); border-color: rgba(111, 220, 255, .55); background: rgba(47, 134, 255, .2); }
.lq-sound[aria-pressed="true"] .w { display: block; } .lq-sound[aria-pressed="true"] .x { display: none; }
.lq-sound.lq-sound-float { position: fixed; left: 16px; bottom: 16px; z-index: 45; width: 42px; height: 42px; margin: 0; background: #0a1f58; box-shadow: 0 0 0 1px rgba(90, 150, 255, .35), 0 10px 26px rgba(0, 8, 40, .5); }
@media (max-width: 920px) { .lq-sound { align-self: flex-start; width: 46px; height: 46px; margin: 6px 0 0 4px; } }

/* ---------- 12. The headline read through a glass lens ---------- */
.lq-lens-host { position: relative; }
.lq-lens { position: absolute; left: 0; top: 0; width: 176px; height: 176px; border-radius: 50%; pointer-events: none; z-index: 4; opacity: 0; transform: translate3d(-999px, 0, 0);
  box-shadow: 0 18px 44px rgba(0, 6, 28, .6); transition: opacity .25s ease; }
.lq-lens.on { opacity: 1; }
.lq-lens-clip { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.lq-lens-pane { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 45%, #0b2c74, #05143c 78%); }
.lq-lens::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(140, 205, 255, .8), inset 7px 0 12px rgba(111, 220, 255, .22), inset -7px 0 12px rgba(110, 100, 255, .26), inset 0 -10px 22px rgba(2, 7, 22, .5); }
.lq-lens-in { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; }
.lq-lens-in > * { animation: none !important; opacity: 1 !important; -webkit-mask: none !important; mask: none !important; }
.lq-lens.bend .lq-lens-pane { filter: url(#lq-lensbend); }
@media (max-width: 640px) { .lq-lens { width: 120px; height: 120px; } }

@media (prefers-reduced-motion: reduce) {
  .lq-head .nav-wrap, .lq-drop, .lq-goo i { transition: none !important; }
  .fx-screen img.lq-long.on, .fx-phone img.lq-long.on, .lq-glare.go { animation: none; }
  .lq-proj::backdrop { animation: none; }
}
