/* خط تجارب (Elgharib Tajarib Taweel) */
@font-face { font-family: "Tajarib"; src: url("../fonts/tajarib-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tajarib"; src: url("../fonts/tajarib-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Tajarib"; src: url("../fonts/tajarib-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Tajarib"; src: url("../fonts/tajarib-900.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }

/* =========================================================
   الألوان والخطوط — غيّرها من هنا وتتغير في الموقع كله
   ========================================================= */
:root {
  --bg: #FFFFFF;
  --alt: #F5F5F7;
  --text: #1D1D1F;
  --text2: #6E6E73;
  --muted: #86868B;
  --border: #D2D2D7;
  --accent: #586C74;
  --accent-ink: #4A5C63;
  --olive: #9E9E00;
  --olive-ink: #6B6B00;
  --dark: #1F272B;
  --dark2: #2A3439;
  --on-dark: #D2D7DA;
  --ph: #E8E8ED;
  --ph-dark: #2E383D;
  --card: #FFFFFF;
  --glass: rgba(255,255,255,.82);
  --on-inv: #FFFFFF;
  --on-inv-2: #C7C7CC;
  --accent-text: var(--accent);

  --font: "Tajarib", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1360px;
  --gutter: 20px;
  --radius: 18px;
  --radius-sm: 12px;
  --section: 88px;
}
@media (min-width: 810px) { :root { --gutter: 40px; --section: 140px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 810px) { body { font-size: 18px; } }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.alt { background: var(--alt); }
.dark { background: var(--dark); color: #fff; }

/* ---------- الطباعة ---------- */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--accent-text); line-height: 1.5; }
.label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--olive); }
.dark .label { color: var(--on-dark); }
.h1 { font-size: clamp(42px, 7.4vw, 92px); line-height: 1.7; font-weight: 700; letter-spacing: 0; }
.h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.65; font-weight: 700; }
.h3 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.9; color: var(--text2); max-width: 640px; }
.dark .lead { color: var(--on-dark); }

/* ---------- الأزرار ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--text); background: transparent; color: var(--text);
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease);
}
.btn:hover { color: var(--on-inv); }
.btn:hover::before { transform: scaleX(1); }
.btn .count { font-weight: 400; color: var(--muted); transition: color .45s var(--ease); }
.btn:hover .count { color: var(--on-inv-2); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid::before { background: var(--accent-ink); }
.btn--light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--light::before { background: #fff; }
.btn--light:hover { color: #1D1D1F; }
.btn--white { background: #fff; border-color: #fff; color: #1D1D1F; }
.btn--white::before { background: var(--olive); }
.btn--block { width: 100%; }
.magnetic { will-change: transform; transition: transform .5s var(--ease); }

/* ---------- الرأس ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.header.solid, body.no-hero .header {
  background: var(--glass); color: var(--text);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
@media (min-width: 810px) { .header__in { height: 80px; } }
.brand { font-size: 21px; font-weight: 700; }
.nav { display: none; align-items: center; gap: 34px; font-size: 16px; font-weight: 500; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--olive); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.header:not(.solid) .nav .btn { background: #fff; border-color: #fff; color: #1D1D1F; }
body.no-hero .header .nav .btn, .header.solid .nav .btn { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none !important; } }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; border: 1px solid currentColor; background: none; cursor: pointer; opacity: .9; }
.menu-btn span { position: relative; width: 16px; height: 1.6px; background: currentColor; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline: 0; height: 1.6px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span::before { top: -5px; } .menu-btn span::after { top: 5px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg); color: var(--text);
  padding: 100px var(--gutter) 40px; display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { color: var(--text); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mobile-menu a:not(.btn) { font-size: 30px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--border); opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.menu-open .mobile-menu a:not(.btn) { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .06s; } .menu-open .mobile-menu a:nth-child(3) { transition-delay: .12s; }
.mobile-menu .btn { margin-top: auto; min-height: 58px; font-size: 17px; }

/* ---------- الشرائح الرئيسية ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--dark); color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.active { opacity: 1; z-index: 1; }
.slide__media { position: absolute; inset: 0; transform: scale(1.12); transition: transform 8s linear; }
.slide.active .slide__media { transform: scale(1); }
.slide__media img, .slide__media video { width: 100%; height: 100%; object-fit: cover; }
.slide__media .ph { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 20%, #3A474D 0%, var(--dark) 60%); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.75) 100%); }
.slide__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding-bottom: clamp(96px, 14vh, 150px); }
.slide__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.slide__kicker::before { content: ""; width: 22px; height: 2px; background: var(--olive); border-radius: 2px; }
.slide__title { max-width: 980px; }
.slide__text { margin-top: 16px; font-size: clamp(17px, 1.6vw, 22px); color: rgba(255,255,255,.88); max-width: 620px; }
.slide__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.slide .reveal-word > span { transition-delay: calc(.35s + var(--i) * .06s); }
.slide:not(.active) .reveal-word > span { transform: translateY(110%); transition: none; }
.hero__ui { position: absolute; inset-inline: 0; bottom: 28px; z-index: 3; }
.hero__ui .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero__bars { display: flex; gap: 8px; flex: 1; max-width: 340px; }
.hero__bar { flex: 1; height: 2px; background: rgba(255,255,255,.28); border: 0; padding: 10px 0; background-clip: content-box; cursor: pointer; position: relative; }
.hero__bar i { position: absolute; inset-inline-start: 0; top: 10px; height: 2px; width: 0; background: #fff; }
.hero__bar.active i { animation: fill var(--dur, 6s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.hero__count { font-size: 14px; color: rgba(255,255,255,.75); direction: ltr; font-variant-numeric: tabular-nums; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; z-index: 3; width: 1px; height: 46px; background: rgba(255,255,255,.25); overflow: hidden; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero.single .hero__bars, .hero.single .hero__count { display: none; }

/* ---------- التعريف والأرقام ---------- */
.intro__grid { display: grid; gap: 48px; }
.intro__text { display: grid; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
.stat { border-top: 1px solid var(--text); padding-top: 18px; display: grid; gap: 4px; }
.stat__num { font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; line-height: 1.1; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 15px; color: var(--text2); line-height: 1.5; }
@media (min-width: 1100px) { .intro__grid { grid-template-columns: 1.25fr 1fr; align-items: end; gap: 80px; } .stats { gap: 28px; } }

/* ---------- رأس الخانة ---------- */
.cat-head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 40px; }
.cat-head__title { display: grid; gap: 12px; }
.cat-head__n { font-size: 15px; font-weight: 600; color: var(--olive-ink); direction: ltr; text-align: right; }
.dark .cat-head__n { color: var(--olive); }
@media (min-width: 810px) { .cat-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; } }

/* ---------- الوسائط ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ph); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; font-size: 14px; color: var(--muted); }
.dark .media { background: var(--ph-dark); }
.dark .media .ph { color: #7C878C; }
.r-3x1 { aspect-ratio: 2 / 1; } @media (min-width: 810px) { .r-3x1 { aspect-ratio: 3 / 1; } }
.r-4x1 { aspect-ratio: 16 / 9; } @media (min-width: 810px) { .r-4x1 { aspect-ratio: 4 / 1; } }
.r-16x9 { aspect-ratio: 16 / 9; } .r-4x5 { aspect-ratio: 4 / 5; } .r-9x16 { aspect-ratio: 9 / 16; } .r-4x3 { aspect-ratio: 4 / 3; } .r-1x1 { aspect-ratio: 1; }
.parallax-img { position: absolute; inset: -8% 0; height: 116% !important; will-change: transform; }

/* زر التشغيل */
.play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: none; cursor: pointer; width: 100%; }
.play__btn { width: 76px; height: 76px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #1D1D1F; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .5s var(--ease), background .5s var(--ease), color .5s var(--ease); }
.play__btn svg { width: 22px; height: 22px; margin-right: -3px; }
.play:hover .play__btn { transform: scale(1.1); background: var(--olive); color: #fff; }
.media:hover img { transform: scale(1.04); }
.media img { transition: transform 1.2s var(--ease); }
.duration { position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 2; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; direction: ltr; }
.small .play__btn { width: 54px; height: 54px; } .small .play__btn svg { width: 17px; height: 17px; }

.media.top img { object-position: top; }
.zoom { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.zoom::after { content: ""; position: absolute; bottom: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.15); opacity: 0; transform: scale(.8); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .zoom::after { opacity: 1; transform: none; width: 32px; height: 32px; } }

/* cinema */
.cinema .media { border-radius: 0; }
.cinema .cat-head { margin: 32px 0 0; }
@media (min-width: 810px) { .cinema .cat-head { margin-top: 44px; } }

/* split */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 5fr; gap: 72px; } }
.split__text { display: grid; gap: 24px; justify-items: start; }
.split__text .cat-head, .voice__head .cat-head { margin: 0; flex-direction: column; align-items: flex-start; }
.quote { padding: 24px 26px; border-radius: var(--radius-sm); background: var(--alt); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.75; font-weight: 500; border-inline-start: 3px solid var(--olive); }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; font-weight: 400; color: var(--muted); }

/* reels */
.reels { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-bottom: 4px; }
.reels::before, .reels::after, .tabs::before, .tabs::after { content: ""; flex: 0 0 calc(var(--gutter) - 14px); }
.tabs::before, .tabs::after { flex-basis: calc(var(--gutter) - 8px); }
.reels::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 64%; scroll-snap-align: start; display: grid; gap: 12px; }
.reel__title { font-size: 16px; font-weight: 600; }
@media (min-width: 810px) { .reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 0; padding: 0; } .reels::before, .reels::after { display: none; } }

/* gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gallery .media:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery .media:nth-child(2) { grid-row: span 2; aspect-ratio: auto; }
.gallery .media:nth-child(3), .gallery .media:nth-child(4) { aspect-ratio: 1; }
.gallery .media:nth-child(n+5) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
@media (min-width: 810px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 20px; }
  .gallery .media { aspect-ratio: auto !important; }
  .gallery .media:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery .media:nth-child(2) { grid-column: span 1; grid-row: span 2; }
  .gallery .media:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .gallery .media:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .gallery .media:nth-child(n+5) { grid-column: 1 / -1; grid-row: span 1; }
}

/* design */
.designs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.designs .design-card:nth-child(n+4) { display: none; }
.design-card { display: grid; gap: 8px; align-content: start; }
.design-card .media { border-radius: 10px; }
.design-card__t { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text2); }
@media (min-width: 810px) { .designs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } .designs .design-card:nth-child(4) { display: grid; } .design-card { gap: 12px; } .design-card .media { border-radius: var(--radius-sm); } .design-card__t { font-size: 15px; } }

/* voice */
.voice { display: grid; gap: 28px; }
@media (min-width: 900px) { .voice { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.voice__head { display: grid; gap: 24px; justify-items: start; }
.players { display: grid; gap: 12px; }
.player { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.player__btn { width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--accent); color: #fff; transition: background .4s var(--ease), transform .4s var(--ease); }
.player__btn:hover { background: var(--olive); transform: scale(1.06); }
.player__btn svg { width: 18px; height: 18px; }
.player__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; line-height: 1.4; margin-bottom: 8px; }
.player__meta b { font-weight: 600; } .player__meta span { color: var(--muted); font-size: 13px; direction: ltr; }
.wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.wave i { flex: 1; border-radius: 2px; background: var(--border); transition: background .2s; }
.wave i.on { background: var(--accent); }
.player.playing .wave i.on { background: var(--olive); }

/* ai */
.ai-steps { display: grid; gap: 0; margin-top: 40px; }
.ai-step { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); }
.ai-step__n { font-size: 15px; color: var(--olive); font-weight: 600; direction: ltr; text-align: right; }
.ai-step h4 { font-size: 21px; font-weight: 700; line-height: 1.5; }
.ai-step p { font-size: 15px; color: var(--on-dark); line-height: 1.75; }
@media (min-width: 900px) { .ai-steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } .ai-step { grid-template-columns: 1fr; border-top-color: rgba(255,255,255,.22); } }
.ai-foot { margin-top: 40px; }

/* ---------- أعمال وأثرها ---------- */
.cases { display: grid; gap: 24px; }
@media (min-width: 900px) { .cases { grid-template-columns: 1fr 1fr; gap: 32px; } }
.case { background: var(--card); border-radius: 24px; padding: 12px 12px 26px; display: grid; gap: 22px; align-content: start; }
.case__body { padding-inline: 10px; display: grid; gap: 16px; }
@media (min-width: 810px) { .case { padding: 16px 16px 34px; } .case__body { padding-inline: 18px; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; font-weight: 500; line-height: 1.4; padding: 6px 12px; border-radius: 999px; background: var(--alt); color: var(--text2); }
.case h3 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.4; font-weight: 700; }
.case dl { display: grid; grid-template-columns: 84px 1fr; gap: 10px 16px; font-size: 16px; line-height: 1.7; }
.case dt { color: var(--muted); }
.case dd.res { font-weight: 700; color: var(--accent-text); }

/* ---------- الجهات والآراء ---------- */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 810px) { .logos { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.logo { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px; border-radius: var(--radius-sm); background: var(--alt); font-size: 13px; color: var(--muted); }
.logo img { max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .5s, opacity .5s; }
.logo:hover img { filter: none; opacity: 1; }
.quotes { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.tquote { padding: 30px; border-radius: 24px; background: var(--alt); display: grid; gap: 24px; align-content: space-between; }
.tquote blockquote { font-size: 18px; line-height: 1.8; }
.tquote figcaption b { display: block; font-size: 16px; } .tquote figcaption span { font-size: 14px; color: var(--muted); }

/* ---------- عني ---------- */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 88px; } }
.about__text { display: grid; gap: 20px; }

/* ---------- التواصل ---------- */
.contact { padding-top: var(--section); padding-bottom: 40px; }
.contact__top { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact__top { grid-template-columns: 1fr auto; align-items: end; } }
.contact__title { font-size: clamp(36px, 6vw, 80px); line-height: 1.22; font-weight: 700; max-width: 900px; }
.contact__btns { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 600px) { .contact__btns { flex-direction: row; } }
.footer { margin-top: 72px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 14px; color: var(--on-dark); }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:hover { color: #fff; }
.wa-float { position: fixed; left: 18px; bottom: 22px; z-index: 30; width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.22); transform: scale(0); transition: transform .6s var(--ease); }
.wa-float.show { transform: scale(1); }
.wa-float svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .wa-float { display: none; } }

/* ---------- صفحة الأعمال ---------- */
.page-head { padding-top: calc(80px + 56px); padding-bottom: 36px; display: grid; gap: 18px; }
@media (min-width: 810px) { .page-head { padding-top: calc(80px + 100px); } }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-bottom: 6px; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 810px) { .tabs { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } .tabs::before, .tabs::after { display: none; } }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.tab small { font-size: 13px; font-weight: 400; color: var(--muted); direction: ltr; }
.tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--on-inv); }
.tab[aria-selected="true"] small { color: var(--on-inv-2); }
.grid-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 28px 10px; margin-top: 32px; }
.grid-works .work.wide { grid-column: 1 / -1; }
@media (min-width: 810px) { .grid-works { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; margin-top: 40px; } .grid-works .work.wide { grid-column: span 2; } }
.work { display: grid; gap: 14px; align-content: start; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.work.hide { display: none; }
.work { gap: 10px; }
.work__cat { font-size: 12px; font-weight: 600; color: var(--accent-text); line-height: 1.5; }
.work h3 { font-size: 14px; line-height: 1.55; font-weight: 700; }
.work.wide h3 { font-size: 19px; }
.work .media { border-radius: 10px; }
@media (min-width: 810px) { .work__cat { font-size: 13px; } .work h3 { font-size: 17px; } .work.wide h3 { font-size: 21px; } .work .media { border-radius: var(--radius-sm); } }
.work p { font-size: 15px; color: var(--text2); line-height: 1.75; }
.empty { padding: 48px; border-radius: 24px; background: var(--alt); text-align: center; color: var(--muted); }

/* ---------- نافذة الفيديو ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(10,12,14,.9); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__box { width: min(1200px, 100%); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; transform: scale(.94); transition: transform .6s var(--ease); }
.modal.vertical .modal__box { width: auto; height: min(86svh, 900px); aspect-ratio: 9 / 16; }
.modal.open .modal__box { transform: none; }
.modal__box iframe { width: 100%; height: 100%; border: 0; }
.modal.image { place-items: start center; overflow-y: auto; padding: 72px 16px 24px; }
.modal.image .modal__box { width: min(720px, 100%); aspect-ratio: auto; background: none; border-radius: 12px; overflow: visible; }
.modal.image .modal__box img { width: 100%; height: auto; border-radius: 12px; }
.modal__close { position: fixed; z-index: 2; top: 18px; left: 18px; width: 50px; height: 50px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }
.modal__close:hover { background: rgba(255,255,255,.26); }



/* ---------- شاشة التحميل: إطار مثلث التشغيل يدور ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .8s var(--ease), visibility .8s; }
.loader__tri { width: 84px; height: 84px; overflow: visible; transition: transform 1s var(--ease); }
.loader path { fill: none; stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.loader__base { stroke: var(--border); }
.loader__run { stroke: var(--text); stroke-dasharray: 26 74; animation: tri-run 1.4s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes tri-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.loader.done .loader__run { animation: tri-close .7s var(--ease) forwards; }
@keyframes tri-close { from { stroke-dasharray: 26 74; } to { stroke-dasharray: 100 0; stroke: var(--olive); } }
.loader.done .loader__tri { transform: scale(1.12); }
.loader.gone { opacity: 0; visibility: hidden; }
.loader.gone .loader__tri { transform: scale(1.5); }
html.loading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .loader__run { animation: none; stroke-dasharray: none; } }

/* ---------- الطابع الداكن (يُفعَّل بـ theme: "dark" في data.js) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0D0E;
  --alt: #131718;
  --text: #F2F2F0;
  --text2: #A4AAAD;
  --muted: #7E8588;
  --border: #2A3033;
  --accent: #586C74;
  --accent-ink: #6C838C;
  --accent-text: #93A8B1;
  --olive: #A8A800;
  --olive-ink: #B9B930;
  --dark: #172024;
  --dark2: #222D32;
  --on-dark: #C3CCD0;
  --ph: #1A1F21;
  --ph-dark: #222C30;
  --card: #181C1E;
  --glass: rgba(11,13,14,.78);
  --on-inv: #0B0D0E;
  --on-inv-2: #4A5053;
}
:root[data-theme="dark"] .header.solid, :root[data-theme="dark"] body.no-hero .header { box-shadow: 0 1px 0 rgba(255,255,255,.07); }
:root[data-theme="dark"] .hero { background: #050607; }
:root[data-theme="dark"] .dark .media { background: var(--ph-dark); }

/* =========================================================
   الحركة
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-word { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .08em .9em; margin: -.2em -.08em -.9em; }
.reveal-word > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * .05s); }
.split-text.in .reveal-word > span, .slide.active .reveal-word > span { transform: none; }
.reveal-img::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--cover, var(--bg)); transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); pointer-events: none; }
.alt .reveal-img::after { --cover: var(--alt); } .dark .reveal-img::after { --cover: var(--dark); }
.reveal-img > img:not(.parallax-img), .reveal-img > .ph, .reveal-img > video { transform: scale(1.18); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-img.in::after { transform: scaleX(0); }
.reveal-img.in > img:not(.parallax-img), .reveal-img.in > .ph, .reveal-img.in > video { transform: none; }
.line-grow { transform: scaleX(0); transform-origin: right; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.line-grow.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-word > span, .reveal-img > *, .line-grow { opacity: 1 !important; transform: none !important; }
  .reveal-img::after { display: none; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.loading .slide .reveal-word > span { transform: translateY(110%); transition: none; }
