:root {
  color-scheme: dark;
  --bg: #101022;
  --deep: #0b0b19;
  --panel: #191931;
  --text: #f7f6ff;
  --muted: #c1bfd5;
  --accent: #9a98ff;
  --line: #ffffff24;
  --font: "Segoe UI", Tahoma, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.7 var(--font); }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; }
:focus-visible { outline: 2px solid #b0b1ff; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 8vw, 8rem); }
.skip { position: fixed; z-index: 10; inset-block-start: .6rem; inset-inline-start: .6rem; background: white; color: #101022; padding: .7rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { position: sticky; inset-block-start: 0; z-index: 5; background: #101022f2; border-block-end: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 1.25rem; }
.wordmark { display: block; flex: none; }
.wordmark img { width: 137px; height: auto; border-radius: .25rem; }
.header-inner nav, .header-actions, .actions, .socials { display: flex; align-items: center; gap: 1.25rem; }
.header-inner nav { gap: clamp(1rem, 3vw, 2.8rem); }
.header-inner nav a { font-size: .94rem; white-space: nowrap; }
.header-inner nav .nav-contact { display: none; }
.header-inner nav a:hover, .socials a:hover, address a:hover { color: var(--accent); }
.header-actions { gap: .75rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: .55rem; padding: .65rem 1.25rem; font-weight: 650; background: #b0a6ff; color: #11102a; transition: background .2s; }
.button:hover { background: #d2cbff; }
.button.small { min-height: 39px; padding: .34rem .9rem; font-size: .93rem; white-space: nowrap; }
.button.secondary, .language, .menu-button { background: #15152d72; border: 1px solid #ffffff52; color: var(--text); }
.button.secondary:hover, .language:hover, .menu-button:hover { background: #353459; }
.language, .menu-button { min-height: 39px; min-width: 44px; border-radius: .55rem; font-size: .9rem; padding-inline: .6rem; }
.menu-button { display: none; }
.hero { position: relative; isolation: isolate; min-height: clamp(540px, 80svh, 790px); display: grid; align-items: center; overflow: hidden; background: #121127; }
.hero-image { position: absolute; z-index: -3; inset-block: 0; inset-inline-end: 0; width: 73%; height: 100%; object-fit: cover; object-position: center 47%; }
html[dir="rtl"] .hero-image { transform: scaleX(-1); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; inset: 0; }
.hero::before { z-index: -2; background: linear-gradient(90deg, #111022 10%, #111022ef 26%, #111022ad 44%, transparent 72%); }
html[dir="rtl"] .hero::before { background: linear-gradient(270deg, #111022 10%, #111022ef 26%, #111022ad 44%, transparent 72%); }
.hero::after { z-index: -1; background: linear-gradient(0deg, #101022 0%, transparent 22%); }
.hero-content { padding-block: 5rem; }
.eyebrow { color: #bcb6ff; font-weight: 650; margin-block-end: .9rem; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .88rem; }
.hero h1 { width: fit-content; max-width: 100%; font-size: clamp(2.75rem, 6.5vw, 6.1rem); letter-spacing: -.055em; line-height: 1.1; }
html[lang="ar"] .hero h1, html[lang="ar"] h2 { letter-spacing: normal; }
.gradient-text { color: #bbb2ff; background: linear-gradient(115deg, #a8c1ff 0%, #b6a3ff 57%, #efa8df 100%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy { color: #dedbef; max-width: 36rem; font-size: clamp(1.05rem, 1.65vw, 1.28rem); margin-block: 1.4rem 1.8rem; }
.actions { flex-wrap: wrap; gap: .75rem; }
.about { display: grid; grid-template-columns: 1.14fr 1fr; align-items: center; gap: clamp(2.4rem, 7vw, 7rem); }
.about-image { border: 1px solid var(--line); overflow: hidden; border-radius: 1rem; }
.about-image img { width: 100%; height: auto; aspect-ratio: 1.68; object-fit: cover; }
.about-copy > p:not(.eyebrow), .contact p { color: var(--muted); margin-block: 1rem 1.25rem; }
.inline-link { display: inline-block; color: #c5bdff; font-weight: 650; text-decoration: underline; text-underline-offset: .3em; }
.inline-link:hover { color: white; }
.section-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .75rem 1.5rem; margin-block-end: 2rem; }
.section-header p { color: var(--muted); }
.services { background: #15152a; border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.service { min-width: 0; border: 1px solid var(--line); border-radius: .85rem; background: #191930; overflow: hidden; }
.service img { width: 100%; height: 142px; object-fit: cover; }
.service h3 { font-size: 1.2rem; margin-block-end: .55rem; }
.service p { color: var(--muted); }
.service-copy { padding: 1rem 1.15rem 1.25rem; }
.media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.media-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: end; min-height: 205px; aspect-ratio: 1.63; border: 1px solid var(--line); border-radius: .9rem; background: var(--panel); }
.media-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.media-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#090913f5,transparent 69%); }
.media-card:hover img, .media-card:focus-visible img { transform: scale(1.05); }
.media-caption { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .95rem; font-size: 1.02rem; font-weight: 650; line-height: 1.4; }
.play { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ffffff76; border-radius: 50%; background: #161633a3; }
.play::before { content: ""; border-block: 5px solid transparent; border-left: 8px solid white; margin-left: 2px; }
.work { background: #181631; border-block: 1px solid var(--line); }
.work-grid .media-card { aspect-ratio: 1.45; }
.process-grid { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; list-style: none; counter-reset: phase; }
.process-grid li { counter-increment: phase; display: flex; align-items: center; gap: .8rem; min-height: 84px; padding: .9rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); font-weight: 600; }
.process-grid li::before { content: counter(phase); display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: #30296a; color: #e0d9ff; font-size: .88rem; }
.clients { background: #f8f8fe; color: #161631; padding-block: clamp(3rem, 5.5vw, 5rem); text-align: center; }
.clients h2 { margin-block-end: 1.5rem; }
.clients img { width: min(100%, 900px); height: auto; margin-inline: auto; border-radius: .55rem; }
.contact { background: linear-gradient(115deg,#161535ef,#161331a8),url("media/cover.webp") center 37%/cover; }
.contact-inner { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(1.8rem, 5vw, 5rem); }
.contact address { font-style: normal; display: grid; gap: .55rem; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 3vw, 2rem); background: #121128b0; }
.contact address a { text-align: start; width: fit-content; overflow-wrap: anywhere; }
footer { background: var(--deep); border-block-start: 1px solid var(--line); }
.footer-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1rem; padding-block: 1.15rem; color: var(--muted); }
.footer-inner small { font-size: .84rem; }
.socials { font-size: .94rem; }

@media (min-width: 1120px) {
  .service-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (min-width: 881px) and (max-width: 1119px) {
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 880px) {
  .header-inner nav { gap: 1rem; }
  .header-contact { display: none; }
  .header-inner nav .nav-contact { display: block; }
  .service-grid, .media-grid, .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 64px; }
  .wordmark img { width: 119px; }
  .menu-button { display: block; }
  .header-inner nav { display: none; position: absolute; inset: 100% 0 auto; align-items: stretch; flex-direction: column; gap: 0; background: #141427; padding: .3rem 1rem .8rem; border-block-end: 1px solid var(--line); }
  .header-inner nav.open { display: flex; }
  .header-inner nav a { padding: .65rem .5rem; }
  .hero { min-height: 660px; align-items: end; }
  .hero-content { padding-block: 2rem 3.25rem; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.65rem); }
  .hero-image { width: 100%; height: 76%; object-position: center 41%; }
  .hero::before, html[dir="rtl"] .hero::before { background: linear-gradient(0deg,#101022 18%,#101022e0 34%,transparent 74%); }
  .hero-copy { margin-block: 1rem 1.25rem; }
  .about, .contact-inner { grid-template-columns: 1fr; }
  .about-image { order: 2; }
  .service-grid, .media-grid, .process-grid { grid-template-columns: 1fr; }
  .service img { height: 170px; }
  .work-grid .media-card { aspect-ratio: 1.6; }
  .footer-inner { gap: .7rem 1.4rem; }
  .footer-inner small { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
