:root {
  --red: #d9402b;
  --orange: #e7732b;
  --gold: #d9a441;
  --gold-dark: #b8862b;
  --ink: #17120f;
  --muted: #6b625c;
  --line: #ece4dd;
  --soft: #f6eeea;
  --bg: #fffdfb;
  --grad: linear-gradient(100deg, var(--red) 0%, var(--orange) 50%, var(--gold) 100%);
  --radius: 22px;
  --shadow: 0 18px 50px -24px rgba(90, 40, 10, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: "Tajawal", "Poppins", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.center { text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font: inherit; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px -12px rgba(217, 64, 43, .6);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(217, 64, 43, .7); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--orange); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 251, .85); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.logo-name { display: flex; flex-direction: column; line-height: 1.15; font-size: 16px; word-spacing: 3.5px; }
.logo-name small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
html[lang="ar"] .logo-name small { font-size: 13px; letter-spacing: 0; }
.logo-r { flex: none;width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-family: "Poppins", sans-serif; }
.links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.links a { color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { font: inherit; font-family: "Tajawal", "Poppins", sans-serif; font-weight: 700; font-size: 15px; background: var(--soft); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; color: var(--ink); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: var(--soft); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* HERO */
.hero { padding: 56px 0 80px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto auto; width: 620px; height: 620px; background: radial-gradient(circle, rgba(231, 115, 43, .16), transparent 65%); pointer-events: none; z-index: -1; }
html[dir="rtl"] .hero::before { inset: -120px auto auto 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
html[lang="ar"] h1 { line-height: 1.25; letter-spacing: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { list-style: none; display: flex; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats b { display: block; font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 6px; font-family: "Poppins", sans-serif; }
.stats span { font-size: 14px; color: var(--muted); }
.hero-media { position: relative; }
.hero-media img { border-radius: 32px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.hero-badge { position: absolute; bottom: 24px; inset-inline-start: -24px; background: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(231, 115, 43, .15); }

/* ABOUT */
.about { padding-bottom: 40px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-soft { background: var(--soft); border-radius: var(--radius); padding: 36px; }
.card-soft h3 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
.card-soft p:last-child { color: var(--muted); }

/* SECTIONS */
.section { padding: 100px 0; }
.section-tint { background: linear-gradient(180deg, #fff6f0, #fffdfb); }
.head { max-width: 720px; margin-bottom: 52px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
html[lang="ar"] h2 { line-height: 1.35; letter-spacing: 0; }
.sub { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.svc-ic svg { width: 26px; height: 26px; }
.svc .num { position: absolute; top: 26px; inset-inline-end: 26px; font-weight: 700; color: var(--line); font-size: 28px; font-family: "Poppins", sans-serif; }
.svc h3 { font-size: 21px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.svc ul { list-style: none; display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.svc li { display: flex; gap: 10px; align-items: baseline; }
.svc li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; transform: translateY(-2px); }

/* APPS */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; transition: transform .25s, box-shadow .25s; }
.app:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-ic { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .3); }
.app-body { display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--red); background: #fdeee9; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.app h3 { font-size: 21px; margin-bottom: 8px; }
.app p { color: var(--muted); font-size: 15px; margin-bottom: 20px; flex: 1; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; direction: ltr; transition: background .2s; }
.store:hover { background: var(--red); }
.store svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.app-more { background: var(--grad); color: #fff; border: 0; }
.app-more .tag { background: rgba(255, 255, 255, .2); color: #fff; }
.more-list { list-style: none; display: grid; gap: 12px; font-size: 15px; margin-top: 8px; }
.more-list span { opacity: .9; }

/* WORK */
.work { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 18px; }
.w { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.w img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.w:hover img { transform: scale(1.04); }
.w figcaption { position: absolute; inset: auto 12px 12px 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; width: fit-content; }
.w-tall { grid-row: span 2; }
.w-wide { grid-column: span 1; }
.campaign { margin-top: 18px; background: var(--soft); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
.campaign-head h3 { font-size: 22px; margin-bottom: 8px; }
.campaign-head p { color: var(--muted); font-size: 15px; }
.campaign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cw { border-radius: 14px; overflow: hidden; aspect-ratio: 1400 / 676; background: #fff; box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .4); }
.cw img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cw:hover img { transform: scale(1.04); }
.w img, .cw img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 9, 7, .92); display: flex; align-items: center; justify-content: center; padding: 56px 72px; animation: lb-in .2s ease; direction: ltr; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.lightbox figcaption { color: #fff; font-size: 15px; font-weight: 500; text-align: center; }
html[lang="ar"] .lightbox figcaption { direction: rtl; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: var(--orange); }
.lb-close { top: 14px; right: 14px; font-size: 30px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@keyframes lb-in { from { opacity: 0; } }
@media (max-width: 560px) {
  .lightbox { padding: 64px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}
.partners { margin-top: 80px; }
.partners img { margin: 20px auto 0; max-width: 900px; width: 100%; mix-blend-mode: multiply; }

/* VOICE OVER */
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.vo { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .25s, border-color .25s; }
.vo.playing { border-color: var(--orange); box-shadow: var(--shadow); }
.vo-play { width: 64px; height: 64px; flex: none; border: 0; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(217, 64, 43, .7); transition: transform .2s; }
.vo-play:hover { transform: scale(1.06); }
.vo-play svg { width: 24px; height: 24px; fill: currentColor; stroke: none; grid-area: 1 / 1; }
.vo-play .i-pause, .vo.playing .vo-play .i-play { display: none; }
.vo.playing .vo-play .i-pause { display: block; }
.vo-info { flex: 1; min-width: 0; }
.vo h3 { font-size: 18px; margin-bottom: 12px; }
.vo-bar { height: 6px; background: var(--soft); border-radius: 6px; cursor: pointer; overflow: hidden; direction: ltr; }
.vo-fill { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; }
.vo-time { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; direction: ltr; font-variant-numeric: tabular-nums; }

/* VIDEO */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vid { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s; }
.vid:hover { box-shadow: var(--shadow); }
.vid-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vid-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.v-cover { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .35)); display: grid; place-items: center; }
.v-cover[hidden] { display: none; }
.v-play { width: 76px; height: 76px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5); transition: transform .2s; }
.v-cover:hover .v-play { transform: scale(1.08); }
.v-play svg { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-inline-start: 4px; }
html[dir="rtl"] .v-play svg { margin-inline-start: 0; margin-inline-end: 4px; }
.v-dur { position: absolute; bottom: 12px; right: 12px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; direction: ltr; }
.vid-body { padding: 22px 24px 26px; }
.vid-body h3 { font-size: 20px; margin-bottom: 6px; }
.vid-body p { color: var(--muted); font-size: 15px; }
.video-audio { margin-top: 20px; }

/* PROCESS */
.section-dark { background: #17120f; color: #fff; position: relative; overflow: hidden; }
.section-dark::after { content: "R"; position: absolute; inset-inline-end: -40px; bottom: -120px; font-size: 520px; font-weight: 800; line-height: 1; font-family: "Poppins", sans-serif; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07); pointer-events: none; }
.section-dark .sub { color: rgba(255, 255, 255, .65); }
.section-dark .eyebrow { color: var(--gold); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; z-index: 1; }
.steps li { border-top: 2px solid rgba(255, 255, 255, .14); padding-top: 22px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 40px; height: 2px; background: var(--grad); }
.steps span { font-size: 14px; font-weight: 600; color: var(--gold); font-family: "Poppins", sans-serif; }
.steps h4 { font-size: 22px; margin: 8px 0; }
.steps p { color: rgba(255, 255, 255, .65); font-size: 15px; }

/* CONTACT */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 12px; margin-top: 32px; }
.contact-list a, .contact-list .row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--soft); border-radius: 18px; transition: background .2s, transform .2s; }
.contact-list a:hover { background: #f8e2d6; transform: translateX(4px); }
html[dir="rtl"] .contact-list a:hover { transform: translateX(-4px); }
.ci { width: 44px; height: 44px; border-radius: 14px; background: var(--gold); color: #fff; display: grid; place-items: center; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: 12px; }
.contact-list b { font-weight: 600; font-size: 16px; word-break: break-all; }
html[dir="rtl"] .contact-list b[dir="ltr"] { text-align: right; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form h3 { font-size: 22px; margin-bottom: 4px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); outline: none; transition: border-color .2s; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--orange); }
.hint { font-size: 13px; color: var(--muted); text-align: center; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.foot p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; transition: background .2s, color .2s; }
.social a:hover { background: var(--ink); color: #fff; }
.copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
@media (max-width: 860px) {
  .links { position: fixed; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .links.open { display: flex; }
  .links a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .burger { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .hero { padding-top: 28px; }
  .hero-grid, .about-grid, .contact { grid-template-columns: 1fr; gap: 36px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-badge { inset-inline-start: 12px; }
  .work { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .campaign { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .services, .apps, .voices, .videos { grid-template-columns: 1fr; }
  .v-play { width: 62px; height: 62px; }
  .vo { padding: 18px; gap: 16px; }
  .vo-play { width: 54px; height: 54px; }
  .steps { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .w-tall { grid-row: span 1; }
  .campaign-grid { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
  .stats b { font-size: 26px; }
  .card-soft, .form { padding: 26px; }
  .foot { grid-template-columns: 1fr; }
  .logo > span:last-child { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
