/* AppSmiths landing — matches assets/landing page.svg (1920 design) */

:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --muted-2: #828282;
  --muted-3: #8c989e;
  --line: rgba(255, 255, 255, 0.2);
  --cyan: #36c3dc;
  --panel: #0e0e0e;
  --font-nav: "Poppins", sans-serif;
  --font-display: "Manrope", sans-serif;
  --font-arabic: "Markazi Text", serif;
  --font-script: "Caveat", cursive;
  --pad-x: clamp(16px, 5vw, 260px);
  --section-y: clamp(48px, 8vw, 140px);
  --content-max: min(1308px, 100%);
  --site-header-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.page {
  width: 100%;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: max(16px, env(safe-area-inset-top)) 0 16px;
  background: rgba(5, 5, 5, 0.55);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(142px);
  -webkit-backdrop-filter: blur(142px);
}

.header-inner {
  width: min(1308px, calc(100% - clamp(24px, 4vw, 48px)));
  margin: 0 auto;
  min-height: 41px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  grid-column: 1;
  justify-self: start;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-left {
  grid-column: 1;
  justify-self: start;
}

.brand {
  grid-column: 2;
  justify-self: center;
}

.nav-right {
  grid-column: 3;
  justify-self: end;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px clamp(16px, 4vw, 48px) max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.95);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-nav);
  font-size: 15px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav .btn {
  margin-top: 8px;
  width: 100%;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.nav-left a {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
  white-space:nowrap;
}

.brand-logo {
  width: clamp(140px, 18vw, 204px);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-logo--light,
.hero-logo--light {
  display: none;
}

html[data-theme="light"] .brand-logo--dark,
html[data-theme="light"] .hero-logo--dark {
  display: none;
}

html[data-theme="light"] .brand-logo--light,
html[data-theme="light"] .hero-logo--light {
  display: block;
}

.lang-toggle {
  font-family: var(--font-nav);
  font-size: 14px;
  line-height: 21px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.lang-toggle--mobile {
  display: none;
  width: 100%;
  text-align: start;
  font-size: 15px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: var(--ink);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.theme-toggle-btn:hover {
  opacity: 0.85;
}

.theme-toggle-btn.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(10px, 2vw, 14px) clamp(20px, 3vw, 34px);
  border-radius: 55px;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 24px;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-fill {
  background: #fff;
  color: #000;
}

.nav-right .btn-fill,
.mobile-nav .btn-fill {
  background: #fff;
  color: #000;
}

.nav-right .btn-fill:hover,
.mobile-nav .btn-fill:hover {
  background: #f0f0f0;
}

.btn-outline {
  border: 1.4px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-fill .arrow,
.btn .arrow {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */
.hero-intro {
  min-height: calc(100svh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: clamp(24px, 4vw, 48px) var(--pad-x) clamp(16px, 3vw, 32px);
  gap: clamp(24px, 4vw, 48px);
  width: 100%;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 921px;
  justify-self: start;
}

.hero-visual-video,
.hero-visual-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-visual-video--dark {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 66%,
    rgba(0, 0, 0, 0.55) 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 66%,
    rgba(0, 0, 0, 0.55) 82%,
    transparent 100%
  );
}

html:not([data-theme="light"]) .hero-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 72%);
  filter: blur(10px);
}

.hero-visual-photo,
.hero-visual-video--light {
  display: none;
}

html[data-theme="light"] .hero-visual-video--dark {
  display: none;
}

html[data-theme="light"] .hero-visual-video--light {
  display: block;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    radial-gradient(
      ellipse 72% 68% at 48% 48%,
      #000 38%,
      rgba(0, 0, 0, 0.55) 58%,
      transparent 76%
    ),
    linear-gradient(
      to right,
      #000 0%,
      #000 58%,
      rgba(0, 0, 0, 0.45) 78%,
      transparent 94%
    );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(
      ellipse 72% 68% at 48% 48%,
      #000 38%,
      rgba(0, 0, 0, 0.55) 58%,
      transparent 76%
    ),
    linear-gradient(
      to right,
      #000 0%,
      #000 58%,
      rgba(0, 0, 0, 0.45) 78%,
      transparent 94%
    );
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-composite: intersect;
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-video,
  html[data-theme="light"] .hero-visual-video--dark,
  html[data-theme="light"] .hero-visual-video--light {
    display: none;
  }

  .hero-visual-photo {
    display: block;
  }

  html:not([data-theme="light"]) .hero-visual::after {
    display: none;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 2vw, 19px);
  max-width: 878px;
  width: 100%;
  justify-self: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 675px;
}

.hero-headline--fixed {
  display: block;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-headline-accent {
  color: var(--cyan);
}

.hero-headline--fixed[hidden],
.hero-headline--animated[hidden] {
  display: none !important;
}

.hero-typewriter {
  color: var(--cyan);
  display: inline-block;
  min-width: 0.6em;
}

.hero-typewriter::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.06em;
  background: var(--cyan);
  vertical-align: -0.05em;
  animation: hero-caret 0.85s steps(1) infinite;
}

@keyframes hero-caret {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-typewriter::after {
    animation: none;
    opacity: 1;
  }
}

.hero-copy p {
  font-weight: 400;
  font-size: clamp(15px, 2.4vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.018em;
  color: var(--muted);
  max-width: 736px;
}

.hero-logo {
  width: clamp(160px, 22vw, 235px);
  height: auto;
  object-fit: contain;
}

/* ---------- Statement ---------- */
.statement {
  position: relative;
  flex-shrink: 0;
  padding: clamp(16px, 3vw, 32px) var(--pad-x) clamp(28px, 4vw, 48px);
  text-align: center;
  width: 100%;
}

.statement::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, transparent 0%, #000 100%);
  pointer-events: none;
}

.statement p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.375;
  text-transform: capitalize;
  max-width: 1243px;
  margin: 0 auto;
}

/* ---------- Services ---------- */
.services {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  padding: clamp(56px, 8vw, 86px) var(--pad-x) clamp(64px, 9vw, 96px);
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(48px, 7vw, 90px);
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.65) 45%, transparent 100%);
  box-shadow: inset 0 24px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
}

.services-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.services-deco {
  position: absolute;
  object-fit: contain;
  max-width: none;
}

.services-deco--left {
  left: clamp(-120px, -5vw, -26px);
  top: clamp(120px, 18vw, 178px);
  width: clamp(220px, 26vw, 495px);
  height: auto;
}

.services-deco--right {
  right: clamp(-180px, -8vw, -40px);
  top: clamp(-80px, -8vw, -143px);
  width: clamp(280px, 42vw, 805px);
  height: auto;
}

.services-frame-light {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(-140px, -14vw, -80px);
  width: 100%;
  height: calc(100% + clamp(80px, 14vw, 140px));
  object-fit: cover;
  object-position: center top;
}

html[data-theme="light"] .services-deco--dark {
  display: none;
}

html[data-theme="light"] .services-frame-light {
  display: block;
}

.services-inner {
  position: relative;
  z-index: 1;
  width: min(1135px, 100%);
  margin: 0 auto;
}

.services-head {
  text-align: center;
  max-width: 708px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.services-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(12px, 1.5vw, 16px);
}

.services-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 29px);
}

.service-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  aspect-ratio: 1 / 1;
  padding: clamp(24px, 4vw, 45px) clamp(20px, 3.5vw, 42px) clamp(20px, 3vw, 32px);
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 15px;
  color: #000;
  cursor: pointer;
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    z-index: 1;
    transform: scale(1.06);
  }
}

.service-card:not(.service-card--more):hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

.service-card:not(.service-card--more):hover .service-icon {
  color: #fff;
}

.service-card--more {
  justify-content: flex-start;
  align-items: flex-start;
  padding: clamp(48px, 8vw, 89px) clamp(24px, 4vw, 42px) clamp(20px, 3vw, 32px);
  background: var(--cyan);
  border: none;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}

.service-card--more:hover {
  background: #fff;
  border-color: #e7e7e7;
  color: #000;
}

.service-icon {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.service-icon img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transition: filter 0.28s ease;
}

.service-icon--web img {
  width: clamp(70px, 7.6vw, 87px);
  height: clamp(50px, 5.5vw, 63px);
}

.service-icon--enterprise img {
  width: clamp(62px, 6.7vw, 77px);
  height: clamp(59px, 6.4vw, 73px);
}

.service-icon--erp img {
  width: clamp(56px, 6.1vw, 70px);
  height: clamp(56px, 6.1vw, 69px);
}

.service-icon--ai img {
  width: clamp(56px, 6.1vw, 70px);
  height: clamp(54px, 5.9vw, 68px);
}

.service-icon--ui-ux img {
  width: clamp(55px, 6vw, 69px);
  height: clamp(55px, 6vw, 69px);
}

.service-icon--qa img {
  width: clamp(54px, 5.9vw, 68px);
  height: clamp(59px, 6.4vw, 73px);
}

.service-icon--consulting img {
  width: clamp(56px, 6.1vw, 70px);
  height: clamp(58px, 6.3vw, 72px);
}

.service-card:not(.service-card--more):hover .service-icon img {
  filter: brightness(0) invert(1);
}

.service-more-art {
  position: absolute;
  left: 101px;
  top: 57px;
  width: clamp(120px, 12vw, 162px);
  height: auto;
  pointer-events: none;
  transition: filter 0.28s ease;
}

.service-card--more:hover .service-more-art {
  filter: brightness(0) invert(62%) sepia(48%) saturate(720%) hue-rotate(143deg) brightness(97%) contrast(92%);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 28px;
  letter-spacing: -0.02em;
  max-width: 179px;
}

.service-card__title--stacked span {
  display: block;
}

.service-card__title--stacked span:first-child {
  white-space: nowrap;
}

.service-more-count {
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 33px);
  line-height: 28px;
  letter-spacing: -0.02em;
}

.service-more-label {
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 28px;
  letter-spacing: -0.02em;
}

.service-more-note {
  margin-top: 7px;
  font-weight: 500;
  font-size: 12px;
  line-height: 30px;
  letter-spacing: -0.02em;
  max-width: 115px;
}

/* ---------- How we work ---------- */
.section-head {
  text-align: center;
  max-width: 793px;
  margin: 0 auto clamp(32px, 5vw, 64px);
  padding: 0 var(--pad-x);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: clamp(-1px, -0.2vw, -3px);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.section-head p {
  font-weight: 400;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.45;
  color: var(--muted);
}

.how {
  padding: var(--section-y) 0 clamp(40px, 6vw, 80px);
  width: 100%;
}

.how .section-head {
  max-width: min(1100px, calc(100% - clamp(24px, 4vw, 48px)));
  padding: 0;
}

.how .section-head p {
  max-width: none;
  white-space: normal;
}

.process {
  position: relative;
  width: min(1362px, calc(100% - clamp(24px, 4vw, 48px)));
  margin: 0 auto;
  aspect-ratio: 1362 / 643;
}

.process-rails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.process-item {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 29.52%;
  max-width: 402px;
}

.process-item .num {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.65vw, 36px);
  line-height: 1.36;
  text-transform: capitalize;
  color: var(--cyan);
  margin-bottom: clamp(8px, 1vw, 12px);
}

.process-item .process-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.65vw, 36px);
  line-height: 1.36;
  text-transform: capitalize;
  color: #fff;
  margin-bottom: clamp(8px, 1vw, 12px);
}

.process-item p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 33px;
  text-transform: capitalize;
  color: var(--muted-3);
  max-width: 100%;
}

/* Positions match Frame 8272285 / Figma % layout */
.process-item--1 {
  left: 0%;
  top: 3.86%;
}

.process-item--2 {
  left: 33.04%;
  top: 2.51%;
}

.process-item--3 {
  left: 70.48%;
  top: 3.86%;
}

.process-item--4 {
  left: 0%;
  top: 57.47%;
}

.process-item--5 {
  left: 32.75%;
  top: 57.47%;
}

.process-item--6 {
  left: 65.49%;
  top: 57%;
}

/* ---------- Design section ---------- */
.design {
  position: relative;
  overflow: hidden;
  min-height: clamp(720px, 90vh, 980px);
  padding: clamp(48px, 8vw, 100px) var(--pad-x);
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.design-floater {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: min(420px, 48vw);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform;
  pointer-events: none;
}

html[dir="rtl"] .design-floater {
  left: 0;
  right: auto;
}

.design-floater img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  transform-origin: center center;
}

.design-floater > img.design-floater__img--light {
  display: none;
}

html[data-theme="light"] .design-floater > img.design-floater__img--dark {
  display: none;
}

html[data-theme="light"] .design-floater > img.design-floater__img--light {
  display: block;
}

.design-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
  pointer-events: none;
}

.design-mark {
  width: min(513.55px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.design-mark > img,
.design-mark__en {
  width: 100%;
  height: auto;
  max-width: 513.55px;
  display: block;
}

.design-mark > img.design-mark__en--light {
  display: none;
}

html[data-theme="light"]:not([dir="rtl"]) .design-mark > img.design-mark__en--dark {
  display: none;
}

html[data-theme="light"]:not([dir="rtl"]) .design-mark > img.design-mark__en--light {
  display: block;
}

.design-mark__ar {
  display: none;
  flex-direction: column;
  align-items: center;
  width: auto;
  max-width: 100%;
  text-align: center;
}

.design-mark__research {
  width: 100px;
  max-width: 100px;
  height: auto;
  display: block;
}

.design-mark__before {
  width: 360px;
  max-width: 360px;
  height: auto;
  display: block;
  margin-top: 6px;
}

html[data-theme="light"][dir="rtl"] .design-mark__before {
  filter: brightness(0) saturate(100%) invert(25%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(99%) contrast(92%);
}

html[data-theme="light"] .design-copy-panel::before,
html[data-theme="light"] .design-links::before,
html[data-theme="light"][dir="rtl"] .design-mark__ar::before,
html[data-theme="light"][dir="rtl"] .design-copy::before {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme="light"] .design-links {
  color: #3f3e3e;
}

html[data-theme="light"] .design-links .active {
  color: var(--cyan);
}

html[dir="rtl"] .design-content {
  align-items: flex-start;
  width: 100%;
}

html[dir="rtl"] .design-mark {
  position: relative;
  z-index: 0;
  isolation: isolate;
  align-self: center;
  margin: 0 auto;
  justify-content: center;
}

html[dir="rtl"] .design-mark__ar {
  position: relative;
  z-index: 0;
  isolation: isolate;
  align-items: center;
  display: flex;
  padding: 12px 16px;
}

html[dir="rtl"] .design-mark__ar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: clamp(14px, 2vw, 22px);
  z-index: -1;
  pointer-events: none;
}

html[dir="rtl"] .design-mark__en {
  display: none;
}

html[dir="rtl"] .design-body {
  justify-items: start;
  width: 100%;
}

html[dir="rtl"] .design-copy__text {
  display: none;
}

html[dir="rtl"] .design-copy {
  position: relative;
  z-index: 0;
  isolation: isolate;
  max-width: min(1040px, 96vw);
  margin-left: auto;
  margin-right: 0;
  padding: 18px 22px;
}

html[dir="rtl"] .design-copy::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  right: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: clamp(14px, 2vw, 22px);
  z-index: -1;
  pointer-events: none;
}

html[dir="rtl"] .design-copy__stack--dark,
html[dir="rtl"] .design-copy__stack--light {
  position: relative;
  z-index: 0;
  width: min(1040px, 96vw);
  max-width: min(1040px, 96vw);
  margin-left: auto;
  margin-right: 0;
}

.design-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: 100%;
}

.design-copy {
  max-width: 640px;
  width: 100%;
  pointer-events: auto;
}

.design-copy__stack {
  display: none;
  width: 100%;
  max-width: 560px;
  height: auto;
}

.design-copy__stack--dark {
  display: block;
}

.design-copy__stack--light {
  display: none;
}

html:not([dir="rtl"]) .design-copy__stack--dark,
html:not([dir="rtl"]) .design-copy__stack--light {
  display: none !important;
}

html[dir="rtl"]:not([data-theme="light"]) .design-copy__stack--dark {
  display: block !important;
}

html[dir="rtl"]:not([data-theme="light"]) .design-copy__stack--light {
  display: none !important;
}

html[data-theme="light"][dir="rtl"] .design-copy__stack--dark {
  display: none !important;
}

html[data-theme="light"][dir="rtl"] .design-copy__stack--light {
  display: block !important;
}

.design-copy-panel,
.design-links {
  position: relative;
  z-index: 0;
}

.design-copy-panel::before,
.design-links::before {
  content: "";
  position: absolute;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.design-copy-panel::before {
  inset: -12px -80px -12px -12px;
  border-radius: 18px;
}

.design-links::before {
  inset: -8px -10px;
  border-radius: 18px;
}

.design-copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 3vw, 48px);
}

.design-title-line {
  display: block;
}

@media (min-width: 901px) {
  .design-title-line {
    white-space: nowrap;
  }
}

.design-copy p {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: clamp(160px, 18vw, 300px);
}

.design-links {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  font-family: var(--font-nav);
  font-size: clamp(18px, 1.5vw, 24px);
  color: rgba(255, 255, 255, 0.85);
}

.design-links .active {
  color: var(--cyan);
}

.design-links .sep {
  opacity: 0.35;
}

/* ---------- Case studies ---------- */
.cases {
  padding: var(--section-y) var(--pad-x) clamp(48px, 6vw, 80px);
  width: 100%;
}

.cases .section-head {
  max-width: min(1100px, 100%);
}

.cases .section-head h2 {
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cases-desc {
  font-family: var(--font-nav);
  font-size: clamp(13px, 1.45vw, 16px);
  line-height: 1.4;
  letter-spacing: -0.018em;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .cases-desc {
    white-space: normal;
  }
}

.cases-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.case-toggle {
  appearance: none;
  background: transparent;
  color: inherit;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(221px, 100%);
  min-height: 52px;
  padding: clamp(10px, 2vw, 14px) clamp(20px, 3vw, 34px);
  border: 1.4px solid #fff;
  border-radius: 55px;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 16px);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.case-toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}

.case-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.case-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.manarat-overlay {
  display: grid;
  grid-template-rows: 0fr;
  width: min(1320px, calc(100% - clamp(16px, 4vw, 48px)));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition:
    grid-template-rows 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    margin 0.45s ease;
}

.manarat-overlay.is-open {
  grid-template-rows: 1fr;
  margin-top: clamp(28px, 4vw, 48px);
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}

.manarat-overlay-inner {
  min-height: 0;
  position: relative;
}

.manarat-popup {
  border-radius: 28px;
  overflow: hidden;
  background: #f5f3f9;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.manarat-close {
  position: sticky;
  top: max(16px, env(safe-area-inset-top));
  z-index: 5;
  width: 52px;
  height: 52px;
  margin: 16px 16px -68px auto;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.manarat-close svg {
  width: 22px;
  height: 22px;
}

.manarat-close:hover {
  background: #111;
  transform: scale(1.06);
}

.manarat-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.manarat-case {
  position: relative;
  width: 100%;
  background: #f5f3f9;
  aspect-ratio: 1923 / 7574;
}

.manarat-case img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Tech stack ---------- */
.tech {
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 4vw, 40px);
  overflow: hidden;
  width: 100%;
}

.tech .section-head {
  max-width: min(1100px, calc(100% - clamp(24px, 4vw, 48px)));
  padding: 0;
}

.tech .section-head p {
  max-width: none;
}

.tech-marquees {
  margin-top: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 48px);
  width: 100%;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding-right: clamp(36px, 5vw, 72px);
  flex-shrink: 0;
}

.marquee-group img {
  height: clamp(36px, 4vw, 52px);
  width: auto;
  flex-shrink: 0;
  display: block;
  opacity: 0.95;
}

.marquee--left .marquee-track {
  animation: marquee-left 40s linear infinite;
}

.marquee--right .marquee-track {
  animation: marquee-right 44s linear infinite;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee--left .marquee-track,
  .marquee--right .marquee-track {
    animation: none;
  }
}

.tech-skyline {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 48px) var(--pad-x) 0;
  overflow: hidden;
}

.tech-skyline-frame {
  position: relative;
  width: min(1366px, 100%);
}

.tech-skyline-visual {
  width: 100%;
  line-height: 0;
}

.tech-skyline-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ---------- Stats ---------- */
.tech-skyline .stats {
  position: absolute;
  top: 3%;
  left: 14.27%;
  right: 12.5%;
  z-index: 2;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(48px, 8vw, 120px);
}

.stat {
  text-align: left;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  text-transform: capitalize;
  margin-bottom: 0.15em;
}

.stat span {
  display: block;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.2;
  color: #fff;
}

/* ---------- Accordion dropdowns (Leadership, Vision & Mission, Core Values) ---------- */
.drop-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: min(1309px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 52px) var(--pad-x) 0;
}

.drop-toggle {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 12px 40px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}

.drop-toggle:focus-visible {
  outline: 2px solid #36c3dc;
  outline-offset: 6px;
}

.drop-title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.35;
  letter-spacing: -0.0182em;
  color: #fff;
  display: flex;
  align-items: center;
}

.drop-chevron {
  flex: 0 0 auto;
  width: clamp(48px, 6.5vw, 83px);
  height: clamp(48px, 6.5vw, 83px);
  display: grid;
  place-items: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.drop-chevron img {
  width: 100%;
  height: 100%;
  display: block;
}

.drop-toggle[aria-expanded="true"] .drop-chevron {
  transform: rotate(180deg);
}

.drop-panel {
  width: 100%;
  display: grid;
  grid-template-rows: 1fr;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  overflow: hidden;
  opacity: 1;
  transition:
    grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    border-color 0.35s ease;
}

.drop-panel.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  border-color: transparent;
}

.drop-panel-inner {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) 0;
  line-height: 0;
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.drop-panel.is-collapsed .drop-panel-inner {
  transform: translateY(-12px);
  opacity: 0;
}

.drop-panel-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.vision-content {
  line-height: normal;
}

.leadership-content {
  line-height: normal;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 56px);
}

.leadership-card h3 {
  margin: 0 0 0.35em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.leadership-role {
  margin: 0 0 1em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.3;
  color: var(--cyan);
}

.leadership-bio {
  margin: 0 0 1.4em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
}

.leadership-sig {
  display: block;
  width: min(240px, 70%);
  height: auto;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
}

.vision-lead {
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #9a9a9a;
  max-width: 58ch;
}

.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 40px) clamp(20px, 2.5vw, 32px);
  align-items: start;
}

.vision-item {
  min-width: 0;
  container-type: inline-size;
}

.vision-item h3 {
  margin: 0 0 0.7em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.vision-title-single {
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  transform-origin: left center;
  letter-spacing: -0.03em;
}

.vision-item p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 900px) {
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .vision-lead {
    max-width: none;
  }

  .vision-title-single {
    white-space: normal;
  }
}

.values-content {
  line-height: normal;
}

.values-lead {
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #9a9a9a;
  max-width: 62ch;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 40px) clamp(20px, 2.5vw, 36px);
  align-items: start;
}

.values-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.drop-panel-inner .values-icon {
  display: block;
  width: auto;
  max-width: min(140px, 100%);
  height: clamp(56px, 6.5vw, 88px);
  margin: 0 0 clamp(14px, 1.6vw, 22px);
}

.values-num {
  margin: 0 0 0.15em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.values-item h3 {
  margin: 0 0 0.65em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.values-item p:not(.values-num) {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1100px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .values-lead {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Quick Download Links ---------- */
.downloads {
  width: min(1309px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad-x) clamp(40px, 5vw, 64px);
}

.downloads .section-head {
  max-width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
}

.downloads .section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.downloads-desc {
  margin: 0.85em auto 0;
  font-family: var(--font-nav);
  font-size: clamp(13px, 1.45vw, 16px);
  line-height: 1.45;
  letter-spacing: -0.018em;
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
}

.downloads-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: clamp(22px, 3vw, 32px);
  flex-wrap: wrap;
}

.downloads-actions .btn {
  min-width: min(250px, 100%);
  min-height: 60px;
  padding: 16px 40px;
  font-size: 18px;
}

.downloads-profile-btn {
  appearance: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(250px, 100%);
  min-height: 60px;
  padding: 16px 40px;
  border: 1.4px solid #fff;
  border-radius: 55px;
  background: transparent;
  color: #fff;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.downloads-profile-btn::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.downloads-profile-btn[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}

.downloads-profile-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.downloads-profile-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.downloads-preview {
  margin-top: clamp(28px, 4vw, 44px);
  width: 100%;
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  overflow: hidden;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    margin 0.35s ease;
}

.downloads-preview-inner {
  min-height: 0;
  overflow: hidden;
}

.downloads-preview.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.downloads-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
  width: 100%;
}

.downloads-nav {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  padding: 12px 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.downloads-nav img {
  display: block;
  width: clamp(12px, 1.2vw, 15px);
  height: auto;
}

.downloads-nav--prev img {
  transform: scaleX(-1);
}

.downloads-nav:hover:not(:disabled) {
  transform: translateX(0);
  opacity: 0.85;
}

.downloads-nav--prev:hover:not(:disabled) {
  transform: translateX(-2px);
}

.downloads-nav--next:hover:not(:disabled) {
  transform: translateX(2px);
}

.downloads-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.downloads-nav:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.downloads-viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
}

.downloads-viewport::-webkit-scrollbar {
  display: none;
}

.downloads-track {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 1.8vw, 22px);
  width: max-content;
  padding: 4px 0 8px;
}

.downloads-track-pad {
  flex: 0 0 auto;
  width: 0;
  height: 1px;
  pointer-events: none;
}

.downloads-card {
  flex: 0 0 auto;
  margin: 0;
  display: block;
  width: min(420px, 78vw);
  border-radius: 14px;
  overflow: hidden;
  background: #151515;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.55;
}

.downloads-card.is-focused {
  opacity: 1;
  transform: translateY(-2px);
}

.downloads-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}

.downloads-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(18px, 2.5vw, 28px);
  min-height: 1.5em;
}

.downloads-page-num {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #6b6b6b;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.25s ease;
}

.downloads-page-num.is-active {
  color: #fff;
}

.downloads-page-num:hover,
.downloads-page-num:focus-visible {
  color: rgba(255, 255, 255, 0.85);
}

.downloads-page-num:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .downloads-actions {
    gap: 14px;
  }

  .downloads-profile-btn,
  .downloads-actions .btn {
    width: 100%;
  }

  .downloads-card {
    width: min(300px, 82vw);
  }

  .downloads-pager {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drop-chevron,
  .drop-panel,
  .drop-panel-inner,
  .manarat-overlay,
  .manarat-close {
    transition: none;
  }
}

/* ---------- Quote ---------- */
.quote-section {
  padding: clamp(64px, 10vw, 140px) var(--pad-x) clamp(72px, 12vw, 160px);
  width: 100%;
  text-align: center;
}

.quote-block {
  max-width: min(900px, 100%);
  margin: 0 auto;
}

.quote-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quote-text-shell,
.quote-attribution-shell {
  display: grid;
  width: 100%;
}

.quote-text-shell > *,
.quote-attribution-shell > * {
  grid-area: 1 / 1;
}

.quote-text-ghost,
.quote-attribution-ghost {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.quote-typewriter,
.quote-attribution-text {
  align-self: start;
  justify-self: center;
}

.quote-typewriter {
  display: inline;
}

.quote-typewriter.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  margin-left: 0.04em;
  background: var(--ink);
  vertical-align: -0.05em;
  animation: hero-caret 0.85s steps(1) infinite;
}

.quote-attribution {
  margin-top: clamp(20px, 3vw, 32px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--cyan);
}

.quote-attribution-text.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  margin-left: 0.04em;
  background: var(--cyan);
  vertical-align: -0.05em;
  animation: hero-caret 0.85s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .quote-typewriter.is-typing::after,
  .quote-attribution-text.is-typing::after {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(56px, 8vw, 96px) var(--pad-x) clamp(40px, 5vw, 56px);
  width: 100%;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  max-width: min(1400px, 100%);
  margin: 0 auto;
  min-height: clamp(220px, 28vw, 320px);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(48px, 8vw, 120px);
}

.footer-brand-top {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

.footer-social-logos {
  position: relative;
  width: min(424px, 100%);
}

.footer-social-logos img {
  width: 100%;
  height: auto;
}

.footer-social-hit {
  position: absolute;
  top: 0;
  height: 100%;
}

.footer-social-hit--linkedin {
  left: 0;
  width: 58%;
}

.footer-social-hit--instagram {
  right: 0;
  width: 42%;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact a {
  font-family: var(--font-nav);
  font-size: clamp(13px, 1.4vw, 14px);
  line-height: 1.5;
  color: var(--muted-3);
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--ink);
}

.footer-copy {
  font-family: var(--font-nav);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted-2);
  margin: 0;
}

.footer-nav-col {
  justify-self: center;
}

.footer-label {
  font-family: var(--font-nav);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  font-family: var(--font-nav);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.5;
  color: var(--ink);
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--cyan);
}

.footer-thanks-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
}

.footer-thanks-btn {
  position: relative;
  display: block;
  width: min(475px, 100%);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.footer-thanks-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 8px;
}

.footer-thanks {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.1s ease;
}

.footer-thanks--wink {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.footer-thanks-btn:hover .footer-thanks--default,
.footer-thanks-btn:focus-visible .footer-thanks--default {
  opacity: 0;
}

.footer-thanks-btn:hover .footer-thanks--wink,
.footer-thanks-btn:focus-visible .footer-thanks--wink {
  opacity: 1;
}

.footer-back-top {
  width: clamp(44px, 5vw, 52px);
  height: clamp(44px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-back-top:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.footer-back-top svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual-photo {
    animation: floaty 8s ease-in-out infinite;
  }

  .btn-fill,
  .btn-outline {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  }

  .btn-fill:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
  }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Responsive ---------- */

/* Large tablets / small laptops */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 48px);
  }

  .hero-copy {
    order: -1;
    justify-self: center;
  }

  .hero-visual {
    justify-self: center;
    max-width: min(921px, 100%);
  }

  .design-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .design-copy {
    margin: 0 auto;
  }

  .design-links {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 40px);
  }

  .process-rails {
    display: none;
  }

  .process-item {
    position: static;
    width: 100%;
    max-width: none;
  }

  html[dir="rtl"] .process {
    transform: none;
    direction: rtl;
  }

  html[dir="rtl"] .process-item {
    transform: none;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-left {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .brand {
    grid-column: 2;
  }

  .nav-right .btn {
    display: none;
  }

  .site-footer {
    padding-top: clamp(48px, 8vw, 72px);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .footer-thanks-col {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-thanks-btn {
    width: min(220px, 55vw);
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  :root {
    --pad-x: clamp(16px, 4.5vw, 24px);
    --section-y: clamp(40px, 7vw, 72px);
  }

  .hero-intro {
    min-height: auto;
  }

  .hero {
    padding-top: clamp(12px, 3vw, 24px);
    padding-bottom: clamp(12px, 3vw, 24px);
  }

  .hero-copy p {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.55;
  }

  .statement p {
    font-size: clamp(18px, 4.8vw, 24px);
    line-height: 1.45;
  }

  .services {
    padding-top: clamp(40px, 8vw, 56px);
    padding-bottom: clamp(48px, 8vw, 64px);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .service-card {
    aspect-ratio: auto;
    min-height: 0;
    padding: 18px 14px 16px;
    gap: 10px;
  }

  .service-card h3 {
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.3;
    max-width: none;
  }

  .service-card--more {
    padding: 20px 14px 16px;
    min-height: 132px;
  }

  .service-more-art {
    left: auto;
    right: 6px;
    top: 6px;
    width: clamp(64px, 22vw, 96px);
  }

  .service-more-count {
    font-size: clamp(22px, 6vw, 28px);
  }

  .service-more-label {
    font-size: clamp(18px, 5vw, 24px);
  }

  .service-more-note {
    font-size: 11px;
    line-height: 1.35;
  }

  .process-item p {
    font-size: clamp(15px, 3.6vw, 18px);
    line-height: 1.45;
  }

  .process-item .num,
  .process-item .process-label {
    font-size: clamp(20px, 5vw, 28px);
  }

  .section-head h2 {
    letter-spacing: -0.02em;
  }

  .how .section-head,
  .tech .section-head {
    margin-bottom: clamp(24px, 5vw, 40px);
  }

  .section-head p br {
    display: none;
  }

  .design {
    min-height: auto;
    padding: clamp(40px, 8vw, 64px) var(--pad-x);
  }

  .design-floater {
    display: none;
  }

  .design-copy-panel::before {
    inset: -8px -12px;
  }

  .design-copy p {
    margin-bottom: clamp(28px, 7vw, 48px);
  }

  .design-copy h2 {
    font-size: clamp(32px, 9vw, 48px);
    margin-bottom: clamp(20px, 4vw, 32px);
  }

  .tech-skyline {
    padding-bottom: clamp(32px, 6vw, 48px);
  }

  .tech-skyline-frame {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 5vw, 36px);
  }

  .tech-skyline .stats {
    position: static;
    order: -1;
    top: auto;
    left: auto;
    right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 28px);
  }

  .stat {
    text-align: center;
  }

  .stat strong {
    font-size: clamp(24px, 7vw, 36px);
  }

  .stat span {
    font-size: clamp(16px, 4.5vw, 22px);
  }

  .drop-toggle {
    gap: 8px 16px;
  }

  .drop-title {
    font-size: clamp(28px, 8vw, 44px);
    line-height: 1.2;
  }

  .quote-section {
    padding: clamp(48px, 10vw, 80px) var(--pad-x);
  }

  .quote-text {
    font-size: clamp(18px, 5vw, 28px);
  }

  .site-footer {
    padding-bottom: max(clamp(40px, 5vw, 56px), env(safe-area-inset-bottom));
  }
}

/* Phones */
@media (max-width: 600px) {
  .nav-right > .lang-toggle {
    display: none;
  }

  .lang-toggle--mobile {
    display: block;
  }

  .header-inner {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand-logo {
    width: clamp(120px, 34vw, 160px);
  }

  .theme-toggle-btn {
    width: 26px;
    height: 26px;
  }

  .theme-toggle-btn svg {
    width: 14px;
    height: 14px;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process-item p {
    font-size: 16px;
    line-height: 1.4;
  }

  .cases-actions {
    flex-direction: column;
    width: 100%;
  }

  .case-toggle,
  .cases-actions .btn {
    width: 100%;
  }

  .manarat-popup {
    border-radius: 16px;
  }

  .manarat-close {
    width: 44px;
    height: 44px;
    top: max(12px, env(safe-area-inset-top));
    margin: 12px 12px 0 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav-col {
    justify-self: start;
  }

  .footer-thanks-col {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-thanks-btn {
    width: min(200px, 60vw);
  }

  .downloads-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .downloads-nav {
    display: none;
  }

  .downloads-card {
    width: min(100%, 320px);
    scroll-snap-align: center;
  }

  .downloads-viewport {
    scroll-padding-inline: max(0px, calc((100% - min(100%, 320px)) / 2));
  }
}

@media (max-width: 400px) {
  .hero-copy h1 br {
    display: none;
  }

  .services-grid {
    gap: 10px;
  }

  .service-card {
    padding: 14px 10px 12px;
  }

  .service-card h3 {
    font-size: 12px;
  }
}

/* ---------- Light theme ---------- */
html[data-theme="light"] {
  --bg: #fbfdfc;
  --ink: #111111;
  --muted: rgba(0, 0, 0, 0.58);
  --muted-2: #5a5a5a;
  --muted-3: #6b7280;
  --line: rgba(0, 0, 0, 0.12);
  --panel: #ffffff;
  color-scheme: light;
}

html[data-theme="light"] .site-header {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

html[data-theme="light"] .mobile-nav {
  background: color-mix(in srgb, var(--bg) 98%, transparent);
  border-top-color: var(--line);
}

html[data-theme="light"] .mobile-nav a {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .nav-toggle {
  border-color: var(--line);
}

html[data-theme="light"] .nav-toggle span {
  background: #111;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .theme-toggle-btn.is-active {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .btn-fill {
  background: #111;
  color: #fff;
}

html[data-theme="light"] .nav-right .btn-fill,
html[data-theme="light"] .mobile-nav .btn-fill {
  background: #524e4e;
  color: #fff;
}

html[data-theme="light"] .btn-outline,
html[data-theme="light"] .case-toggle {
  border-color: #111;
  color: #111;
}

html[data-theme="light"] .case-toggle:hover {
  background: rgba(17, 17, 17, 0.06);
}

html[data-theme="light"] .services {
  background: var(--bg);
}

html[data-theme="light"] .services::before {
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  box-shadow: none;
}

html[data-theme="light"] .statement::after {
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

html[data-theme="light"] .process-item .process-label,
html[data-theme="light"] .stat span,
html[data-theme="light"] .drop-toggle,
html[data-theme="light"] .drop-title,
html[data-theme="light"] .leadership-card h3,
html[data-theme="light"] .downloads .section-head h2,
html[data-theme="light"] .downloads-nav,
html[data-theme="light"] .downloads-page-num.is-active {
  color: var(--ink);
}

html[data-theme="light"] .drop-chevron img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(99%) contrast(92%);
}

html[data-theme="light"] .leadership-bio {
  color: rgba(0, 0, 0, 0.78);
}

html[data-theme="light"] .vision-item p {
  color: #000;
}

html[data-theme="light"] .values-item h3 {
  color: #000;
}

html[data-theme="light"] .values-item p:not(.values-num) {
  color: #9a9a9a;
}

html[data-theme="light"] .leadership-sig {
  filter: brightness(0);
}

html[data-theme="light"] .downloads-desc,
html[data-theme="light"] .downloads-page-num {
  color: rgba(0, 0, 0, 0.62);
}

html[data-theme="light"] .downloads-profile-btn {
  color: #3f3e3e;
  border-color: #3f3e3e;
}

html[data-theme="light"] .downloads-profile-btn:hover {
  background: rgba(63, 62, 62, 0.06);
}

html[data-theme="light"] .project-card-meta {
  color: rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] .tech-pill {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .downloads-card {
  background: #ececec;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .btn-ghost {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--ink);
}

html[data-theme="light"] .footer-back-top {
  border-color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .footer-social-logos img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(99%) contrast(92%);
}

html[data-theme="light"] .footer-back-top svg {
  fill: var(--ink);
}

html[data-theme="light"] .footer-back-top:hover {
  border-color: rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.04);
}

/* ---------- RTL / Arabic ---------- */
html[dir="rtl"] {
  --font-display: var(--font-arabic);
  --font-nav: var(--font-arabic);
}

html[dir="rtl"] body {
  font-family: var(--font-arabic), serif;
}

html[dir="rtl"] .hero {
  direction: ltr;
}

html[dir="rtl"] .hero-copy {
  direction: rtl;
  gap: clamp(10px, 1.4vw, 14px);
}

html[dir="rtl"] .hero-copy h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.12;
  max-width: 720px;
}

html[dir="rtl"] .hero-copy p {
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.45;
  margin-top: 0;
}

html[dir="rtl"] .statement p {
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.4;
  text-transform: none;
}

html[dir="rtl"] .how .section-head p {
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.55;
}

html[dir="rtl"] .services-label {
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: clamp(16px, 2vw, 24px);
}

html[dir="rtl"] .services-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

html[dir="rtl"] .hero-typewriter::after {
  margin-left: 0;
  margin-inline-start: 0.06em;
}

html[dir="rtl"] .site-header {
  direction: ltr;
}

html[dir="rtl"] .site-header .nav-left a,
html[dir="rtl"] .site-header .nav-right .btn-fill,
html[dir="rtl"] .site-header .mobile-nav a,
html[dir="rtl"] .site-header .mobile-nav .btn-fill,
html[dir="rtl"] .site-header .lang-toggle {
  font-family: "Poppins", sans-serif;
}

html[dir="rtl"] .services-grid .service-card:nth-child(1) {
  order: 4;
}

html[dir="rtl"] .services-grid .service-card:nth-child(2) {
  order: 3;
}

html[dir="rtl"] .services-grid .service-card:nth-child(3) {
  order: 2;
}

html[dir="rtl"] .services-grid .service-card:nth-child(4) {
  order: 1;
}

html[dir="rtl"] .services-grid .service-card:nth-child(5) {
  order: 5;
}

html[dir="rtl"] .services-grid .service-card:nth-child(6) {
  order: 6;
}

html[dir="rtl"] .services-grid .service-card:nth-child(7) {
  order: 7;
}

html[dir="rtl"] .services-grid .service-card:nth-child(8) {
  order: 8;
}

html[dir="rtl"] .service-card {
  direction: rtl;
}

html[dir="rtl"] .service-card h3 {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 28px;
  letter-spacing: -0.02em;
  text-align: right;
  max-width: 215px;
  width: 100%;
}

html[dir="rtl"] .service-card--more {
  align-items: stretch;
  padding-top: clamp(36px, 6vw, 68px);
  padding-right: clamp(14px, 2.5vw, 28px);
}

html[dir="rtl"] .service-card--more .service-more-count {
  font-family: var(--font-arabic), "Manrope", sans-serif;
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1;
  width: 100%;
  text-align: right;
  direction: ltr;
  transform: translate(6px, -8px);
}

html[dir="rtl"] .service-card--more .service-more-label,
html[dir="rtl"] .service-card--more .service-more-note {
  font-family: "Poppins", sans-serif;
  width: 100%;
  text-align: right;
  direction: ltr;
  transform: translate(6px, -8px);
}

html[dir="rtl"] .service-card--more .service-more-note {
  max-width: none;
}

html[dir="rtl"] .service-card__title--stacked span:first-child {
  white-space: normal;
}

html[dir="rtl"] .process {
  transform: scaleX(-1);
}

html[dir="rtl"] .process-item {
  transform: scaleX(-1);
  direction: rtl;
  align-items: stretch;
  text-align: right;
}

html[dir="rtl"] .process-item .num {
  font-family: "Manrope", sans-serif;
  direction: ltr;
  align-self: stretch;
  text-align: right;
  margin-bottom: clamp(4px, 0.6vw, 8px);
}

html[dir="rtl"] .process-item .process-label,
html[dir="rtl"] .process-item p {
  text-transform: none;
  width: 100%;
  text-align: right;
}

html[dir="rtl"] .design-links {
  direction: rtl;
}

html[dir="rtl"] .cases-desc {
  font-size: 24px;
  line-height: 1.55;
}

html[dir="rtl"] .cases-actions {
  direction: ltr;
  justify-content: center;
  width: 100%;
}

html[dir="rtl"] .downloads .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: none;
  width: 100%;
}

html[dir="rtl"] .downloads-desc {
  max-width: 62ch;
  text-align: center;
  direction: rtl;
  font-size: 24px;
  line-height: 1.55;
}

html[dir="rtl"] .downloads-actions {
  direction: ltr;
  justify-content: center;
  width: 100%;
}

html[dir="rtl"] .downloads-preview,
html[dir="rtl"] .downloads-stage,
html[dir="rtl"] .downloads-viewport,
html[dir="rtl"] .downloads-track,
html[dir="rtl"] .downloads-pager {
  direction: ltr;
}

html[dir="rtl"] .tech-marquees,
html[dir="rtl"] .marquee,
html[dir="rtl"] .marquee-track,
html[dir="rtl"] .marquee-group {
  direction: ltr;
}

html[dir="rtl"] .stat {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .values-num {
  font-family: "Manrope", sans-serif;
  direction: rtl;
  text-align: right;
  align-self: stretch;
}

html[dir="rtl"] .stat strong {
  font-family: var(--font-arabic);
  direction: rtl;
  text-transform: none;
}

html[dir="rtl"] .leadership-grid {
  direction: ltr;
}

html[dir="rtl"] .leadership-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .leadership-card h3 {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: 0;
}

html[dir="rtl"] .leadership-role {
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.45;
}

html[dir="rtl"] .leadership-bio {
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.7;
  letter-spacing: 0;
  max-width: none;
}

html[dir="rtl"] .leadership-sig {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

html[dir="rtl"] .vision-item h3 {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: 0;
}

html[dir="rtl"] .vision-title-single {
  white-space: normal;
  width: auto;
  transform: none !important;
}

html[dir="rtl"] .vision-item p {
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.7;
  letter-spacing: 0;
}

html[dir="rtl"] .values-grid {
  direction: rtl;
}

html[dir="rtl"] .values-item {
  direction: rtl;
  text-align: right;
  align-items: stretch;
}

html[dir="rtl"] .values-item .values-icon {
  align-self: center;
}

html[dir="rtl"] .values-item h3 {
  font-family: var(--font-arabic);
  color: #fff;
  direction: rtl;
  text-align: right;
  align-self: stretch;
}

html[data-theme="light"][dir="rtl"] .values-item h3 {
  color: #000;
}

html[dir="rtl"] .values-item p:not(.values-num) {
  font-family: var(--font-arabic);
  font-size: 22px;
  line-height: 1.7;
  letter-spacing: 0;
}

html[dir="rtl"] .site-footer {
  direction: ltr;
}

html[dir="rtl"] .site-footer .footer-copy,
html[dir="rtl"] .site-footer .footer-label,
html[dir="rtl"] .site-footer .footer-nav-list a,
html[dir="rtl"] .site-footer .footer-contact a {
  font-family: "Poppins", sans-serif;
}

html[dir="rtl"] .service-more-art {
  left: auto;
  right: 101px;
}

html[dir="rtl"] .lang-toggle--mobile {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"][dir="rtl"] .lang-toggle--mobile {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  html[dir="rtl"] .hero-copy h1 {
    font-size: clamp(32px, 9vw, 56px);
    line-height: 1.15;
  }

  html[dir="rtl"] .hero-copy p {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.5;
  }

  html[dir="rtl"] .statement p {
    font-size: clamp(18px, 4.8vw, 24px);
  }

  html[dir="rtl"] .services-label {
    font-size: clamp(22px, 6vw, 32px);
  }

  html[dir="rtl"] .services-title {
    font-size: clamp(18px, 4.8vw, 24px);
  }

  html[dir="rtl"] .service-card h3 {
    font-size: clamp(13px, 3.4vw, 16px);
    line-height: 1.35;
  }

  html[dir="rtl"] .how .section-head p {
    font-size: clamp(16px, 4vw, 20px);
  }

  html[dir="rtl"] .cases-desc {
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1.45;
    white-space: normal;
  }

  html[dir="rtl"] .downloads-desc {
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1.45;
  }

  html[dir="rtl"] .leadership-role,
  html[dir="rtl"] .leadership-bio,
  html[dir="rtl"] .vision-item h3,
  html[dir="rtl"] .vision-item p,
  html[dir="rtl"] .values-item p:not(.values-num) {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.55;
  }

  html[dir="rtl"] .leadership-card h3 {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  html[dir="rtl"] .service-more-art {
    right: 6px;
    left: auto;
  }
}
