/* =============================================
   OMNIX — Tech Minimalist · Clean Build
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --black:  #050505;
  --white:  #ffffff;
  --purple: #7A00FF;
  --p10:    rgba(122,0,255,.10);
  --p20:    rgba(122,0,255,.20);
  --p40:    rgba(122,0,255,.40);
  --p60:    rgba(122,0,255,.60);
  --glow:   0 0 40px rgba(122,0,255,.35);
  --muted:  rgba(255,255,255,.50);
  --border: rgba(255,255,255,.06);
  --glass:  rgba(255,255,255,.025);
  --max:    1440px;
  --font:   'Inter', system-ui, sans-serif;
  --ease:   cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* ─── Reset ─── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { background:var(--black); -webkit-font-smoothing:antialiased; }
html.lenis,html.lenis body { height:auto; }
.lenis.lenis-smooth { scroll-behavior:auto !important; }
body { overflow-x:hidden; background:var(--black); color:var(--white); font-family:var(--font); font-size:1rem; line-height:1.65; }
body::-webkit-scrollbar { display:none; }
a { color:inherit; text-decoration:none; }
img,video { display:block; max-width:100%; }
button { font:inherit; border:none; background:none; color:inherit; }
::selection { color:var(--white); background:var(--purple); }

/* Desktop custom cursor */
@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}
@media (pointer: coarse) {
  .cur-dot, .cur-ring, .cur-glow { display: none !important; }
}

/* ─── Typography — Inter only ─── */
h1,h2,h3,h4 { font-family:var(--font); font-weight:600; letter-spacing:-0.03em; line-height:1.15; }
h1 { font-size:3.5rem; }
h2 { font-size:2.5rem; }
h3 { font-size:1.5rem; }
h4 { font-size:1.1rem; font-weight:600; }
p  { font-size:1rem; line-height:1.7; color:rgba(255,255,255,.60); }

/* ─── Noise Grain ─── */
.noise {
  position:fixed; inset:-50%; z-index:9500;
  width:200%; height:200%; pointer-events:none; opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain .4s steps(3) infinite;
}
@keyframes grain {
  0%  { transform:translate(0,0); }
  33% { transform:translate(-3%,-3%); }
  66% { transform:translate(3%,1%); }
}

/* ─── Scroll Progress Bar (Top Laser) ─── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #7A00FF 0%, #c084fc 60%, #00f0ff 100%);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 999999;
  box-shadow: 0 0 14px rgba(122,0,255,.9), 0 0 28px rgba(0,240,255,.4);
  pointer-events: none;
}

/* ─── Floating VIP HUD Pill ─── */
.hud-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 14px;
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(122,0,255,.35);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.7), 0 0 25px rgba(122,0,255,.2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.16,1,.3,1), border-color .3s;
}

.hud-pill.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hud-pill:hover {
  border-color: var(--purple);
  box-shadow: 0 10px 35px rgba(0,0,0,.8), 0 0 32px rgba(122,0,255,.4);
}

.hud-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 700;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(122,0,255,.2);
  border: 1px solid rgba(122,0,255,.4);
  transition: all .2s ease;
}

.hud-link:hover {
  background: var(--purple);
  transform: scale(1.03);
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .7; }
}

.hud-top-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s ease;
}

.hud-top-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* ─── Preloader ─── */
.preloader {
  position:fixed; inset:0; z-index:10000;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.8rem;
  background:var(--black);
  transition:opacity .9s ease, visibility .9s ease;
}
.preloader.done { opacity:0; visibility:hidden; pointer-events:none; }
.preloader-num { font-size:clamp(5rem,14vw,12rem); font-weight:800; letter-spacing:-0.05em; line-height:.9; }
.preloader-bar { width:clamp(160px,28vw,300px); height:1px; background:rgba(255,255,255,.08); overflow:hidden; }
.preloader-fill { height:100%; width:0; background:var(--purple); box-shadow:var(--glow); transition:width .1s linear; }
.preloader-label { font-size:.6rem; font-weight:700; letter-spacing:.25em; text-transform:uppercase; color:var(--muted); }

/* ─── Cursor ─── */
.cur-dot  { position:fixed; z-index:99999; width:8px; height:8px; border-radius:50%; background:var(--purple); pointer-events:none; transform:translate(-50%,-50%); box-shadow:0 0 14px rgba(122,0,255,.65); transition:width .3s var(--ease),height .3s var(--ease),background .3s ease; }
.cur-ring { position:fixed; z-index:99998; width:44px; height:44px; border-radius:50%; border:1.5px solid rgba(122,0,255,.45); pointer-events:none; transform:translate(-50%,-50%); transition:width .45s var(--spring),height .45s var(--spring),border-color .3s ease; }
.cur-glow { position:fixed; z-index:99990; width:260px; height:260px; border-radius:50%; pointer-events:none; background:radial-gradient(circle,rgba(122,0,255,.22),transparent 70%); filter:blur(28px); mix-blend-mode:screen; opacity:.45; transform:translate(-50%,-50%); }
.cur-dot.hov { width:52px; height:52px; background:rgba(122,0,255,.08); box-shadow:0 0 30px rgba(122,0,255,.2); }
.cur-ring.hov { width:52px; height:52px; border-color:var(--purple); opacity:.35; }

/* ─── Header ─── */
.hdr {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vh, 32px) clamp(20px, 4vw, 68px);
  background: transparent;
}

.logo { width: clamp(56px, 5vw, 84px); flex-shrink: 0; }
.logo img { width: 100%; filter: drop-shadow(0 0 14px rgba(122,0,255,.18)); transition: filter .4s ease; }
.logo:hover img { filter: drop-shadow(0 0 28px rgba(122,0,255,.5)); }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav a { opacity: .55; transition: opacity .3s ease, color .3s ease; position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--purple); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover { opacity: 1; color: #fff; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─── Button ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 24px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(14px);
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: all .4s var(--ease);
  cursor: pointer;
  position: relative;
  z-index: 10;
}
.btn:hover { border-color: var(--purple); background: rgba(122,0,255,.18); box-shadow: 0 0 30px rgba(122,0,255,.4); transform: scale(1.05); }
.btn .arrow { width: 12px; height: 8px; background: currentColor; clip-path: polygon(0 42%,70% 42%,52% 0,100% 50%,52% 100%,70% 58%,0 58%); transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-cta { justify-self: end; flex-shrink: 0; }

/* ─── Shell / Label / Section ─── */
.shell { width: min(var(--max), calc(100% - clamp(40px,8vw,140px))); margin: 0 auto; }
.sec   { padding: clamp(80px,10vw,160px) 0; }
.label {
  display: inline-block; margin-bottom: 14px;
  font-size: .65rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--purple); opacity: .7;
}

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; isolation: isolate;
  padding: clamp(120px, 16vh, 180px) clamp(20px,5vw,80px) clamp(60px,8vh,100px);
}
.hero-vid-wrap { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-vid { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.5) contrast(1.3) brightness(.35); transform: scale(1.04); }
.hero-mask { position: absolute; inset: 0; background: radial-gradient(ellipse 65% 65% at 50% 45%,transparent 0%,var(--black) 100%); }
.hero-ov   { position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 55% 35%,rgba(122,0,255,.15),transparent 45%),linear-gradient(180deg,rgba(5,5,5,.1) 0%,rgba(5,5,5,.04) 40%,rgba(5,5,5,.98) 100%); }

.hero-inner { text-align: center; position: relative; z-index: 10; max-width: 860px; margin-top: clamp(40px, 7vh, 70px); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: clamp(14px,2vw,24px);
  font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(122,0,255,.9);
}
.hero-tag::before,.hero-tag::after { content: ''; width: 24px; height: 1px; background: var(--purple); }
.hero-title {
  font-size: clamp(3rem,10vw,7rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: .95;
  margin-bottom: clamp(12px,2vw,22px);
}
.hero-slogan {
  font-size: clamp(1rem,2vw,1.35rem);
  font-weight: 400; color: rgba(255,255,255,.68);
  letter-spacing: 0; line-height: 1.6;
  max-width: 560px; margin: 0 auto clamp(24px,3vw,44px);
}
.hero-foot { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 20; }

.scroll-cue { position: absolute; right: clamp(20px,4vw,68px); bottom: 34px; display: flex; align-items: center; gap: 10px; writing-mode: vertical-rl; color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue .bar { width: 1px; height: 52px; background: rgba(255,255,255,.08); overflow: hidden; }
.scroll-cue .bar::after { content: ''; display: block; width: 1px; height: 16px; background: var(--purple); box-shadow: 0 0 6px var(--purple); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%{transform:translateY(-20px)} 100%{transform:translateY(58px)} }

/* ─── Stats ─── */
.stats { padding:clamp(28px,4vw,44px) 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:rgba(122,0,255,.015); }
.stats-inner { width:min(var(--max),calc(100% - clamp(40px,8vw,140px))); margin:0 auto; display:flex; justify-content:center; gap:clamp(36px,8vw,110px); flex-wrap:wrap; }
.stat { text-align:center; }
.stat strong { display:block; font-size:clamp(2.5rem,5.5vw,5.5rem); font-weight:800; letter-spacing:-0.04em; line-height:.9; }
.stat strong::before { content:'+'; color:var(--purple); }
.stat span { display:block; margin-top:8px; color:var(--muted); font-size:.62rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; }

/* ─── About ─── */
.about { background:radial-gradient(ellipse at 8% 30%,rgba(122,0,255,.05),transparent 50%),#060606; }
.about-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(28px,6vw,96px); align-items:end; }
.about-copy p { color:rgba(255,255,255,.75); font-size:clamp(1rem,2vw,1.5rem); font-weight:500; line-height:1.5; letter-spacing:-0.01em; }

/* ─── Services Bento ─── */
.services { background:radial-gradient(ellipse at 72% 18%,rgba(122,0,255,.04),transparent 50%),var(--black); }
.sec-head { display:grid; grid-template-columns:.28fr 1fr; gap:clamp(16px,4vw,64px); align-items:start; margin-bottom:clamp(36px,5vw,64px); }

.bento { display:grid; grid-template-columns:1.1fr .9fr 1fr; grid-auto-rows:minmax(200px,auto); gap:10px; }
.card {
  position:relative; min-height:240px; overflow:hidden;
  padding:clamp(20px,2.5vw,32px);
  border:1px solid var(--border); border-radius:16px;
  background:var(--glass); backdrop-filter:blur(16px);
  transition:transform .45s var(--ease), border-color .35s ease, box-shadow .45s ease;
}
.card::before { content:''; position:absolute; inset:0; border-radius:16px; background:radial-gradient(circle at var(--mx,50%) var(--my,50%),rgba(122,0,255,.07),transparent 50%); opacity:0; transition:opacity .35s ease; pointer-events:none; }
.card:hover { border-color:rgba(122,0,255,.4); transform:translateY(-4px); box-shadow:0 0 40px rgba(122,0,255,.1),0 24px 60px rgba(0,0,0,.3); }
.card:hover::before { opacity:1; }
.card > * { position:relative; z-index:1; }
.card .n { color:var(--purple); font-size:.7rem; font-weight:700; letter-spacing:.1em; opacity:.6; }
.card h3 { margin-top:clamp(22px,3vw,40px); font-size:clamp(1.1rem,2vw,1.6rem); font-weight:600; letter-spacing:-0.02em; }
.card p  { margin-top:10px; color:var(--muted); font-size:.88rem; line-height:1.6; }
.c-lg { grid-column:span 2; grid-row:span 2; }
.c-w  { grid-column:span 2; }
.c-t  { grid-row:span 2; }

/* ─── Portfolio Controls & Filter Pills ─── */
.work-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.work-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all .35s var(--ease);
}
.work-filter-btn:hover,
.work-filter-btn.active {
  background: rgba(122,0,255,.2);
  border-color: rgba(122,0,255,.6);
  color: #fff;
  box-shadow: 0 0 25px rgba(122,0,255,.25);
  transform: translateY(-2px);
}

/* ─── Portfolio Stack ─── */
.work { background:radial-gradient(ellipse at 50% 0%,rgba(122,0,255,.06),transparent 50%),#070707; }
.work-head { margin-bottom:clamp(24px,4vw,48px); }
.stack {
  width:min(1180px,calc(100% - 32px)); margin:0 auto;
  padding-bottom:clamp(60px,8vw,120px);
  perspective: 1200px;
}
.proj {
  position:sticky; top:96px;
  min-height:min(680px,72vh); margin-bottom:36px;
  overflow:hidden; border:1px solid rgba(255,255,255,.12);
  border-radius:28px; background:#0c0c0c;
  box-shadow:0 30px 90px rgba(0,0,0,.75), 0 0 50px rgba(122,0,255,.08);
  transform-origin:top center; will-change:transform;
  z-index:1;
  cursor:pointer;
  transition:border-color .4s ease, box-shadow .4s ease, transform .4s var(--ease);
}
.proj::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(122,0,255,.18), transparent 45%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 3;
}
.proj:hover::before {
  opacity: 1;
}
.proj:hover {
  border-color:rgba(122,0,255,.65);
  box-shadow:0 35px 100px rgba(0,0,0,.85), 0 0 60px rgba(122,0,255,.25);
}
.proj img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:.92;
  filter:saturate(.98) contrast(1.05) brightness(.92);
  transition:transform .9s var(--ease), opacity .5s ease, filter .5s ease;
}
.proj:hover img {
  transform:scale(1.04);
  opacity:1;
  filter:saturate(1.06) contrast(1.08) brightness(1);
}
.proj::after {
  content:''; position:absolute; inset:0; z-index:1;
  background:linear-gradient(to top, rgba(5,5,5,.96) 0%, rgba(5,5,5,.45) 45%, rgba(5,5,5,.1) 100%), radial-gradient(circle at 12% 85%, rgba(122,0,255,.3), transparent 50%);
}

/* Floating top metric badge on the card */
.proj-stat-badge {
  position: absolute;
  top: clamp(20px, 3.5vw, 36px);
  right: clamp(20px, 3.5vw, 36px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(10,10,10,.75);
  border: 1px solid rgba(122,0,255,.45);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 20px rgba(122,0,255,.2);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  transition: all .35s ease;
}
.proj:hover .proj-stat-badge {
  background: rgba(122,0,255,.25);
  border-color: var(--purple);
  box-shadow: 0 0 30px rgba(122,0,255,.4);
  transform: scale(1.05);
}
.proj-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .6; }
}

.proj-info { position:absolute; left:0; right:0; bottom:0; z-index:2; padding:clamp(24px,4.5vw,52px); }
.proj-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.proj-tags span {
  display:inline-flex; align-items:center; height:26px; padding:0 12px;
  border:1px solid rgba(122,0,255,.4); border-radius:999px;
  background:rgba(122,0,255,.18); backdrop-filter:blur(8px);
  font-size:.62rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#fff;
}
.proj-info h3 { font-size:clamp(2.2rem,5vw,4.8rem); font-weight:800; letter-spacing:-0.03em; color:#fff; }
.proj-info p  { max-width:560px; margin-top:8px; color:rgba(255,255,255,.8); font-size:clamp(.92rem,1.15vw,1.1rem); font-weight:400; line-height:1.55; }
.proj-cta-hint {
  display:inline-flex; align-items:center; gap:10px; margin-top:18px;
  padding:10px 22px; border-radius:999px; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18); backdrop-filter:blur(12px);
  font-size:.75rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#fff;
  transition:all .35s var(--ease);
}
.proj:hover .proj-cta-hint {
  background:var(--purple);
  border-color:var(--purple);
  box-shadow:0 0 25px rgba(122,0,255,.5);
  transform:translateX(6px);
}

/* ─── Text Marquee ─── */
.marq { overflow:hidden; padding:clamp(32px,4vw,52px) 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.marq-track { display:flex; width:max-content; gap:clamp(24px,4vw,60px); animation:marquee 28s linear infinite; }
.marq-track span { font-size:clamp(1.4rem,3.5vw,4rem); font-weight:700; letter-spacing:-0.03em; text-transform:uppercase; white-space:nowrap; color:transparent; -webkit-text-stroke:1px rgba(255,255,255,.16); transition:color .3s ease,-webkit-text-stroke-color .3s ease; }
.marq-track span:hover { color:var(--purple); -webkit-text-stroke-color:var(--purple); }
@keyframes marquee { to { transform:translateX(-50%); } }

/* ─── Trust Wall — 80px logos ─── */
.trust { padding:clamp(40px,5vw,68px) 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); overflow:hidden; }
.trust-label { text-align:center; margin-bottom:clamp(22px,3vw,38px); font-size:.6rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase; color:var(--muted); }
.trust-track { display:flex; width:max-content; gap:0; align-items:center; animation:logoScroll 38s linear infinite; }
.trust-track img {
  height:80px; width:auto; max-width:220px;
  object-fit:contain;
  margin:0 40px;
  opacity:.5; filter:grayscale(1) brightness(2);
  transition:opacity .35s ease, filter .35s ease;
}
.trust-track img:hover { opacity:1; filter:grayscale(0) brightness(1); }
@keyframes logoScroll { to { transform:translateX(-50%); } }

/* ─── Fullscreen Footer Video (OMNIX_FOOTER.webm) ─── */
.footer-showreel,
.vid-fullscreen {
  position:relative !important;
  width:100% !important;
  height:100vh !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  z-index:10 !important;
  margin-top:0 !important;
}

.footer-video-bg,
.vid-fullscreen video {
  position:absolute !important;
  top:0 !important; left:0 !important;
  width:100% !important; height:100% !important;
  object-fit:cover !important;
  opacity:.55;
  filter:brightness(.5) saturate(.65) contrast(1.2);
  z-index:-1 !important;
  pointer-events:none !important;
}

.footer-content,
.footer-main,
.vid-fullscreen-overlay {
  position:relative !important;
  z-index:3 !important;
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
  padding:clamp(20px,5vw,80px);
}

.vid-fs-title {
  font-size:clamp(2rem,6vw,5.5rem);
  font-weight:700; letter-spacing:-0.03em; line-height:1.1;
  color:var(--white);
  margin-bottom:14px;
}

.footer-content p:not(.vid-fs-title),
.vid-fullscreen-overlay p {
  font-size:clamp(.72rem,1.1vw,.95rem);
  font-weight:600; letter-spacing:.26em;
  text-transform:uppercase;
  color:rgba(255,255,255,.50);
}

/* Purple cinematic overlay on footer video */
.footer-vid-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    /* Deep purple center glow */
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(122,0,255,.28), transparent 70%),
    /* Dark vignette edges */
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 40%, rgba(5,5,5,.75) 100%),
    /* Subtle purple tint across entire frame */
    linear-gradient(135deg, rgba(80,0,180,.15) 0%, rgba(122,0,255,.08) 50%, rgba(40,0,120,.18) 100%);
}


/* ─── Footer ─── */
.footer {
  position:relative; z-index:20;
  background:radial-gradient(ellipse at 50% 20%,rgba(122,0,255,.05),transparent 55%),var(--black);
  padding:clamp(80px,10vw,140px) 0 clamp(40px,5vw,60px);
}
.footer-hero { text-align:center; margin-bottom:clamp(50px,7vw,96px); }
.footer-title {
  font-size:clamp(2.5rem,8vw,9rem);
  font-weight:800; letter-spacing:-0.04em; line-height:.95;
  display:inline-block;
  transition:text-shadow .5s ease, transform .5s var(--ease);
  cursor:pointer;
}
.footer-title:hover { text-shadow:0 0 80px rgba(122,0,255,.5),0 0 160px rgba(122,0,255,.18); transform:scale(1.02); }

.footer-grid {
  width: min(var(--max), calc(100% - clamp(40px,8vw,140px)));
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 80px);
  padding-top: clamp(28px, 4vw, 52px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-col h4 { font-size:.7rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; margin-bottom:16px; color:rgba(255,255,255,.65); }
.footer-col a { display:block; margin-bottom:10px; color:var(--muted); font-size:.9rem; font-weight:400; transition:color .3s ease; }
.footer-col a:hover { color:var(--white); }
.footer-col .btn { margin-top:8px; }

.footer-bar {
  width:min(var(--max),calc(100% - clamp(40px,8vw,140px))); margin:clamp(48px,6vw,80px) auto 0;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  padding-top:24px; border-top:1px solid rgba(255,255,255,.04);
}
.footer-bar img { width:clamp(48px,4.5vw,72px); filter:drop-shadow(0 0 10px rgba(122,0,255,.14)); }
.footer-bar p { color:rgba(255,255,255,.28); font-size:.62rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }

/* ─── Reveal Base — opacity set by JS, not CSS (failsafe) ─── */
[data-r],[data-s] { opacity:1; transition:opacity .1s; }
.js-ready [data-r], .js-ready [data-s] { opacity:0; }

/* ─── Video Showcase Grid ─── */
.vid-grid { background:var(--black); }
.vid-grid .shell { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.vid-tile {
  position:relative; aspect-ratio:16/9; overflow:hidden;
  border-radius:16px; border:1px solid var(--border); background:#0a0a0a;
  transition:border-color .35s ease, box-shadow .35s ease;
}
.vid-tile:first-child { grid-column:span 2; aspect-ratio:21/9; }
.vid-tile:hover { border-color:rgba(122,0,255,.28); box-shadow:0 0 36px rgba(122,0,255,.07); }
.vid-tile video { width:100%; height:100%; object-fit:cover; opacity:.6; filter:brightness(.55) contrast(1.1); }
.vid-tile .vid-label { position:absolute; bottom:14px; left:16px; z-index:2; font-size:.6rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); }

/* ─── Responsive ─── */
@media (max-width:1020px) {
  body,a,button { cursor:auto; }
  .cur-dot,.cur-ring,.cur-glow { display:none; }
  .hdr { grid-template-columns:1fr auto; }
  .nav { display:none; }
  .about-grid,.sec-head,.footer-grid { grid-template-columns:1fr; }
  .bento { grid-template-columns:1fr 1fr; }
  .c-lg,.c-w,.c-t { grid-column:auto; grid-row:auto; }
  .vid-grid .shell { grid-template-columns:1fr; }
  .vid-tile:first-child { grid-column:auto; aspect-ratio:16/9; }
}
@media (max-width:680px) {
  .btn-cta { display:none; }
  .hero { min-height:100svh; padding-top:100px; align-items:flex-end; text-align:left; }
  .hero-inner { text-align:left; }
  .hero-tag { justify-content:flex-start; }
  h1 { font-size:2.6rem; }
  h2 { font-size:1.9rem; }
  .bento { grid-template-columns:1fr; }
  .proj { top:68px; min-height:460px; border-radius:14px; }
  .footer-grid { grid-template-columns:1fr; }
  .scroll-cue { display:none; }
  .sec { padding:clamp(56px,12vw,100px) 0; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  [data-r],[data-s] { opacity:1; }
  .preloader { display:none; }
}

/* ─────────────────────────────────────────────
   SHOWREEL CAROUSEL
   ───────────────────────────────────────────── */

.showreel {
  background: radial-gradient(ellipse at 50% 0%, rgba(122,0,255,.06), transparent 55%), #070707;
  overflow: hidden;
}

.showreel-head { margin-bottom: clamp(28px,4vw,48px); }

/* Outer: arrows + scrollable track in a row */
.showreel-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 clamp(20px,5vw,80px);
}

/* Scrollable track */
.showreel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 20px 0 28px;
  flex: 1;
}
.showreel-track::-webkit-scrollbar { display: none; }

/* Individual card */
.sreel-card {
  flex: 0 0 auto;
  width: clamp(230px, 24vw, 300px);
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
}

/* Thumbnail container — portrait 9:16 */
.sreel-thumb {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #080808;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  transition: all .35s cubic-bezier(.16,1,.3,1);
}

.sreel-card:hover .sreel-thumb {
  border-color: rgba(122,0,255,.6);
  box-shadow: 0 0 35px rgba(122,0,255,.3), 0 20px 50px rgba(0,0,0,.7);
  transform: translateY(-4px);
}

.sreel-card.is-playing .sreel-thumb {
  border-color: var(--purple);
  box-shadow: 0 0 45px rgba(122,0,255,.45);
}

.sreel-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.88) contrast(1.05);
  transition: filter .4s ease, transform .5s ease;
}

.sreel-card:hover .sreel-thumb img {
  filter: brightness(1) contrast(1.08);
  transform: scale(1.06);
}

/* Luxury gradient overlays on thumb */
.sreel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.4) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity .3s ease;
}

.sreel-card.is-playing .sreel-overlay,
.sreel-card.is-playing .sreel-play {
  display: none;
}

/* Play button */
.sreel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(122,0,255,.9);
  border: 2px solid rgba(255,255,255,.35);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(122,0,255,.65);
  transition: transform .3s var(--ease), background .3s ease, box-shadow .3s ease;
}

.sreel-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.sreel-card:hover .sreel-play {
  transform: translate(-50%,-50%) scale(1.15);
  background: #9d3bff;
  box-shadow: 0 0 40px rgba(157,59,255,.9);
}

/* Inline In-Card Iframe */
.sreel-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 5;
  border-radius: 20px;
}

/* Close/Reset Inline Button */
.sreel-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
}

.sreel-close-btn:hover {
  background: var(--purple);
  transform: rotate(90deg);
}

.sreel-card.is-playing .sreel-close-btn {
  display: flex;
}

@media (max-width:680px) {
  .sreel-card { width: clamp(160px,55vw,220px); }
  .sreel-btn  { display: none; }
}



/* ─────────────────────────────────────────────
   SERVICES — SPLIT SCREEN  (3fr left | 2fr right)
   ───────────────────────────────────────────── */

.svc-split {
  background: radial-gradient(ellipse at 72% 18%, rgba(122,0,255,.04), transparent 50%), var(--black);
}

/* Outer 3fr | 2fr grid */
.svc-outer {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}

/* ── LEFT column ── */
.svc-left { display: flex; flex-direction: column; gap: clamp(32px,4vw,56px); }

.svc-header { display: flex; flex-direction: column; gap: 12px; }

.svc-sub {
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
  max-width: 520px;
  margin-top: 4px;
}

/* 2×3 cards grid */
.svc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Individual card — background applied via inline style */
.svc-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.05);
  padding: 32px 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .4s ease, box-shadow .4s ease;
  /* bg-image scale lives on a pseudo-element */
  background-size: cover !important;
  background-position: center !important;
}

/* Pseudo-element for the scale hover on background image */
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover !important;
  background-position: center !important;
  transition: transform .65s cubic-bezier(.16,1,.3,1);
  z-index: 0;
  border-radius: 20px;
}

.svc-card:hover {
  border-color: rgba(122,0,255,.5);
  box-shadow: 0 0 30px rgba(122,0,255,.16), 0 16px 48px rgba(0,0,0,.5);
}

.svc-card:hover::before { transform: scale(1.06); }

/* Purple glow on hover */
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at 15% 60%, rgba(122,0,255,.1), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
}
.svc-card:hover::after { opacity: 1; }

/* All direct children above pseudo-elements */
.svc-card > * { position: relative; z-index: 1; }

.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.svc-num {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(122,0,255,.9);
}

.svc-badge {
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  background: rgba(122,0,255,.18);
  border: 1px solid rgba(122,0,255,.35);
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.svc-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  margin: 0;
}

.svc-card p {
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
  margin: 0;
}

.svc-arrow {
  display: inline-block;
  font-size: 1rem;
  color: rgba(122,0,255,.55);
  margin-top: 4px;
  transition: transform .3s ease, color .3s ease;
  width: fit-content;
}
.svc-card:hover .svc-arrow { transform: translateX(5px); color: var(--purple); }

/* ── RIGHT column — video ── */
.svc-right {
  position: sticky;
  top: 10vh;
}

.svc-vid-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow:
    0 0 60px rgba(122,0,255,.18),
    0 40px 100px rgba(0,0,0,.6);
  background: #0a0a0a;
}

.svc-vid-wrap video {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
  filter: brightness(.8) saturate(.85);
  transition: filter .5s ease;
}

.svc-vid-wrap:hover video { filter: brightness(.95) saturate(1); }

.svc-vid-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
}

/* ── Responsive ── */
@media (max-width:1020px) {
  .svc-outer { grid-template-columns: 1fr; }
  .svc-right { position: relative; top: auto; }
  .svc-vid-wrap video { aspect-ratio: 16/9; }
}

@media (max-width:680px) {
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card  { padding: 24px 20px; }
  .svc-card h3 { font-size: .95rem; }
}

/* ─── OMNIX Case Study Story Modal (قصة التحول والنتائج) ─── */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.cs-modal.active {
  opacity: 1;
  visibility: visible;
}

.cs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,.92);
  backdrop-filter: blur(24px);
}

.cs-container {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 60px);
  background: rgba(13,13,13,.98);
  border: 1px solid rgba(122,0,255,.35);
  border-radius: 24px;
  box-shadow: 0 0 80px rgba(122,0,255,.25), 0 30px 90px rgba(0,0,0,.85);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: scale(0.96);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.cs-container::-webkit-scrollbar {
  width: 6px;
}
.cs-container::-webkit-scrollbar-track {
  background: rgba(255,255,255,.02);
}
.cs-container::-webkit-scrollbar-thumb {
  background: rgba(122,0,255,.4);
  border-radius: 999px;
}
.cs-container::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}

.cs-modal.active .cs-container {
  transform: scale(1);
}

.cs-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
}

.cs-close:hover {
  background: var(--purple);
  transform: rotate(90deg);
}

.cs-inner {
  padding: 36px clamp(20px, 4vw, 54px);
  clear: both;
}

.cs-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(122,0,255,.2);
  border: 1px solid rgba(122,0,255,.45);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cs-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.cs-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  max-width: 680px;
  margin-bottom: 32px;
}

/* 3-Stage Story Grid */
.cs-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.cs-stage-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}

.cs-stage-card.stage-results {
  background: linear-gradient(145deg, rgba(122,0,255,.15), rgba(255,255,255,.02));
  border-color: rgba(122,0,255,.4);
}

.cs-stage-num {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple);
}

.cs-stage-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.cs-stage-card p {
  font-size: .86rem;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
}

.cs-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(122,0,255,.25);
  border: 1px solid rgba(122,0,255,.5);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  width: fit-content;
}

.cs-point-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.cs-point-item {
  position: relative;
  padding-right: 14px;
  border-right: 2px solid var(--purple);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cs-point-title {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
}

.cs-point-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

.cs-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.cs-metric-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(122,0,255,.2);
  border: 1px solid rgba(122,0,255,.35);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
}

.cs-img-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
  background: #080808;
}

.cs-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.cs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 860px) {
  .cs-story-grid { grid-template-columns: 1fr; }
  .cs-container { max-height: calc(100vh - 40px); }
  .cs-inner { padding: 24px 18px; }
}

/* ─── Gallery section inside Case Study Modal ─── */
.cs-gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-gallery-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--purple);
  border-radius: 2px;
}
.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.cs-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #080808;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: all .3s ease;
}
.cs-gallery-item:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(122,0,255,.3);
}
.cs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cs-gallery-item:hover img {
  transform: scale(1.05);
}

/* ─── Extended Portfolio Grid (باقي سابقة الأعمال) ─── */
.ext-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(122,0,255,.04), transparent 60%), #060606;
  border-top: 1px solid var(--border);
}
.ext-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 60px);
}
.ext-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.ext-head p {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  max-width: 540px;
  margin: 10px auto 0;
}
.ext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  width: min(var(--max), calc(100% - clamp(32px, 6vw, 96px)));
  margin: 0 auto;
}
.ext-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #0d0d0d;
  aspect-ratio: 4/3;
  transition: all .45s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 15px 40px rgba(0,0,0,.5);
}
.ext-card:hover {
  transform: translateY(-8px);
  border-color: rgba(122,0,255,.6);
  box-shadow: 0 0 35px rgba(122,0,255,.25), 0 20px 50px rgba(0,0,0,.8);
}
.ext-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) brightness(.9);
  transition: transform .7s cubic-bezier(.16,1,.3,1), filter .4s ease;
}
.ext-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(1);
}
.ext-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,.92) 0%, rgba(5,5,5,.3) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  opacity: 0.9;
  transition: opacity .3s ease;
}
.ext-card:hover .ext-overlay {
  opacity: 1;
}
.ext-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.ext-tag {
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(122,0,255,.25);
  border: 1px solid rgba(122,0,255,.45);
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ext-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
/* ─── 06 / Sovereign Methodology Grid (منهجية الهيمنة) ─── */
.sovereign-sec {
  padding: clamp(80px, 10vw, 130px) 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(122,0,255,.08), transparent 70%), var(--black);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.sovereign-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.sovereign-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}

.sovereign-head p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 12px;
}

.sovereign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sov-card {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 22px;
  padding: 36px 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .4s cubic-bezier(.16,1,.3,1);
}

.sov-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity .4s ease;
}

.sov-card:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(122,0,255,.45);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 30px rgba(122,0,255,.18);
}

.sov-card:hover::before {
  opacity: 1;
}

.sov-num {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--purple-light);
  text-transform: uppercase;
}

.sov-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.sov-card p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* ─── VIP Consultation & Final Command Block ─── */
.vip-cta-box {
  background: linear-gradient(135deg, rgba(122,0,255,.12) 0%, rgba(20,20,20,.8) 100%);
  border: 1px solid rgba(122,0,255,.35);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px);
  margin: clamp(50px, 8vw, 90px) auto 0;
  max-width: 960px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 70px rgba(122,0,255,.2);
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(122,0,255,.25);
  border: 1px solid rgba(122,0,255,.5);
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.vip-cta-box h3 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.vip-cta-box p {
  font-size: clamp(.92rem, 1.4vw, 1.08rem);
  color: rgba(255,255,255,.7);
  max-width: 660px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.vip-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .sovereign-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .sovereign-grid { grid-template-columns: 1fr; }
}

/* ─── Service Detail Modal (صفحة تفاصيل الخدمة المنبثقة) ─── */
.svc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.svc-modal.active {
  opacity: 1;
  visibility: visible;
}

.svc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,.94);
  backdrop-filter: blur(28px);
}

.svc-modal-container {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 60px);
  background: rgba(12,12,12,.98);
  border: 1px solid rgba(122,0,255,.4);
  border-radius: 24px;
  box-shadow: 0 0 80px rgba(122,0,255,.25), 0 30px 90px rgba(0,0,0,.9);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: scale(0.96);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.svc-modal-container::-webkit-scrollbar { width: 6px; }
.svc-modal-container::-webkit-scrollbar-track { background: rgba(255,255,255,.02); }
.svc-modal-container::-webkit-scrollbar-thumb { background: rgba(122,0,255,.4); border-radius: 999px; }

.svc-modal.active .svc-modal-container {
  transform: scale(1);
}

.svc-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
}

.svc-modal-close:hover {
  background: var(--purple);
  transform: rotate(90deg);
}

.svc-modal-inner {
  padding: 36px clamp(20px, 4vw, 54px);
  clear: both;
}

.svc-modal-head-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(122,0,255,.2);
  border: 1px solid rgba(122,0,255,.45);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.svc-modal-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}

.svc-modal-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* 2-Col Grid inside Service Modal */
.svc-modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-bottom: 32px;
}

.svc-detail-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.svc-detail-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(122,0,255,.1);
  border: 1px solid rgba(122,0,255,.25);
  border-radius: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}

.svc-deliverable-item span {
  color: var(--purple-light);
  font-weight: 700;
}

.svc-metric-card {
  background: linear-gradient(145deg, rgba(122,0,255,.2), rgba(255,255,255,.02));
  border: 1px solid rgba(122,0,255,.45);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-metric-card strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.svc-metric-card span {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}

@media (max-width: 860px) {
  .svc-modal-grid { grid-template-columns: 1fr; }
  .svc-modal-inner { padding: 24px 18px; }
}

