/* T-Media Group — brand: navy #001741, mint #70E3BF → aqua #55C6D9 → blue #42A8F5 */
:root {
  --navy: #001741;
  --navy-2: #041f52;
  --navy-3: #0a2a66;
  --deep: #000d26;
  --mint: #70e3bf;
  --aqua: #55c6d9;
  --sky: #42a8f5;
  --white: #ffffff;
  --text: #e8eefb;
  --muted: #9fb0d0;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.05);
  --grad: linear-gradient(100deg, var(--mint), var(--aqua) 50%, var(--sky));
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Sora", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); }
body.loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--aqua); color: var(--navy); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--deep);
  display: grid; place-items: center; align-content: center; gap: 28px;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { width: 110px; animation: pulse 1.6s var(--ease) infinite; filter: drop-shadow(0 0 30px rgba(85,198,217,.5)); }
.loader-bar { width: 160px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--grad); animation: load 1.1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .8; } }

/* ---------- Cursor glow & progress ---------- */
.cursor-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(85,198,217,.13), transparent 65%);
  transform: translate(-50%, -50%); left: -600px; top: -600px; transition: opacity .3s;
}
.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; box-shadow: 0 0 12px var(--aqua); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  will-change: transform;
}
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-gradient { background: var(--grad); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(85,198,217,.7); overflow: hidden; }
.btn-gradient::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55), transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-gradient:hover::after { transform: translateX(120%); }
.btn-gradient:hover { box-shadow: 0 16px 40px -10px rgba(85,198,217,.9); }
.btn-ghost { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--aqua); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
.play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--navy); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; inset-inline: 0; margin-inline: auto; width: min(1200px, 100% - 32px); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 14px 12px 22px; border-radius: 999px;
  background: rgba(0, 18, 51, .35); border: 1px solid transparent;
  transition: background .4s, border-color .4s, top .4s var(--ease), transform .5s var(--ease);
}
html[dir="rtl"] .nav { padding: 12px 22px 12px 14px; }
.nav.scrolled { background: rgba(0, 18, 51, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); top: 10px; }
.nav.hide { transform: translateY(-140%); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-mark { height: 30px; width: auto; }
.nav-word { font-weight: 700; font-size: 18px; color: var(--white); letter-spacing: -.01em; direction: ltr; }
.nav-word small { font-size: 10px; letter-spacing: .25em; color: var(--muted); font-weight: 600; margin-inline-start: 2px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { position: relative; padding: 8px 14px; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color .3s, background .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-family: var(--font-ar); transition: border-color .3s, background .3s; }
html[lang="ar"] .lang-toggle { font-family: var(--font); }
.lang-toggle:hover { border-color: var(--aqua); background: rgba(85,198,217,.1); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.nav.open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 100px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 80% 10%, #06307a 0%, var(--navy) 45%, var(--deep) 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero-grid { position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-orb { position: absolute; border-radius: 50%; z-index: -2; animation: drift 16s ease-in-out infinite alternate; will-change: transform; }
.orb-1 { width: 760px; height: 760px; background: radial-gradient(circle, rgba(112,227,191,.3), transparent 62%); top: -120px; inset-inline-start: -120px; }
.orb-2 { width: 900px; height: 900px; background: radial-gradient(circle, rgba(66,168,245,.32), transparent 62%); bottom: -220px; inset-inline-end: -160px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); margin-bottom: 22px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow.center { display: flex; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(112,227,191,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(112,227,191,0); } 100% { box-shadow: 0 0 0 0 rgba(112,227,191,0); } }

.hero-title { font-size: clamp(44px, 7.2vw, 96px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; color: var(--white); }
html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
.hero-title .line { display: block; }
.rotator-wrap { height: 1.08em; overflow: hidden; position: relative; }
html[lang="ar"] .rotator-wrap { height: 1.3em; }
.rotator { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .6s var(--ease), opacity .6s var(--ease); padding-bottom: .08em; }
.rotator.out { transform: translateY(-100%); opacity: 0; }
.rotator.in { transform: translateY(100%); opacity: 0; transition: none; }
.hero-sub { margin-top: 26px; max-width: 540px; font-size: 18px; color: var(--muted); font-weight: 300; }
.hero-ctas { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 580px; perspective: 1200px; }
.phone {
  position: absolute; inset-inline-start: 50%; top: 50%; width: 270px; height: 550px; margin-inline-start: -135px; margin-top: -275px;
  border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #1c2d52, #050d22);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 80px -10px rgba(85,198,217,.35);
  transform-style: preserve-3d; transition: transform .6s var(--ease);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -14px; } }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 20px; background: #000; z-index: 3; }
.reel { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.reel-slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; animation: slides 9s infinite; }
.reel-slide span { font-size: 46px; font-weight: 800; letter-spacing: .06em; color: rgba(255,255,255,.95); text-shadow: 0 6px 30px rgba(0,0,0,.35); transform: scale(1.2); animation: zoomtxt 3s var(--ease) infinite; direction: ltr; }
.s1 { background: radial-gradient(circle at 30% 20%, #8af0d0, transparent 60%), linear-gradient(160deg, #1d9c83, #0b3d6b); }
.s2 { background: radial-gradient(circle at 70% 30%, #7fd9ea, transparent 55%), linear-gradient(200deg, #1b6fb8, #1b1f5c); animation-delay: 3s; }
.s3 { background: radial-gradient(circle at 40% 70%, #6fbaf7, transparent 55%), linear-gradient(140deg, #6d5bd0, #001741); animation-delay: 6s; }
.s2 span, .s3 span { animation-delay: inherit; }
@keyframes slides { 0% { opacity: 0; transform: scale(1.1); } 4% { opacity: 1; } 30% { opacity: 1; } 36% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@keyframes zoomtxt { 0% { transform: scale(1.4); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 100% { transform: scale(.94); } }
.reel-ui { position: absolute; inset: 0; z-index: 2; padding: 50px 16px 22px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(transparent 60%, rgba(0,0,0,.55)); direction: ltr; }
.reel-progress { display: flex; gap: 4px; }
.reel-progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.reel-progress i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; animation: prog 9s linear infinite; }
.reel-progress i:nth-child(2)::after { animation-name: prog2; } .reel-progress i:nth-child(3)::after { animation-name: prog3; }
@keyframes prog { 0% { transform: scaleX(0); } 33.3%, 100% { transform: scaleX(1); } }
@keyframes prog2 { 0%, 33.3% { transform: scaleX(0); } 66.6%, 100% { transform: scaleX(1); } }
@keyframes prog3 { 0%, 66.6% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.reel-side { position: absolute; right: 14px; bottom: 90px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 22px; color: #fff; }
.reel-side small { font-size: 11px; margin-bottom: 12px; opacity: .9; }
.heart { color: #ff4d6d; animation: beat 1.5s infinite; }
@keyframes beat { 15% { transform: scale(1.3); } 30% { transform: scale(1); } }
.reel-caption { color: #fff; font-size: 13px; max-width: 80%; }
.reel-caption p { opacity: .85; font-size: 12px; }
html[lang="ar"] .reel-caption p { direction: rtl; text-align: right; font-family: var(--font-ar); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px;
  background: rgba(10, 32, 78, .55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); animation: float 6s ease-in-out infinite; z-index: 3;
}
.float-card b { display: block; font-size: 14px; color: var(--white); }
.float-card small { font-size: 12px; color: var(--muted); }
.float-card small.up { color: var(--mint); }
.fc-1 { top: 70px; inset-inline-start: -60px; animation-delay: -1s; }
.fc-2 { top: 270px; inset-inline-end: -70px; animation-delay: -3s; }
.fc-3 { bottom: 60px; inset-inline-start: -40px; animation-delay: -5s; }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--navy); }
.fc-icon.mint { background: var(--mint); } .fc-icon.sky { background: var(--sky); font-size: 13px; }
.fc-chart { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.fc-chart i { width: 7px; height: var(--h); border-radius: 3px; background: var(--grad); animation: grow 2.4s var(--ease) infinite alternate; transform-origin: bottom; }
.fc-chart i:nth-child(2) { animation-delay: .2s; } .fc-chart i:nth-child(3) { animation-delay: .4s; } .fc-chart i:nth-child(4) { animation-delay: .6s; } .fc-chart i:nth-child(5) { animation-delay: .8s; }
@keyframes grow { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.3); border-radius: 20px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--aqua); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 26px 0; background: var(--grad); transform: rotate(-1.5deg) scale(1.03); margin: -20px 0 0; z-index: 2; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 30s linear infinite; align-items: center; }
.marquee-track span { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--navy); font-size: 26px; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 130px 0; }
.section-dark { background: linear-gradient(180deg, var(--deep), var(--navy) 50%, var(--deep)); }
.section-glow { background: radial-gradient(60% 60% at 20% 50%, rgba(66,168,245,.12), transparent 70%), var(--deep); }
.section-head { max-width: 760px; margin-bottom: 70px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.section-title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; color: var(--white); }
html[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.3; }
.section-sub { margin-top: 20px; font-size: 18px; color: var(--muted); font-weight: 300; max-width: 600px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative; padding: 36px 32px 32px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); border-color: rgba(85,198,217,.4); box-shadow: 0 30px 60px -30px rgba(66,168,245,.5); }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(112,227,191,.14), transparent 45%);
}
.spotlight:hover::before { opacity: 1; }
.svc-num { position: absolute; top: 26px; inset-inline-end: 28px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.18); }
.svc-icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 28px; position: relative;
  background: linear-gradient(145deg, rgba(112,227,191,.18), rgba(66,168,245,.18)); border: 1px solid rgba(255,255,255,.1); transition: transform .5s var(--ease); }
.svc-card:hover .svc-icon { transform: rotate(-8deg) scale(1.08); }
.svc-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--aqua); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 12px; letter-spacing: -.01em; }
.svc-card p { color: var(--muted); font-size: 15px; font-weight: 300; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); }

/* ---------- Work ---------- */
.filters { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.filters button { padding: 10px 18px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .35s var(--ease); }
.filters button.active { background: var(--grad); color: var(--navy); font-weight: 600; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 22px; }
.w-tall { grid-row: span 2; } .w-wide { grid-column: span 2; }
.work-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.work-item.hidden { opacity: .12; transform: scale(.97); pointer-events: none; }
.work-art { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 1s var(--ease); }
.work-item:hover .work-art { transform: scale(1.07); }
.work-meta { position: absolute; inset-inline: 0; bottom: 0; padding: 26px; background: linear-gradient(transparent, rgba(0,10,30,.9)); transform: translateY(12px); transition: transform .5s var(--ease); }
.work-item:hover .work-meta { transform: none; }
.work-meta span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
html[lang="ar"] .work-meta span { letter-spacing: 0; font-size: 13px; }
.work-meta h4 { font-size: 22px; color: var(--white); font-weight: 600; margin-top: 4px; }
.work-meta h4::after { content: " →"; opacity: 0; transition: opacity .4s; }
html[dir="rtl"] .work-meta h4::after { content: " ←"; }
.work-item:hover .work-meta h4::after { opacity: 1; }

.art-1 { background: radial-gradient(circle at 30% 30%, rgba(112,227,191,.55), transparent 50%), linear-gradient(160deg, #0e6f7a, #041f52); }
.art-play { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--navy); background: rgba(255,255,255,.92); box-shadow: 0 0 0 14px rgba(255,255,255,.12), 0 0 0 28px rgba(255,255,255,.06); animation: pulse 2.4s infinite; padding-left: 5px; }
.art-2 { background: conic-gradient(from 200deg at 60% 40%, #42a8f5, #6d5bd0, #001741, #42a8f5); }
.art-logo { font-size: 110px; font-weight: 800; color: rgba(255,255,255,.9); letter-spacing: -.05em; font-family: Georgia, serif; font-style: italic; text-shadow: 0 10px 40px rgba(0,0,0,.3); }
.art-3 { background: linear-gradient(135deg, #f7b267, #f25f5c 60%, #6d2e5b); }
.art-posts { display: grid; grid-template-columns: repeat(3, 56px); gap: 8px; transform: rotate(-10deg); }
.art-posts i { height: 56px; border-radius: 10px; background: rgba(255,255,255,.85); }
.art-posts i:nth-child(odd) { background: rgba(255,255,255,.35); }
.art-4 { background: radial-gradient(circle at 80% 50%, rgba(66,168,245,.6), transparent 50%), linear-gradient(90deg, #06142e, #0a2a66); }
.art-wave { display: flex; gap: 8px; align-items: center; height: 120px; }
.art-wave i { width: 10px; border-radius: 6px; background: var(--grad); animation: wave 1.2s ease-in-out infinite alternate; height: 30%; }
.art-wave i:nth-child(3n) { animation-delay: -.3s; } .art-wave i:nth-child(3n+1) { animation-delay: -.7s; } .art-wave i:nth-child(4n) { animation-delay: -1s; }
@keyframes wave { to { height: 100%; } }
.art-5 { background: linear-gradient(160deg, #70e3bf, #1e8fe0); }
.art-bars { display: flex; gap: 14px; align-items: flex-end; height: 150px; }
.art-bars i { width: 34px; border-radius: 8px 8px 0 0; background: rgba(0,23,65,.85); }
.art-bars i:nth-child(1) { height: 30%; } .art-bars i:nth-child(2) { height: 50%; } .art-bars i:nth-child(3) { height: 72%; } .art-bars i:nth-child(4) { height: 100%; }
.art-6 { background: radial-gradient(circle at 50% 120%, #55c6d9, transparent 60%), #0b1c44; }
.art-book { width: 130px; height: 170px; border-radius: 6px 14px 14px 6px; background: linear-gradient(120deg, #fff, #dfe9f7); box-shadow: 16px 16px 0 -4px rgba(255,255,255,.25), 0 30px 50px -10px rgba(0,0,0,.6); transform: rotate(-8deg); position: relative; }
.art-book::before { content: ""; position: absolute; inset: 22px 18px auto; height: 60px; border-radius: 6px; background: var(--grad); }
.art-book::after { content: ""; position: absolute; left: 18px; right: 40px; top: 100px; height: 8px; border-radius: 4px; background: #c9d5e8; box-shadow: 0 16px 0 #c9d5e8, 0 32px 0 #dbe3f0; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.process-line { position: absolute; top: 28px; inset-inline: 8%; height: 2px; background: var(--line); }
.process-line span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 14px var(--aqua); transition: width .2s linear; }
html[dir="rtl"] .process-line span { margin-inline-start: auto; }
.step { text-align: center; position: relative; }
.step-dot { width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--white);
  background: var(--navy-2); border: 2px solid rgba(85,198,217,.4); position: relative; z-index: 1; transition: all .5s var(--ease); }
.step.lit .step-dot { background: var(--grad); color: var(--navy); border-color: transparent; box-shadow: 0 0 30px rgba(85,198,217,.6); }
.step h4 { color: var(--white); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); font-weight: 300; }

/* ---------- About & stats ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-copy > p { color: var(--muted); font-size: 17px; font-weight: 300; margin-top: 22px; }
.checks { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.checks li::before { content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--navy); font-weight: 800; font-size: 13px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat { position: relative; overflow: hidden; padding: 40px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); transition: transform .5s var(--ease); }
.stat:nth-child(2), .stat:nth-child(4) { transform: translateY(40px); }
.stat:hover { transform: translateY(-6px); }
.stat:nth-child(2):hover, .stat:nth-child(4):hover { transform: translateY(34px); }
.stat b { display: block; font-size: clamp(40px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; direction: ltr; text-align: start; }
html[dir="rtl"] .stat b { text-align: end; }
.stat > span { color: var(--muted); font-size: 15px; }

/* ---------- Industries ---------- */
.industries { padding: 40px 0 110px; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(1000px, 100% - 40px); margin: 10px auto 0; }
.pill-row span { padding: 14px 24px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 15px; transition: all .4s var(--ease); }
.pill-row span:hover { background: var(--grad); color: var(--navy); border-color: transparent; transform: translateY(-3px); }

/* ---------- CTA / contact ---------- */
.cta-card { position: relative; overflow: hidden; border-radius: 36px; padding: 70px; border: 1px solid rgba(255,255,255,.12); background: var(--navy); isolation: isolate; }
.cta-bg { position: absolute; inset: -60%; z-index: -1; will-change: transform; animation: spin 24s linear infinite;
  background: radial-gradient(closest-side at 35% 35%, rgba(112,227,191,.32), transparent), radial-gradient(closest-side at 65% 40%, rgba(66,168,245,.34), transparent), radial-gradient(closest-side at 50% 68%, rgba(109,91,208,.28), transparent); }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.cta-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 18px; font-size: 17px; }
.contact-list { margin-top: 36px; display: grid; gap: 14px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .4s var(--ease); }
a.contact-row:hover { background: rgba(255,255,255,.08); border-color: rgba(85,198,217,.4); transform: translateX(6px); }
html[dir="rtl"] a.contact-row:hover { transform: translateX(-6px); }
.ci { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: var(--navy); }
.contact-row small { display: block; font-size: 12px; color: var(--muted); }
.contact-row b { font-weight: 600; color: var(--white); }

.contact-form { padding: 34px; border-radius: 26px; background: rgba(0, 10, 30, .5); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: grid; gap: 16px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--white); font: inherit; font-size: 15px; outline: none; transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical;
}
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--aqua) 50%), linear-gradient(135deg, var(--aqua) 50%, transparent 50%); background-position: calc(100% - 22px) 26px, calc(100% - 16px) 26px; background-size: 6px 6px; background-repeat: no-repeat; }
html[dir="rtl"] .field select { background-position: 16px 26px, 22px 26px; }
.field select option { background: var(--navy); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--aqua); background: rgba(85,198,217,.06); box-shadow: 0 0 0 4px rgba(85,198,217,.12); }
.field label { position: absolute; inset-inline-start: 18px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.static { top: 8px; font-size: 11px; color: var(--aqua); letter-spacing: .05em; }
.field.error input, .field.error textarea { border-color: #ff6b7a; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 30px; background: linear-gradient(180deg, var(--deep), #000817); }
.footer-inner { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; }
.footer-logo { width: 150px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 320px; font-size: 15px; }
.footer-cols { display: flex; gap: 80px; flex-wrap: wrap; }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.footer-cols h5 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
html[lang="ar"] .footer-cols h5 { letter-spacing: 0; font-size: 15px; }
.footer-cols a, .footer-cols span { color: var(--muted); font-size: 15px; transition: color .3s; }
.footer-cols a:hover { color: var(--aqua); }
.footer-bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.to-top { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: all .4s var(--ease); }
.to-top:hover { background: var(--grad); color: var(--navy); transform: translateY(-4px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.stat.reveal.in:nth-child(2), .stat.reveal.in:nth-child(4) { transform: translateY(40px); }
.hero-title .line.reveal { transform: translateY(70px); clip-path: inset(0 0 100% 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease), clip-path 1.1s var(--ease); }
.hero-title .line.reveal.in { transform: none; clip-path: inset(-20% 0 -20% 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .eyebrow { justify-content: center; }
  .hero-copy .eyebrow { display: flex; }
  .hero-visual { height: 560px; max-width: 480px; margin-inline: auto; width: 100%; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .process-line { display: none; }
  .about, .cta-grid { grid-template-columns: 1fr; }
  .about-copy { text-align: center; }
  .about-copy .eyebrow { display: flex; }
  .checks { justify-content: center; }
  .cta-card { padding: 50px 36px; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 76px; inset-inline: 0; margin-inline: auto; width: calc(100% - 32px); flex-direction: column; padding: 14px; border-radius: 24px;
    background: rgba(0,18,51,.95); backdrop-filter: blur(20px); border: 1px solid var(--line); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .4s var(--ease); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 18px; font-size: 16px; }
  .burger { display: block; }
  .nav .btn-sm { display: none; }
  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .w-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .nav { padding: 10px 10px 10px 16px; }
  .nav-word small { display: none; }
  .hero { padding-top: 120px; }
  .hero-visual { height: 500px; transform: scale(.9); }
  .fc-1 { inset-inline-start: 0; } .fc-2 { inset-inline-end: 0; }
  .services, .stats { grid-template-columns: 1fr; }
  .stat:nth-child(2), .stat:nth-child(4), .stat.reveal.in:nth-child(2), .stat.reveal.in:nth-child(4) { transform: none; }
  .process { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .w-tall { grid-row: span 1; } .w-wide { grid-column: span 1; }
  .section { padding: 90px 0; }
  .cta-card { padding: 36px 20px; border-radius: 28px; }
  .contact-form { padding: 22px; }
  .footer-cols { gap: 40px; }
  .filters { width: 100%; overflow-x: auto; }
}

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

/* ---------- Content from /admin ---------- */
[hidden] { display: none !important; }
.work-art.has-img { background: #0b1c44; }
.work-art.has-img img, .work-art.has-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-art.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,10,30,.35)); }
.art-play.sm { position: relative; z-index: 1; width: 64px; height: 64px; font-size: 20px; }
.work-badge { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #fff; background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); box-shadow: 0 6px 20px -6px rgba(238,42,123,.6); }

.clients { padding: 20px 0 110px; }
.clients-marquee { overflow: hidden; margin-top: 16px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.clients-track { display: flex; gap: 22px; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
html[dir="rtl"] .clients-track { animation-name: marquee-rtl; }
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.client { flex: none; width: 180px; height: 96px; display: grid; place-items: center; padding: 18px 26px; border-radius: 20px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: background .4s, border-color .4s; }
.client img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.8); opacity: .75; transition: filter .4s, opacity .4s; }
.client:hover { background: rgba(255,255,255,.95); border-color: transparent; }
.client:hover img { filter: none; opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: rgba(0, 8, 24, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.open { opacity: 1; }
.lb-inner { width: min(1100px, 100%); max-height: calc(100svh - 48px); display: grid; grid-template-columns: 1.6fr 1fr; border-radius: 26px; overflow: hidden;
  background: var(--navy); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 100px -20px rgba(0,0,0,.8);
  transform: translateY(30px) scale(.97); transition: transform .5s var(--ease); }
.lightbox.open .lb-inner { transform: none; }
.lb-media { background: #000; display: grid; place-items: center; min-height: 360px; }
.lb-media img, .lb-media video { width: 100%; height: 100%; max-height: calc(100svh - 48px); object-fit: contain; }
.lb-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.lb-media.tall { background: #fff; overflow: auto; max-height: calc(100svh - 48px); }
.lb-media iframe.ig { aspect-ratio: auto; height: min(760px, calc(100svh - 48px)); max-width: 460px; }
.lb-text { padding: 40px 34px; overflow: auto; }
.lb-text span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.lb-text h3 { font-size: 28px; line-height: 1.2; color: var(--white); margin: 8px 0 16px; }
.lb-text p { color: var(--muted); white-space: pre-line; margin-bottom: 24px; }
.lb-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; z-index: 2;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 18px; transition: background .3s, transform .4s var(--ease); }
.lb-close:hover { background: var(--grad); color: var(--navy); transform: rotate(90deg); }
.footer-social { display: grid; gap: 10px; }
@media (max-width: 860px) {
  .lb-inner { grid-template-columns: 1fr; overflow: auto; }
  .lb-text { padding: 26px 22px; }
  .lb-media iframe.ig { max-width: 100%; }
}
