/* ================================================================
   TOKENS
================================================================ */
:root {
  --c:      #00C2E8;
  --c-5:    rgba(0,194,232,.05);
  --c-10:   rgba(0,194,232,.10);
  --c-15:   rgba(0,194,232,.15);
  --c-20:   rgba(0,194,232,.20);
  --c-40:   rgba(0,194,232,.40);
  --c-60:   rgba(0,194,232,.60);
  --bg0:    #07090D;
  --bg1:    #0B0E15;
  --bg2:    #10141D;
  --bg3:    #171D2A;
  --t1:     #EEF2F8;
  --t2:     #7A8B9C;
  --t3:     #3D4F62;
  --r:      16px;
  --ease:   cubic-bezier(.22,1,.36,1);
  --ease2:  cubic-bezier(.4,0,.2,1);
  --dur:    .4s;
}
[data-theme="light"] {
  --bg0: #F2F7FC; --bg1: #E8F1FA; --bg2: #FFFFFF; --bg3: #D6EBF7;
  --t1:  #060F1C; --t2:  #3A5068; --t3:  #8AABB8;
}

/* ================================================================
   THEME TRANSITION — smooth global
================================================================ */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  transition: background-color .55s var(--ease2),
              border-color .55s var(--ease2),
              color .3s var(--ease2),
              box-shadow .4s var(--ease2);
}
/* exceptions: don't apply heavy transitions to everything */
canvas, img, svg, .testi-slide, .proj-card, .svc-card { transition: none !important; }
.proj-card, .svc-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s !important; }

html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'IBM Plex Sans Arabic','Segoe UI',sans-serif;
  background: var(--bg0);
  color: var(--t1);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  overscroll-behavior-y: contain; /* stop the elastic rubber-band bounce that can trigger mobile compositor glitches */
}

/* Theme ripple overlay */
#theme-ripple {
  position: fixed; inset: 0; z-index: 8888;
  pointer-events: none;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
}
/* Frosted overlay during theme transition */
#theme-overlay {
  position: fixed; inset: 0; z-index: 8887;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  transition: none;
}
#theme-overlay.active {
  animation: themeBlur .65s var(--ease) forwards;
}
@keyframes themeBlur {
  0%   { backdrop-filter:blur(0px); opacity:0; }
  35%  { backdrop-filter:blur(8px); opacity:1; }
  100% { backdrop-filter:blur(0px); opacity:0; }
}
/* Theme glow burst from button */
#theme-glow {
  position: fixed; z-index: 8886;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-20), transparent 70%);
  transform: translate(-50%,-50%) scale(0);
  pointer-events: none;
  opacity: 0;
}
#theme-glow.burst {
  animation: glowBurst .8s var(--ease) forwards;
}
@keyframes glowBurst {
  0%   { transform:translate(-50%,-50%) scale(0); opacity:0; }
  30%  { opacity:1; }
  100% { transform:translate(-50%,-50%) scale(8); opacity:0; }
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }
::selection { background: var(--c-15); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--c); border-radius: 2px; }

/* ================================================================
   CURSOR (pointer devices only)
================================================================ */
@media (pointer:fine) {
  body { cursor: none; }
  a, button, [role=button], .proj-card, .svc-card { cursor: none; }
}
#cur-dot, #cur-ring {
  position: fixed; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%,-50%);
  display: none;
}
@media (pointer:fine) {
  #cur-dot  { display: block; width: 5px; height: 5px; background: var(--c); transition: none; }
  #cur-ring {
    display: block; width: 30px; height: 30px;
    border: 1.5px solid var(--c-40);
    transition: width .28s var(--ease), height .28s var(--ease),
                border-color .28s, opacity .28s;
  }
  body.ch #cur-ring { width: 46px; height: 46px; border-color: var(--c); }
  body.cc #cur-dot  { transform: translate(-50%,-50%) scale(.5); }
}

/* ================================================================
   SCROLL PROGRESS
================================================================ */
#spb {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--c), var(--c-60));
  z-index: 9997;
  box-shadow: 0 0 8px var(--c-40);
  transition: width .1s linear;
}

/* ================================================================
   STAR CANVAS + AMBIENT
================================================================ */
#sc {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .55;
  transition: opacity .6s;
}
[data-theme="light"] #sc { opacity: .1; }

.amb {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0;
  filter: blur(110px);
  animation: ambPulse ease-in-out infinite;
  will-change: opacity;
}
.amb-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(0,194,232,.045), transparent 65%);
  top: -120px; left: -180px; animation-duration: 14s;
}
.amb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0,150,190,.035), transparent 65%);
  bottom: -80px; right: -140px; animation-duration: 20s; animation-delay: -7s;
}
@keyframes ambPulse { 0%,100%{opacity:.7} 50%{opacity:1} }

/* ================================================================
   LIGHT-MODE CLOUDS — pure CSS, no images/SVG/libraries.
   Hidden entirely (opacity 0 + visibility hidden, so zero paint/GPU
   cost) unless [data-theme="light"] is active on <html>.
================================================================ */
.clouds-layer {
  /* top/left/width instead of inset:0 + explicit 100lvh (Large Viewport
     Height) instead of relying on the fixed-positioning default: on
     mobile, the browser's address bar shows/hides *during* scroll, which
     continuously changes the small/dynamic viewport height. A plain
     inset:0 fixed layer would resize (and recomposite) on every one of
     those fluctuations mid-scroll — invisible to the eye as a "resize"
     but very visible as the clouds appearing to stutter. 100lvh is the
     viewport size assuming the browser UI is fully collapsed, so it
     stays constant through the whole scroll gesture; nothing here reacts
     to scroll position itself, only to this one stable dimension. */
  position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; z-index: 0;
  overflow: hidden; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
[data-theme="light"] .clouds-layer { opacity: 1; visibility: visible; }

.cloud { position: absolute; }
.cloud .drift    { animation-iteration-count: infinite; animation-direction: alternate; animation-timing-function: var(--ease2); will-change: transform; }
.cloud-shape {
  position: relative;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(160,190,220,.25);
}
.cloud-shape::before, .cloud-shape::after {
  content: ''; position: absolute; background: #fff; border-radius: 50%;
}

/* Three gentle horizontal drift paths (each smoothly reverses via
   animation-direction:alternate above — no jump/reset is ever visible,
   and no obvious repeating "loop point" since durations are long and
   staggered per cloud below). Pure translateX only — transform-only,
   GPU-compositor cheap, zero layout/repaint cost. */
@keyframes cloudDriftA { 0%{transform:translate3d(0,0,0)} 50%{transform:translate3d(28px,0,0)} 100%{transform:translate3d(54px,0,0)} }
@keyframes cloudDriftB { 0%{transform:translate3d(0,0,0)} 50%{transform:translate3d(-24px,0,0)} 100%{transform:translate3d(-46px,0,0)} }
@keyframes cloudDriftC { 0%{transform:translate3d(0,0,0)} 50%{transform:translate3d(14px,0,0)} 100%{transform:translate3d(-14px,0,0)} }

.cloud-1 { top: 8%;  left: 4%;   opacity: .62; }
.cloud-1 .drift { animation-name: cloudDriftA; animation-duration: 68s; animation-delay: -4s; }
.cloud-1 .cloud-shape { width: 148px; height: 54px; }
.cloud-1 .cloud-shape::before { width: 78px; height: 78px; top: -40px; left: 16px; }
.cloud-1 .cloud-shape::after  { width: 58px; height: 58px; top: -28px; right: 18px; }

.cloud-2 { top: 16%; right: 7%; opacity: .42; }
.cloud-2 .drift { animation-name: cloudDriftB; animation-duration: 82s; animation-delay: -18s; }
.cloud-2 .cloud-shape { width: 98px; height: 36px; }
.cloud-2 .cloud-shape::before { width: 52px; height: 52px; top: -27px; left: 11px; }
.cloud-2 .cloud-shape::after  { width: 38px; height: 38px; top: -18px; right: 11px; }

.cloud-3 { top: 30%; left: 42%; opacity: .3; }
.cloud-3 .drift { animation-name: cloudDriftC; animation-duration: 95s; animation-delay: -32s; }
.cloud-3 .cloud-shape { width: 62px; height: 24px; }
.cloud-3 .cloud-shape::before { width: 32px; height: 32px; top: -16px; left: 6px; }
.cloud-3 .cloud-shape::after  { width: 24px; height: 24px; top: -11px; right: 6px; }

.cloud-4 { top: 46%; right: 16%; opacity: .4; }
.cloud-4 .drift { animation-name: cloudDriftA; animation-duration: 75s; animation-delay: -22s; }
.cloud-4 .cloud-shape { width: 86px; height: 32px; }
.cloud-4 .cloud-shape::before { width: 46px; height: 46px; top: -24px; left: 10px; }
.cloud-4 .cloud-shape::after  { width: 34px; height: 34px; top: -16px; right: 10px; }

.cloud-5 { top: 58%; left: 8%;  opacity: .55; }
.cloud-5 .drift { animation-name: cloudDriftB; animation-duration: 60s; animation-delay: -9s; }
.cloud-5 .cloud-shape { width: 122px; height: 44px; }
.cloud-5 .cloud-shape::before { width: 64px; height: 64px; top: -33px; left: 13px; }
.cloud-5 .cloud-shape::after  { width: 48px; height: 48px; top: -23px; right: 14px; }

.cloud-6 { top: 68%; right: 4%; opacity: .28; }
.cloud-6 .drift { animation-name: cloudDriftC; animation-duration: 105s; animation-delay: -48s; }
.cloud-6 .cloud-shape { width: 56px; height: 22px; }
.cloud-6 .cloud-shape::before { width: 29px; height: 29px; top: -14px; left: 5px; }
.cloud-6 .cloud-shape::after  { width: 22px; height: 22px; top: -10px; right: 5px; }

.cloud-7 { top: 80%; left: 32%; opacity: .46; }
.cloud-7 .drift { animation-name: cloudDriftA; animation-duration: 88s; animation-delay: -26s; }
.cloud-7 .cloud-shape { width: 94px; height: 34px; }
.cloud-7 .cloud-shape::before { width: 50px; height: 50px; top: -26px; left: 10px; }
.cloud-7 .cloud-shape::after  { width: 37px; height: 37px; top: -17px; right: 11px; }

.cloud-8 { top: 91%; right: 30%; opacity: .32; }
.cloud-8 .drift { animation-name: cloudDriftB; animation-duration: 70s; animation-delay: -36s; }
.cloud-8 .cloud-shape { width: 68px; height: 26px; }
.cloud-8 .cloud-shape::before { width: 35px; height: 35px; top: -17px; left: 7px; }
.cloud-8 .cloud-shape::after  { width: 27px; height: 27px; top: -12px; right: 7px; }

@media (max-width:640px) {
  .cloud-1 .cloud-shape { width: 108px; height: 40px; }
  .cloud-1 .cloud-shape::before { width: 58px; height: 58px; top: -30px; left: 12px; }
  .cloud-1 .cloud-shape::after  { width: 42px; height: 42px; top: -20px; right: 13px; }
  .cloud-5 .cloud-shape { width: 92px; height: 34px; }
  .cloud-5 .cloud-shape::before { width: 48px; height: 48px; top: -25px; left: 10px; }
  .cloud-5 .cloud-shape::after  { width: 36px; height: 36px; top: -17px; right: 10px; }
  .cloud-2, .cloud-4, .cloud-7 { opacity: .34; }
  /* keep the mobile sky readable — hide the smallest, least essential clouds */
  .cloud-3, .cloud-6, .cloud-8 { display: none; }
}

/* ================================================================
   LAYOUT
================================================================ */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(18px,5vw,60px);
  width: 100%;
}
section { position: relative; z-index: 2; padding-block: clamp(80px,9vw,120px); }
.alt   { background: var(--bg1); }

/* ================================================================
   REVEAL
================================================================ */
.rv { opacity: 0; transform: translateY(32px) scale(.97); will-change: opacity,transform; }
.rv.in { opacity: 1; transform: none; }
.rv, .rv.in { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s} .d4{transition-delay:.32s}

/* ================================================================
   TYPOGRAPHY
================================================================ */
.lbl {
  display: inline-block;
  font-size: clamp(.68rem, .652rem + .143vw, .78rem); font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--c); margin-bottom: 12px;
}
.h1 {
  font-size: clamp(1.875rem, 1.325rem + 2.75vw, 3.8rem);
  font-weight: 700; line-height: 1.18; letter-spacing: -.6px;
  margin-bottom: 16px;
}
.h2 {
  font-size: clamp(1.5rem, 1.157rem + 1.714vw, 2.7rem);
  font-weight: 700; line-height: 1.22; letter-spacing: -.4px;
  margin-bottom: 14px;
}
.grad {
  background: linear-gradient(118deg, var(--c) 0%, #8FE8FF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sub { font-size: clamp(.9rem, .857rem + .214vw, 1.05rem); color: var(--t2); line-height: 1.85; max-width: 62ch; }

/* ================================================================
   ICON SYSTEM (custom SVG, no emoji)
================================================================ */
.ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico svg { display: block; }

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 26px; border-radius: 50px;
  font-size: .87rem; font-weight: 700; white-space: nowrap;
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s !important;
}
.btn:active { transform: scale(.96) !important; }
.btn-solid  { background: var(--c); color: #07090D; box-shadow: 0 0 22px var(--c-20); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--c-40); }
.btn-ghost  { background: transparent; color: var(--c); border: 1.5px solid var(--c-40); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--c-10); border-color: var(--c); }

/* Ripple */
.btn .rpl {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.22); pointer-events: none;
  transform: scale(0); animation: rplA .55s ease-out forwards;
}
@keyframes rplA { to { transform: scale(4); opacity: 0; } }

/* WA button */
.btn-wa {
  display: flex; align-items: center; justify-content: center;
  gap: 9px; padding: 13px 28px; border-radius: 50px;
  background: var(--c); color: #07090D;
  font-size: .88rem; font-weight: 700; width: 100%;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s !important;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,194,232,.35); }
.btn-wa:active { transform: scale(.97); }

/* ================================================================
   NAV
================================================================ */
#nav {
  position: fixed; top: 0; width: 100%; z-index: 500;
  padding-block: 18px;
  transition: background .4s var(--ease2), box-shadow .4s, padding .4s !important;
}
#nav.s {
  background: rgba(7,9,13,.9);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 1px 0 var(--c-10);
  padding-block: 12px;
}
[data-theme="light"] #nav.s { background: rgba(242,247,252,.9); }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo  { width: 34px; height: 34px; object-fit: contain; transition: filter .4s !important; }
.nav-name  { font-size: .98rem; font-weight: 700; color: var(--c); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: .83rem; font-weight: 500; color: var(--t2);
  position: relative; padding-bottom: 2px;
  transition: color .25s !important;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; right: 0; left: auto;
  width: 0; height: 1.5px; background: var(--c);
  transition: width .3s var(--ease) !important;
}
.nav-links a:hover, .nav-links a.on { color: var(--t1); }
.nav-links a:hover::after, .nav-links a.on::after { width: 100%; }

.nav-acts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Theme button — custom icon */
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--c-20);
  color: var(--t1);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: background .3s, border-color .3s !important;
}
.theme-btn:hover { background: var(--c-10); border-color: var(--c); }
.theme-btn svg { width: 17px; height: 17px; transition: transform .45s var(--ease), opacity .3s !important; }
.theme-btn .ico-moon { position: absolute; }
.theme-btn .ico-sun  { position: absolute; opacity: 0; transform: rotate(90deg) scale(.7); }
[data-theme="light"] .theme-btn .ico-moon { opacity: 0; transform: rotate(-90deg) scale(.7); }
[data-theme="light"] .theme-btn .ico-sun  { opacity: 1; transform: rotate(0) scale(1); }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 5px; width: 38px; height: 38px;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--t1); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s !important;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mob-nav {
  display: flex; flex-direction: column;
  position: fixed; top: 0; inset-inline: 0;
  padding-top: 68px;
  background: rgba(7,9,13,.97);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--c-10);
  z-index: 498;
  transform: translateY(-105%);
  transition: transform .42s var(--ease) !important;
}
.mob-nav.open { transform: none; }
[data-theme="light"] .mob-nav { background: rgba(242,247,252,.97); }
.mob-nav a {
  display: block; padding: 15px 24px;
  font-size: .97rem; font-weight: 600; color: var(--t2);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .25s, background .25s !important;
}
.mob-nav a:hover { color: var(--c); background: var(--c-5); }

/* ================================================================
   HERO
================================================================ */
#hero { min-height: 100svh; display: flex; align-items: center; padding-top: 88px; overflow: hidden; }

.hero-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px,5.5vw,72px);
  align-items: center;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 44px; }

.stats { display: flex; flex-wrap: wrap; border-top: 1px solid var(--c-10); padding-top: 22px; }
.stat  { padding-inline-end: 26px; margin-inline-end: 26px; border-inline-end: 1px solid var(--c-10); }
.stat:last-child { border: none; padding: 0; margin: 0; }
.stat-n { display: block; font-size: clamp(1.5rem, 1.357rem + .714vw, 2rem); font-weight: 700; color: var(--c); line-height: 1; }
.stat-l { font-size: .73rem; color: var(--t3); margin-top: 3px; }

/* Visual */
.hero-vis { display: flex; align-items: center; justify-content: center; position: relative; }

.h-ring {
  width: clamp(220px,25vw,310px);
  height: clamp(220px,25vw,310px);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, var(--c-15), var(--c-5));
  border: 1px solid var(--c-20);
  display: flex; align-items: center; justify-content: center;
  animation: hfloat 5s ease-in-out infinite;
  box-shadow: 0 0 70px var(--c-10), inset 0 0 50px var(--c-5);
  position: relative; z-index: 1; will-change: transform;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
@keyframes hfloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
.h-ring img { width: 60%; filter: drop-shadow(0 0 18px var(--c-40)); }

.h-orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--c-10);
  animation: spin linear infinite;
  will-change: transform;
}
.h-orbit-a {
  width: calc(clamp(220px,25vw,310px) + 76px);
  height: calc(clamp(220px,25vw,310px) + 76px);
  animation-duration: 18s; border-style: dashed; border-color: var(--c-15);
}
.h-orbit-b {
  width: calc(clamp(220px,25vw,310px) + 148px);
  height: calc(clamp(220px,25vw,310px) + 148px);
  animation-duration: 28s; animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.o-dot {
  position: absolute; top: -3.5px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 10px var(--c);
}

.fc {
  position: absolute;
  background: rgba(11,14,21,.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--c-15); border-radius: 13px;
  padding: 11px 15px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 14px 36px rgba(0,0,0,.3);
}
[data-theme="light"] .fc { background: rgba(255,255,255,.82); }
.fc-1 { bottom: 8%; inset-inline-start: 1%; animation: fcf 4.2s ease-in-out infinite; }
.fc-2 { top: 10%;  inset-inline-end: 1%; animation: fcf 5.4s ease-in-out infinite reverse; }
@keyframes fcf { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
.fc svg { width: 18px; height: 18px; color: var(--c); flex-shrink: 0; }
.fc-t strong { display: block; font-size: .83rem; font-weight: 700; }
.fc-t span   { font-size: .7rem; color: var(--t2); }

/* ================================================================
   MARQUEE
================================================================ */
.mqstrip {
  overflow: hidden; z-index: 2; position: relative;
  border-block: 1px solid var(--c-10);
  padding-block: 20px;
  direction: ltr; /* keeps the looping track's own start-edge math predictable regardless of the page's RTL direction — the seamless -50% duplicate-track technique assumes a flush-left resting position, which RTL block layout does not give it by default */
}
.mq {
  display: flex; gap: 36px; width: max-content;
  animation: mqscroll 38s linear infinite;
}
.mq:hover { animation-play-state: paused; }
@keyframes mqscroll { to { transform: translateX(-50%); } }
.mq-item {
  display: flex; align-items: center; gap: 12px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--t3); white-space: nowrap;
}
.mq-item svg { width: 7px; height: 7px; color: var(--c); flex-shrink: 0; }

/* ================================================================
   ABOUT
================================================================ */
.about-g {
  display: grid; grid-template-columns: 1fr 1.45fr;
  gap: clamp(36px,6.5vw,88px); align-items: center;
}
.a-logo-box {
  width: clamp(190px,20vw,250px); height: clamp(190px,20vw,250px);
  margin: 0 auto;
  background: var(--bg2); border: 1px solid var(--c-15);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 48px var(--c-10);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s !important;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.a-logo-box::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-10) 0%, transparent 55%);
}
.a-logo-box:hover { transform: translateY(-5px) rotateX(2deg) rotateY(-2deg); box-shadow: 0 20px 55px rgba(0,0,0,.3), 0 0 55px var(--c-10); }
.a-logo-box img { width: 64%; position: relative; z-index: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.chip {
  padding: 5px 14px; font-size: .75rem; font-weight: 600;
  color: var(--c); background: var(--c-10);
  border: 1px solid var(--c-20); border-radius: 50px;
  transition: background .25s, border-color .25s !important;
}
.chip:hover { background: var(--c-20); border-color: var(--c-40); }

.a-quote {
  margin: 20px 0; padding: 17px 20px;
  background: var(--bg2);
  border-inline-end: 3px solid var(--c);
  border-radius: 0 13px 13px 0;
  font-size: .89rem; color: var(--t2); line-height: 1.85; font-style: italic;
}

/* ================================================================
   SERVICES
================================================================ */
.svc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 48px; }
.svc-g   { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,280px),1fr)); gap: 16px; }

.svc-card {
  background: rgba(16,20,29,.68);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-10);
  border-radius: var(--r); padding: 28px 24px;
  position: relative; overflow: hidden;
  cursor: pointer;
}
[data-theme="light"] .svc-card { background: rgba(255,255,255,.72); }
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-40), transparent);
}
.svc-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), var(--c-15) 0%, transparent 55%);
  opacity: 0; transition: opacity .35s !important;
}
.svc-card:hover { border-color: var(--c-40); box-shadow: 0 18px 55px rgba(0,0,0,.35); }
.svc-card:hover::after { opacity: 1; }

.svc-ico {
  width: 48px; height: 48px;
  background: var(--c-10); border: 1px solid var(--c-20);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c); margin-bottom: 18px; position: relative; z-index: 1;
  transition: transform .4s var(--ease), background .4s !important;
}
.svc-card:hover .svc-ico { transform: scale(1.12) rotate(-6deg); background: var(--c-20); }
.svc-ico svg, .svc-ico img { width: 21px; height: 21px; object-fit: contain; }
.svc-card h3 { font-size: .98rem; font-weight: 700; margin-bottom: 9px; position: relative; z-index: 1; }
.svc-card p  { font-size: .82rem; color: var(--t2); line-height: 1.78; margin-bottom: 16px; position: relative; z-index: 1; }
.svc-link    { display: inline-flex; align-items: center; gap: 5px; font-size: .79rem; font-weight: 700; color: var(--c); position: relative; z-index: 1; transition: gap .25s !important; }
.svc-card:hover .svc-link { gap: 10px; }

/* ================================================================
   PORTFOLIO
================================================================ */
.port-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.flt-row  { display: flex; gap: 7px; flex-wrap: wrap; }
.flt {
  padding: 7px 17px; font-size: .77rem; font-weight: 600;
  background: var(--bg2); border: 1px solid var(--c-10);
  border-radius: 50px; color: var(--t2);
  transition: background .25s, border-color .25s, color .25s !important;
}
.flt:hover, .flt.on { background: var(--c); border-color: var(--c); color: #07090D; }

.port-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,300px),1fr)); gap: 16px; }

.pc {
  background: rgba(16,20,29,.68);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-10);
  border-radius: var(--r); overflow: hidden;
  position: relative; cursor: pointer;
}
[data-theme="light"] .pc { background: rgba(255,255,255,.72); }
.pc::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-40), transparent);
  z-index: 1;
}
.pc.hide { display: none; }
.pc:hover { border-color: var(--c-40); box-shadow: 0 22px 60px rgba(0,0,0,.4); }
.pc::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), var(--c-10) 0%, transparent 60%);
  opacity: 0; transition: opacity .35s !important;
}
.pc:hover::after { opacity: 1; }

.pt { height: 220px; overflow: hidden; position: relative; }
.pt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s var(--ease) !important; }
.pc:hover .pt img { transform: scale(1.06); }
.pt-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,9,13,.92) 0%, rgba(7,9,13,.18) 55%, transparent 100%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity .3s !important;
}
.pc:hover .pt-ov { opacity: 1; }
.pt-hint { display: flex; align-items: center; gap: 6px; font-size: .79rem; font-weight: 700; color: var(--c); }
.pt-hint svg { width: 14px; height: 14px; }

.pi { padding: 18px; position: relative; z-index: 1; }
.pi-cat  { font-size: .68rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--c); margin-bottom: 5px; }
.pi-name { font-size: .96rem; font-weight: 700; margin-bottom: 5px; }
.pi-desc { font-size: .8rem; color: var(--t2); line-height: 1.7; }

/* ================================================================
   DIGITAL PRODUCTS
================================================================ */
.prod-g {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,260px),1fr)); gap: 20px;
}
.prod-card {
  background: rgba(16,20,29,.68);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-10);
  border-radius: var(--r); overflow: hidden;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s !important;
}
[data-theme="light"] .prod-card { background: rgba(255,255,255,.72); }
.prod-card:hover { border-color: var(--c-40); box-shadow: 0 22px 55px rgba(0,0,0,.35); }
.prod-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), var(--c-10) 0%, transparent 60%);
  opacity: 0; transition: opacity .35s !important;
}
.prod-card:hover::after { opacity: 1; }
.prod-thumb { height: 170px; overflow: hidden; position: relative; z-index: 1; background: var(--bg2); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease) !important; }
.prod-card:hover .prod-thumb img { transform: scale(1.06); }
.prod-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1;
  background: var(--c); color: #07090D; font-size: .66rem; font-weight: 700;
  padding: 4px 11px; border-radius: 20px;
}
.prod-body { padding: 20px; position: relative; z-index: 1; }
.prod-type { font-size: .68rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--c); margin-bottom: 7px; }
.prod-name { font-size: .96rem; font-weight: 700; margin-bottom: 7px; }
.prod-desc { font-size: .8rem; color: var(--t2); line-height: 1.7; margin-bottom: 16px; }
.prod-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-10); border: 1px solid var(--c-20); color: var(--c);
  font-weight: 700; font-size: .82rem; padding: 9px 16px; border-radius: 10px;
  transition: background .3s !important, color .3s !important;
}
.prod-card:hover .prod-btn { background: var(--c); color: #07090D; border-color: var(--c); }

/* ================================================================
   LIGHTBOX
================================================================ */
#lb {
  position: fixed; inset: 0; z-index: 700;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s !important;
}
#lb.on { opacity: 1; visibility: visible; }
.lb-bg {
  position: absolute; inset: 0;
  background: rgba(4,6,10,.96);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.lb-w { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.lb-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(15px,4vw,40px); border-bottom: 1px solid var(--c-10);
  flex-shrink: 0; gap: 12px;
}
.lb-info .lb-cat  { font-size: .67rem; letter-spacing: 2px; text-transform: uppercase; color: var(--t3); }
.lb-info .lb-name { font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-btns { display: flex; gap: 7px; flex-shrink: 0; }
.ib {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--c-10);
  color: var(--t1); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, color .25s !important;
}
.ib:hover { background: var(--c); color: #07090D; border-color: var(--c); }
.lb-bd {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: clamp(22px,4vw,46px) clamp(15px,4vw,40px);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.lb-bd::-webkit-scrollbar { width: 3px; }
.lb-bd::-webkit-scrollbar-thumb { background: var(--c); }
.lb-imgw { max-width: 800px; width: 100%; transition: opacity .4s, transform .4s var(--ease) !important; }
.lb-imgw img { width: 100%; border-radius: 14px; box-shadow: 0 36px 90px rgba(0,0,0,.6); display: block; }
.lb-meta {
  max-width: 800px; width: 100%;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,160px),1fr)); gap: 12px;
}
.lb-mi {
  background: var(--bg2); border: 1px solid var(--c-10);
  border-radius: 11px; padding: 13px 15px;
}
.lb-mi .lbl2 { font-size: .66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--t3); margin-bottom: 4px; }
.lb-mi .val  { font-size: .87rem; font-weight: 600; }
.lb-acquire { max-width: 800px; width: 100%; }
.lb-hint { font-size: .68rem; color: var(--t3); letter-spacing: 2px; text-transform: uppercase; text-align: center; }

/* ---- "Available for acquisition" details (inside the project lightbox) ---- */
.acquire-box {
  background: linear-gradient(135deg, var(--c-10) 0%, var(--bg2) 60%);
  border: 1px solid var(--c-20); border-radius: 14px;
  padding: 18px 20px;
}
.acquire-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 700; color: var(--c);
  margin-bottom: 10px;
}
.acquire-title svg { flex-shrink: 0; }
.acquire-text { font-size: .84rem; color: var(--t2); line-height: 1.85; margin-bottom: 12px; }
.acquire-price {
  display: inline-block;
  font-size: .82rem; font-weight: 700; color: var(--c);
  background: var(--c-10); border: 1px solid var(--c-20);
  border-radius: 8px; padding: 7px 14px;
}
.acquire-btn { margin-top: 16px; }

/* ---- "Available for acquisition" badge on the portfolio card thumbnail ---- */
/* ---- Portfolio pagination: batch enter/exit (transform+opacity only,
   GPU-cheap) and the pagination control bar ---- */
.pc-enter { opacity: 0; transform: translateY(18px) scale(.96); }
.pc-enter.pc-enter-active {
  opacity: 1; transform: none;
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
.pc-exit {
  opacity: 0 !important; transform: translateY(-12px) scale(.96) !important;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.port-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.page-arrow {
  padding: 9px 20px; font-size: .8rem; font-weight: 600;
  background: var(--bg2); border: 1px solid var(--c-10); border-radius: 50px; color: var(--t2);
  transition: background .25s, border-color .25s, color .25s, opacity .25s !important;
}
.page-arrow:hover:not(:disabled) { background: var(--c); border-color: var(--c); color: #07090D; }
.page-arrow:disabled { opacity: .35; cursor: default; }
.page-nums { display: flex; gap: 6px; }
.page-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--c-10); color: var(--t2);
  font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, color .25s !important;
}
.page-num:hover, .page-num.on { background: var(--c); border-color: var(--c); color: #07090D; }

.pc-acquire-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--c) 0%, #8FE8FF 100%);
  color: #07090D; font-size: .68rem; font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
  animation: acquireGlow 2.8s ease-in-out infinite;
}
@keyframes acquireGlow {
  0%, 100% { box-shadow: 0 2px 10px rgba(0,0,0,.25), 0 0 0 rgba(0,194,232,0); }
  50%      { box-shadow: 0 2px 10px rgba(0,0,0,.25), 0 0 16px rgba(0,194,232,.6); }
}

/* ================================================================
   TESTIMONIALS
================================================================ */
.ts {
  position: relative; height: 460px;
  perspective: 1400px; perspective-origin: center;
  display: flex; align-items: center; justify-content: center;
  /* overflow-x:hidden contains the side "peek" cards' horizontal reach
     (translateX up to 58vw) so they can never register as page-width
     content on mobile — without this, some mobile browsers detect that
     reach as "content wider than the device" and zoom the whole page out
     to fit it, which is a far worse bug than any shadow clipping.
     The extra height (vs. the card's own ~260px max) is deliberate: it
     gives the center card's box-shadow enough room on all sides that it
     never actually needs to overflow this box at all, so nothing here
     ever gets clipped — verified empirically that overflow-y computing
     to "auto" (per the CSS overflow-x/-y visible→auto interaction) does
     NOT exempt box-shadow from being clipped once real overflow occurs,
     so removing the overflow-x clip and just "not clipping" was not a
     safe option; giving the shadow room to live inside the box is. */
  overflow-x: hidden;
}
.tc {
  position: absolute;
  width: min(430px,86vw);
  background: rgba(16,20,29,.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--c-10); border-radius: 20px;
  padding: clamp(22px,3.5vw,34px);
  will-change: transform, opacity, filter;
  user-select: none; touch-action: none;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
[data-theme="light"] .tc { background: rgba(255,255,255,.72); }
[data-theme="light"] .tc[data-p="c"] { box-shadow: 0 24px 90px rgba(30,60,100,.18); }
.tc[data-p="c"]  { transform:translateX(0) translateZ(0) rotateY(0) scale(1); opacity:1; filter:blur(0); z-index:5; border-color:var(--c-40); box-shadow:0 28px 75px rgba(0,0,0,.4); transition:transform .75s var(--ease),opacity .75s var(--ease),filter .75s var(--ease),border-color .4s !important; }
.tc[data-p="r1"] { transform:translateX(min(260px,58vw)) translateZ(-150px) rotateY(-20deg) scale(.83); opacity:.42; filter:blur(1px); z-index:3; transition:transform .75s var(--ease),opacity .75s var(--ease),filter .75s var(--ease) !important; }
.tc[data-p="l1"] { transform:translateX(max(-260px,-58vw)) translateZ(-150px) rotateY(20deg) scale(.83); opacity:.42; filter:blur(1px); z-index:3; transition:transform .75s var(--ease),opacity .75s var(--ease),filter .75s var(--ease) !important; }
.tc[data-p="r2"],.tc[data-p="l2"],.tc[data-p="h"] { transform:translateX(0) translateZ(-500px) scale(.5); opacity:0; z-index:1; pointer-events:none; transition:transform .75s var(--ease),opacity .75s var(--ease) !important; }

.tq { font-size: 2.8rem; color: var(--c); opacity: .18; line-height: .65; font-family: Georgia,serif; margin-bottom: 8px; }
.ts-stars { color: #F59E0B; letter-spacing: 3px; font-size: .83rem; margin-bottom: 13px; }
.ts-text  { font-size: .89rem; color: var(--t2); line-height: 1.85; margin-bottom: 20px; }
.ts-foot  { display: flex; align-items: center; gap: 11px; }
.ts-av    { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #07090D; font-size: .9rem; flex-shrink: 0; }
.ts-name  { font-size: .9rem; font-weight: 700; }
.ts-role  { font-size: .74rem; color: var(--t3); }

.tctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 42px; }
.tarr  { width: 42px; height: 42px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--c-10); color: var(--t1); font-size: 1.15rem; display: flex; align-items: center; justify-content: center; transition: background .25s, border-color .25s, color .25s !important; }
.tarr:hover { background: var(--c); color: #07090D; border-color: var(--c); }
.tdots { display: flex; gap: 6px; }
.tdot  { width: 6px; height: 6px; border-radius: 50%; background: var(--t3); border: none; padding: 0; transition: all .35s var(--ease) !important; }
.tdot.on { background: var(--c); width: 20px; border-radius: 3px; }

/* ================================================================
   CONTACT
================================================================ */
.cg { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px,5.5vw,72px); align-items: start; }
.ci-list { display: flex; flex-direction: column; gap: 11px; }
.ci {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 17px;
  background: var(--bg2); border: 1px solid var(--c-10); border-radius: 13px;
  transition: border-color .25s, transform .25s !important;
  text-decoration: none; color: inherit;
}
.ci:hover { border-color: var(--c-40); transform: translateX(-3px); }
.ci svg    { width: 18px; height: 18px; color: var(--c); flex-shrink: 0; }
.ci-lbl    { font-size: .69rem; text-transform: uppercase; letter-spacing: 1px; color: var(--t3); display: block; }
.ci-val    { font-size: .87rem; font-weight: 600; }

.wa-box { background: var(--bg2); border: 1px solid var(--c-10); border-radius: 20px; padding: clamp(26px,4.5vw,42px); text-align: center; }
.wa-ico { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 auto 16px; color: var(--c); }
.wa-ico svg { width: 34px; height: 34px; }
.wa-box h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 9px; }
.wa-box p  { font-size: .84rem; color: var(--t2); line-height: 1.8; margin-bottom: 26px; }
.wa-note   { font-size: .7rem; color: var(--t3); margin-top: 9px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.wa-note svg { width: 11px; height: 11px; color: var(--c); }

/* ================================================================
   SERVICE MODAL
================================================================ */
#smv {
  position: fixed; inset: 0; z-index: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 15px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s !important;
}
#smv.on { opacity: 1; visibility: visible; }
.smv-bg { position: absolute; inset: 0; background: rgba(4,6,10,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.smv-box {
  position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--c-10);
  border-radius: 20px; width: 100%; max-width: 620px;
  max-height: 88vh; overflow-y: auto;
  transform: translateY(28px) scale(.97);
  transition: transform .42s var(--ease) !important;
}
#smv.on .smv-box { transform: none; }
.smv-box::-webkit-scrollbar { width: 3px; }
.smv-box::-webkit-scrollbar-thumb { background: var(--c); }
.smv-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--c-10); gap: 12px;
}
.smv-hd h2 { font-size: .98rem; font-weight: 700; }
.smv-bd { padding: 24px; }
.smv-ico { width: 65px; height: 65px; background: var(--c-10); border: 1px solid var(--c-20); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--c); margin-bottom: 18px; }
.smv-ico svg, .smv-ico img { width: 30px; height: 30px; object-fit: contain; }
.smv-bd h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 11px; }
.smv-bd > p { font-size: .87rem; color: var(--t2); line-height: 1.88; margin-bottom: 20px; }
.smv-fl { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.smv-fl li { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--t2); }
.smv-fl li svg { width: 18px; height: 18px; color: var(--c); flex-shrink: 0; }

/* ---- Service sample gallery (cinematic filmstrip inside the service modal) ---- */
.smv-samples { margin-top: 6px; }
.smv-samples-title { font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--t3); margin-bottom: 12px; }
.smv-sample-track {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.smv-sample-track::-webkit-scrollbar { height: 4px; }
.smv-sample-track::-webkit-scrollbar-thumb { background: var(--c-20); border-radius: 4px; }
.smv-sample-item {
  flex: none; width: min(220px,72vw); aspect-ratio: 4/3;
  border-radius: 13px; overflow: hidden; position: relative; cursor: pointer;
  scroll-snap-align: start;
  border: 1px solid var(--c-10);
}
.smv-sample-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease) !important; }
.smv-sample-item:hover img { transform: scale(1.08); }
.smv-sample-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,9,13,.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px;
  opacity: 0; transition: opacity .3s !important;
  color: var(--c);
}
.smv-sample-item:hover .smv-sample-ov { opacity: 1; }

/* ================================================================
   SERVICE SAMPLE VIEWER (full image, prev/next — mirrors the lightbox)
================================================================ */
#ssv {
  position: fixed; inset: 0; z-index: 800;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s !important;
}
#ssv.on { opacity: 1; visibility: visible; }
.ssv-bg { position: absolute; inset: 0; background: rgba(4,6,10,.96); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.ssv-w { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.ssv-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(15px,4vw,40px); border-bottom: 1px solid var(--c-10);
  flex-shrink: 0; gap: 12px;
}
.ssv-count { font-size: .8rem; font-weight: 700; color: var(--t2); direction: ltr; unicode-bidi: isolate; }
.ssv-btns { display: flex; gap: 7px; flex-shrink: 0; }
.ssv-bd {
  flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: clamp(15px,4vw,40px);
}
.ssv-bd img { max-width: min(900px,92vw); max-height: 100%; border-radius: 14px; box-shadow: 0 36px 90px rgba(0,0,0,.6); display: block; object-fit: contain; }

/* ================================================================
   FOOTER
================================================================ */
footer { background: var(--bg1); border-top: 1px solid var(--c-10); padding: clamp(44px,6vw,68px) 0 clamp(22px,3vw,32px); position: relative; z-index: 2; }
.fg { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px,4.5vw,56px); margin-bottom: 40px; }
.fb .br { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.fb img { width: 34px; }
.fb h3  { font-size: .97rem; font-weight: 700; color: var(--c); }
.fb p   { font-size: .8rem; color: var(--t3); line-height: 1.8; }
.fc2 h4 { font-size: .82rem; font-weight: 700; margin-bottom: 14px; }
.flinks { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.flinks a { font-size: .8rem; color: var(--t3); transition: color .22s, padding .22s !important; }
.flinks a:hover { color: var(--c); padding-inline-end: 3px; }
.fbot { padding-top: 20px; border-top: 1px solid var(--c-10); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; font-size: .74rem; color: var(--t3); }
.fbot em { color: var(--c); font-style: normal; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width:1024px) {
  .hero-g   { grid-template-columns:1fr; gap:44px; }
  .hero-vis { order:-1; }
  .hero-text,.stats,.hero-btns { text-align:center; justify-content:center; }
  .hero-desc { max-width:480px; margin:0 auto 36px; }
  .about-g  { grid-template-columns:1fr; gap:44px; text-align:center; }
  .chips    { justify-content:center; }
  .a-quote  { text-align:right; }
  .cg       { grid-template-columns:1fr; gap:32px; }
  .fg       { grid-template-columns:1fr 1fr; }
  /* Tablets (iPad portrait and similar, ~768-1024px) don't have room for the
     full desktop nav without it feeling cramped — switch to the mobile
     drawer at the same breakpoint where the rest of the layout already
     collapses to a single column, for a consistent tablet experience. */
  .nav-links, .nav-acts .btn-solid { display:none !important; }
  .burger   { display:flex !important; }
}
@media (max-width:768px) {
  .fc {
    padding: 8px 12px;
    gap: 7px;
    font-size: .8rem;
  }
  .fc-t strong { font-size: .78rem; }
  .fc-t span   { font-size: .66rem; }
  .fc-1 { bottom: 2%; inset-inline-start: 50%; transform: translateX(-110%); animation: fcf 4.2s ease-in-out infinite; }
  .fc-2 { top: 2%;  inset-inline-end: 50%; transform: translateX(110%); animation: fcf 5.4s ease-in-out infinite reverse; }
  .h-orbit-a { 
    width: calc(clamp(190px,45vw,260px) + 44px);
    height: calc(clamp(190px,45vw,260px) + 44px);
  }
  .h-orbit-b {
    width: calc(clamp(190px,45vw,260px) + 90px);
    height: calc(clamp(190px,45vw,260px) + 90px);
  }
  .svc-top  { flex-direction:column; align-items:flex-start; }
  .port-top { flex-direction:column; align-items:flex-start; }
  .flt-row  { overflow-x:auto; flex-wrap:nowrap; padding-bottom:5px; width:100%; }
  .flt-row::-webkit-scrollbar { height:0; }
  .ts       { height:400px; }
  .tc[data-p="r1"],.tc[data-p="l1"] { opacity:0; pointer-events:none; }
  .fg       { grid-template-columns:1fr; gap:24px; }
  .fbot     { flex-direction:column; text-align:center; }
  .svc-card:hover,.pc:hover { transform:translateY(-4px) !important; }
  .svc-card,.pc { transform-style:flat !important; }
  .a-logo-box:hover { transform:none !important; }
  .btn,.flt,.tarr,.ib,.chip,.page-arrow { min-height:44px; }
  .page-num { min-height:40px; min-width:40px; }
  .stat { padding-inline-end:16px; margin-inline-end:16px; }

  /* --- Mobile GPU/compositing relief: lighter blur = fewer frame drops & flicker while scrolling --- */
  #nav.s      { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .mob-nav    { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .svc-card,.pc { backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
  .fc         { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .tc         { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .lb-bg,.smv-bg,.ssv-bg { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .amb        { filter: blur(60px); }
  .amb-1      { width: 320px; height: 320px; }
  .amb-2      { width: 260px; height: 260px; }
}
/* Tactile press feedback for touch devices (no hover state to rely on) */
@media (hover: none) {
  .btn:active, .flt:active, .tarr:active, .ib:active, .chip:active { transform: scale(.94); transition: transform .12s var(--ease) !important; }
  .svc-card:active, .pc:active, .prod-card:active { transform: scale(.98) !important; transition: transform .15s var(--ease) !important; }
}
@media (max-width:480px) {
  .h-ring  { width:190px; height:190px; }
  .svc-g,.port-g { grid-template-columns:1fr; }
  .lb-meta { grid-template-columns:1fr 1fr; }
  .stat    { padding-inline-end:12px; margin-inline-end:12px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* Loader keyframes */
    @keyframes lb2{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
    @keyframes lbs{0%{transform:translateX(-100%)}100%{transform:translateX(200%)}}
