/* ==========================================================
   KynWorks — styles
   ========================================================== */
:root {
  --red: #E30000;
  --red-d: #B80000;
  --ink: #111111;
  --ink-2: #1B1B1B;
  --ink-3: #262626;
  --paper: #F7F4EF;
  --sand: #EDE6DA;
  --white: #FFFFFF;
  --muted: #6E6862;
  --line: rgba(17, 17, 17, .1);
  --line-l: rgba(255, 255, 255, .12);
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}
html[lang="ar"] { --font: "Cairo", "Poppins", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --hover: var(--red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2;
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover);
  border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.96); }
.btn--red { --bg: var(--red); --hover: var(--ink); box-shadow: 0 10px 30px -10px rgba(227, 0, 0, .6); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --hover: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; --hover: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--outline-light:hover { color: var(--ink); }
.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; transition: background .3s, color .3s, transform .3s var(--ease);
}
.round-btn:hover { background: var(--ink); color: #fff; }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.round-btn:active { transform: scale(.9); }
[dir="rtl"] .slider-nav svg { transform: scaleX(-1); }

[data-magnetic] { transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s, translate .35s var(--ease); }

/* ripple */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0);
  background: currentColor; opacity: .28; animation: ripple .7s var(--ease) forwards; z-index: 0;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #18B85A; box-shadow: 0 0 0 0 rgba(24,184,90,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(24,184,90,0); } 100% { box-shadow: 0 0 0 0 rgba(24,184,90,0); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: #FF4A3D; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--red); color: #fff;
  display: grid; place-items: center; align-content: center; gap: 28px;
  transition: clip-path 1s var(--ease-io); clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader__mark { font-weight: 800; font-size: clamp(48px, 10vw, 96px); line-height: .85; letter-spacing: -.05em; display: grid; font-family: "Poppins", sans-serif; }
.loader__mark span { display: block; animation: rise .9s var(--ease) both; }
.loader__works { padding-inline-start: .5em; animation-delay: .12s !important; }
.loader__bar { width: 160px; height: 3px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: load 1.1s var(--ease-io) forwards; }
@keyframes rise { from { transform: translateY(60%); opacity: 0; } }
@keyframes load { from { transform: scaleX(0); } }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.header.scrolled { background: rgba(247, 244, 239, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.hide { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__logo img { height: 34px; width: auto; transition: transform .4s var(--ease); }
.header__logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500; border-radius: 999px; transition: background .3s; }
.nav a:not(.btn):hover { background: rgba(17,17,17,.06); }
.nav a.active:not(.btn)::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); transform: translateX(-50%); }
.nav__mobile-cta { display: none !important; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { padding: 12px 20px; }

.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 150px; padding: 6px; background: #fff; border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.25); opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease); transform-origin: top right;
}
.lang.open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu button { display: block; width: 100%; text-align: start; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.lang__menu button:hover, .lang__menu button.on { background: var(--paper); }
.lang__menu button.on { color: var(--red); font-weight: 600; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(20px, 3.5vw, 48px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero__blob { position: absolute; border-radius: 50%; }
.hero__blob--1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,90,78,.45), rgba(255,90,78,0) 68%); top: -200px; inset-inline-end: -160px; animation: float 14s ease-in-out infinite; }
.hero__blob--2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,201,168,.7), rgba(255,201,168,0) 68%); bottom: 10%; inset-inline-start: -160px; animation: float 18s ease-in-out infinite reverse; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 65%); opacity: .55; }
@keyframes float { 50% { transform: translate(-30px, 40px) scale(1.08); } }

.hero__top { display: grid; gap: 18px; justify-items: start; }
.hero__title { font-size: clamp(40px, 7vw, 108px); line-height: .94; font-weight: 800; letter-spacing: -.045em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.ready .hero__title .line > span { transform: none; }
.hl { color: var(--red); position: relative; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; background: var(--red); border-radius: 99px;
  transform: scaleX(0); transform-origin: inline-start; transition: transform 1s var(--ease) .9s; opacity: .18;
}
.ready .hl::after { transform: scaleX(1); }
html[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.2; font-size: clamp(40px, 7.6vw, 112px); }
html[lang="ar"] .section__title, html[lang="ar"] .contact__title { letter-spacing: 0; line-height: 1.3; }

.hero__row { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-top: 6px; }
.hero__sub { max-width: 470px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__pick { margin: clamp(32px, 4vw, 48px) 0 16px; font-weight: 700; font-size: clamp(18px, 2vw, 22px); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero__pick-hint { font-size: 14px; font-weight: 500; color: var(--muted); }
@media (max-width: 640px) { .hero__pick-hint { display: none; } }

/* ---------- Category cards ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1400px; }
.cat {
  --c: var(--red); --t: #fff;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1 / 1.08; padding: 0; border-radius: var(--radius); background: #fff; text-align: start; color: var(--ink);
  border: 8px solid #fff; outline: 1.5px solid var(--line); outline-offset: 0;
  box-shadow: 0 22px 44px -28px rgba(17,17,17,.45), 0 2px 6px rgba(17,17,17,.05); overflow: hidden; isolation: isolate;
  transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s var(--ease), color .45s, outline-color .4s;
  opacity: 0; translate: 0 40px; -webkit-tap-highlight-color: transparent;
}
.cats.in .cat { opacity: 1; translate: 0 0; transition: transform .6s var(--ease), box-shadow .6s var(--ease), color .45s, outline-color .4s, opacity .9s var(--ease) var(--d), translate .9s var(--ease) var(--d); }
.cat__pic { position: absolute; inset: 0; z-index: 0; border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.cat__pic::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(17,17,17,.08); pointer-events: none; }
.cat__veil { position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.97) 36%, rgba(255,255,255,.82) 50%, rgba(255,255,255,.35) 62%, rgba(255,255,255,0) 74%); transition: opacity .5s var(--ease); }
/* circular color reveal from the cursor, limited to the text area so the photo stays visible */
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--c); border-radius: calc(var(--radius) - 8px);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 34%, rgba(0,0,0,.75) 48%, transparent 70%); mask-image: linear-gradient(0deg, #000 0%, #000 34%, rgba(0,0,0,.75) 48%, transparent 70%);
  clip-path: circle(0% at var(--mx, 85%) var(--my, 85%)); transition: clip-path .7s var(--ease);
}
.cat:hover::before, .cat:focus-visible::before { clip-path: circle(150% at var(--mx, 85%) var(--my, 85%)); }
.cat:hover, .cat:focus-visible { color: var(--t); outline-color: var(--c); outline-width: 2px; box-shadow: 0 30px 60px -25px var(--c); }
.cat[data-light]:hover { outline-color: #141414; }
.cat__num { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.88); color: var(--ink); }
.cat__icon {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 5;
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: var(--t);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); transition: transform .7s var(--ease), background .45s, color .45s;
}
.cat:hover .cat__icon { transform: rotate(-12deg) scale(1.08); background: var(--t); color: var(--c); }
.cat__icon svg { width: 22px; height: 22px; }

/* category picture: abstract close-up */
.cpic { position: absolute; inset: 0; background: var(--sand); overflow: hidden; }
.cpic__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.cat:hover .cpic__photo, .panel__pic:hover .cpic__photo { transform: scale(1.08); }
.cat__bottom { position: relative; z-index: 3; padding: 0 64px 20px 20px; padding-inline: 20px 64px; }
.cat__title { font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
html[lang="ar"] .cat__title { letter-spacing: 0; line-height: 1.4; }
.cat__tag { margin-top: 6px; font-size: 14px; opacity: .72; line-height: 1.45; }
.cat__items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.cat:hover .cat__items { max-height: 90px; opacity: 1; }
.cat__items span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.18); }
.cat[data-light] .cat__items span { background: rgba(0,0,0,.07); }
.cat__go {
  position: absolute; inset-inline-end: 18px; bottom: 20px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .55; transition: transform .5s var(--ease), opacity .3s;
}
.cat:hover .cat__go { transform: rotate(-45deg); opacity: 1; }
[dir="rtl"] .cat__go svg { transform: scaleX(-1); }
[dir="rtl"] .cat:hover .cat__go { transform: rotate(45deg); }

.cat.pop { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(.95); } }

/* ---------- Stats ---------- */
.stats { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 26px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; }
.stat b { font-size: clamp(34px, 4vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: var(--red); }
.stat p { width: 100%; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding: 34px 0; margin: -24px 0; position: relative; z-index: 2; }
.marquee { background: var(--red); color: #fff; padding: 18px 0; overflow: hidden; transform: rotate(-1.6deg) scaleX(1.04); box-shadow: 0 20px 40px -20px rgba(227,0,0,.6); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font-size: clamp(22px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.marquee__track span::after { content: "✦"; font-size: .6em; opacity: .8; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Clients ---------- */
.clients { background: var(--ink); color: #fff; padding: clamp(60px, 7vw, 96px) 0 clamp(52px, 6vw, 84px); margin-top: -40px; position: relative; z-index: 1; }
.clients__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 30px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.clients__title { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.clients__lead { color: rgba(255,255,255,.55); font-size: 15px; }
.clients__rail { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.clients__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-l); border-inline-start: 1px solid var(--line-l); }
.client { display: grid; place-items: center; min-width: 0; min-height: clamp(104px, 9vw, 132px); padding: 18px 14px; border-bottom: 1px solid var(--line-l); border-inline-end: 1px solid var(--line-l); transition: background .4s; }
.client img { --s: 1; display: block; height: calc(var(--h) * var(--s)); width: auto; max-width: min(170px, 100%); max-height: calc(var(--h) * var(--s)); object-fit: contain; opacity: .7; transition: opacity .4s, transform .6s var(--ease); }
.client:hover { background: rgba(255,255,255,.04); }
.client:hover img { opacity: 1; transform: scale(1.08); }
@media (max-width: 1100px) { .clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client { min-height: 78px; padding: 12px 10px; }
  .client img { --s: .62; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section__title { font-size: clamp(36px, 6vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.section__lead { max-width: 440px; color: var(--muted); font-size: 17px; }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); transition: background .35s, color .35s, transform .3s var(--ease); position: relative; overflow: hidden;
}
.chip:hover { transform: translateY(-2px); }
.chip.on { background: var(--ink); color: #fff; }
.chip i { font-style: normal; opacity: .5; margin-inline-start: 6px; font-size: 12px; }
.chips--dark .chip { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--line-l); }
.chips--dark .chip.on { background: #fff; color: var(--ink); }

/* ---------- Products slider ---------- */
.products { padding-bottom: clamp(60px, 8vw, 110px); }
.slider-nav { display: flex; gap: 10px; }
.slider { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.slider::-webkit-scrollbar { display: none; }
.slider.drag { cursor: grabbing; scroll-snap-type: none; }
.slider.drag .prod { pointer-events: none; }
.slider__track {
  display: flex; gap: 16px; width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  padding-bottom: 8px;
}
.prod {
  position: relative;
  scroll-snap-align: start; scroll-margin-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  width: clamp(250px, 24vw, 320px); flex-shrink: 0; border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); text-align: start; display: flex; flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  animation: prodIn .7s var(--ease) both; animation-delay: var(--d, 0s);
}
@keyframes prodIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.prod:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.prod__visual { position: relative; aspect-ratio: 6 / 5; background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.prod__visual::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.55); transition: transform .8s var(--ease); }
.prod:hover .prod__visual::before { transform: scale(1.25); }
.prod__visual svg, .prod__visual img { position: relative; width: 82%; height: auto; transition: transform .8s var(--ease); }
.prod__visual img { width: 100%; height: 100%; object-fit: cover; }
.prod:hover .prod__visual svg { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
.prod__visual img { transition: transform 1s var(--ease); }
.prod:hover .prod__visual img { transform: scale(1.06); }
.prod__visual:has(img)::before { display: none; }
.prod__body { padding: 18px 20px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prod__name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.prod__spec { font-size: 13px; color: var(--muted); margin-top: 3px; direction: ltr; unicode-bidi: isolate; }
.prod__add {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper);
  transition: background .3s, color .3s, transform .5s var(--ease);
}
.prod:hover .prod__add { background: var(--red); color: #fff; transform: rotate(90deg); }
.prod--sm { width: 200px; animation: none; }
.prod--sm .prod__body { padding: 12px 14px 14px; }
.prod--sm .prod__name { font-size: 14px; }
.prod--sm .prod__add { display: none; }
.slider__progress { height: 3px; background: var(--line); border-radius: 3px; margin-top: 24px; overflow: hidden; }
.slider__progress i { display: block; height: 100%; width: 20%; background: var(--red); border-radius: 3px; transition: width .2s, margin .2s; }

/* ---------- Works ---------- */
.works { background: var(--ink); color: #fff; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.works .section__lead { color: rgba(255,255,255,.6); }
.works__sub { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: rgba(255,255,255,.5); margin-bottom: 22px; }
html[lang="ar"] .works__sub { letter-spacing: 0; font-size: 15px; }
.works__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: clamp(60px, 8vw, 110px) 0 24px; }
.works__bar .works__sub, .works__bar .chips { margin-bottom: 0; }

/* featured editorial strip */
.featured__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.feat { position: relative; cursor: pointer; text-align: start; outline-offset: 6px; }
.feat--xl { grid-column: 1 / -1; }
.feat__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); isolation: isolate; }
.feat--xl .feat__media { aspect-ratio: 21 / 9; }
.feat__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 30%); pointer-events: none; }
.feat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .8s var(--ease); }
.feat__img--2 { opacity: 0; transform: scale(1.08); }
.feat:hover .feat__img { transform: scale(1.05); }
.feat:hover .feat__img--2 { opacity: 1; transform: scale(1); }
.feat__cats { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.feat__cats i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 6px 11px; border-radius: 99px; background: rgba(17,17,17,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.feat__count { position: absolute; bottom: 16px; inset-inline-end: 16px; z-index: 2; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(17,17,17,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.feat__body { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 4px 18px; padding: 20px 4px 0; }
.feat__num { font-size: 13px; font-weight: 700; color: var(--red); padding-top: 8px; font-variant-numeric: tabular-nums; }
.feat__title { font-size: clamp(24px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; transition: color .3s; }
html[lang="ar"] .feat__title { letter-spacing: 0; }
.feat:hover .feat__title { color: #FF4A3D; }
.feat__client { color: rgba(255,255,255,.6); font-size: 15px; margin-top: 6px; }
.feat__client span { color: rgba(255,255,255,.4); }
.feat__tags { grid-column: 2 / 3; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.feat__tags span { font-size: 12px; padding: 5px 11px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-l); color: rgba(255,255,255,.75); }
.feat__go { grid-column: 3; grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); transition: background .4s, color .4s, transform .6s var(--ease), box-shadow .4s; }
.feat:hover .feat__go { background: var(--red); box-shadow: none; transform: rotate(-45deg); }
[dir="rtl"] .feat__go svg { transform: scaleX(-1); }
[dir="rtl"] .feat:hover .feat__go { transform: rotate(45deg); }

/* all projects grid */
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work {
  position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; background: var(--ink-3); text-align: start; aspect-ratio: 4 / 3;
  animation: workIn .8s var(--ease) both; animation-delay: var(--d, 0s); isolation: isolate; color: #fff;
}
@keyframes workIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.work.out { animation: workOut .35s var(--ease-io) forwards; }
@keyframes workOut { to { opacity: 0; transform: scale(.94); } }
.work__media { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work:hover .work__media { transform: scale(1.06); }
.work__cats { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.work__cats i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 5px 10px; border-radius: 99px; background: rgba(17,17,17,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.work__info {
  position: absolute; inset: auto 0 0; padding: 60px 20px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); z-index: 2;
}
.work__title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.work__meta { font-size: 13px; opacity: .75; margin-top: 3px; }
.work__open {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center;
  transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease);
}
.work:hover .work__open { transform: scale(1) rotate(0); }
[dir="rtl"] .work__open svg { transform: scaleX(-1); }
.works__morebtn { grid-column: 1 / -1; justify-self: center; margin-top: 14px; }
.works__morebtn i { font-style: normal; opacity: .6; }
.works__empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: rgba(255,255,255,.55); border: 1px dashed var(--line-l); border-radius: var(--radius); }
.works__more { margin-top: 48px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* floating cursor label */
.cursor-label {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.1; padding: 10px;
  transform: scale(0); transition: transform .35s var(--ease); will-change: transform;
}
.cursor-label.on { transform: scale(1); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 28px 24px 30px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), background .5s, color .5s; overflow: hidden;
}
.step:hover { transform: translateY(-6px); background: var(--red); color: #fff; }
.step__n { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--red); transition: -webkit-text-stroke-color .5s; margin-bottom: 30px; font-family: "Poppins", sans-serif; }
.step:hover .step__n { -webkit-text-stroke-color: #fff; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { font-size: 15px; color: var(--muted); transition: color .5s; }
.step:hover p { color: rgba(255,255,255,.85); }

/* ---------- Reviews ---------- */
.reviews { padding-top: 0; }
.stars { color: var(--red); font-size: 18px; letter-spacing: 2px; font-weight: 700; }
.stars span { color: var(--muted); font-size: 14px; letter-spacing: 0; margin-inline-start: 8px; font-weight: 500; }
.reviews__rail { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews__track { display: flex; gap: 16px; padding-inline-end: 16px; width: max-content; animation: marquee 60s linear infinite; }
[dir="rtl"] .reviews__track { animation-name: marquee-rtl; }
.reviews__rail:hover .reviews__track { animation-play-state: paused; }
.review { width: min(380px, 82vw); padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 22px; justify-content: space-between; }
.review q { font-size: 17px; font-weight: 500; line-height: 1.5; quotes: "“" "”"; }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__av { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.review:nth-child(3n+2) .review__av { background: var(--ink); }
.review:nth-child(3n) .review__av { background: var(--sand); color: var(--ink); }
.review__who b { display: block; font-size: 15px; line-height: 1.3; }
.review__who small { color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq__inner > div:first-child { position: sticky; top: 110px; display: grid; justify-items: start; gap: 18px; }
.faq__inner .section__title { margin-bottom: 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; text-align: start; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; }
.qa__ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; transition: background .35s, transform .5s var(--ease); }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; translate: -50% -50%; border-radius: 2px; transition: transform .5s var(--ease); }
.qa__ic::after { transform: rotate(90deg); }
.qa.open .qa__ic { background: var(--red); color: #fff; box-shadow: none; transform: rotate(180deg); }
.qa.open .qa__ic::after { transform: rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa.open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 0 24px; color: var(--muted); max-width: 640px; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; overflow: hidden; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.contact::before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(227,0,0,.38), rgba(227,0,0,0) 65%); top: -450px; inset-inline-start: -380px; pointer-events: none; }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact__title { font-size: clamp(40px, 6.5vw, 92px); font-weight: 800; line-height: .98; letter-spacing: -.045em; margin-bottom: 20px; }
.contact__intro > p { color: rgba(255,255,255,.65); font-size: 17px; max-width: 420px; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.contact__list a { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; transition: color .3s; }
.contact__list a:hover { color: #FF4A3D; }
.contact__list a[hidden] { display: none; }
#cPhones { display: grid; gap: 4px; }
.contact__list { gap: 4px; }
.contact__list a { min-height: 44px; }
#cPhones a { justify-content: flex-start; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-l); transition: background .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { background: #fff; color: var(--ink); transform: translateY(-3px) rotate(-8deg); }

.form { background: var(--ink-2); border-radius: 28px; padding: clamp(20px, 3vw, 36px); box-shadow: inset 0 0 0 1px var(--line-l); }
.form__label { font-weight: 600; font-size: 15px; margin-bottom: 12px; color: rgba(255,255,255,.8); }
.form__services { margin-bottom: 22px; }
.form__services .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-l); transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--ease); user-select: none;
}
.opt span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); transition: background .3s, box-shadow .3s; }
.opt input:checked + span { background: var(--red); box-shadow: none; }
.opt input:checked + span::before { background: #fff; box-shadow: none; }
.opt span:active { transform: scale(.95); }
.opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 16px; border: 0; background: var(--ink-3); color: #fff; font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s, background .3s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--red); background: #2c2c2c; }
.field span { position: absolute; inset-inline-start: 18px; top: 18px; color: rgba(255,255,255,.5); font-size: 16px; pointer-events: none; transition: transform .3s var(--ease), font-size .3s, top .3s, color .3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 8px; font-size: 12px; color: #FF6A5E; }
.field.err input, .field.err textarea { box-shadow: inset 0 0 0 1.5px #FF6A5E; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.form__actions [hidden] { display: none; }
.form__actions:has([hidden]) { grid-template-columns: 1fr; }
.form__note { margin-top: 12px; font-size: 14px; min-height: 1.4em; color: rgba(255,255,255,.7); }
.form__note.err { color: #FF6A5E; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 0 0 calc(30px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer__big {
  font-weight: 800; font-size: clamp(40px, 18.4vw, 290px); letter-spacing: -.06em; line-height: .8; color: var(--red);
  padding: 40px 0 30px; white-space: nowrap; font-family: "Poppins", sans-serif; direction: ltr; text-align: center;
}
.footer__big span { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.25); }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; border-top: 1px solid var(--line-l); padding-top: 24px; }
.footer__row nav { display: flex; gap: 22px; }
.footer__row a:hover { color: #fff; }

/* ---------- FAB ---------- */
.fab { position: fixed; z-index: 95; inset-inline-end: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; transition: transform .6s var(--ease), opacity .4s; }
.fab.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.fab__quote { padding: 15px 22px; box-shadow: 0 16px 40px -10px rgba(227,0,0,.7); }
.fab__quote::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(227,0,0,.5); animation: pulse 2.6s infinite; z-index: -2; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(227,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(227,0,0,0); } }
.fab__wa { width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(37,211,102,.8); transition: transform .4s var(--ease); }
.fab__wa:hover { transform: scale(1.08) rotate(-8deg); }
.fab__wa[hidden] { display: none; }

/* ---------- Category panel ---------- */
.panel {
  --pc: var(--red); --pt: #fff;
  position: fixed; inset: 0; z-index: 200; background: var(--pc); color: var(--pt);
  clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%)); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s, background-color .6s, color .6s;
}
.panel.open { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s, background-color .6s, color .6s; }
.panel__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.panel__inner { padding-top: 24px; padding-bottom: 140px; }
.panel__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(28px, 6vw, 70px); }
.panel__back { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; font-weight: 600; box-shadow: inset 0 0 0 1.5px currentColor; transition: background .3s, color .3s; }
.panel__back:hover { background: var(--pt); color: var(--pc); }
[dir="rtl"] .panel__num { text-align: end !important; }
[dir="rtl"] .panel__back svg { transform: scaleX(-1); }
.panel__dots { display: flex; gap: 6px; }
.panel__dots button { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .45; transition: opacity .3s, background .3s, color .3s; }
.panel__dots button.on, .panel__dots button:hover { opacity: 1; background: var(--pt); color: var(--pc); }
.panel__num { font-size: 15px; font-weight: 700; opacity: .6; letter-spacing: .1em; }
.panel__title { font-size: clamp(42px, 8.5vw, 128px); font-weight: 800; line-height: .95; letter-spacing: -.05em; margin: 10px 0 18px; max-width: 14ch; }
html[lang="ar"] .panel__title { letter-spacing: 0; line-height: 1.25; }
.panel__tag { font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; opacity: .85; max-width: 720px; }
.panel__desc { font-size: 17px; opacity: .72; max-width: 640px; margin-top: 14px; }
.panel__head { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.panel__pic { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.psec { margin-top: clamp(56px, 7vw, 96px); }
.psec h4 small { font-size: 12px; opacity: .7; margin-inline-start: 8px; text-transform: none; letter-spacing: 0; }
.phl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.phl__card { padding: 26px; border-radius: 22px; background: color-mix(in srgb, var(--pt) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pt) 14%, transparent); transition: transform .5s var(--ease), background .4s; }
.phl__card:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--pt) 11%, transparent); }
.phl__n { font-size: 12px; font-weight: 700; opacity: .5; }
.phl__card h5 { font-size: 20px; font-weight: 700; margin: 14px 0 10px; letter-spacing: -.01em; }
.phl__card p { font-size: 15px; opacity: .78; line-height: 1.6; }
.svcg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.svcg__group { padding: 24px 26px 14px; border-radius: 22px; background: color-mix(in srgb, var(--pt) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pt) 14%, transparent); }
.svcg__group h5 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; margin-bottom: 10px; }
.svct__row { display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid color-mix(in srgb, var(--pt) 14%, transparent); font-size: 15px; transition: padding .35s var(--ease); }
.svct__row:not(.svct__row--head):hover { padding-inline-start: 8px; }
.svct__row--head { border-top: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .55; font-weight: 700; padding-bottom: 6px; }
html[lang="ar"] .svct__row--head { letter-spacing: 0; font-size: 13px; }
.svct__code { font-size: 12px; font-weight: 700; opacity: .6; font-variant-numeric: tabular-nums; text-align: start; }
.svct__d { font-weight: 600; white-space: nowrap; font-size: 14px; opacity: .9; }
.pstep { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; counter-reset: p; }
.pstep li { position: relative; padding: 20px 18px 22px; border-radius: 18px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pt) 18%, transparent); font-weight: 600; font-size: 15px; line-height: 1.4; }
.pstep li span { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 12px; opacity: .35; font-family: "Poppins", sans-serif; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app { padding: 24px; border-radius: 22px; background: color-mix(in srgb, var(--pt) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pt) 14%, transparent); }
.app h5 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.app dl { margin: 0; display: grid; gap: 12px; }
.app dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .55; font-weight: 700; }
html[lang="ar"] .app dt { letter-spacing: 0; font-size: 13px; }
.app dd { margin: 3px 0 0; font-size: 15px; }
.app ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.app li { display: flex; gap: 10px; font-size: 15px; }
.app li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; margin-top: .6em; }
.panel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); margin-top: clamp(40px, 6vw, 80px); }
.panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; opacity: .6; font-weight: 700; margin-bottom: 14px; }
html[lang="ar"] .panel h4 { letter-spacing: 0; font-size: 15px; }
.svc { list-style: none; padding: 0; margin: 0; }
.svc li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--pt) 18%, transparent); font-size: clamp(18px, 2vw, 24px); font-weight: 600; transition: padding .4s var(--ease); }
.svc li:hover { padding-inline-start: 12px; }
.svc li small { font-size: 12px; opacity: .5; font-weight: 700; width: 24px; }
.panel__prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.panel__prods .prod { width: auto; color: var(--ink); }
.panel__works { padding-bottom: 20px; }
.panel__works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.panel__works-grid .work { animation: none; }
.panel__empty { opacity: .6; }
.panel__cta {
  position: fixed; inset: auto 0 0; z-index: 3; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 10px; background: linear-gradient(transparent, color-mix(in srgb, var(--pc) 92%, transparent) 40%);
}
.panel__cta .btn { --bg: var(--pt); --fg: var(--pc); --hover: var(--ink); box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); }
.panel__cta .btn:hover { color: #fff; }
.panel[data-cat="print"] .panel__cta .btn { --hover: var(--red); }
.panel.open [data-anim] { animation: panelIn .9s var(--ease) both; animation-delay: calc(var(--base, .35s) + var(--d, 0s)); }
@keyframes panelIn { from { opacity: 0; transform: translateY(40px); } }

/* ---------- Case viewer ---------- */
.case { position: fixed; inset: 0; z-index: 210; visibility: hidden; transition: visibility 0s .7s; }
.case.open { visibility: visible; transition: none; }
.case__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s; }
.case.open .case__backdrop { opacity: 1; }
.case__sheet {
  position: absolute; inset: 14px; background: #0D0D0D; color: #fff; border-radius: 28px; overflow: hidden;
  transform: translateY(105vh); transition: transform .8s var(--ease);
}
.case.open .case__sheet { transform: none; }
.case__close { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 5; background: rgba(255,255,255,.12); color: #fff; box-shadow: none; backdrop-filter: blur(10px); }
.case__close:hover { background: #fff; color: var(--ink); }
.case__progress { position: absolute; inset: 0 0 auto; height: 3px; z-index: 6; background: rgba(255,255,255,.08); }
.case__progress i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .case__progress i { transform-origin: 100% 50%; }
.case__body { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.case__head { padding: clamp(56px, 8vw, 110px) clamp(20px, 6vw, 90px) clamp(36px, 5vw, 60px); max-width: 1500px; margin: 0 auto; }
.case__title { font-size: clamp(44px, 8vw, 120px); font-weight: 800; letter-spacing: -.05em; line-height: .95; margin: 6px 0 clamp(24px, 4vw, 44px); animation: caseIn 1s var(--ease) .15s both; }
html[lang="ar"] .case__title { letter-spacing: 0; line-height: 1.2; }
@keyframes caseIn { from { opacity: 0; transform: translateY(40px); } }
.case__intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 80px); animation: caseIn 1s var(--ease) .28s both; }
.case__desc { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: rgba(255,255,255,.78); }
.case__meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; align-content: start; }
.case__meta div { border-top: 1px solid var(--line-l); padding-top: 12px; }
.case__meta div:last-child { grid-column: 1 / -1; }
.case__meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.45); font-weight: 700; }
html[lang="ar"] .case__meta dt { letter-spacing: 0; font-size: 13px; }
.case__meta dd { margin: 5px 0 0; font-weight: 600; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.case__tags span { font-size: 13px; padding: 5px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-l); font-weight: 500; }
.case__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 44px); animation: caseIn 1s var(--ease) .4s both; }
.case__gallery { display: grid; gap: clamp(8px, 1vw, 14px); padding: 0 clamp(8px, 1.4vw, 20px); max-width: 1800px; margin: 0 auto; }
.case__fig { margin: 0; border-radius: clamp(12px, 1.4vw, 20px); overflow: hidden; background: #1a1a1a; opacity: 0; transform: translateY(60px) scale(.98); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.case__fig.in { opacity: 1; transform: none; }
.case__fig { cursor: zoom-in; }
.case__fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.case__fig:hover img { transform: scale(1.015); }
.case__chapter { display: flex; align-items: baseline; gap: 16px; padding: clamp(40px, 6vw, 80px) clamp(12px, 4vw, 70px) clamp(10px, 2vw, 20px); font-size: clamp(26px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.case__chapter span { font-size: 14px; font-weight: 700; color: var(--red); letter-spacing: .1em; }
html[lang="ar"] .case__chapter { letter-spacing: 0; }
.zoom { position: fixed; inset: 0; z-index: 260; background: rgba(8,8,8,.96); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.zoom.open { opacity: 1; pointer-events: auto; }
.zoom img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 10px; transform: scale(.96); transition: transform .5s var(--ease); }
.zoom.open img { transform: none; }
.zoom__btn, .zoom__close { position: absolute; background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.zoom__btn:hover, .zoom__close:hover { background: #fff; color: var(--ink); }
.zoom__prev { inset-inline-start: 18px; top: 50%; translate: 0 -50%; }
.zoom__next { inset-inline-end: 18px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .zoom__btn svg { transform: scaleX(-1); }
.zoom__close { top: 18px; inset-inline-end: 18px; }
.zoom__count { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .zoom__btn { display: none; } }
.case__next {
  position: relative; display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; min-height: clamp(260px, 40vh, 420px);
  margin-top: clamp(40px, 6vw, 90px); overflow: hidden; color: #fff; text-align: center; isolation: isolate;
}
.case__next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.05); transition: transform 1.4s var(--ease); filter: brightness(.45); }
.case__next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0D0D0D 0%, transparent 40%); }
.case__next:hover img { transform: scale(1.12); filter: brightness(.55); }
.case__next-label { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.65); font-weight: 600; }
.case__next strong { font-size: clamp(36px, 6vw, 88px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.case__next-go { width: 56px; height: 56px; border-radius: 50%; background: var(--red); display: grid; place-items: center; margin-top: 8px; transition: transform .6s var(--ease); }
.case__next:hover .case__next-go { transform: translateX(8px); }
[dir="rtl"] .case__next-go svg { transform: scaleX(-1); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .header__cta { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--ink); flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 4px; padding: 90px var(--gutter) 40px; clip-path: circle(0 at calc(100% - 40px) 34px); transition: clip-path .8s var(--ease-io);
  }
  [dir="rtl"] .nav { clip-path: circle(0 at 40px 34px); }
  .nav.open { clip-path: circle(150vmax at calc(100% - 40px) 34px); }
  [dir="rtl"] .nav.open { clip-path: circle(150vmax at 40px 34px); }
  .nav a { color: #fff; font-size: clamp(30px, 8vw, 44px); font-weight: 700; padding: 6px 0; letter-spacing: -.02em; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(2) { transition-delay: .05s; } .nav.open a:nth-child(3) { transition-delay: .1s; }
  .nav.open a:nth-child(4) { transition-delay: .15s; } .nav.open a:nth-child(5) { transition-delay: .2s; } .nav.open a:nth-child(6) { transition-delay: .25s; }
  .nav a:not(.btn):hover { background: none; color: var(--red); }
  .nav a.active::after { display: none; }
  .nav__mobile-cta { display: inline-flex !important; font-size: 17px !important; margin-top: 24px; padding: 16px 26px !important; }
  .header.menu .header__logo img { filter: brightness(0) invert(1); }
  .header.menu { background: transparent; box-shadow: none; backdrop-filter: none; }
  .header.menu .lang__btn { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--line-l); }
  .header.menu .burger { background: var(--red); }
  .faq__inner, .contact__inner, .panel__cols, .panel__head { grid-template-columns: 1fr; }
  .panel__pic { aspect-ratio: 16 / 10; }
  .faq__inner > div:first-child { position: static; }
  .works__grid, .panel__works-grid { grid-template-columns: repeat(2, 1fr); }
  .phl, .apps { grid-template-columns: 1fr; }
  .case__intro { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1; padding-inline: 16px; }
  .hero__ctas .btn--ghost { display: none; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { aspect-ratio: 1 / 1.12; border-radius: 18px; border-width: 5px; }
  .cat__pic, .cat::before { border-radius: 13px; }
  .cat__num { display: none; }
  .cat__icon { width: 32px; height: 32px; border-radius: 10px; top: 10px; inset-inline-start: 10px; }
  .cat__icon svg { width: 17px; height: 17px; }
  .cat__bottom { padding: 0 12px 12px; }
  .cat__title { font-size: 15px; line-height: 1.22; }
  .cat__tag, .cat__items, .cat__go { display: none; }
  .cat__veil { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.96) 32%, rgba(255,255,255,.7) 46%, rgba(255,255,255,0) 64%); }
  .works__grid, .panel__works-grid { grid-template-columns: 1fr; }
  .featured__grid { grid-template-columns: 1fr; }
  .feat--xl .feat__media, .feat__media { aspect-ratio: 4 / 3; }
  .feat__go { width: 44px; height: 44px; }
  .work__open { transform: none; width: 38px; height: 38px; }
  .svct__row { grid-template-columns: 1fr auto; }
  .svct__code { grid-column: 1 / -1; margin-bottom: -8px; }
  .svct__row--head span:first-child { display: none; }
  .case__meta { grid-template-columns: 1fr; }
  .case__sheet { inset: 0; border-radius: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; padding: 22px; }
  .step__n { font-size: 44px; margin: 0; grid-row: span 2; }
  .form__grid, .form__actions { grid-template-columns: 1fr; }
  .panel__prods { grid-template-columns: 1fr 1fr; gap: 8px; }
  .panel__cta .btn { width: 100%; }
  .fab { inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .fab__quote { flex: 1; padding: 16px; font-size: 16px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .marquee { padding: 14px 0; }
  .prod { width: 76vw; }
  .slider-nav { display: none; }
  .section__head { margin-bottom: 22px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .lang__btn span { display: none; }
}

@media (max-width: 640px) {
  .btn--lg { white-space: normal; text-align: center; line-height: 1.3; }
  .case__actions .btn, .faq .btn { width: 100%; }
  .pstep { grid-template-columns: 1fr 1fr; }
  .pstep li { padding: 16px 14px 18px; font-size: 14px; }
  .pstep li span { font-size: 22px; margin-bottom: 8px; }
  .feat__count { bottom: 12px; inset-inline-end: 12px; }
  .feat__cats { top: 12px; inset-inline-start: 12px; max-width: calc(100% - 24px); }
}

@media (hover: none) {
  .cat__items { display: none; }
  .cursor-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .cat { opacity: 1; transform: none; translate: none; }
  .marquee__track, .reviews__track { animation: none; }
}
