/* Nile Fifty Three Ltd - premium enterprise visual system */

:root {
  --forest-deep: #0e2419;
  --forest: #163629;
  --forest-mid: #1f4b37;
  --emerald: #2a684b;
  --green-bright: #5b9f70;
  --green-glow: #77ca86;
  --gold: #c8a14b;
  --gold-bright: #e4c979;
  --gold-dim: rgba(200, 161, 75, 0.34);
  --cream: #f6f3ea;
  --cream-dark: #ece5d6;
  --text: #13271d;
  --text-soft: rgba(19, 39, 29, 0.78);
  --white: #faf9f5;
  --line-soft: rgba(20, 50, 35, 0.11);
  --shadow-soft: 0 18px 52px rgba(15, 35, 26, 0.12);
  --shadow-green: 0 14px 45px rgba(14, 36, 25, 0.35);
  --radius-xl: 1.35rem;
  --radius-lg: 1.1rem;
  --radius-md: 0.85rem;
  --radius-sm: 0.6rem;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar-body: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-ar-heading: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 4.4rem;
  --section-pad: clamp(3.5rem, 8vw, 6.2rem);
  --circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath d='M0 120h56v40M104 120h56M120 104V56M104 0v40M0 40h40v76M160 76h-36V40' fill='none' stroke='%23c8a14b' stroke-opacity='0.22' stroke-width='1.2'/%3E%3Ccircle cx='56' cy='120' r='3' fill='%23c8a14b' fill-opacity='0.35'/%3E%3Ccircle cx='104' cy='120' r='3' fill='%23c8a14b' fill-opacity='0.35'/%3E%3Ccircle cx='120' cy='56' r='3' fill='%23c8a14b' fill-opacity='0.28'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%23c8a14b' fill-opacity='0.28'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* clip avoids horizontal bleed without creating the scroll-containment that breaks position:sticky */
  overflow-x: clip;
  max-width: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  overflow-x: clip;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 22%, var(--cream) 100%);
  min-height: 100vh;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] body {
  max-width: 100%;
  font-family: var(--font-ar-body);
  line-height: 1.82;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--forest-mid);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.lang-btn:focus-visible,
.skip-link:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 100001;
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--forest-deep);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

.container {
  width: min(100% - 1.75rem, 1140px);
  margin-inline: auto;
}

.container.narrow {
  max-width: 760px;
}

/* Ambient circuit layer */
.circuit-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--circuit);
  background-size: 280px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 65% at 50% -10%, black 55%, transparent 75%);
}

/* Top anchor: in-flow target for #top / native hash nav (not on sticky header) */
.page-top-anchor {
  display: block;
  width: 1px;
  height: 1px;
  margin: -1px 0 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  scroll-margin-top: 0;
}

/* Header — warm field matched to header_en/header_ar corner tones (~rgb(232,224,206)); ornament on bar (::before/::after), not inside the raster */
.site-header {
  position: sticky;
  top: 0;
  max-width: 100%;
  min-width: 0;
  z-index: 9999;
  min-height: var(--header-h);
  isolation: isolate;
  background: linear-gradient(
    165deg,
    rgb(240, 234, 218) 0%,
    rgb(232, 224, 206) 44%,
    rgb(226, 217, 196) 100%
  );
  border-bottom: 1px solid rgba(200, 161, 75, 0.22);
  box-shadow: 0 1px 0 rgba(22, 54, 41, 0.035);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 95% 170% at 0% -45%, rgba(200, 161, 75, 0.2), transparent 58%),
    radial-gradient(ellipse 95% 170% at 100% -45%, rgba(200, 161, 75, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 42%);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.78;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 161, 75, 0.38) 16%,
    rgba(228, 201, 121, 0.14) 50%,
    rgba(200, 161, 75, 0.38) 84%,
    transparent 100%
  );
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.62rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  min-width: 0;
  max-width: min(62vw, 420px);
  text-decoration: none;
  background: transparent;
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover {
  opacity: 0.98;
}

.brand:active {
  transform: scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
  .brand {
    transition: none;
  }

  .brand:active {
    transform: none;
  }
}

.brand:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.brand-picture {
  display: block;
  line-height: 0;
  max-width: 100%;
}

.brand img {
  display: block;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 1.35rem;
  margin-inline: auto;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#main,
main section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 161, 75, 0.4);
  padding: 0.16rem;
  background: rgba(255, 255, 255, 0.58);
}

.lang-btn {
  min-width: 2.15rem;
  border: 0;
  border-radius: 999px;
  padding: 0.34rem 0.48rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
}

.lang-btn.is-active {
  background: linear-gradient(145deg, var(--forest), var(--emerald));
  color: var(--cream);
  box-shadow: 0 6px 14px rgba(22, 54, 41, 0.25);
}

.site-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.62rem 0.82rem;
  border-radius: var(--radius-md);
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.015em;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

.site-nav .nav-link:not(.nav-cta):hover {
  background: rgba(42, 107, 79, 0.09);
  color: var(--emerald);
}

.site-nav .nav-link:not(.nav-cta)::after {
  content: "";
  position: absolute;
  inset-inline: 0.62rem;
  bottom: 0.42rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 161, 75, 0.85), transparent);
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav .nav-link:not(.nav-cta) {
  position: relative;
}

.site-nav .nav-link:not(.nav-cta):hover::after {
  opacity: 0.45;
  transform: scaleX(1);
}

.site-nav .nav-link:not(.nav-cta).is-active::after {
  opacity: 1;
  transform: scaleX(1);
  box-shadow: 0 0 14px rgba(228, 201, 121, 0.22);
}

.site-nav .nav-link:not(.nav-cta).is-active {
  background: rgba(42, 107, 79, 0.07);
  color: var(--forest-mid);
}

.nav-cta {
  justify-content: center;
  flex-shrink: 0;
  min-height: 2.65rem;
  padding-inline: 1.05rem !important;
  background: linear-gradient(135deg, #1a4433 0%, #255a42 52%, #2f7353 100%);
  color: var(--cream) !important;
  border: 1px solid rgba(201, 162, 77, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(22, 53, 40, 0.28);
}

.nav-cta:hover {
  filter: brightness(1.07);
}

.nav-cta.is-active {
  border-color: rgba(228, 201, 121, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(228, 201, 121, 0.35),
    0 12px 30px rgba(22, 53, 40, 0.32);
}

.nav-aside .nav-cta:hover::after {
  display: none;
}

@media (max-width: 859px) {
  /* Fixed header on narrow viewports — avoids mobile sticky/containment bugs; reserve space in flow */
  html {
    scroll-padding-top: calc(var(--header-h) + 12px);
  }

  body {
    padding-top: var(--header-h);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
  }

  #main,
  main section[id] {
    scroll-margin-top: calc(var(--header-h) + 12px);
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    position: absolute;
    top: calc(100% + 0.35rem);
    inset-inline: 0.875rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.32s ease,
      visibility 0.32s ease;
    border-radius: var(--radius-xl);
    background: linear-gradient(
      165deg,
      rgb(240, 234, 218) 0%,
      rgb(232, 224, 206) 44%,
      rgb(226, 217, 196) 100%
    );
    border: 1px solid rgba(201, 162, 77, 0.25);
    box-shadow: var(--shadow-soft);
    padding-inline: 0.5rem;
  }

  .site-header.nav-open .site-nav {
    max-height: min(620px, 85vh);
    opacity: 1;
    visibility: visible;
    padding-block: 0.65rem 1rem;
  }

  .header-inner {
    position: relative;
  }

  .nav-aside {
    padding-block: 0.35rem 0.15rem;
    margin-inline: 0.15rem;
    padding-inline: 0.25rem;
    border-top: 1px solid rgba(200, 161, 75, 0.22);
  }
}

@media (min-width: 860px) {
  body {
    padding-top: 0;
  }

  .site-header {
    position: sticky;
    left: auto;
    right: auto;
    width: auto;
    z-index: 9999;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    position: static;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0;
    min-width: 0;
  }

  .nav-list--links {
    flex-direction: row;
    align-items: center;
    gap: 0.05rem;
    flex-wrap: nowrap;
    min-width: 0;
    margin-inline-end: 0.15rem;
  }

  .nav-aside {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    padding-inline-start: 1rem;
    margin-inline-start: 0.25rem;
    border-inline-start: 1px solid rgba(200, 161, 75, 0.28);
  }

  .site-nav .nav-link:not(.nav-cta) {
    padding-inline: 0.55rem;
  }

  .nav-list--links {
    flex: 0 1 auto;
  }
}

/* Hero */
.hero {
  max-width: 100%;
  min-width: 0;
  /* Sharp responsive rasters (npm run build:hero): mobile-first → 900 / 1280 / 1920 / 2560 */
  --hero-raster: image-set(
    url("page_background/background1-900.avif") type("image/avif"),
    url("page_background/background1-900.webp") type("image/webp"),
    url("page_background/background1-900.jpg") type("image/jpeg")
  );

  position: relative;
  z-index: 1;
  padding-block: clamp(2.9rem, 6vw, 5.8rem);
  /* Light scrims only — no blur on layers (see ::before: filter removed) */
  background-image:
    linear-gradient(to top, rgba(7, 22, 17, 0.3) 0%, rgba(7, 22, 17, 0.05) 42%, transparent 66%),
    linear-gradient(
      162deg,
      rgba(8, 28, 21, 0.16) 0%,
      rgba(12, 42, 31, 0.09) 48%,
      rgba(18, 54, 40, 0.06) 100%
    ),
    radial-gradient(circle at 50% 46%, transparent 50%, rgba(8, 26, 19, 0.06) 100%),
    radial-gradient(1180px 540px at 14% -6%, rgba(118, 212, 142, 0.09), transparent 58%),
    radial-gradient(920px 480px at 90% 10%, rgba(205, 168, 82, 0.07), transparent 54%),
    var(--hero-raster);
  background-repeat: no-repeat;
  background-position: center, center, center, 12% -8%, 92% 8%, center;
  background-size: auto, auto, auto, auto, auto, cover;
  background-color: #0a1a14;
  background-attachment: scroll;
  image-rendering: auto;
  color: var(--cream);
  overflow: hidden;
}

@media (min-width: 901px) {
  .hero {
    --hero-raster: image-set(
      url("page_background/background1-1280.avif") type("image/avif"),
      url("page_background/background1-1280.webp") type("image/webp"),
      url("page_background/background1-1280.jpg") type("image/jpeg")
    );
  }
}

@media (min-width: 1281px) {
  .hero {
    --hero-raster: image-set(
      url("page_background/background1-1920.avif") type("image/avif"),
      url("page_background/background1-1920.webp") type("image/webp"),
      url("page_background/background1-1920.jpg") type("image/jpeg")
    );
  }
}

@media (min-width: 1921px) {
  .hero {
    --hero-raster: image-set(
      url("page_background/background1-2560.avif") type("image/avif"),
      url("page_background/background1-2560.webp") type("image/webp"),
      url("page_background/background1-2560.jpg") type("image/jpeg")
    );
  }
}

/* Theme motion only — no blur (blur was softening the whole hero photo) */
.hero::before {
  content: "";
  position: absolute;
  inset: -18% -15% auto;
  height: 72%;
  background: linear-gradient(
    112deg,
    rgba(122, 202, 134, 0.1) 10%,
    rgba(122, 202, 134, 0.02) 38%,
    rgba(228, 201, 121, 0.11) 73%,
    rgba(228, 201, 121, 0.02) 100%
  );
  filter: none;
  animation: heroSweep 14s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.85;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% -30%;
  height: min(62vh, 480px);
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(231, 200, 118, 0.12),
    transparent 62%
  );
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: clamp(280px, 45vw, 520px);
  height: clamp(280px, 45vw, 520px);
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.38;
  pointer-events: none;
}

.hero-glow--tl {
  top: -12%;
  left: -8%;
  background: rgba(122, 207, 138, 0.38);
}

.hero-glow--br {
  bottom: -18%;
  right: -10%;
  background: rgba(201, 162, 77, 0.3);
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: center;
}

.hero-brand-lockup {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.85rem, 2.6vw, 1.35rem);
  margin-bottom: clamp(0.8rem, 2vw, 1.25rem);
  max-width: min(39rem, 100%);
}

.hero-brand-mark {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-text {
  position: relative;
  z-index: 1;
  flex: 1 1 16rem;
  min-width: min(100%, 11.5rem);
}

.hero-brand-text .hero-eyebrow {
  margin-top: 0;
}

.hero-logo-frame {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding: clamp(0.28rem, 1.6vw, 0.42rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(
    160deg,
    rgba(14, 40, 29, 0.44) 0%,
    rgba(11, 32, 24, 0.58) 42%,
    rgba(8, 22, 17, 0.68) 100%
  );
  border: 1px solid rgba(122, 207, 138, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 1px 2px rgba(4, 12, 9, 0.35),
    0 6px 22px rgba(4, 12, 9, 0.22),
    0 0 20px rgba(122, 207, 138, 0.05);
  backdrop-filter: blur(10px) saturate(106%);
  -webkit-backdrop-filter: blur(10px) saturate(106%);
}

.hero-logo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  /* Dark-green tint + soft emerald halo + radial falloff into hero greens */
  background:
    radial-gradient(
      ellipse 82% 86% at 50% 48%,
      rgba(122, 207, 138, 0.09) 0%,
      transparent 56%
    ),
    radial-gradient(
      ellipse 78% 80% at 50% 55%,
      transparent 38%,
      rgba(8, 20, 15, 0.48) 100%
    ),
    radial-gradient(
      ellipse 130% 128% at 50% -8%,
      rgba(42, 104, 75, 0.18),
      transparent 54%
    );
  opacity: 1;
}

/* Edge vignette over the raster (above img): pulls bright JPG surround toward hero greens — centre stays open for crisp mark */
.hero-logo-frame::after {
  content: "";
  position: absolute;
  inset: clamp(0.45rem, 2vw, 0.75rem);
  border-radius: calc(var(--radius-lg) - 0.38rem);
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    ellipse 82% 84% at 50% 50%,
    rgba(246, 243, 234, 0) 0%,
    rgba(246, 243, 234, 0) 54%,
    rgba(14, 40, 29, 0.65) 100%
  );
  mix-blend-mode: multiply;
  opacity: 0.58;
}

.hero-brand-lockup .hero-logo-frame img {
  position: relative;
  z-index: 1;
  margin-inline: 0;
  display: block;
  max-height: clamp(76px, 11.5vw, 118px);
  width: auto;
  max-width: min(40vw, 152px);
  height: auto;
  object-fit: contain;
  opacity: 1;
  border-radius: calc(var(--radius-lg) - 0.3rem);
  filter: drop-shadow(0 2px 8px rgba(4, 12, 9, 0.4))
    drop-shadow(0 0 16px rgba(122, 207, 138, 0.06))
    drop-shadow(0 0 18px rgba(8, 22, 17, 0.2));
}

@media (prefers-reduced-transparency: reduce) {
  .hero-logo-frame {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(
      160deg,
      rgba(14, 40, 29, 0.78) 0%,
      rgba(8, 22, 17, 0.9) 100%
    );
  }

  .hero-logo-frame::after {
    opacity: 0.4;
    mix-blend-mode: darken;
  }
}

@media (prefers-contrast: more) {
  .hero-logo-frame {
    border-color: rgba(122, 207, 138, 0.22);
  }

  .hero-brand-lockup .hero-logo-frame img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  }

  .hero-logo-frame::after {
    opacity: 0.42;
    background: radial-gradient(
      ellipse 82% 84% at 50% 50%,
      transparent 52%,
      rgba(14, 40, 29, 0.75) 100%
    );
  }
}

@supports not (mix-blend-mode: multiply) {
  .hero-logo-frame::after {
    mix-blend-mode: normal;
    opacity: 0.22;
    background: rgba(8, 20, 15, 0.5);
  }
}

.circuit-frame {
  position: relative;
  border-radius: var(--radius-xl);
  background: rgba(246, 244, 237, 0.08);
  border: 1px solid rgba(201, 162, 77, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.25),
    0 0 80px rgba(201, 162, 77, 0.08);
  overflow: hidden;
}

.circuit-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--circuit);
  background-size: 200px;
  opacity: 0.12;
  pointer-events: none;
}

.hero-accent-lines {
  position: absolute;
  z-index: 0;
  top: -18%;
  bottom: auto;
  inset-inline-end: -4%;
  inset-inline-start: auto;
  width: min(200px, 46%);
  height: min(200px, 46%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Cpath d='M152 28h44v116M172 164H28v-36M92 164V76M28 44h132' stroke='%23e4c876' stroke-opacity='0.5' stroke-width='1.2'/%3E%3Ccircle cx='172' cy='164' r='4' fill='%23e4c876' fill-opacity='0.6'/%3E%3Ccircle cx='28' cy='44' r='4' fill='%23e4c876' fill-opacity='0.45'/%3E%3C/svg%3E")
    no-repeat center / contain;
  opacity: 0.42;
  pointer-events: none;
}

.hero-copy {
  max-width: min(39rem, 100%);
  min-width: 0;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 246, 239, 0.78);
  margin: 0 0 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(6, 14, 11, 0.4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 5.1vw, 3.35rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.95rem;
  text-shadow:
    0 2px 28px rgba(6, 16, 12, 0.55),
    0 12px 48px rgba(0, 0, 0, 0.18);
}

.hero-sub {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 2.1vw, 1.1rem);
  color: rgba(246, 244, 237, 0.9);
  line-height: 1.78;
  text-shadow: 0 1px 18px rgba(6, 14, 11, 0.45);
}

.hero-trust {
  margin: 0 0 1.05rem;
  font-size: 0.96rem;
  line-height: 1.74;
  color: rgba(246, 244, 237, 0.84);
  text-shadow: 0 1px 14px rgba(6, 14, 11, 0.35);
}

.hero-points {
  margin: 0 0 1.55rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.915rem;
  line-height: 1.7;
  color: rgba(246, 244, 237, 0.86);
  text-shadow: 0 1px 12px rgba(6, 14, 11, 0.32);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright) 0%, var(--gold) 70%);
  box-shadow: 0 0 0 3px rgba(200, 161, 75, 0.17);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.82rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

@media (hover: none) {
  .btn:active {
    transform: translateY(1px) scale(0.995);
    filter: brightness(1.03);
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 52%, var(--gold) 100%);
  color: var(--forest-deep);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 14px 36px rgba(201, 162, 77, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  border: 1px solid rgba(201, 162, 77, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--cream);
  border-color: rgba(228, 201, 121, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

@media (max-width: 700px) {
  .hero-brand-lockup {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    text-align: center;
    gap: clamp(0.65rem, 4vw, 0.95rem);
  }

  .hero-brand-mark {
    order: -1;
  }

  .hero-brand-text {
    flex-basis: 100%;
    min-width: 0;
    text-align: center;
    max-width: 36rem;
    margin-inline: auto;
  }

  .hero-brand-lockup .hero-logo-frame img {
    max-height: clamp(124px, 32vw, 162px);
    max-width: min(78vw, 280px);
    margin-inline: auto;
  }

  html[dir="rtl"] .hero-brand-lockup {
    flex-direction: column;
  }

  html[dir="rtl"] .hero-brand-mark {
    order: -1;
  }

  html[dir="rtl"] .hero-brand-text {
    text-align: center;
  }
}

@media (min-width: 701px) {
  html[dir="rtl"] .hero-brand-lockup {
    flex-direction: row-reverse;
  }
}

/* Sections */
main {
  position: relative;
  z-index: 1;
  max-width: 100%;
  min-width: 0;
}

.section {
  padding-block: var(--section-pad);
}

.section--cream {
  background: var(--cream);
  border-block: 1px solid rgba(22, 53, 40, 0.06);
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
  line-height: 1.16;
  font-weight: 700;
  color: var(--forest-deep);
  margin: 0;
  letter-spacing: -0.02em;
}

html[lang="ar"] .hero h1,
html[lang="ar"] .section h2,
html[lang="ar"] .founder-initials,
html[lang="ar"] .why-index {
  font-family: var(--font-ar-heading);
  letter-spacing: 0;
  line-height: 1.35;
  font-weight: 700;
}

html[lang="ar"] .hero-eyebrow,
html[lang="ar"] .section-kicker,
html[lang="ar"] .site-nav .nav-link,
html[lang="ar"] .contact-label {
  font-family: var(--font-ar-heading);
  font-weight: 600;
}

html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] .section-sub,
html[lang="ar"] .hero-sub,
html[lang="ar"] .hero-trust,
html[lang="ar"] .service-card p,
html[lang="ar"] .experience-card p,
html[lang="ar"] .why-item p,
html[lang="ar"] .form-row label,
html[lang="ar"] .form-row input,
html[lang="ar"] .form-row textarea {
  font-family: var(--font-ar-body);
  line-height: 1.9;
  font-weight: 500;
}

html[lang="ar"] .hero h1 {
  line-height: 1.25;
  margin-bottom: 1.15rem;
}

html[lang="ar"] .section h2 {
  line-height: 1.3;
}

html[lang="ar"] .hero-sub {
  font-size: clamp(1.03rem, 2.35vw, 1.18rem);
}

html[lang="ar"] .site-nav .nav-link:not(.nav-cta) {
  font-size: 0.97rem;
}

.section-sub {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}

.lead {
  font-size: clamp(1.03rem, 2vw, 1.13rem);
  color: var(--text);
  line-height: 1.8;
}

.about p {
  color: var(--text-soft);
  line-height: 1.82;
}

/* Services */
.services {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-dark) 100%);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--circuit);
  background-size: 240px;
  opacity: 0.2;
  pointer-events: none;
}

.services .container {
  position: relative;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 980px) {
  .service-grid {
    gap: 1.25rem;
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem 1.2rem 1.3rem;
  border-radius: var(--radius-lg);
  isolation: isolate;
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(19, 48, 35, 0.58);
  border: 1px solid rgba(200, 161, 75, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 34px rgba(15, 36, 26, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.service-card::before,
.service-card::after,
.experience-card::before,
.experience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.service-card::before,
.experience-card::before {
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.service-card::after,
.experience-card::after {
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(10, 32, 23, 0.86) 0%, rgba(18, 53, 39, 0.8) 46%, rgba(31, 78, 56, 0.68) 100%),
    radial-gradient(circle at 88% 8%, rgba(228, 201, 121, 0.2), transparent 42%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.service-card > *,
.experience-card > * {
  position: relative;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 161, 75, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 18px 42px rgba(14, 36, 25, 0.24);
}

.service-card:hover::before,
.experience-card:hover::before {
  transform: scale(1.06);
}

.service-card:hover::after,
.experience-card:hover::after {
  opacity: 0.94;
  filter: brightness(1.08);
}

.service-card h3 {
  font-size: 1.03rem;
  line-height: 1.38;
  letter-spacing: -0.01em;
  margin: 0 0 0.42rem;
  color: rgba(250, 249, 245, 0.98);
  text-shadow: 0 8px 20px rgba(7, 16, 12, 0.45);
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 0.91rem;
  color: rgba(246, 243, 234, 0.9);
  line-height: 1.68;
}

.circuit-node {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.72rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(228, 201, 121, 0.72);
  background: radial-gradient(circle at 30% 30%, rgba(228, 200, 118, 0.5), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(90, 157, 111, 0.45), transparent 50%),
    var(--forest);
  box-shadow: 0 0 24px rgba(228, 201, 121, 0.25);
}

.service-card--erp::before {
  background-image: url("images/Custom_ERP.jpg");
}

.service-card--salesforce::before {
  background-image: url("images/Salesforce_Implementation.jpg");
}

.service-card--devops::before {
  background-image: url("images/DevOps_&_Cloud_Consulting.jpg");
}

.service-card--outsourcing::before {
  background-image: url("images/Software_Resource_Outsourcing.jpg");
}

.service-card--web::before {
  background-image: url("images/Website_&_Portal_Development.jpg");
}

.service-card--ai::before {
  background-image: url("images/AI_Agents.jpg");
}

/* Founder */
.founder-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.5rem);
  align-items: start;
}

.founder-frame {
  padding: 1.35rem;
  background: linear-gradient(160deg, rgba(22, 53, 40, 0.04), rgba(201, 162, 77, 0.06));
  border-color: rgba(201, 162, 77, 0.3);
}

.founder-avatar {
  aspect-ratio: 1;
  max-width: 280px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--forest-deep), var(--emerald) 55%, var(--green-bright));
  display: grid;
  place-items: center;
  border: 2px solid rgba(201, 162, 77, 0.55);
  box-shadow: var(--shadow-green);
}

.founder-initials {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  color: var(--cream);
  letter-spacing: 0.04em;
}

.founder-badge {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--emerald);
}

.founder-role {
  font-weight: 600;
  color: var(--forest);
  margin: -0.5rem 0 1rem;
  font-size: 1.05rem;
}

.founder-copy p {
  color: var(--text-soft);
}

.founder-stats {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.founder-stat {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line-soft);
}

.founder-stat h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--forest);
}

.founder-stat p {
  margin: 0;
  font-size: 0.9rem;
}

.founder-timeline {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.founder-timeline li {
  margin-bottom: 0.42rem;
  font-size: 0.94rem;
}

@media (min-width: 820px) {
  .founder-grid {
    grid-template-columns: minmax(240px, 340px) 1fr;
    align-items: center;
  }
}

/* Experience */
.experience {
  background: linear-gradient(180deg, var(--forest-deep) 0%, var(--forest) 40%, var(--forest-mid) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.experience > .container {
  position: relative;
  z-index: 1;
}

.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--circuit);
  background-size: 260px;
  opacity: 0.08;
  pointer-events: none;
}

.experience .section-kicker {
  color: var(--gold-bright);
}

.experience h2 {
  color: var(--cream);
}

.experience-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .experience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.experience-card {
  position: relative;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 77, 0.28);
  backdrop-filter: blur(6px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  border-color: rgba(228, 201, 121, 0.55);
  box-shadow: 0 18px 40px rgba(7, 16, 12, 0.28);
}

.experience-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.06rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(250, 249, 245, 0.98);
}

.experience-card p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(246, 244, 237, 0.9);
  line-height: 1.72;
}

.experience-card--enterprise::before {
  background-image: url("images/Custom_ERP.jpg");
}

.experience-card--cloud::before {
  background-image: url("images/DevOps_&_Cloud_Consulting.jpg");
}

.experience-card--modernization::before {
  background-image: url("images/Salesforce_Implementation.jpg");
}

/* Why us */
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .why-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(22, 53, 40, 0.08);
  box-shadow: 0 8px 28px rgba(15, 36, 26, 0.05);
}

.why-index {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.why-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.03rem;
  letter-spacing: -0.01em;
  color: var(--forest);
  font-weight: 600;
}

.why-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.72;
}

/* Contact */
.contact {
  background: linear-gradient(185deg, var(--cream) 0%, var(--white) 45%, var(--cream-dark) 100%);
  position: relative;
}

.contact::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 77, 0.5), transparent);
}

.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.3rem);
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.contact-intro p {
  color: var(--text-soft);
  max-width: 36ch;
}

.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.95rem;
}

.contact-details li {
  margin-bottom: 0.65rem;
  color: var(--text);
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.15rem;
}

.contact-form {
  padding: clamp(1.35rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.8);
}

.contact-form::before {
  opacity: 0.08;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 53, 40, 0.15);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: -0.005em;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 77, 0.75);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.2);
}

.form-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--emerald);
}

.form-status.is-error {
  color: #8b3a2b;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding-block: 2.5rem 2rem;
  background: var(--forest-deep);
  color: rgba(246, 244, 237, 0.82);
  border-top: 1px solid rgba(201, 162, 77, 0.25);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand img {
  margin-inline: auto;
  max-height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  opacity: 0.95;
}

.footer-brand p {
  margin: 0.75rem auto 0;
  max-width: 280px;
  font-size: 0.9rem;
  color: rgba(246, 244, 237, 0.65);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: rgba(246, 244, 237, 0.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(246, 244, 237, 0.5);
}

.footer-copy #year {
  margin-inline: 0.27em;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    text-align: left;
    align-items: start;
  }

  .footer-brand img {
    margin-inline: 0;
  }

  .footer-brand p {
    margin-inline: 0;
  }

  .footer-nav {
    justify-content: flex-end;
  }

  .footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 4.1rem;
  }

  .container {
    width: min(100% - 1.25rem, 1140px);
  }

  .section {
    padding-block: clamp(2.8rem, 7.5vw, 4rem);
  }

  .site-header {
    min-height: 4.1rem;
  }

  .header-inner {
    gap: 0.7rem;
    padding-block: 0.5rem;
  }

  .nav-toggle {
    width: 2.85rem;
    height: 2.85rem;
  }

  .site-nav {
    padding-inline: 0.65rem;
  }

  .site-header.nav-open .site-nav {
    max-height: 72vh;
    overflow-y: auto;
  }

  .nav-list {
    gap: 0.35rem;
  }

  .site-nav .nav-link {
    min-height: 46px;
    padding: 0.74rem 0.92rem;
    font-size: 0.96rem;
  }

  .nav-aside .lang-toggle {
    min-height: 44px;
    width: 100%;
    justify-content: center;
    border-radius: 0.85rem;
    margin-top: 0.1rem;
  }

  .lang-btn {
    min-width: 3.1rem;
    min-height: 36px;
    font-size: 0.86rem;
  }

  .hero {
    padding-block: clamp(2.5rem, 8vw, 3.6rem);
  }

  .hero::before {
    inset: -6% -10% auto;
    height: 64%;
    opacity: 0.72;
    filter: none;
  }

  .hero::after {
    inset: auto -35% -50% -35%;
    height: min(58vh, 360px);
  }

  .hero-glow {
    opacity: 0.32;
    filter: blur(40px);
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
    line-height: 1.16;
    margin-bottom: 0.8rem;
  }

  .hero-sub {
    margin-bottom: 1.15rem;
    font-size: clamp(0.98rem, 2.8vw, 1.05rem);
    line-height: 1.72;
  }

  .hero-trust {
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .hero-points {
    margin-bottom: 1.25rem;
    gap: 0.42rem;
  }

  .hero-points li {
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 0.62rem;
  }

  .btn {
    min-height: 46px;
    font-size: 0.9rem;
    padding: 0.78rem 1.2rem;
  }

  .service-grid,
  .experience-grid,
  .why-list {
    gap: 0.9rem;
  }

  .service-card,
  .experience-card {
    border-radius: 0.95rem;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 12px 28px rgba(14, 36, 25, 0.2);
  }

  .service-card {
    padding: 1.2rem 1rem 1.08rem;
  }

  .service-card::after,
  .experience-card::after {
    background:
      linear-gradient(165deg, rgba(8, 24, 18, 0.9) 0%, rgba(14, 40, 30, 0.84) 48%, rgba(23, 63, 46, 0.74) 100%),
      radial-gradient(circle at 86% 10%, rgba(228, 201, 121, 0.2), transparent 40%);
  }

  .service-card h3,
  .experience-card h3 {
    font-size: 1rem;
  }

  .service-card p,
  .experience-card p {
    font-size: 0.9rem;
    line-height: 1.66;
  }

  .contact-grid {
    gap: 1.3rem;
  }

  .contact-form {
    padding: 1.1rem 0.95rem;
  }

  .form-row {
    margin-bottom: 0.85rem;
  }

  .form-row input,
  .form-row textarea {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .brand img {
    max-height: 45px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.2rem;
  }

  .btn {
    width: 100%;
  }

  .section-header--center {
    margin-bottom: 1.8rem;
  }

  .service-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .site-header.nav-open .site-nav {
    right: 0.65rem;
    left: 0.65rem;
  }
}

html[dir="rtl"] {
  direction: rtl;
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 859px) {
  html[lang="ar"] .hero-copy,
  html[lang="ar"] .hero-grid {
    max-width: 100%;
  }
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section,
html[dir="rtl"] .contact-intro,
html[dir="rtl"] .footer-inner {
  text-align: right;
}

html[dir="rtl"] .section-header--center {
  text-align: center;
}

html[dir="rtl"] .service-card,
html[dir="rtl"] .experience-card,
html[dir="rtl"] .why-item,
html[dir="rtl"] .founder-stat {
  text-align: right;
}

html[dir="rtl"] .hero-points li {
  padding-right: 1.25rem;
  padding-left: 0;
}

html[dir="rtl"] .hero-points li::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .founder-timeline {
  padding-right: 1.1rem;
  padding-left: 0;
}

html[dir="rtl"] .why-item {
  grid-template-columns: 1fr auto;
}

html[dir="rtl"] .footer-nav {
  justify-content: flex-start;
}

@media (max-width: 640px) {
  html[lang="ar"] body {
    line-height: 1.9;
  }

  html[lang="ar"] .hero h1 {
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 3.9rem;
  }

  .container {
    width: min(100% - 1rem, 1140px);
  }

  .site-header {
    min-height: 3.9rem;
  }

  .brand {
    max-width: min(72vw, 360px);
  }

  .brand img {
    max-height: 42px;
  }

  .site-nav .nav-link {
    font-size: 0.94rem;
    padding-inline: 0.82rem;
  }

  .hero {
    padding-block: 2.25rem 2.55rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7.8vw, 1.95rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero-trust,
  .hero-points li {
    font-size: 0.88rem;
  }

  .btn {
    min-height: 47px;
    font-size: 0.89rem;
  }

  .section {
    padding-block: clamp(2.4rem, 8vw, 3.1rem);
  }

  .section h2 {
    font-size: clamp(1.45rem, 6.3vw, 1.75rem);
    line-height: 1.22;
  }

  .service-card,
  .experience-card,
  .why-item {
    border-radius: 0.88rem;
  }

  .service-card {
    padding: 1rem 0.9rem 0.95rem;
  }

  .experience-card,
  .why-item {
    padding: 1.15rem 0.95rem;
  }

  .contact-form {
    padding: 1rem 0.85rem;
  }

  html[lang="ar"] .hero h1 {
    line-height: 1.28;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .service-card,
  .experience-card,
  .service-card::before,
  .experience-card::before,
  .service-card::after,
  .experience-card::after {
    transition: none;
  }
}

@keyframes heroSweep {
  0% {
    transform: translateX(-2.5%) translateY(0);
  }
  50% {
    transform: translateX(2.5%) translateY(1.2%);
  }
  100% {
    transform: translateX(-2.5%) translateY(0);
  }
}
