/* INARI house — one-page site (Arabic default, English toggle)
   Brand: near-black, white Montserrat / Alexandria, steel blue (#4E7084), outlined + solid headings. */

:root {
  --bg: #0b0c0e;
  --bg-2: #0e1013;
  --surface: #13161a;
  --surface-2: #191d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f1f3f4;
  --text-2: #a9b2b9;
  --text-3: #737d85;
  --accent: #4e7084;
  --accent-2: #6a91a7;
  --accent-hi: #a9cadb;
  --glow: rgba(78, 112, 132, 0.45);
  --wa: #25d366;
  --r-lg: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --f-sans: "Montserrat", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-ar: "Alexandria", "Montserrat", system-ui, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--f-ar); }

/* film grain over everything, very light */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Side cards and orbit lines may bleed past the screen edge; clip them so the page
   never gets wider than the viewport (clip, unlike hidden, keeps position: sticky working). */
main, .footer { overflow-x: hidden; overflow-x: clip; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.i { width: 18px; height: 18px; flex-shrink: 0; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.skip-link {
  position: fixed; top: -80px; inset-inline-start: 12px; z-index: 400;
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- type helpers ---------- */
/* Montserrat's glyphs have overlapping contours, so a plain stroke shows seams inside
   letters. Painting the stroke first and a background-coloured fill on top hides them;
   the visible outline is half the stroke width. */
.outline {
  color: var(--outline-fill, var(--bg));
  -webkit-text-stroke: 3.2px var(--text);
  paint-order: stroke fill;
}
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
}
.accent { color: var(--accent-hi); }
/* Arabic: stroked Arabic shows glyph overlaps and there is no italic serif,
   so the accent words switch to a colour + weight contrast instead. */
html[lang="ar"] .outline { -webkit-text-stroke: 0; color: var(--accent-hi); }
html[lang="ar"] .serif { font-family: var(--f-ar); font-style: normal; font-weight: 300; letter-spacing: 0; }

.eyebrow, .section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-hi);
}
.eyebrow::before, .section-label::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7;
}
html[lang="ar"] .eyebrow, html[lang="ar"] .section-label { letter-spacing: 0.02em; font-size: 14px; }

.section-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 84px); }
.section-title {
  margin: 18px 0 22px;
  font-size: clamp(38px, 5.6vw, 78px); font-weight: 900; line-height: 0.98;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.section-title > span { margin-inline-end: 0.18em; }
.section-title .serif { font-size: 1.12em; line-height: 0.8; }
html[lang="ar"] .section-title { line-height: 1.3; font-size: clamp(36px, 5vw, 66px); }
html[lang="ar"] .section-title .serif { font-size: 1em; }
.section-sub { max-width: 58ch; color: var(--text-2); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.75; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 34px -10px var(--glow); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 14px 40px -10px var(--glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 5s ease-in-out 2s infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent-2); color: #fff; background: rgba(78, 112, 132, 0.16); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn-lg { height: 58px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-link {
  display: block; margin: 14px auto 0; padding: 4px 8px; border: 0; background: none;
  color: var(--text-2); font-size: 13px; text-decoration: underline; text-underline-offset: 4px;
}
.btn-link:hover { color: var(--text); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; inset-inline: 0; z-index: 60; padding-inline: var(--gutter); }
.nav-pill {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 66px; padding-inline: 24px 12px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(13, 15, 18, 0.5);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.nav.is-scrolled .nav-pill { background: rgba(11, 12, 14, 0.86); border-color: var(--line-2); box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.9); }
.nav-logo img { height: 38px; width: auto; }
.wordmark { font-weight: 300; letter-spacing: 0.3em; font-size: 18px; text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; color: var(--text-2); padding: 6px 0; transition: color 0.25s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent-hi);
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
}
.lang-toggle span {
  display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 999px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-3);
  transition: background 0.3s, color 0.3s;
}
.lang-toggle [data-lang="ar"] { font-family: var(--f-ar); font-size: 15px; }
html[lang="en"] .lang-toggle [data-lang="en"],
html[lang="ar"] .lang-toggle [data-lang="ar"] { background: var(--accent); color: #fff; }
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-burger span { width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
.mobile-menu {
  max-width: var(--container); margin: 10px auto 0; padding: 12px;
  display: flex; flex-direction: column;
  border-radius: 24px; border: 1px solid var(--line-2);
  background: rgba(11, 12, 14, 0.95); backdrop-filter: blur(18px);
  animation: drop 0.35s var(--ease);
}
.mobile-menu a { padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 17px; }
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.05); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 70px;
}
.hero-glow {
  position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(42vw 42vw at 26% 46%, rgba(78, 112, 132, 0.3), transparent 70%),
    radial-gradient(30vw 30vw at 88% 90%, rgba(78, 112, 132, 0.12), transparent 70%),
    linear-gradient(180deg, #0d1013 0%, var(--bg) 100%);
}
[dir="ltr"] .hero-glow {
  background:
    radial-gradient(42vw 42vw at 74% 46%, rgba(78, 112, 132, 0.34), transparent 70%),
    radial-gradient(30vw 30vw at 12% 90%, rgba(78, 112, 132, 0.14), transparent 70%),
    linear-gradient(180deg, #0d1013 0%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-copy { position: relative; z-index: 2; }
.hero-title { margin: 20px 0 24px; font-weight: 900; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.01em; }
.ht { display: block; }
.ht-1 { font-size: clamp(20px, 2.3vw, 32px); font-weight: 700; letter-spacing: 0.03em; line-height: 1.1; margin-bottom: 0.25em; }
.ht-2 { font-size: clamp(72px, 9.4vw, 148px); -webkit-text-stroke-width: 4px; --outline-fill: #0c0f12; }
.ht-3 {
  font-size: clamp(84px, 11.4vw, 176px); line-height: 0.8; padding-bottom: 0.08em;
  background: linear-gradient(92deg, #fff 30%, var(--accent-hi) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ar"] .hero-title { line-height: 1.15; }
html[lang="ar"] .ht-1 { font-size: clamp(24px, 2.6vw, 36px); }
html[lang="ar"] .ht-2 { font-size: clamp(64px, 9vw, 132px); font-weight: 900; }
html[lang="ar"] .ht-3 { font-size: clamp(64px, 9vw, 132px); font-weight: 300; line-height: 1.1; }
.hero-sub { max-width: 48ch; color: var(--text-2); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.75; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 40px; color: var(--text-3); font-size: 13px; font-weight: 500; }
.hero-proof li { display: inline-flex; align-items: center; }
.hero-proof li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); margin-inline: 16px; }
.hero-proof a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); transition: color 0.25s; }
.hero-proof a:hover { color: var(--accent-hi); }

.rise { opacity: 0; transform: translateY(28px); animation: rise 1s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-stage { position: relative; height: clamp(440px, 66vh, 640px); }
.hero-card {
  position: absolute; top: 50%; left: 50%;
  height: 84%; aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
  animation: float 7s ease-in-out infinite;
}
.hero-card video { width: 100%; height: 100%; object-fit: cover; }
.hero-card--c { z-index: 3; transform: translate(-50%, -50%); }
.hero-card--l { z-index: 2; transform: translate(-118%, -45%) rotate(-9deg) scale(0.8); filter: brightness(0.55) saturate(0.9); animation-delay: -2.4s; }
.hero-card--r { z-index: 2; transform: translate(18%, -45%) rotate(9deg) scale(0.8); filter: brightness(0.55) saturate(0.9); animation-delay: -4.6s; }
@keyframes float { 50% { translate: 0 -12px; } }
.orbit { position: absolute; z-index: 1; left: 50%; top: 50%; width: 150%; max-width: none; transform: translate(-50%, -50%) rotate(-14deg); overflow: visible; }
.orbit ellipse { fill: none; stroke: rgba(169, 202, 219, 0.22); stroke-width: 1; }
.orbit .orbit-2 { stroke-dasharray: 2 9; stroke: rgba(169, 202, 219, 0.3); }
.orbit-dot { fill: var(--accent-hi); filter: drop-shadow(0 0 8px var(--accent-hi)); }

/* ---------- partners marquee ---------- */
.clients {
  position: relative; padding: 34px 0 30px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}
.clients-label { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); margin-bottom: 26px; }
html[lang="ar"] .clients-label { letter-spacing: 0.02em; font-size: 15px; color: var(--text-2); }
.marquee { display: flex; align-items: center; gap: 18px; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.marquee-btn {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.marquee-btn:hover { border-color: var(--accent-2); color: var(--accent-hi); background: var(--surface-2); }
.marquee-viewport {
  position: relative; flex: 1; min-width: 0; overflow: hidden; direction: ltr;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-viewport.is-dragging { cursor: grabbing; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set { display: flex; align-items: center; gap: 72px; padding-inline-end: 72px; padding-block: 8px 30px; }
.logo-link { position: relative; height: 72px; display: flex; align-items: center; justify-content: center; -webkit-user-drag: none; }
.logo-link img {
  width: auto; opacity: 0.9; pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.3s, filter 0.45s;
}
.logo-link:hover img, .logo-link:focus-visible img {
  opacity: 1; transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 8px 20px rgba(78, 112, 132, 0.55));
}
.logo-handle {
  position: absolute; top: calc(100% + 2px); left: 50%;
  translate: -50% 0;
  font-family: var(--f-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; color: var(--accent-hi);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.logo-link:hover .logo-handle, .logo-link:focus-visible .logo-handle { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about { position: relative; padding: clamp(84px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); }
.about::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 600px; z-index: -1;
  background: radial-gradient(50% 60% at 85% 10%, rgba(78, 112, 132, 0.16), transparent 70%);
}
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-copy .section-title { margin-bottom: 20px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.vm-card {
  padding: 22px 22px 24px; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.vm-card h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 10px; }
html[lang="ar"] .vm-card h3 { letter-spacing: 0; font-size: 16px; }
.vm-card p { color: var(--text-2); font-size: 14px; line-height: 1.8; }
.about-film {
  position: relative; margin: 0; aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: 28px; background: var(--surface);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px -30px var(--glow);
}
.about-film video { width: 100%; height: 100%; object-fit: cover; }
.about-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 8, 0.75)); pointer-events: none; }
.about-film figcaption { position: absolute; z-index: 1; inset-inline: 26px; bottom: 22px; font-size: clamp(22px, 2.4vw, 32px); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(64px, 8vw, 110px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line);
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--f-sans); font-weight: 900; line-height: 1; letter-spacing: -0.02em;
  font-size: clamp(50px, 6vw, 92px);
  background: linear-gradient(180deg, #fff 20%, var(--accent-hi) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate;
}
.stat-label { display: block; margin-top: 12px; color: var(--text-2); font-size: 14px; font-weight: 500; }

/* ---------- services ---------- */
.services { position: relative; padding: clamp(84px, 10vw, 140px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg) 40%); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
@media (min-width: 1200px) { .service-grid { grid-template-columns: repeat(5, 1fr); } }
.service {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; min-height: 236px; padding: 24px 24px 22px;
  border-radius: 20px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.45s var(--ease), border-color 0.35s, background 0.35s;
}
.service::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(78, 112, 132, 0.35), transparent); opacity: 0; transition: opacity 0.4s;
}
.service:hover { transform: translateY(-4px); border-color: rgba(106, 145, 167, 0.5); background: rgba(78, 112, 132, 0.07); }
.service:hover::before { opacity: 1; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(78, 112, 132, 0.16); color: var(--accent-hi); }
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-num { position: absolute; top: 20px; inset-inline-end: 22px; font-family: var(--f-serif); font-style: italic; font-size: 24px; color: var(--text-3); }
.service h3 { font-size: 18px; font-weight: 700; line-height: 1.35; margin-top: 6px; }
.service p { flex: 1; color: var(--text-2); font-size: 14px; line-height: 1.75; }
.service-ask { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-hi); }
.service-ask:hover { color: #fff; }

/* ---------- work ---------- */
.work { position: relative; padding: clamp(84px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.work::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1;
  background: radial-gradient(50% 60% at 15% 0%, rgba(78, 112, 132, 0.16), transparent 70%);
}
.work-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2);
  font-size: 13px; font-weight: 600;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
html[lang="ar"] .chip { padding: 0 12px 0 16px; font-size: 14px; }
.chip-num { font-family: var(--f-serif); font-style: italic; font-size: 16px; color: var(--accent-2); }
.chip:hover { border-color: var(--accent-2); color: var(--text); }
.chip.is-active { background: rgba(78, 112, 132, 0.2); border-color: var(--accent-2); color: var(--text); }

.work-block { scroll-margin-top: 0; }
.work-block + .work-block { margin-top: clamp(80px, 10vw, 140px); }
.block-title {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: clamp(40px, 5vw, 70px); border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em;
}
.block-num { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.3em; color: var(--accent-2); }
.block-count { margin-inline-start: auto; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; }
html[lang="ar"] .block-count { letter-spacing: 0; font-size: 14px; }

.work-rows { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 130px); }
.work-row {
  display: grid; grid-template-columns: minmax(230px, 320px) 1fr;
  gap: clamp(24px, 4vw, 64px); align-items: start;
  scroll-margin-top: 14px;
}
.work-row > * { min-width: 0; }
.work-info { position: sticky; top: 118px; padding-top: 10px; }
.work-num { display: block; font-family: var(--f-serif); font-style: italic; font-size: 60px; line-height: 1; color: var(--accent-2); margin-bottom: 10px; }
.work-title { font-size: clamp(28px, 3vw, 44px); font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: -0.005em; margin-bottom: 16px; }
html[lang="ar"] .work-title { line-height: 1.3; }
.work-desc { color: var(--text-2); font-size: 15px; line-height: 1.75; margin-bottom: 20px; }
.work-count { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.work-count::before { content: ""; width: 22px; height: 1px; background: currentColor; }
html[lang="ar"] .work-count { letter-spacing: 0.02em; font-size: 13px; }

/* the fanned reel carousel */
.reel { position: relative; padding: 0 16%; border-radius: 20px; }
.reel:focus-visible { outline-offset: 8px; }
.reel-stage { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 9 / 16; touch-action: pan-y; }
.reel-card {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
  transition: transform 0.75s var(--ease), filter 0.75s var(--ease), opacity 0.75s var(--ease), box-shadow 0.75s var(--ease);
  will-change: transform, filter;
}
.reel-card::after {
  content: ""; position: absolute; inset: auto 0 0; height: 32%; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.reel-card > img, .reel-card > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-card > video { opacity: 0; transition: opacity 0.45s; }
.reel-card.is-playing > video { opacity: 1; }
.reel-card.is-active {
  z-index: 3; transform: none; filter: none; opacity: 1;
  box-shadow: 0 30px 80px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.09), 0 0 60px -20px var(--glow);
}
.reel-card.is-prev { z-index: 2; opacity: 0.8; transform: translateX(-56%) rotate(-6deg) scale(0.86); filter: blur(4px) brightness(0.6); }
.reel-card.is-next { z-index: 2; opacity: 0.8; transform: translateX(56%) rotate(6deg) scale(0.86); filter: blur(4px) brightness(0.6); }
.reel-card.is-off-prev { z-index: 1; opacity: 0; transform: translateX(-90%) rotate(-11deg) scale(0.74); filter: blur(6px); pointer-events: none; }
.reel-card.is-off-next { z-index: 1; opacity: 0; transform: translateX(90%) rotate(11deg) scale(0.74); filter: blur(6px); pointer-events: none; }
[dir="rtl"] .reel-card.is-prev { transform: translateX(56%) rotate(6deg) scale(0.86); }
[dir="rtl"] .reel-card.is-next { transform: translateX(-56%) rotate(-6deg) scale(0.86); }
[dir="rtl"] .reel-card.is-off-prev { transform: translateX(90%) rotate(11deg) scale(0.74); }
[dir="rtl"] .reel-card.is-off-next { transform: translateX(-90%) rotate(-11deg) scale(0.74); }
.reel-card:is(.is-prev, .is-next):hover { filter: blur(2px) brightness(0.75); opacity: 0.95; }

.reel-hit { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: transparent; border-radius: inherit; }
.reel-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.35s; }
.is-active .reel-ui { opacity: 1; }
.is-active .reel-ui button { pointer-events: auto; }
.glass {
  background: rgba(10, 12, 14, 0.55); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.reel-dur { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 9px; border-radius: 999px; font-family: var(--f-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.reel-expand { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background 0.25s, transform 0.25s; }
.reel-expand:hover { background: var(--accent); transform: scale(1.06); }
.reel-expand .i { width: 16px; height: 16px; }
.reel-sound {
  position: absolute; bottom: 16px; inset-inline-start: 12px;
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: background 0.25s;
}
.reel-sound:hover { background: var(--accent); }
.reel-sound .i { width: 16px; height: 16px; }
.reel-sound .ic-sound, .is-muted .reel-sound .ic-muted { display: block; }
.reel-sound .ic-muted, .is-muted .reel-sound .ic-sound { display: none; }
.reel-card:not(.is-muted) .reel-sound { padding: 0; width: 34px; justify-content: center; }
.reel-card:not(.is-muted) .reel-sound-label { display: none; }
.is-muted .reel-sound { animation: nudge 2.8s ease-in-out 1.2s infinite; }
@keyframes nudge { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-3px); } }
.reel-bigplay, .play-badge {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; display: grid; place-items: center;
}
.reel-bigplay { opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.3s var(--ease); }
.reel-bigplay .i, .play-badge .i { width: 26px; height: 26px; margin-inline-start: 3px; }
[dir="rtl"] .reel-bigplay .i, [dir="rtl"] .play-badge .i { margin-inline-start: 0; margin-inline-end: 3px; }
.is-paused .reel-bigplay { opacity: 1; transform: none; }
.reel-progress { position: absolute; inset: auto 0 0; height: 3px; background: rgba(255, 255, 255, 0.16); }
.reel-progress span { display: block; height: 100%; background: var(--accent-hi); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .reel-progress span { transform-origin: right; }

.reel-arrow {
  position: absolute; top: calc(50% - 46px); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); color: var(--text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.reel-arrow:hover { background: rgba(78, 112, 132, 0.35); border-color: var(--accent-2); transform: scale(1.07); }
.reel-arrow.prev { inset-inline-start: 0; }
.reel-arrow.next { inset-inline-end: 0; }
.reel-meta { margin-top: 26px; text-align: center; }
.reel-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; min-height: 22px; margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.cap-client { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
a.cap-client { border-bottom: 1px solid rgba(169, 202, 219, 0.35); padding-bottom: 1px; transition: color 0.25s, border-color 0.25s; }
a.cap-client:hover { color: var(--accent-hi); border-color: var(--accent-hi); }
.cap-client .i { width: 15px; height: 15px; color: var(--accent-hi); }
.cap-sep { color: var(--text-3); }
.reel-dots { display: flex; justify-content: center; gap: 2px; }
.dot { width: 22px; height: 22px; display: grid; place-items: center; border: 0; padding: 0; background: none; transition: width 0.4s var(--ease); }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--text-3); opacity: 0.6; transition: width 0.4s var(--ease), background 0.3s, opacity 0.3s; }
.dot.is-active { width: 40px; }
.dot.is-active::before { width: 30px; background: var(--accent-hi); opacity: 1; }

/* cinematic films: the first is featured full width, the rest three per row;
   each card plays a short silent preview while on screen */
.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.film-card {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; border: 0; padding: 0;
  background: var(--surface); text-align: start; color: #fff;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.film-card.is-featured { grid-column: 1 / -1; aspect-ratio: 21 / 9; border-radius: 26px; }
.film-card img, .film-preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.5s, opacity 0.6s;
}
.film-preview { opacity: 0; }
.film-card.is-previewing .film-preview { opacity: 1; }
.film-card:hover img, .film-card:hover .film-preview { transform: scale(1.04); }
/* burned-in subtitles sit at the bottom of the frame: zoom toward the top so they leave the card */
.film-card.has-subs img, .film-card.has-subs .film-preview { transform: scale(1.22); transform-origin: 50% 28%; }
.film-card.has-subs:hover img, .film-card.has-subs:hover .film-preview { transform: scale(1.27); }
.film-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 6, 8, 0) 40%, rgba(5, 6, 8, 0.85)); }
.film-meta { position: absolute; z-index: 1; inset-inline: 22px; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.is-featured .film-meta { inset-inline: clamp(22px, 3vw, 40px); bottom: clamp(18px, 2.6vw, 34px); }
.film-meta strong { display: block; font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; line-height: 1.3; }
.is-featured .film-meta strong { font-size: clamp(24px, 3vw, 42px); font-weight: 800; }
.film-meta small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.film-dur { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-family: var(--f-sans); font-size: 12px; font-weight: 600; }
.film-card .play-badge { z-index: 1; transition: transform 0.35s var(--ease), background 0.25s; }
.film-card.is-featured .play-badge { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.film-card:hover .play-badge { transform: scale(1.1); background: var(--accent); }

/* social media designs (masonry) */
.post-grid { columns: 4 210px; column-gap: 14px; }
.post-card {
  display: block; width: 100%; break-inside: avoid; margin: 0 0 14px; padding: 0; border: 0;
  border-radius: 16px; overflow: hidden; background: var(--surface); cursor: zoom-in; position: relative;
}
.post-card img { width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.post-card:hover img { transform: scale(1.04); }

/* websites: homepage in a browser frame + mobile view in a phone frame */
.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(18px, 2.4vw, 32px); }
.site-card { display: flex; flex-direction: column; gap: 20px; color: inherit; }
.site-stage { position: relative; display: block; padding-bottom: 7%; }
.browser {
  position: relative; display: block; width: 87%; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line-2); background: #15181c;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: transform 0.55s var(--ease), border-color 0.3s, box-shadow 0.55s;
}
.no-phone .browser { width: 100%; }
.site-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: #1b1f24; border-bottom: 1px solid var(--line); direction: ltr; }
.site-bar i { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.site-bar i:nth-of-type(1) { background: #e0605a; }
.site-bar i:nth-of-type(2) { background: #dfb44a; }
.site-bar i:nth-of-type(3) { background: #5cb85c; }
.site-url {
  display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; max-width: 72%; height: 19px; margin-left: 8px; padding: 0 9px;
  border-radius: 6px; background: rgba(255, 255, 255, 0.07);
  font-family: var(--f-sans); font-size: 10.5px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.site-url span { overflow: hidden; text-overflow: ellipsis; }
.site-url .i { width: 9px; height: 9px; color: var(--text-3); }
.site-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; container-type: size; background: #0f1114; }
.site-shot img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 7s cubic-bezier(0.45, 0, 0.25, 1); }
.site-card:hover .site-shot img, .site-card:focus-visible .site-shot img { transform: translateY(calc(-100% + 100cqh)); }
.phone {
  position: absolute; inset-inline-end: 0; bottom: 0; z-index: 2;
  display: block; width: 25%; aspect-ratio: 390 / 844; padding: 4px;
  border-radius: 20px; background: #0c0e11; border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 26px 50px -14px rgba(0, 0, 0, 0.95), 0 0 0 4px rgba(11, 12, 14, 0.9);
  transition: transform 0.55s var(--ease);
}
.phone::before {
  content: ""; position: absolute; z-index: 1; top: 9px; left: 50%; width: 30%; height: 7px;
  border-radius: 6px; background: #0c0e11; transform: translateX(-50%);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 15px; background: #fff; }
.site-card:hover .browser { transform: translateY(-5px); border-color: rgba(106, 145, 167, 0.55); box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.95), 0 0 50px -20px var(--glow); }
.site-card:hover .phone { transform: translateY(-12px) rotate(var(--tilt, -3deg)); }
[dir="rtl"] .site-card:hover .phone { --tilt: 3deg; }
.site-meta { display: flex; flex-direction: column; gap: 6px; }
.site-region {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hi);
}
html[lang="ar"] .site-region { letter-spacing: 0; font-size: 13px; }
.site-region .i { width: 13px; height: 13px; }
.site-meta strong { font-size: 19px; font-weight: 700; line-height: 1.35; }
.site-meta small { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(78, 112, 132, 0.18); color: var(--accent-hi); }
html[lang="ar"] .tags span { font-size: 12px; }
.site-visit { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-hi); transition: gap 0.3s var(--ease); }
.site-card:hover .site-visit { gap: 10px; color: #fff; }
.site-region.is-empty { visibility: hidden; }
.site-cta .browser { border-style: dashed; border-color: rgba(106, 145, 167, 0.45); background: rgba(78, 112, 132, 0.06); box-shadow: none; }
.cta-shot { display: grid; place-items: center; background: radial-gradient(70% 90% at 50% 40%, rgba(78, 112, 132, 0.28), transparent 70%); }
.cta-shot-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; text-align: center; }
.cta-shot-inner strong { font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.cta-shot-inner small { max-width: 30ch; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.cta-shot-inner .btn { margin-top: 6px; }
.site-cta:hover .browser { border-color: var(--accent-hi); background: rgba(78, 112, 132, 0.12); }
@media (max-width: 1080px) { .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .site-shot img, .phone, .browser { transition: none; } .site-card:hover .site-shot img { transform: none; } }

/* branding & identity (masonry) */
.brand-grid { columns: 3 260px; column-gap: 16px; }
.brand-card {
  position: relative; display: block; width: 100%; break-inside: avoid; margin: 0 0 16px; padding: 0; border: 0;
  border-radius: 18px; overflow: hidden; background: var(--surface); cursor: zoom-in; text-align: start;
}
.brand-card img { width: 100%; height: auto; transition: transform 0.9s var(--ease); }
.brand-card:hover img { transform: scale(1.04); }
.brand-meta {
  position: absolute; inset: auto 0 0; padding: 40px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 8, 0.86));
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s var(--ease);
}
.brand-card:hover .brand-meta, .brand-card:focus-visible .brand-meta { opacity: 1; transform: none; }
.brand-meta strong { display: block; font-size: 17px; font-weight: 700; color: #fff; }
.brand-meta small { color: var(--accent-hi); font-size: 12px; font-weight: 600; }
@media (hover: none) { .brand-meta { opacity: 1; transform: none; } }

/* preview-only placeholders for empty sections (?preview=1) */
.ph {
  display: grid; place-items: center; gap: 6px; padding: 20px; text-align: center;
  border-radius: 18px; border: 1px dashed var(--line-2); color: var(--text-3); font-size: 13px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px);
}
.ph strong { color: var(--text-2); font-size: 15px; }
.ph-note { margin: -24px 0 26px; color: #e9c46a; font-size: 13px; }
.post-grid .ph { break-inside: avoid; margin-bottom: 14px; }
.brand-grid .ph { break-inside: avoid; margin-bottom: 16px; }

/* ---------- results (media buying) ---------- */
.results { position: relative; padding: clamp(84px, 10vw, 140px) 0; border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 0%, rgba(78, 112, 132, 0.14), transparent 70%); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.result-card {
  display: flex; flex-direction: column; gap: 18px; padding: 24px;
  border-radius: 22px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.result-head { display: flex; align-items: center; gap: 14px; }
.result-logo { height: 40px; width: auto; max-width: 110px; object-fit: contain; }
.result-head strong { display: block; font-size: 17px; font-weight: 700; }
.result-head small { color: var(--text-3); font-size: 12px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.metric b {
  display: block; font-family: var(--f-sans); font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; line-height: 1.05; direction: ltr; unicode-bidi: isolate;
  background: linear-gradient(180deg, #fff 30%, var(--accent-hi) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric span { display: block; margin-top: 4px; color: var(--text-2); font-size: 12px; }
.result-note { color: var(--text-2); font-size: 14px; line-height: 1.7; }

/* ---------- process ---------- */
.process { position: relative; padding: clamp(84px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 64px; inset-inline: 6%; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}
.step { position: relative; padding: 26px 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: rgba(13, 15, 18, 0.9); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 18px; font-family: var(--f-serif); font-style: italic; font-size: 48px; line-height: 1; color: var(--accent-2);
}
.step h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 14px; line-height: 1.75; }

/* ---------- contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(45% 60% at 30% 40%, rgba(78, 112, 132, 0.24), transparent 72%); }
.cta-orbit { position: absolute; z-index: -1; left: 50%; top: 42%; width: min(1300px, 150vw); max-width: none; transform: translate(-50%, -50%) rotate(-7deg); }
.cta-orbit ellipse { fill: none; stroke: rgba(169, 202, 219, 0.12); stroke-width: 1; }
.cta-orbit ellipse + ellipse { stroke-dasharray: 2 10; }
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta-title { margin: 18px 0 22px; font-size: clamp(46px, 7.2vw, 108px); font-weight: 900; line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; }
.cta-title .outline { -webkit-text-stroke-width: 4px; display: block; }
.cta-title .serif { display: block; font-size: 1.18em; line-height: 0.85; }
html[lang="ar"] .cta-title { line-height: 1.15; font-size: clamp(46px, 6.4vw, 96px); }
html[lang="ar"] .cta-title .serif { font-size: 1em; line-height: 1.1; }
.contact-list { display: grid; gap: 10px; margin-top: 30px; max-width: 460px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.contact-list a:hover { border-color: rgba(106, 145, 167, 0.5); background: rgba(78, 112, 132, 0.08); transform: translateX(var(--nudge, 4px)); }
[dir="rtl"] .contact-list a:hover { --nudge: -4px; }
.ci { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(78, 112, 132, 0.18); color: var(--accent-hi); }
.ci svg { width: 22px; height: 22px; }
.ci-wa { background: rgba(37, 211, 102, 0.14); color: var(--wa); }
.contact-list small { display: block; color: var(--text-3); font-size: 12px; }
.contact-list strong { display: block; font-family: var(--f-sans); font-size: 15px; font-weight: 600; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; max-width: 460px; }
.office { padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line-2); }
.office h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.office p { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.office a { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--accent-hi); font-size: 12px; font-weight: 600; white-space: nowrap; }
.contact-form {
  padding: clamp(22px, 3vw, 34px); border-radius: 26px; border: 1px solid var(--line-2);
  background: rgba(13, 15, 18, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); background: rgba(78, 112, 132, 0.1); box-shadow: 0 0 0 3px rgba(78, 112, 132, 0.25); }
.field textarea { resize: vertical; min-height: 116px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23a9b2b9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-right: 42px;
}
[dir="rtl"] .field select { background-position: left 14px center; padding-right: 14px; padding-left: 42px; }
.field select option { background: #13161a; color: #f1f3f4; }
.field .is-invalid { border-color: #e76f51; }
.form-error { margin: 0 0 12px; color: #ffb4a8; font-size: 13px; }
.contact-form .btn-primary { background: var(--wa); color: #06210f; box-shadow: 0 12px 34px -12px rgba(37, 211, 102, 0.6); }
.contact-form .btn-primary:hover { background: #3ee07a; }

/* ---------- footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: start; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 14px; }
.footer-tag { font-size: 22px; color: var(--accent-hi); }
.footer a { color: var(--text-2); transition: color 0.25s; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; font-weight: 600; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color 0.25s, color 0.25s, background 0.25s; }
.socials a:hover { border-color: var(--accent-2); color: var(--accent-hi); background: rgba(78, 112, 132, 0.14); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.footer-bottom a { color: var(--text-3); }

/* ---------- floating WhatsApp ---------- */
.wa-fab {
  position: fixed; z-index: 70; bottom: 22px; inset-inline-end: 22px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 32px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s ease-out infinite; }
.wa-fab:hover { transform: scale(1.08); }
@keyframes ping { 0% { opacity: 0.7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
body.lb-open .wa-fab { opacity: 0; pointer-events: none; }

/* ---------- viewer ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity 0.35s; }
.lb-frame { position: relative; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: scale(0.96); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.lightbox.is-open .lb-backdrop, .lightbox.is-open .lb-frame { opacity: 1; transform: none; }
.lb-media video, .lb-media img { border-radius: 16px; background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8); }
.lb-media.is-tall video { height: min(84vh, 880px); max-width: 92vw; aspect-ratio: 9 / 16; object-fit: contain; }
.lb-media.is-wide video { width: min(92vw, 1320px); max-height: 80vh; aspect-ratio: 16 / 9; object-fit: contain; }
.lb-media.is-image img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; object-fit: contain; background: transparent; }
.lb-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.lb-caption a { color: var(--accent-hi); }
.lb-btn { position: fixed; z-index: 2; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-2); color: #fff; transition: background 0.25s, border-color 0.25s; }
.lb-btn:hover { background: rgba(78, 112, 132, 0.4); border-color: var(--accent-2); }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev, .lb-next { top: 50%; margin-top: -25px; }
.lb-prev { inset-inline-start: 20px; }
.lb-next { inset-inline-end: 20px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .work-row { grid-template-columns: 220px 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-pill { height: 60px; padding-inline: 18px 8px; }
  .nav-logo img { height: 32px; }
  .hero { padding: 108px 0 56px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .hero-stage { height: 420px; margin-top: 18px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-film { aspect-ratio: 16 / 10; }
  .work-row { grid-template-columns: 1fr; gap: 26px; }
  .work-info { position: static; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; padding-top: 0; }
  .work-num { font-size: 46px; margin: 0; grid-row: span 2; }
  .work-title { margin-bottom: 8px; }
  .work-desc { grid-column: 1 / -1; margin: 6px 0 12px; max-width: 60ch; }
  .work-count { grid-column: 1 / -1; }
  .reel { padding: 0 14%; }
  .reel-stage { max-width: 250px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .film-grid { grid-template-columns: 1fr; }
  .film-card.is-featured { aspect-ratio: 16 / 9; border-radius: 20px; }
  .film-card .play-badge, .film-card.is-featured .play-badge { top: 36%; width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .film-card .play-badge .i { width: 20px; height: 20px; }
  .is-featured .film-meta strong { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .marquee-btn { display: none; }
  .marquee { padding-inline: 0; }
  .marquee-set { gap: 48px; padding-inline-end: 48px; }
  .hero-stage { height: 360px; }
  .hero-card--l { transform: translate(-104%, -45%) rotate(-9deg) scale(0.78); }
  .hero-card--r { transform: translate(4%, -45%) rotate(9deg) scale(0.78); }
  .vm, .field-row, .offices, .steps { grid-template-columns: 1fr; }
  /* 10 services stacked is a long scroll on phones: swipe sideways instead */
  .service-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .service { scroll-snap-align: start; min-height: 0; }
  /* websites: swipe sideways too */
  .site-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .site-grid::-webkit-scrollbar { display: none; }
  .site-card { scroll-snap-align: start; }
  .reel { padding: 0 11%; }
  .reel-stage { max-width: 210px; }
  .reel-arrow { width: 40px; height: 40px; top: calc(50% - 40px); }
  .reel-card.is-prev { transform: translateX(-50%) rotate(-5deg) scale(0.84); }
  .reel-card.is-next { transform: translateX(50%) rotate(5deg) scale(0.84); }
  [dir="rtl"] .reel-card.is-prev { transform: translateX(50%) rotate(5deg) scale(0.84); }
  [dir="rtl"] .reel-card.is-next { transform: translateX(-50%) rotate(-5deg) scale(0.84); }
  .post-grid { columns: 2 140px; column-gap: 10px; }
  .post-card { margin-bottom: 10px; }
  .brand-grid { columns: 2 140px; column-gap: 10px; }
  .brand-card { margin-bottom: 10px; border-radius: 14px; }
  .brand-meta { padding: 28px 12px 10px; }
  .brand-meta strong { font-size: 14px; }
  .btn-lg { height: 54px; padding: 0 26px; }
  .wa-fab { width: 54px; height: 54px; bottom: 16px; inset-inline-end: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .hero-card, .btn-primary::after, .is-muted .reel-sound, .wa-fab::after { animation: none; }
  .reel-card { transition-duration: 0.01s; }
}
