/* =========================================================
   EMD creative layer
   ========================================================= */

/* ---------- ambient colour journey ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(120px); opacity: .22; will-change: transform; }
.ambient__a { background: #2a2d7c; top: -20vmax; inset-inline-end: -18vmax; animation: amb1 26s ease-in-out infinite alternate; }
.ambient__b { background: #1475bc; bottom: -25vmax; inset-inline-start: -20vmax; animation: amb2 32s ease-in-out infinite alternate; }
@keyframes amb1 { to { transform: translate(-14vmax, 18vmax) scale(1.15); } }
@keyframes amb2 { to { transform: translate(16vmax, -12vmax) scale(.9); } }
.about, .vm, .process, .depts, .work, .clients, .manifesto { background: transparent; }

/* ---------- hero creative lens ---------- */
.hero__lens { position: absolute; inset: 0; z-index: 0; pointer-events: none; --x: 30%; --y: 55%; --r: 0px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 58%, rgba(0,0,0,.55) 74%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 58%, rgba(0,0,0,.55) 74%, transparent 100%); }
.hero__lens-img { position: absolute; inset: -6%; background: #1475bc center / cover no-repeat; filter: saturate(1.25) contrast(1.05); will-change: transform; }
.hero__lens-ring { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 1.5); height: calc(var(--r) * 1.5); transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 0 60px rgba(25,181,240,.35) inset; }
.hero__inner { z-index: 1; }
.hero__title .line--outline .split { -webkit-text-stroke-color: rgba(255,255,255,.9); }
@media (prefers-reduced-motion: reduce) { .hero__lens { display: none; } }

/* ---------- click burst ---------- */
.burst { position: fixed; z-index: 95; width: 12px; height: 10px; margin: -5px 0 0 -6px; pointer-events: none; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.burst--down { clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* ---------- statement with floating cards (replaces kinetic manifesto) ---------- */
.manifesto { position: relative; min-height: 112vh; display: grid; place-items: center; padding: clamp(90px, 12vw, 180px) 0; overflow: hidden; }
.manifesto::before { content: ""; position: absolute; inset: 15% 10%; background: radial-gradient(ellipse at center, rgba(25,181,240,.14), transparent 65%); pointer-events: none; }
.manifesto__rows { position: relative; width: var(--wrap); min-height: 80vh; display: grid; place-items: center; }
.st-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.st-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 6.2vw, 104px); line-height: 1.02; letter-spacing: -.04em; }
html[lang="ar"] .st-title { letter-spacing: 0; line-height: 1.3; font-size: clamp(38px, 5.6vw, 92px); }
.st-line { display: block; overflow: hidden; padding-bottom: .06em; }
html[lang="ar"] .st-line { padding: .04em 0 .16em; }
.st-in { display: inline-block; }
.st-title em { font-style: normal; background: linear-gradient(100deg, #8fd3ff, #19b5f0 45%, #d2577a 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.st-card { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; pointer-events: auto; rotate: var(--r); box-shadow: 0 30px 60px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.12); transition: translate .9s cubic-bezier(.22,1,.36,1), rotate .6s, box-shadow .5s; will-change: transform; }
.st-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.st-card:hover { rotate: 0deg; box-shadow: 0 40px 80px -24px rgba(25,181,240,.5), 0 0 0 1px rgba(255,255,255,.3); }
.st-card:hover img { transform: scale(1.08); }
.st-card--tl { width: clamp(150px, 15vw, 240px); aspect-ratio: 4/5; top: 2%; inset-inline-start: 0; }
.st-card--tr { width: clamp(170px, 17vw, 270px); aspect-ratio: 4/3; top: 6%; inset-inline-end: 2%; }
.st-card--ml { width: clamp(110px, 10vw, 160px); aspect-ratio: 1; top: 44%; inset-inline-start: 6%; }
.st-card--mr { width: clamp(120px, 11vw, 180px); aspect-ratio: 3/4; top: 40%; inset-inline-end: -1%; }
.st-card--bl { width: clamp(160px, 16vw, 250px); aspect-ratio: 4/3; bottom: 2%; inset-inline-start: 10%; }
.st-card--br { width: clamp(140px, 14vw, 220px); aspect-ratio: 4/5; bottom: 0; inset-inline-end: 12%; }
@media (max-width: 900px) {
  .manifesto { min-height: 0; }
  .manifesto__rows { min-height: 0; padding: 160px 0; }
  .st-card--ml, .st-card--mr { display: none; }
  .st-card--tl, .st-card--tr, .st-card--bl, .st-card--br { width: 30vw; }
  .st-card--tl { top: 0; } .st-card--tr { top: 2%; } .st-card--bl { bottom: 0; inset-inline-start: 2%; } .st-card--br { bottom: 2%; inset-inline-end: 4%; }
}

/* ---------- scroll-drawn journey (process) ---------- */
.journey { position: relative; height: clamp(420px, 40vw, 560px); margin-top: 20px; }
.journey__svg { position: absolute; left: 0; right: 0; top: 18%; width: 100%; height: 64%; overflow: visible; }
html[dir="rtl"] .journey__svg { transform: scaleX(-1); }
.journey__ghost { fill: none; stroke: rgba(160,175,255,.14); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.journey__path { fill: none; stroke: url(#jg); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 10px rgba(25,181,240,.55)); }
.journey__comet { position: absolute; left: 0; top: 18%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(25,181,240,.25), 0 0 30px 8px rgba(25,181,240,.7); z-index: 3; pointer-events: none; }
html[dir="rtl"] .journey__comet { left: 0; }
.journey__end { position: absolute; top: calc(18% + 64% * .69); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transform: translateY(14px); }
.journey__end--a { inset-inline-start: 0; } .journey__end--b { inset-inline-end: 0; top: calc(18% + 64% * .53); }
html[lang="ar"] .journey__end { letter-spacing: 0; font-size: 14px; }
.journey__steps { list-style: none; margin: 0; padding: 0; position: absolute; inset: 18% 0 18%; }
.jstep { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.jstep__node { position: absolute; left: 0; top: 0; width: 64px; height: 72px; transform: translate(-50%, -50%) scale(.75); display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: #121646; transition: transform .7s cubic-bezier(.34,1.56,.64,1), background .5s; z-index: 2; }
.jstep__node b { font-family: "Syne", sans-serif; font-size: 18px; color: var(--muted); transition: color .4s; }
.jstep.is-on .jstep__node { transform: translate(-50%, -50%) scale(1); background: linear-gradient(135deg, #19b5f0, #1475bc 60%, #d2577a); }
.jstep.is-on .jstep__node b { color: #fff; }
.jstep__card { position: absolute; left: 0; width: clamp(200px, 19vw, 260px); transform: translate(-50%, 0); padding: 18px 20px; border-radius: 18px; background: rgba(14,18,60,.72); border: 1px solid rgba(160,175,255,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: .25; filter: blur(2px); transition: opacity .6s, filter .6s, transform .8s var(--ease); }
.jstep--up .jstep__card { bottom: 50px; transform: translate(-50%, 14px); }
.jstep--down .jstep__card { top: 50px; transform: translate(-50%, -14px); }
.jstep.is-on .jstep__card { opacity: 1; filter: none; transform: translate(-50%, 0); }
.jstep__card h3 { margin: 0 0 6px; font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 26px); }
.jstep__card p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) {
  .journey { height: auto; padding-inline-start: 34px; }
  .journey::before { content: ""; position: absolute; inset-inline-start: 12px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(#19b5f0, #1475bc, #d2577a); border-radius: 2px; }
  .journey__svg, .journey__comet, .journey__end, .journey__ghost { display: none; }
  .journey__path { display: none; }
  .journey__steps { position: static; display: grid; gap: 18px; }
  .jstep { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .jstep__node { left: -22px; top: 26px; width: 40px; height: 46px; }
  .jstep__node b { font-size: 13px; }
  .jstep__card, .jstep--up .jstep__card, .jstep--down .jstep__card { position: relative; left: auto; top: auto; bottom: auto; width: auto; transform: none; opacity: 1; filter: none; }
  html[dir="rtl"] .jstep__node { left: auto; right: -62px; }
}

/* ---------- department constellation (fixed nodes, no overlap) ---------- */
.orbit { width: var(--wrap); margin-inline: auto; }
.orbit__stage { position: relative; width: min(780px, 100%); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.cst__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cst__ring { fill: none; stroke: rgba(160,175,255,.14); stroke-width: .18; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1.4; }
.cst__ring--in { stroke: rgba(25,181,240,.2); stroke-dasharray: none; }
.cst__line { stroke: rgba(143,211,255,.16); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .35s; }
.cst__line.is-on { stroke: rgba(25,181,240,.85); }
.cst__rot { position: absolute; left: 50%; top: 50%; width: 78cqw; aspect-ratio: 1; margin: -39cqw 0 0 -39cqw; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 82%, rgba(25,181,240,.35) 95%, transparent); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: orbSpin 9s linear infinite; will-change: transform; }
/* light pulse from hub to node — transform-only (composited) */
.cst__pulse { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #8fe3ff; box-shadow: 0 0 12px 3px rgba(25,181,240,.8); opacity: 0;
  animation: cstPulse 3.6s cubic-bezier(.45,0,.2,1) infinite; will-change: transform, opacity; }
@keyframes cstPulse { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(calc(var(--dx) * 1cqw), calc(var(--dy) * 1cqw)) scale(1); opacity: 0; } }
@keyframes orbSpin { to { transform: rotate(360deg); } }
.cst__node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; outline: none; width: 150px; text-align: center; }
.cst__ph { position: relative; width: clamp(72px, 11.5cqw, 108px); aspect-ratio: 1; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #19b5f0, #1475bc, #d2577a, #19b5f0);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.9), 0 0 0 6px rgba(10,14,48,.7); transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .4s; }
.cst__ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; filter: saturate(.85) brightness(.9); transition: filter .4s; }
.cst__ph i { position: absolute; bottom: -4px; inset-inline-end: -6px; font: 700 10.5px/1 "Syne", sans-serif; font-style: normal; color: #fff; padding: 5px 7px; border-radius: 999px; background: #0b1040; border: 1px solid rgba(25,181,240,.5); }
.cst__node b { font-family: var(--f-display); font-weight: 600; font-size: clamp(13px, 1.25cqw + 4px, 16px); line-height: 1.3; color: #e8ecff; padding: 6px 12px; border-radius: 999px; background: rgba(9,12,40,.85); border: 1px solid rgba(160,175,255,.16); }
.cst__node--below { flex-direction: column; }
.cst__node:hover .cst__ph, .cst__node:focus-visible .cst__ph { transform: scale(1.12); box-shadow: 0 24px 50px -16px rgba(25,181,240,.6), 0 0 0 6px rgba(25,181,240,.25); }
.cst__node:hover img, .cst__node:focus-visible img { filter: none; }
.cst__node:focus-visible b { outline: 2px solid var(--cyan); outline-offset: 3px; }
.orbit__hub { position: absolute; left: 50%; top: 50%; width: 30cqw; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 3; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: radial-gradient(circle at 35% 30%, #1d2a78, #0a0d30 70%); border: 1px solid rgba(160,175,255,.25); box-shadow: 0 0 80px rgba(25,181,240,.25), inset 0 0 40px rgba(25,181,240,.15); }
.orbit__hub svg { width: 52%; fill: #fff; }
.orbit__hub svg .lg-acc { fill: var(--rose); }
.orbit__hub b { font-family: var(--f-display); font-size: clamp(12px, 1.6cqw, 16px); font-weight: 600; color: #cfe0ff; padding: 0 12%; }
.orbit__pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(25,181,240,.5); animation: orbPulse 3s ease-out infinite; will-change: transform, opacity; }
.orbit__pulse--2 { animation-delay: 1.5s; }
@keyframes orbPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.orbit__list { display: none; }
.depts { overflow: hidden; }
@media (max-width: 860px) {
  .orbit__stage { display: none; }
  .orbit__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
  .orbit__list li { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 18px; background: linear-gradient(160deg, #141b52, #080a24); border: 1px solid rgba(160,175,255,.16); font-family: var(--f-display); font-weight: 600; font-size: 14px; }
  .orbit__list li:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; background: linear-gradient(110deg, #19b5f0, #1475bc 60%, #2a2d7c); border: 0; }
  .orbit__list img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
  .orbit__list-mark svg { width: 56px; fill: #fff; } .orbit__list-mark .lg-acc { fill: #ffd2de; }
  .orbit__list i { display: block; font-style: normal; font-family: "Syne", sans-serif; font-size: 11px; color: var(--cyan); margin-bottom: 2px; }
  .orbit__list li:first-child i { color: #fff; }
}

/* ---------- gallery: liquid lean ---------- */
.work__item { will-change: transform; transform-origin: 50% 50%; }

@media (prefers-reduced-motion: reduce) {
  .cst__rot, .cst__pulse, .orbit__pulse, .ambient i { animation: none !important; }
}
