:root {
  /* ink & paper */
  --ink: #14181b;
  --ink-2: #1c2226;
  --vellum: #efeade;
  --vellum-2: #e6dfcd;
  --vellum-3: #d7cdae;
  --paper-line: #cabfa2;

  /* blueprint */
  --blueprint: #22415c;
  --blueprint-2: #3a6382;
  --blueprint-line: rgba(118, 163, 198, 0.28);

  /* brass */
  --brass: #a9793f;
  --brass-2: #8a6230;

  /* text */
  --text-1: var(--ink);
  --text-2: #58544a;
  --text-3: #8a8474;
  --on-dark-1: #f1ece0;
  --on-dark-2: #aab5bb;
  --on-dark-3: #74838a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --max: 1220px;

  --font-display: 'Noto Kufi Arabic', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', Tahoma, Arial, 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--vellum);
}

#about,
#services,
#process,
#audience,
#contact {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--vellum);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 42px));
  margin: auto;
}

.section {
  padding: 108px 0;
}

.section--soft {
  background: var(--vellum-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
}

.section-subtitle {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--text-2);
  margin: 16px 0 0;
  max-width: 700px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: end;
  margin-bottom: 46px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--paper-line);
}

.section-head .copy {
  max-width: 760px;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 234, 222, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.nav {
  min-height: 76px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 118px;
}
.brand img {
  width: 88px;
  height: 58px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
}
.nav-links a {
  position: relative;
  color: var(--text-2);
}
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: 0.25s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}
.nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  background: var(--ink);
  color: var(--on-dark-1) !important;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
}
.nav-cta:hover {
  background: var(--blueprint);
  color: var(--on-dark-1) !important;
}
.nav-cta.active {
  background: var(--blueprint);
}
.nav-cta::after {
  display: none !important;
}
.lang-switch {
  font-size: 13px;
  color: var(--text-3);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-switch:hover {
  border-color: var(--brass);
  color: var(--ink);
}
.lang-switch::after {
  display: none !important;
}
.menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  border-radius: var(--radius-sm);
  position: relative;
  cursor: pointer;
}
.menu::before,
.menu::after,
.menu span {
  content: '';
  position: absolute;
  right: 12px;
  left: 12px;
  height: 1.5px;
  background: var(--vellum);
}
.menu::before {
  top: 14px;
}
.menu span {
  top: 21px;
}
.menu::after {
  top: 28px;
}

/* hero */
.hero {
  padding: 22px 0 84px;
}
.hero-shell {
  min-height: 690px;
  display: grid;
  grid-template-columns: 44% 56%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--ink-2);
}
.hero-photo {
  position: relative;
  min-height: 690px;
  min-width: 0;
  background: var(--blueprint);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: luminosity;
  opacity: 0.92;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--brass), var(--brass)),
    linear-gradient(var(--brass), var(--brass)),
    linear-gradient(var(--brass), var(--brass)),
    linear-gradient(var(--brass), var(--brass)),
    linear-gradient(var(--brass), var(--brass)),
    linear-gradient(var(--brass), var(--brass)),
    linear-gradient(var(--brass), var(--brass)),
    linear-gradient(var(--brass), var(--brass));
  background-size:
    22px 2px,
    2px 22px,
    22px 2px,
    2px 22px,
    22px 2px,
    2px 22px,
    22px 2px,
    2px 22px;
  background-position:
    top left,
    top left,
    top right,
    top right,
    bottom right,
    bottom right,
    bottom left,
    bottom left;
  opacity: 0.85;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(34, 65, 92, 0) 68%,
    rgba(20, 24, 27, 0.55) 100%
  );
}
.hero-copy {
  padding: clamp(46px, 6vw, 82px);
  color: var(--on-dark-1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.hero-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom right, #000, transparent 80%);
  z-index: -1;
}
.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 34px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 18px;
}
.hero-rule {
  height: 1px;
  background: var(--blueprint-2);
  margin: 0 0 28px;
  position: relative;
  width: 100%;
}
.hero-rule::before,
.hero-rule::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--blueprint-2);
}
.hero-rule::before {
  right: 0;
}
.hero-rule::after {
  left: 0;
}
.hero-tagline {
  font-size: clamp(19px, 1.8vw, 25px);
  margin: 0;
  color: var(--on-dark-1);
}
.hero-tagline + .hero-tagline {
  color: var(--on-dark-2);
  margin-top: 4px;
}
.hero-contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  direction: ltr;
  justify-content: flex-end;
}
.hero-contact a {
  border: 1px solid var(--on-dark-3);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: 13px;
  color: var(--on-dark-1);
  transition: 0.22s;
}
.hero-contact a[href^='tel'] {
  font-family: var(--font-mono);
}
.hero-contact a:hover {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 22px;
  align-items: stretch;
}
.about-copy {
  background: var(--vellum-2);
  border: 1px solid var(--vellum-3);
  border-radius: var(--radius-sm);
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-copy strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.55;
}
.about-copy p {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 17px;
}
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.principle {
  border-radius: var(--radius-sm);
  padding: 28px;
  background: var(--vellum);
  border: 1px solid var(--vellum-3);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}
.principle:nth-child(1) {
  background: var(--ink);
  color: var(--on-dark-1);
  border-color: var(--ink);
  grid-column: 1 / -1;
}
.principle:hover {
  border-color: var(--brass);
}
.mini-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  opacity: 0.95;
}
.mini-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 22px 0 10px;
  line-height: 1.3;
}
.principle p {
  margin: 0;
  color: var(--text-2);
}
.principle:nth-child(1) p {
  color: var(--on-dark-2);
}
.about-note {
  margin-top: 22px;
  background: var(--ink);
  color: var(--on-dark-1);
  border-radius: var(--radius-sm);
  padding: 20px 28px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

/* services: spec sheet */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
  align-items: start;
}
.services-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.services-col--offset {
  padding-top: 72px;
}
.service-panel {
  position: relative;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 30px 32px 28px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.service-panel:hover {
  border-color: var(--brass);
  background: var(--vellum-2);
  transform: translateY(-4px);
}
.service-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.service-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--brass);
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.service-panel:hover .service-icon {
  background: var(--brass);
  color: var(--ink);
}
.service-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.3;
  margin: 0;
}
.service-panel p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  color: var(--text-2);
}

/* process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--paper-line);
  position: relative;
}
.step {
  position: relative;
  padding: 30px 26px 0;
  border-inline-start: 1px solid var(--paper-line);
}
.step:first-child {
  border-inline-start: none;
}
.step::before {
  content: '';
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 1px;
  height: 11px;
  background: var(--brass);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 42px;
  line-height: 1;
  font-weight: 500;
  color: var(--brass);
  direction: ltr;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 18px 0 10px;
}
.step p {
  margin: 0;
  color: var(--text-2);
}
.legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  margin-top: 8px;
  border-top: 1px solid var(--paper-line);
}
.legend-row {
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--paper-line);
  padding: 22px 0;
}
.legend-icon {
  width: 50px;
  height: 50px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  color: var(--blueprint);
  display: grid;
  place-items: center;
  opacity: 0.95;
}
.legend-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.legend-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.legend-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}
.legend-text span {
  font-size: 14px;
  color: var(--text-2);
}
.audience-note {
  margin-top: 22px;
  background: var(--ink);
  color: var(--on-dark-1);
  border-radius: var(--radius-sm);
  padding: 20px 28px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

/* contact */
.contact {
  padding: 110px 0 52px;
  background: var(--ink);
  color: var(--on-dark-1);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 930px;
}
.contact-logo {
  width: 108px;
  margin: 0 auto 26px;
}
.contact h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 5.6vw, 78px);
  line-height: 1.12;
  margin: 0;
}
.contact p {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--on-dark-2);
  max-width: 800px;
  margin: 22px auto 42px;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  direction: ltr;
}
.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  direction: ltr;
  margin-top: 16px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  border: 1px solid var(--ink-2);
  background: var(--ink-2);
  border-radius: var(--radius-sm);
  color: var(--on-dark-2);
  transition:
    border-color 0.22s,
    color 0.22s;
}
.social-link:hover {
  border-color: var(--brass);
  color: var(--on-dark-1);
}
.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
  flex: none;
}
.social-link span {
  font-family: var(--font-mono);
  font-size: 14px;
}
.footer-brand {
  margin-top: 58px;
  font-family: var(--font-display);
  font-size: 17px;
}
.footer-brand span {
  display: block;
  direction: ltr;
  font-family: var(--font-mono);
  color: var(--on-dark-3);
  font-size: 13px;
  margin-top: 6px;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    background: var(--vellum);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius-sm);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 10px 8px;
  }
  .menu {
    display: block;
  }
  .hero-shell {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    order: 1;
  }
  .hero-photo {
    order: 2;
    min-height: 460px;
  }
  .hero-photo::after {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .step {
    border-inline-start: none;
    border-top: 1px solid var(--paper-line);
    padding-top: 24px;
  }
  .step::before {
    top: -1px;
  }
}
@media (max-width: 650px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }
  .section {
    padding: 74px 0;
  }
  .nav {
    min-height: 64px;
  }
  .brand img {
    width: 76px;
    height: 50px;
  }
  .hero {
    padding-top: 10px;
    padding-bottom: 62px;
  }
  .hero-shell {
    border-radius: var(--radius-sm);
    min-height: 0;
  }
  .hero-copy {
    padding: 42px 24px;
  }
  .hero-photo {
    min-height: 340px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-contact {
    justify-content: flex-start;
    direction: rtl;
  }
  .section-head {
    display: block;
  }
  .section-head .copy {
    margin-top: 16px;
  }
  .section-title {
    font-size: 42px;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .principle:nth-child(1) {
    grid-column: auto;
  }
  .service-panel {
    padding: 26px 22px 24px;
  }
  .service-head {
    gap: 14px;
    margin-bottom: 12px;
  }
  .service-icon {
    width: 48px;
    height: 48px;
  }
  .service-icon svg {
    width: 26px;
    height: 26px;
  }
  .services-col--offset {
    padding-top: 0;
  }
  .process-grid,
  .services-grid,
  .legend-grid,
  .contact-cards,
  .social-links {
    grid-template-columns: 1fr;
  }
  .step {
    min-height: 0;
  }
  .contact {
    padding-top: 80px;
  }
}

/* English (ltr) mirroring — this page shares one stylesheet with the
   Arabic (rtl) version; grid/flex logical properties mirror on their own
   via the html[dir] attribute, these are the handful of physical
   left/right values that need an explicit flip. */
html[dir='ltr'] {
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', Arial, 'Helvetica Neue', sans-serif;
}
html[dir='ltr'] .nav-links a::after {
  right: auto;
  left: 0;
}
html[dir='ltr'] .hero-photo::after {
  background: linear-gradient(
    270deg,
    rgba(34, 65, 92, 0) 68%,
    rgba(20, 24, 27, 0.55) 100%
  );
}
html[dir='ltr'] .hero-copy::before {
  mask-image: linear-gradient(to bottom left, #000, transparent 80%);
}
html[dir='ltr'] .hero-contact {
  justify-content: flex-start;
}
@media (max-width: 650px) {
  html[dir='ltr'] .hero-contact {
    direction: ltr;
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
