/*
Theme Name: The Virtual Evolution
Theme URI: https://ve-sa.net
Author: The Virtual Evolution
Description: One-page bilingual (English and Arabic, right-to-left) site for The Virtual Evolution. Everything is edited from the VE Site, Work, Clients, News and Services menus in the dashboard.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ve-theme
*/
/* Black stage, a looping logo film, case studies with real numbers, then a quiet index of work, services and clients. Violet and cyan glow come from the sphere logo. */
:root {
  --bg: #060608;
  --surface: #0f0f14;
  --surface-2: #16161d;
  --line: #262630;
  --fg: #f4f4f7;
  --muted: #a3a3b3;
  --cyan: #6fe8ee;
  --violet: #8b5cf6;
  --magenta: #d14bd0;
  --grad: linear-gradient(90deg, #6fe8ee 0%, #8b5cf6 55%, #d14bd0 100%);
  --tile: #ffffff;
  --font-display: 'Space Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}
:root:lang(ar) {
  --font-display: 'IBM Plex Sans Arabic', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: 0;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 20; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; letter-spacing: -0.02em; line-height: 1.08; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.3; }
.wrap { max-width: 1280px; margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 15px; text-transform: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* header */
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  padding: 10px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: rgba(6, 6, 8, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
header.top.scrolled { background: rgba(6, 6, 8, 0.95); }
header.top .hd-row { display: flex; align-items: center; gap: 24px; max-width: 1280px; margin-inline: auto; min-height: 48px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.ve-nav { display: flex; gap: 4px; margin-inline-start: auto; font-family: var(--font-display); }
.ve-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.ve-nav a:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.ve-nav a.on { color: var(--fg); }
.hd-actions { display: flex; align-items: center; gap: 10px; }
.hd-actions .btn { padding: 9px 20px; font-size: 14px; }
.lang {
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--fg); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; line-height: 1.2;
}
.lang:hover { border-color: var(--cyan); }
.burger { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 25; display: none; flex-direction: column; gap: 28px; overflow-y: auto; padding: 92px max(var(--gutter), env(safe-area-inset-left, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)); background: #060608; }
.mnav.open { display: flex; }
.mnav .m-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: clamp(28px, 7.5vw, 40px); font-weight: 600; letter-spacing: -0.01em; }
.mnav .m-links a:hover { color: var(--cyan); }
.mnav .m-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.mnav .m-foot .social { display: flex; flex-wrap: wrap; gap: 8px; }
html.menu-open { overflow: hidden; }
@media (max-width: 900px) { .ve-nav { display: none; } .hd-actions { margin-inline-start: auto; } .hd-actions > .btn { display: none; } .burger { display: block; } }
@media (min-width: 901px) { .mnav { display: none !important; } }
button, input, textarea, select { font-family: inherit; }

/* hero */
.hero { padding-block: clamp(40px, 8vw, 96px) 0; }
.hero h1 { font-size: clamp(38px, 7.2vw, 96px); font-weight: 700; max-width: 14ch; }
:lang(ar) .hero h1 { max-width: 16ch; font-size: clamp(36px, 6.4vw, 84px); }
.hero h1 .glow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 24px; max-width: 46ch; font-size: clamp(18px, 2vw, 22px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); background: transparent;
}
.btn.primary { background: var(--fg); color: #060608; border-color: var(--fg); }
.btn.primary:hover { background: var(--cyan); border-color: var(--cyan); }
.btn:not(.primary):hover { border-color: var(--cyan); }
.hero-img { margin-top: clamp(32px, 5vw, 64px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.film { margin: 0 0 clamp(32px,5vw,56px); }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; border: 1px solid var(--line); background: #000; object-fit: cover; }
.film figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.film-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--fg); background: var(--surface); }
.film-link:hover { border-color: var(--cyan); }
.film-link .k { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
:lang(ar) .film-link .k { letter-spacing: 0; text-transform: none; }
.film-link .t { font-size: clamp(17px,2vw,22px); font-weight: 600; }
.film-link .go { flex: none; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; color: var(--muted); }
.hero-img video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); }
.stat { padding: 28px 24px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .n, .facts b { direction: ltr; unicode-bidi: isolate; }
:lang(ar) .stat .n { text-align: right; }
.stat .l { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* sections */
section.block { padding-block: clamp(64px, 9vw, 128px) 0; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 18px; max-width: 52ch; }

/* case studies */
.case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.case:nth-of-type(even) .case-media { order: 2; }
.case-text { display: grid; gap: 16px; align-content: center; }
.case-text h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; }
.case-text p { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 6px; padding: 0; list-style: none; }
.facts li { font-size: 14px; color: var(--fg); display: flex; gap: 8px; align-items: baseline; }
.facts b { font-family: var(--font-display); font-size: 24px; color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; }
.link { color: var(--cyan); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; width: fit-content; direction: ltr; }
.media { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.collage { display: grid; gap: 12px; }
.c-a { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; }
.c-a .m1 { grid-row: 1 / span 2; }
.c-phones { grid-template-columns: repeat(3, 1fr); }
.c-phones .m0 { grid-column: 1 / -1; aspect-ratio: 16 / 8.5; }
.c-phones .ph { aspect-ratio: 9 / 15; }
.c-phones .ph img { object-position: 50% 0; }

/* more work */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(6,6,8,0.92), rgba(6,6,8,0)); display: grid; gap: 2px; }
.tile .k { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
:lang(ar) .tile .k { letter-spacing: 0; font-size: 14px; text-transform: none; }
.tile .t { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
figure { margin: 0; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case:nth-of-type(even) .case-media { order: 0; } .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* services */
.services { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 80px); }
.svc { display: grid; gap: 4px; padding-block: 22px; border-top: 1px solid var(--line); }
.svc h3 { font-size: 22px; font-weight: 600; }
.svc p { color: var(--muted); font-size: 16px; }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }

/* clients */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo { background: var(--tile); border-radius: 14px; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px; }
.logo img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-media .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.about-media .p { aspect-ratio: 3 / 4; }
.why { display: grid; gap: 0; margin-top: 28px; }
.why div { padding-block: 16px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.why h3 { font-size: 19px; font-weight: 600; }
.why p { color: var(--muted); font-size: 16px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.steps > span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; color: var(--muted); }
.steps > span:not(:last-child)::after { content: "→"; margin-inline-start: 12px; color: var(--violet); }
:lang(ar) .steps > span:not(:last-child)::after { content: "←"; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); border-radius: 24px; background: radial-gradient(120% 140% at 100% 0%, rgba(139,92,246,0.28), transparent 55%), var(--surface); border: 1px solid var(--line); }
:lang(ar) .contact { background: radial-gradient(120% 140% at 0% 0%, rgba(139,92,246,0.28), transparent 55%), var(--surface); }
.contact h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 700; }
.contact .lede { color: var(--muted); margin-top: 14px; max-width: 40ch; }
.channels { display: grid; gap: 14px; margin-top: 28px; }
.ch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ch .k { width: 76px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .ch .k { letter-spacing: 0; font-size: 15px; text-transform: none; }
.ch .v { direction: ltr; unicode-bidi: isolate; font-size: 18px; user-select: all; }
.copy { font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.copy:hover { color: var(--fg); border-color: var(--cyan); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social a { font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; color: var(--muted); }
.social a:hover { color: var(--fg); border-color: var(--cyan); }
form { display: grid; gap: 16px; align-content: start; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; width: 100%; }
input:focus, textarea:focus { outline: none; border-color: var(--cyan); }
textarea { min-height: 130px; resize: vertical; }
.fine { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.site-foot { margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 40px 48px; }
.f-brand img { height: 48px; width: auto; }
.f-tag { margin-top: 18px; max-width: 30ch; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--fg); letter-spacing: -0.01em; }
.f-brand .btn { margin-top: 22px; }
.f-col h4 { margin: 0 0 16px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
:lang(ar) .f-col h4 { letter-spacing: 0; text-transform: none; font-size: 15px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-col a { text-decoration: none; }
.f-col a:hover { color: var(--fg); }
.f-col .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.legal { display: grid; gap: 14px; margin: 0; }
.legal div { display: grid; gap: 2px; }
.legal dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); opacity: .75; }
.legal dd { margin: 0; color: var(--fg); font-size: 15px; }
.legal dd.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
:lang(ar) .legal dd.num { text-align: right; }
:lang(ar) .legal dt { letter-spacing: 0; text-transform: none; font-size: 13px; }
.f-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: clamp(36px, 5vw, 56px); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 14px; }
.f-bar a { text-decoration: none; }
.f-bar a:hover { color: var(--fg); }
@media (max-width: 980px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile img { transition: none; } }

/* language: both languages are in the page; the visible one follows <html lang> */
html[lang="en"] [data-l="ar"], html[lang="ar"] [data-l="en"] { display: none !important; }

/* WordPress admin bar */
body.admin-bar header.top { top: 32px; }
body.admin-bar .mnav { padding-top: 124px; }
@media (max-width: 782px) { body.admin-bar header.top { top: 46px; } }

/* video */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 22px; background: #000 center / cover no-repeat; cursor: pointer; padding: 0; overflow: hidden; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(6,6,8,.7); border: 1px solid rgba(255,255,255,.4); }
.yt .play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; transform: translateX(2px); }
.yt:hover .play { border-color: var(--cyan); }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 22px; background: #000; }

/* tiles can be links */
.tile a { display: block; width: 100%; height: 100%; }

/* news */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--cyan); }
.card-img { aspect-ratio: 16 / 9; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: grid; gap: 8px; padding: 18px 20px 22px; align-content: start; }
.card .date { font-size: 13px; color: var(--muted); }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.card .txt { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .more { color: var(--cyan); font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news { grid-template-columns: 1fr; } }

/* form feedback, copy button, spam trap */
.hp { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.form-msg { font-size: 15px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); }
.form-msg.ok { color: var(--cyan); border-color: rgba(111,232,238,.4); }
.form-msg.bad { color: #ff9aa8; border-color: rgba(255,154,168,.4); }
.form-msg[hidden] { display: none; }
.fine a { color: var(--muted); }
.fine a:hover { color: var(--fg); }
.copy .d { display: none; }
.copy.done .c { display: none; }
.copy.done .d { display: inline; }
button.btn[disabled] { opacity: .6; cursor: wait; }

/* ---- v1.0.3: multi-page ---- */
main { display: block; }
.ve-nav a.on { background: rgba(255, 255, 255, .08); }
.mnav .m-links a.on { color: var(--cyan); }

/* home hero with the loop video behind it */
.hero-full {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(560px, calc(100svh - 70px), 900px);
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  padding: clamp(48px, 8vw, 96px) max(var(--gutter), env(safe-area-inset-left, 0px)) 0;
  background: #000;
}
.hero-full .hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-full::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,6,8,.82) 0%, rgba(6,6,8,.45) 55%, rgba(6,6,8,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6,6,8,.55) 22%, rgba(6,6,8,0) 55%);
}
:lang(ar) .hero-full::after {
  background:
    linear-gradient(270deg, rgba(6,6,8,.82) 0%, rgba(6,6,8,.45) 55%, rgba(6,6,8,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6,6,8,.55) 22%, rgba(6,6,8,0) 55%);
}
.hero-in { width: 100%; max-width: 1280px; margin-inline: auto; padding-bottom: 0; }
.hero-full h1 { margin-top: 18px; font-size: clamp(38px, 7.2vw, 96px); font-weight: 700; max-width: 14ch; }
:lang(ar) .hero-full h1 { max-width: 16ch; font-size: clamp(36px, 6.4vw, 84px); }
.hero-full h1 .glow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-full .hero-sub { color: rgba(245,245,247,.78); }
.hero-full .stats { border-top-color: rgba(255,255,255,.14); border-bottom: 0; margin-top: clamp(36px, 6vw, 72px); }
.hero-full .btn:not(.primary) { background: rgba(6,6,8,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* inner page heading */
.page-head { display: grid; gap: 16px; padding-block: clamp(48px, 8vw, 104px) 0; max-width: 980px; }
.page-head h1 { font-size: clamp(36px, 6vw, 80px); font-weight: 700; }
.page-head .lede { color: var(--muted); font-size: clamp(18px, 2vw, 22px); max-width: 52ch; }
.page-head .cta { margin-top: 8px; }
section.block.tight { padding-block: clamp(36px, 5vw, 64px) 0; }
.empty { margin-top: 40px; color: var(--muted); font-size: 18px; }

/* section heading with a link on the right */
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-row .sec-head { margin-bottom: 0; }
.more-link { text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--cyan); border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; white-space: nowrap; }
.more-link:hover { border-color: var(--cyan); }
:lang(ar) .more-link span[aria-hidden] { display: inline-block; transform: scaleX(-1); }

/* project cards on the home page */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { display: grid; gap: 14px; text-decoration: none; }
.pimg { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pimg { border-color: var(--cyan); }
.pcard:hover .pimg img { transform: scale(1.04); }
.pcap { display: grid; gap: 2px; }
.pcap .k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
:lang(ar) .pcap .k { letter-spacing: 0; font-size: 14px; text-transform: none; }
.pcap .t { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }

/* services as links and as a numbered list */
a.svc { text-decoration: none; transition: border-color .15s ease; }
a.svc:hover { border-top-color: var(--cyan); }
a.svc:hover h3 { color: var(--cyan); }
.services.numbered { counter-reset: svc; }
.services.numbered .svc { counter-increment: svc; grid-template-columns: 48px 1fr; column-gap: 12px; padding-block: 28px; }
.services.numbered .svc::before { content: counter(svc, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--cyan); padding-top: 6px; direction: ltr; }
.services.numbered .svc h3 { grid-column: 2; }
.services.numbered .svc p { grid-column: 2; }

/* about page */
.about-body { color: var(--muted); font-size: 19px; max-width: 54ch; }
.about + .stats { margin-top: clamp(40px, 6vw, 72px); }

/* closing banner */
.cta-band {
  display: grid; gap: 14px; justify-items: start; padding: clamp(32px, 6vw, 72px); border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(120% 160% at 100% 0%, rgba(139,92,246,.26), transparent 55%), radial-gradient(90% 140% at 0% 100%, rgba(111,232,238,.12), transparent 60%), var(--surface);
}
:lang(ar) .cta-band { background: radial-gradient(120% 160% at 0% 0%, rgba(139,92,246,.26), transparent 55%), radial-gradient(90% 140% at 100% 100%, rgba(111,232,238,.12), transparent 60%), var(--surface); }
.cta-band h2 { font-size: clamp(28px, 4vw, 52px); font-weight: 700; max-width: 20ch; }
.cta-band p { color: var(--muted); font-size: 18px; max-width: 44ch; }
.cta-band .cta { margin-top: 10px; }

/* contact page: phone and email are links */
.ch a.v { text-decoration: none; }
.ch a.v:hover { color: var(--cyan); }
.ch .v.plain { user-select: text; direction: inherit; font-size: 16px; color: var(--muted); max-width: 30ch; }
.contact { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { .pimg img { transition: none; } }

/* header on one line, whatever else the site had before */
header.top > .hd-row { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 20px; }
header.top .brand { flex: none; }
header.top .ve-nav { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 2px; margin-inline-start: auto; }
header.top .ve-nav a { display: inline-block; white-space: nowrap; padding: 8px 12px; }
header.top .hd-actions { display: flex !important; flex-direction: row !important; flex: none; align-items: center; gap: 10px; }
header.top .hd-actions > * { white-space: nowrap; margin: 0; }
@media (min-width: 901px) and (max-width: 1100px) { header.top .ve-nav a { padding: 8px 9px; font-size: 14px; } header.top > .hd-row { gap: 12px !important; } }
@media (max-width: 900px) { header.top .ve-nav { display: none !important; } header.top .hd-actions { margin-inline-start: auto; } }

/* ---- v1.0.4: a more finished look ---- */
.rv { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .rv:not(.in) { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { html.js .rv:not(.in) { opacity: 1; transform: none; } }

.btn { transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
.btn.primary:hover { box-shadow: 0 8px 30px rgba(111,232,238,.25); transform: translateY(-1px); }
header.top.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,.45); }

/* thin gradient rule above each section heading */
.sec-head::before, .page-head .eyebrow::before { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 18px; }
.page-head .eyebrow::before { margin-bottom: 20px; }

/* work: each project is a card */
.case { counter-increment: proj; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(18px, 3vw, 40px); margin-bottom: 24px; transition: border-color .25s ease, transform .25s ease; }
.case:hover { border-color: rgba(111,232,238,.35); }
.work-list { counter-reset: proj; }
.case-text::before { content: counter(proj, decimal-leading-zero); font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .12em; color: var(--muted); direction: ltr; }
.case-text h3 { font-size: clamp(26px, 3vw, 40px); }
.film { padding: clamp(12px, 2vw, 20px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; margin-bottom: 24px; }
.film video, .yt, .yt-frame { border-radius: 18px; }
.film figcaption { padding: 14px 8px 4px; }
.tile, .pimg, .card { transition: border-color .25s ease, transform .25s ease; }
.tile:hover, .card:hover { transform: translateY(-3px); border-color: rgba(111,232,238,.35); }
.film-link { background: var(--surface); }

/* client logo marquee */
.marquee { display: flex; overflow: hidden; gap: 14px; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; flex: none; gap: 14px; min-width: 100%; justify-content: space-around; animation: ve-marquee 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .logo { flex: none; width: 150px; aspect-ratio: 3 / 2; }
@keyframes ve-marquee { to { transform: translateX(calc(-100% - 14px)); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee .track { animation: none; } }

/* about: process and company details */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.process li { display: grid; gap: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.process .n { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--cyan); direction: ltr; text-align: start; }
.process .s { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
.company { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.company > div { padding: 24px 26px; border-inline-start: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.company > div:first-child { border-inline-start: 0; }
.company dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .company dt { letter-spacing: 0; text-transform: none; font-size: 14px; }
.company dd { margin: 0; font-size: 17px; }
.company dd.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
:lang(ar) .company dd.num { text-align: right; }
.company a { text-decoration: none; }
@media (max-width: 900px) { .company { grid-template-columns: 1fr 1fr; } .company > div:nth-child(3) { border-inline-start: 0; } .company > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .company { grid-template-columns: 1fr; } .company > div { border-inline-start: 0; border-top: 1px solid var(--line); } .company > div:first-child { border-top: 0; } }
