/* Original symbol + photographic wordmark; only decorative light overlays move. */
.site-header .brand.bq-brand{display:flex;flex-direction:row;align-items:center;gap:10px;width:186.8px;flex:none;position:relative;isolation:isolate}
.bq-brand-header .header-inner{min-height:71px;gap:18px}
.bq-brand .bq-symbol{display:block;position:relative;width:44.8px;height:44.8px;flex:none}
.site-header .brand.bq-brand .bq-mark{display:block;width:100%;height:100%;animation:none;transform:none;opacity:1}
.bq-brand .bq-contour{isolation:isolate;will-change:opacity;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}
.site-header .brand.bq-brand .bq-wordmark{isolation:isolate;will-change:transform;display:block;width:132px;height:auto;filter:none;opacity:1;transform:none;animation:none}
.bq-brand .bq-wordmark-wrap{display:block;position:relative;flex:none}
/* Rows 128–160 of the 849 x 205 artwork are empty: keep glow off both text lines. */
.bq-brand .bq-underline{position:absolute;left:0;top:62.439024%;width:100%;height:15.609756%;overflow:hidden;pointer-events:none;opacity:0;isolation:isolate}
.bq-brand .bq-underline::before{content:"";position:absolute;left:0;top:50%;margin-top:-.325px;width:40%;height:.65px;border-radius:999px;background:linear-gradient(90deg,transparent,#0b94ff 45%,#38d6ff 80%,#a4f7ff 93%,transparent);filter:drop-shadow(0 0 .55px #16caff);transform:translateX(var(--bq-streak-x,-100%));will-change:transform}
.bq-brand .bq-brand-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1279px){.js .bq-brand-header .main-nav{max-height:calc(100dvh - 72px)}}
@media(max-width:760px){.bq-brand-header .header-inner{min-height:63px;gap:7px}.js .bq-brand-header .main-nav{max-height:calc(100dvh - 64px)}.site-header .brand.bq-brand{width:146px;gap:6px}.bq-brand .bq-symbol{width:32px;height:32px}.site-header .brand.bq-brand .bq-wordmark{width:108px}}
@media(min-width:360px) and (max-width:389px){.bq-brand-header .flag-link{width:40px}.bq-brand-header .header-tools{gap:6px}}
@media(min-width:360px) and (max-width:374px){.site-header .brand.bq-brand{width:142.8px}.bq-brand .bq-symbol{width:28.8px;height:28.8px}.bq-brand-header .flag-link{width:36px}}
@media(max-width:359px){.site-header .brand.bq-brand{width:128.8px}.bq-brand .bq-symbol{width:28.8px;height:28.8px}.site-header .brand.bq-brand .bq-wordmark{width:94px}.bq-brand-header .flag-link{width:32px}}
/* Use the existing compact consultation label treatment at laptop widths. */
@media(min-width:1181px) and (max-width:1399px){.site-header.bq-brand-header .consult-label{display:none}.site-header.bq-brand-header .header-inner{gap:12px}.site-header.bq-brand-header .main-nav{gap:12px}}
@media(min-width:1280px){html:lang(ka) .site-header.bq-brand-header .consult-label{display:none}html:lang(ka) .site-header.bq-brand-header .header-inner{gap:10px}html:lang(ka) .site-header.bq-brand-header .main-nav{gap:12px}}
/* Reuse the existing disclosure menu when the horizontal header needs it. */
@media(min-width:1181px) and (max-width:1279px){
 .site-header.bq-brand-header .header-tools{margin-left:auto}
 .site-header.bq-brand-header .menu-toggle{display:inline-flex;align-items:center;justify-content:center}
 .site-header.bq-brand-header .main-nav{position:absolute;top:calc(100% + 1px);left:-32px;right:-32px;background:#0b1d35;border-bottom:1px solid #ffffff25;padding:18px 32px;align-items:stretch;flex-direction:column;gap:0;box-shadow:0 16px 25px #0003;max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}
 .site-header.bq-brand-header .main-nav>a{font-size:14px;padding:12px 8px;border-bottom:1px solid #ffffff0b;white-space:normal}
 .js .site-header.bq-brand-header .main-nav:not(.is-open){display:none}
 .site-header.bq-brand-header .mobile-contacts{display:flex;gap:12px;padding:18px 8px 8px}
 html:not(.js) .site-header.bq-brand-header .header-inner{flex-wrap:wrap;padding-block:14px}
 html:not(.js) .site-header.bq-brand-header .main-nav{position:static;order:3;flex-basis:100%;box-shadow:none;max-height:none}
 html:not(.js) .site-header.bq-brand-header .menu-toggle{display:none}
}
@media(prefers-reduced-motion:reduce){.bq-brand .bq-contour,.bq-brand .bq-underline{display:none}}

/* Existing homepage motion remains independent of the logo. */
@media (prefers-reduced-motion: no-preference) {
  html.bq-motion-ready .bq-reveal {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 720ms cubic-bezier(.2,.7,.2,1),
      translate 720ms cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--bq-delay, 0ms);
  }

  html.bq-motion-ready .bq-reveal.bq-visible {
    opacity: 1;
    translate: 0 0;
  }

  /* Actual artwork moves gently; text and rasterized interface labels stay crisp. */
  .bq-hero-art {
    animation: bq-hero-art-drift 9s ease-in-out infinite alternate;
  }

  @keyframes bq-hero-art-drift {
    from { transform: translate3d(0, 0, 0) scale(1.008); }
    to { transform: translate3d(-.35%, -.45%, 0) scale(1.049); }
  }

  .bq-hero-ambient {
    animation: bq-hero-ambient-wave 4.8s ease-in-out infinite alternate;
  }

  @keyframes bq-hero-ambient-wave {
    from { opacity: .4; transform:translate3d(-1%,1%,0) scale(.98); }
    to { opacity: 1; transform:translate3d(1%,-1%,0) scale(1.04); }
  }

  /* A travelling illuminated dash follows the existing futuristic neon orbit. */
  .bq-hero-orbit-pulse {
    animation: bq-hero-orbit-trace 6.5s linear infinite;
  }

  @keyframes bq-hero-orbit-trace {
    to { stroke-dashoffset: -1000; }
  }

  /* Gentle atmospheric light behind the existing hero photograph. */
  .classic-hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 5%;
    left: 47%;
    width: min(45vw, 660px);
    height: min(45vw, 660px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 173, 255, .17), rgba(30, 173, 255, .05) 37%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    animation: bq-hero-glow 10s ease-in-out infinite alternate;
  }

  .classic-hero-grid { position: relative; z-index: 2; }

  /* Light crossing the product illustration; no animation of text or buttons. */
  .classic-hero-grid::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 6%;
    bottom: 6%;
    left: 49%;
    width: 17%;
    background: linear-gradient(104deg, transparent 15%, rgba(43,154,255,.015) 34%, rgba(146,230,255,.24) 50%, rgba(60,193,255,.04) 65%, transparent 85%);
    filter: blur(13px);
    pointer-events: none;
    opacity: 0;
    animation: bq-hero-light-sweep 12s ease-in-out infinite;
  }

  /* A few restrained cyan sparkles echo the artwork's existing neon orbit. */
  .classic-hero-grid::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 8% 0 10% 54%;
    background:
      radial-gradient(circle at 15% 38%, rgba(233,253,255,.95) 0 1.5px, rgba(44,195,255,.55) 2.5px, transparent 6px),
      radial-gradient(circle at 52% 12%, rgba(233,253,255,.85) 0 1px, rgba(44,195,255,.48) 2px, transparent 5px),
      radial-gradient(circle at 85% 34%, rgba(233,253,255,.9) 0 1.5px, rgba(44,195,255,.5) 2.5px, transparent 7px),
      radial-gradient(circle at 31% 76%, rgba(233,253,255,.8) 0 1px, rgba(44,195,255,.38) 2px, transparent 5px),
      radial-gradient(circle at 74% 81%, rgba(233,253,255,.85) 0 1px, rgba(44,195,255,.4) 2px, transparent 6px);
    filter: drop-shadow(0 0 6px rgba(46,197,255,.8));
    pointer-events: none;
    animation: bq-hero-stars 8s ease-in-out infinite alternate;
  }

  @keyframes bq-hero-light-sweep {
    0%, 14%, 100% { transform: translateX(-75%) skewX(-10deg); opacity: 0; }
    30% { opacity: .6; }
    48%, 54% { transform: translateX(270%) skewX(-10deg); opacity: 0; }
  }

  @keyframes bq-hero-stars {
    0% { transform: translate3d(0, 5px, 0); opacity: .22; }
    40% { opacity: .8; }
    100% { transform: translate3d(0, -9px, 0); opacity: .4; }
  }

  @keyframes bq-hero-glow {
    from { opacity: .45; transform: translate3d(-3%, 1%, 0) scale(.92); }
    to { opacity: 1; transform: translate3d(3%, -2%, 0) scale(1.09); }
  }

  .classic-btn.primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 132, 253, .35), 0 0 0 1px rgba(114, 221, 255, .17);
  }

  .classic-btn.primary::after {
    content: "";
    position: absolute;
    inset: -25% auto -25% 0;
    width: 42%;
    transform: translateX(-280%) skewX(-24deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .26), transparent);
    pointer-events: none;
    animation: bq-button-glint 7s ease-in-out infinite;
  }

  @keyframes bq-button-glint {
    0%, 11%, 100% { transform: translateX(-280%) skewX(-24deg); }
    23%, 28% { transform: translateX(490%) skewX(-24deg); }
  }

  .classic-btn.primary:is(:hover, :focus-visible) {
    box-shadow: 0 14px 38px rgba(10, 156, 255, .46), 0 0 28px rgba(48, 202, 255, .24);
  }

  /* A depth effect that does not fight the cards' existing hover styles. */
  html.bq-motion-ready .beqson-work-card {
    position: relative;
    isolation: isolate;
    transform-style: preserve-3d;
  }

  html.bq-motion-ready .beqson-work-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: radial-gradient(circle at var(--bq-pointer-x, 50%) var(--bq-pointer-y, 50%), rgba(78, 207, 255, .2), transparent 46%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 350ms ease;
  }

  html.bq-motion-ready .beqson-work-card:is(:hover, :focus-visible)::before { opacity: 1; }

  @media (hover: hover) and (pointer: fine) {
    html.bq-motion-ready .beqson-work-card:hover {
      transform: perspective(1200px) translateY(-7px)
        rotateX(var(--bq-tilt-x, 0deg)) rotateY(var(--bq-tilt-y, 0deg));
      border-color: rgba(115, 224, 255, .9);
      box-shadow: 0 24px 55px rgba(0, 0, 0, .3), 0 0 32px rgba(45, 193, 255, .15);
    }
  }

  @media (max-width: 768px) {
    .classic-hero::before { display: none; }
    .classic-hero-grid::before,
    .classic-hero-grid::after { display: none; }
    html.bq-motion-ready .bq-reveal { translate: 0 14px; transition-duration: 540ms; }
    .bq-hero-art { animation: bq-hero-mobile-float 10s ease-in-out infinite alternate; }
    .bq-hero-ambient { animation-duration: 8s; }
  }

  @keyframes bq-hero-mobile-float {
    from { transform:translate3d(0,0,0) scale(1); }
    to { transform:translate3d(0,-3px,0) scale(1.023); }
  }

  @media (max-width: 760px) {
    .site-header .brand { --bq-logo-size: 37px; }
  }

  @media (max-width: 480px) {
    .site-header .brand { --bq-logo-size: 34px; }
  }

  @media (max-width: 359px) {
    .site-header .brand::before, .site-header .brand::after { display: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html.bq-motion-ready .bq-reveal { opacity: 1; translate: none; transition: none; }
  .classic-hero::before, .classic-btn.primary::after { animation: none; }
  .bq-hero-art, .bq-hero-ambient, .bq-hero-orbit-pulse { animation: none; }
}
