/* =========================================================
   ALABD Engineering Consultancy — main stylesheet
   Palette from the logo: charcoal + crimson red
   ========================================================= */
:root {
  --ink: #0f0f11;
  --ink-2: #17171a;
  --ink-3: #212125;
  --line: rgba(255, 255, 255, .1);
  --line-dark: rgba(17, 17, 19, .1);
  --paper: #f5f3f0;
  --paper-2: #ebe7e1;
  --text: #1c1c1f;
  --muted: #6f6f76;
  --muted-light: #a3a3aa;
  --red: #c8141f;
  --red-2: #9a0c15;
  --white: #fff;

  --tick: 38px;
  --header: 84px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --f-head: "Montserrat", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[lang="ar"] {
  --f-head: "IBM Plex Sans Arabic", "Montserrat", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: opacity .18s;
}
body.is-switching { opacity: 0; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; margin-top: 56px; }
.muted { color: var(--muted); }
.accent { color: var(--red); }

.arrow { display: inline-block; transition: transform .3s var(--ease); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
[dir="rtl"] a:hover .arrow, [dir="rtl"] button:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-head);
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow__line { width: 36px; height: 2px; background: var(--red); flex: none; }
.eyebrow--light { color: #e8e8ea; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 28px;
  font-family: var(--f-head); font-weight: 600; font-size: 14px;
  letter-spacing: .04em;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
  white-space: nowrap;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 15px; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 13px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline-light { border-color: var(--line); color: #fff; }
.btn--outline-light:hover { border-color: var(--red); background: var(--red); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 600; font-size: 14px;
  color: #fff;
}
.link-arrow--red { color: var(--red); margin-top: 28px; }

/* ---------- ticker ---------- */
.ticker {
  position: relative; z-index: 60;
  height: var(--tick);
  display: flex; align-items: stretch;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  color: #cfcfd4; font-size: 13px;
  overflow: hidden;
}
.ticker__label {
  flex: none; display: flex; align-items: center;
  padding-inline: 20px;
  background: var(--red); color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
}
html[lang="ar"] .ticker__label { letter-spacing: 0; font-size: 13px; }
.ticker__track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker__move, .strip__move {
  display: flex; align-items: center; gap: 28px;
  white-space: nowrap; width: max-content;
  animation: marquee 40s linear infinite;
}
.ticker__move i { color: var(--red); font-style: normal; font-size: 9px; }
[dir="rtl"] .ticker__move, [dir="rtl"] .strip__move { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- header ---------- */
.header {
  position: fixed; inset-inline: 0; top: var(--tick); z-index: 50;
  height: var(--header);
  transition: top .35s var(--ease), background .35s, height .35s, box-shadow .35s;
}
.header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: var(--line);
}
.header.is-solid {
  top: 0; height: 72px;
  background: rgba(15, 15, 17, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand__mark { width: 52px; height: 32px; color: #e9e9ec; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: 22px; letter-spacing: .14em;
}
.brand__text small {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light);
  margin-top: 3px;
}
html[lang="ar"] .brand__text small { letter-spacing: 0; font-size: 12px; }
.brand--lg .brand__mark { width: 70px; height: 42px; }
.brand--lg .brand__text strong { font-size: 28px; }

.nav { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; }
.nav a {
  position: relative; color: #d6d6da;
  font-family: var(--f-head); font-weight: 500; font-size: 14px;
  padding-block: 6px;
  transition: color .25s;
}
html[lang="ar"] .nav a { font-size: 15px; }
.nav a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--red); transition: width .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.lang {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px;
  background: transparent; color: #7c7c84;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  font-family: "Montserrat", "IBM Plex Sans Arabic", sans-serif; font-weight: 600; font-size: 13px;
  transition: border-color .25s;
}
.lang:hover { border-color: rgba(255,255,255,.4); }
.lang__sep { width: 1px; height: 14px; background: var(--line); }
.lang__opt.is-on { color: #fff; }
.lang__opt[data-l="ar"] { font-size: 15px; }

.burger { display: none; width: 42px; height: 42px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.burger span { position: absolute; inset-inline: 11px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 24px; }
.burger.is-open span:first-child { top: 19px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  margin-top: calc(var(--tick) * -1);
  display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--ink);
}
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slide {
  background: var(--img) center / cover no-repeat;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  background:
    linear-gradient(90deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.55) 45%, rgba(10,10,12,.15) 100%),
    linear-gradient(0deg, rgba(10,10,12,.85) 0%, transparent 35%);
}
[dir="rtl"] .hero__shade {
  background:
    linear-gradient(270deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.55) 45%, rgba(10,10,12,.15) 100%),
    linear-gradient(0deg, rgba(10,10,12,.85) 0%, transparent 35%);
}
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header) + var(--tick) + 40px); padding-bottom: 140px; }
.hero__title {
  font-size: clamp(36px, 5.4vw, 80px);
  font-weight: 800; letter-spacing: -.02em; text-transform: uppercase;
  line-height: 1.04;
}
html[lang="ar"] .hero__title { text-transform: none; letter-spacing: 0; line-height: 1.25; font-weight: 700; font-size: clamp(40px, 6.4vw, 92px); }
.hero__title span { display: block; }
.hero__lead { max-width: 560px; margin-top: 26px; font-size: 18px; color: #d4d4d9; font-weight: 300; }
html[lang="ar"] .hero__lead { font-weight: 400; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__feature {
  position: absolute; z-index: 2;
  inset-inline-end: max(24px, calc((100vw - 1240px) / 2));
  bottom: 120px;
  width: 320px; padding: 26px 28px;
  background: rgba(15,15,17,.55);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--red);
  transition: opacity .3s, transform .3s;
}
.hero__feature.is-swap { opacity: 0; transform: translateY(8px); }
.hero__feature-tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); }
html[lang="ar"] .hero__feature-tag { letter-spacing: 0; font-size: 13px; }
.hero__feature h3 { font-size: 24px; font-weight: 700; margin: 10px 0 16px; }

.hero__bottom {
  position: absolute; z-index: 2; inset-inline: 0; bottom: 36px;
  display: flex; align-items: center; gap: 24px;
}
.hero__dots { display: flex; gap: 8px; }
.hero__dots button {
  width: 34px; height: 3px; padding: 0; border: 0;
  background: rgba(255,255,255,.3); transition: background .3s, width .3s;
}
.hero__dots button.is-active { background: var(--red); width: 56px; }
.hero__count { font-family: "Montserrat", sans-serif; font-size: 13px; color: var(--muted-light); letter-spacing: .1em; }
.hero__count span:first-child { color: #fff; font-weight: 700; }
.hero__scroll {
  margin-inline-start: auto;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 2px; background: #fff; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- disciplines strip ---------- */
.strip { background: var(--red); color: #fff; overflow: hidden; padding: 18px 0; }
.strip__move { gap: 34px; animation-duration: 36s; }
.strip__move span {
  font-family: var(--f-head); font-weight: 700; font-size: 15px;
  letter-spacing: .2em; text-transform: uppercase;
}
html[lang="ar"] .strip__move span { letter-spacing: 0; font-size: 17px; }
.strip__move i { width: 8px; height: 8px; background: #fff; transform: rotate(45deg); flex: none; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; letter-spacing: -.015em; }
html[lang="ar"] .h2 { letter-spacing: 0; font-weight: 700; line-height: 1.35; }
.lead { font-size: 20px; line-height: 1.6; margin: 26px 0 18px; color: var(--text); font-weight: 500; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.section__intro { max-width: 420px; font-size: 17px; }

/* ---------- about ---------- */
.about { background: var(--paper); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.15); }
.about__media::before {
  content: ""; position: absolute; inset: -18px; inset-inline-start: 18px; inset-block-end: 18px;
  border: 2px solid var(--red); z-index: -1;
}
.about__media { isolation: isolate; }
.about__badge {
  position: absolute; inset-inline-end: -28px; bottom: 48px;
  background: var(--ink); color: #fff;
  padding: 26px 30px; min-width: 190px;
  border-top: 3px solid var(--red);
}
.about__badge strong, .about__badge > span { font-family: "Montserrat", sans-serif; font-size: 52px; font-weight: 800; line-height: 1; }
.about__badge > span { color: var(--red); }
.about__badge small { display: block; margin-top: 8px; color: var(--muted-light); font-size: 13px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(70px, 9vw, 120px);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 36px 28px 0; border-inline-start: 1px solid var(--line-dark); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat strong { display: block; font-family: "Montserrat", sans-serif; font-size: clamp(38px, 4vw, 56px); font-weight: 800; color: var(--text); line-height: 1; }
.stat strong::first-letter { color: inherit; }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.stat:nth-child(odd) strong { color: var(--red); }

/* ---------- projects ---------- */
.projects { background: var(--ink); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  background: transparent; color: var(--muted-light);
  border: 1px solid var(--line); border-radius: 40px;
  padding: 8px 18px; font-size: 13px; font-weight: 500;
  transition: all .25s;
}
.filter:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3);
  animation: fadeUp .6s var(--ease) both;
}
.proj--wide { grid-column: span 2; aspect-ratio: auto; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.35) brightness(.85); }
.proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,12,.9) 0%, rgba(10,10,12,.1) 55%); }
.proj:hover img { transform: scale(1.06); filter: grayscale(0) brightness(.95); }
.proj__info { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 28px; }
.proj__meta { display: flex; gap: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); }
html[lang="ar"] .proj__meta { letter-spacing: 0; font-size: 13px; }
.proj__meta span:first-child { color: var(--red); font-weight: 600; }
.proj h3 { font-size: 22px; font-weight: 700; margin-top: 8px; }
.proj__view {
  display: inline-flex; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: all .4s var(--ease);
}
.proj:hover .proj__view { opacity: 1; transform: none; }
.proj::before {
  content: ""; position: absolute; z-index: 3; inset-inline-start: 0; top: 0;
  width: 0; height: 3px; background: var(--red); transition: width .5s var(--ease);
}
.proj:hover::before { width: 100%; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

/* ---------- services ---------- */
.services { background: var(--paper); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-inline-start: 1px solid var(--line-dark); }
.srv {
  position: relative; padding: 38px 30px 34px;
  border-inline-end: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  background: var(--paper);
  transition: background .4s, color .4s;
  overflow: hidden;
}
.srv::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: 0;
}
.srv > * { position: relative; z-index: 1; }
.srv:hover::before { transform: scaleY(1); }
.srv:hover { color: #fff; }
.srv__n { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 15px; color: var(--red); }
.srv h3 { font-size: 20px; font-weight: 700; margin: 46px 0 12px; }
.srv p { font-size: 14.5px; color: var(--muted); transition: color .4s; min-height: 72px; }
.srv:hover p { color: var(--muted-light); }
.srv__more { display: inline-flex; gap: 8px; margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--red); }

/* ---------- approach ---------- */
.approach { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.approach__bg {
  position: absolute; inset: 0;
  background: var(--img) center / cover fixed;
  opacity: .18; filter: grayscale(1);
}
.approach__inner { position: relative; }
.approach__head { margin-bottom: 64px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  padding: 32px 28px 36px;
  background: rgba(23,23,26,.75); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  position: relative;
  transition: border-color .3s, transform .4s var(--ease);
}
.step:hover { border-color: var(--red); transform: translateY(-6px); }
.step__n {
  display: block; font-family: "Montserrat", sans-serif; font-size: 64px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.28);
  margin-bottom: 26px;
}
.step:hover .step__n { -webkit-text-stroke-color: var(--red); }
.step h3 { font-size: 20px; margin-bottom: 12px; }
.step p { color: var(--muted-light); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.ctaband { background: var(--red); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.ctaband__inner { display: flex; align-items: center; gap: 40px; position: relative; }
.ctaband__inner > div { flex: 1; }
.ctaband h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; }
.ctaband p { margin-top: 10px; color: rgba(255,255,255,.85); font-size: 17px; }
.ctaband__mark {
  position: absolute; inset-inline-end: -40px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 250px; color: #000; opacity: .12; pointer-events: none;
}
.ctaband__mark use { filter: none; }

/* ---------- contact ---------- */
.contact { background: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); }
.contact__info { list-style: none; padding: 0; margin: 44px 0 0; }
.contact__info li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 0; border-bottom: 1px solid var(--line-dark);
  font-size: 17px; font-weight: 500;
}
html[dir="rtl"] .contact__info li a { text-align: right; }
.ci-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 600; }
html[lang="ar"] .ci-label { letter-spacing: 0; font-size: 13px; }

.form { background: #fff; padding: clamp(28px, 4vw, 48px); border-top: 3px solid var(--red); box-shadow: 0 30px 60px -30px rgba(0,0,0,.18); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 15px;
  width: 100%; min-width: 0;
  padding: 14px 16px; border: 1px solid #dcd8d2; border-radius: var(--radius);
  background: var(--paper); color: var(--text);
  transition: border-color .25s, background .25s;
}
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.form__note { margin-top: 14px; font-size: 14px; min-height: 1.4em; }
.form__note.is-ok { color: #1a7f45; }
.form__note.is-err { color: var(--red); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #d6d6da; padding-top: 90px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer__brand p { margin-top: 22px; max-width: 340px; color: var(--muted-light); font-size: 14.5px; }
.footer h4 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
html[lang="ar"] .footer h4 { letter-spacing: 0; font-size: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; color: var(--muted-light); }
.footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; color: #fff;
  transition: background .25s, border-color .25s;
}
.socials a:hover { background: var(--red); border-color: var(--red); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; font-size: 13px; color: var(--muted-light); }
.totop { width: 42px; height: 42px; display: grid; place-items: center; background: var(--red); color: #fff; border-radius: var(--radius); }

/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; z-index: 40; bottom: 24px; inset-inline-start: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform .3s;
}
.wa:hover { transform: scale(1.08); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .stats .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .stats .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(4), .stats .reveal:nth-child(4) { transition-delay: .3s; }
.hero .reveal:nth-child(2) { transition-delay: .15s; }
.hero .reveal:nth-child(3) { transition-delay: .3s; }
.hero .reveal:nth-child(4) { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__feature { display: none; }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-size: 24px !important; }
  .header__inner { gap: 16px; }
  .header__actions { margin-inline-start: auto; }
  .hide-sm { display: none; }
  .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 520px; }
  .about__badge { inset-inline-end: 16px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .ctaband__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 640px) {
  :root { --header: 70px; }
  .container { width: calc(100% - 32px); }
  .brand__mark { width: 42px; height: 26px; }
  .brand__text strong { font-size: 18px; }
  .brand__text small { font-size: 8.5px; letter-spacing: .1em; }
  .brand { gap: 8px; }
  .header__actions { gap: 8px; }
  html[lang="ar"] .brand__text small { font-size: 11px; }
  .lang { padding: 0 10px; }
  .hero__lead { font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__content { padding-bottom: 120px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 16px 28px; border-bottom: 1px solid var(--line-dark); }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .projects__grid, .services__grid, .steps { grid-template-columns: 1fr; }
  .proj--wide { grid-column: auto; aspect-ratio: 4 / 5; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .ticker__label { padding-inline: 12px; }
  .approach__bg { background-attachment: scroll; }
  .wa { width: 50px; height: 50px; bottom: 18px; inset-inline-start: 18px; }
}

/* =========================================================
   Blog cards (home + blog + related)
   ========================================================= */
.insights { background: #fff; }
.posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-dark); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; animation: fadeUp .6s var(--ease) both; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px rgba(0,0,0,.28); border-color: transparent; }
.pcard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; border-top: 3px solid transparent; transition: border-color .4s; }
.pcard:hover .pcard__body { border-top-color: var(--red); }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.pcard__cat { color: var(--red); font-weight: 600; }
.pcard h3 { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 12px 0 10px; color: var(--text); }
.pcard__ex { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__more { margin-top: auto; padding-top: 18px; display: inline-flex; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--red); }

/* =========================================================
   Inner page header
   ========================================================= */
.phead {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  margin-top: calc(var(--tick) * -1);
  padding: calc(var(--tick) + var(--header) + clamp(60px, 9vw, 120px)) 0 clamp(60px, 8vw, 100px);
}
.phead__bg { position: absolute; inset: 0; background: var(--img) center / cover; opacity: .28; filter: grayscale(.4); }
.phead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, transparent 70%); }
.phead__inner { position: relative; z-index: 1; }
.phead__title { font-size: clamp(36px, 5vw, 68px); font-weight: 800; letter-spacing: -.015em; }
html[lang="ar"] .phead__title { letter-spacing: 0; font-weight: 700; line-height: 1.3; }
.phead__lead { max-width: 620px; margin-top: 20px; font-size: 18px; color: #c9c9cf; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-light); margin-bottom: 26px; }
.crumbs a { color: #fff; transition: color .25s; }
.crumbs a:hover { color: var(--red); }

.filters--bar { margin-bottom: 44px; }
.filters--light .filter { color: var(--muted); border-color: var(--line-dark); }
.filters--light .filter:hover { color: var(--text); border-color: var(--text); }
.filters--light .filter.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.projects--page { padding-top: 70px; }

/* =========================================================
   Project detail
   ========================================================= */
.phero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; margin-top: calc(var(--tick) * -1); background: var(--ink); }
.phero__bg { position: absolute; inset: 0; background: var(--img) center / cover; animation: slowzoom 14s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.35) 55%, rgba(10,10,12,.55) 100%); }
.phero__inner { position: relative; z-index: 1; padding-top: calc(var(--tick) + var(--header) + 60px); padding-bottom: 70px; }
.phero__title { font-size: clamp(36px, 5.6vw, 76px); font-weight: 800; max-width: 18ch; letter-spacing: -.015em; }
html[lang="ar"] .phero__title { letter-spacing: 0; font-weight: 700; line-height: 1.3; }
.phero__loc { margin-top: 16px; font-size: 17px; color: #d0d0d5; display: flex; align-items: center; gap: 10px; }
.phero__loc::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }

.pmeta { background: var(--ink-2); color: #fff; border-top: 1px solid var(--line); }
.pmeta__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pmeta__cell { padding: 30px 24px; border-inline-start: 1px solid var(--line); }
.pmeta__cell:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pmeta__cell small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 8px; }
html[lang="ar"] .pmeta__cell small { letter-spacing: 0; font-size: 13px; }
.pmeta__cell strong { font-size: 16.5px; font-weight: 600; line-height: 1.5; }

.pbody { background: var(--paper); }
.pbody__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 90px); align-items: start; }
.pbody__summary { font-size: clamp(20px, 2vw, 26px); line-height: 1.6; font-weight: 500; color: var(--text); margin-bottom: 56px; }
.pblock { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 20px; padding: 36px 0; border-top: 1px solid var(--line-dark); }
.pblock__n { font-family: "Montserrat", sans-serif; font-size: 40px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--red); line-height: 1; }
.pblock h2 { font-size: 24px; margin-bottom: 12px; }
.pblock p { color: var(--muted); font-size: 16.5px; }
.pside { position: sticky; top: 100px; background: var(--ink); color: #fff; padding: 34px 32px; border-top: 3px solid var(--red); }
.pside h3 { font-size: 18px; margin-bottom: 18px; }
.pside ul { list-style: none; padding: 0; margin: 0 0 28px; }
.pside li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; color: #dcdce0; font-size: 15px; }
.pside li::before { content: ""; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); flex: none; }

.pgallery { background: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery__item { position: relative; padding: 0; border: 0; background: var(--ink-3); overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: brightness(.9); }
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1); }
.gallery__zoom { position: absolute; inset-inline-end: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 22px; opacity: 0; transform: scale(.8); transition: all .3s; }
.gallery__item:hover .gallery__zoom { opacity: 1; transform: none; }

.pnext { position: relative; display: block; overflow: hidden; color: #fff; background: var(--ink); }
.pnext__bg { position: absolute; inset: 0; background: var(--img) center / cover; opacity: .35; transition: opacity .6s, transform 1.2s var(--ease); }
.pnext:hover .pnext__bg { opacity: .55; transform: scale(1.04); }
.pnext__inner { position: relative; padding: clamp(60px, 8vw, 110px) 0; display: flex; flex-direction: column; gap: 10px; }
.pnext__label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; }
html[lang="ar"] .pnext__label { letter-spacing: 0; font-size: 15px; }
.pnext strong { font-family: var(--f-head); font-size: clamp(28px, 4vw, 52px); font-weight: 800; }
.pnext__arrow { font-size: 34px; color: var(--red); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,10,.94); display: flex; align-items: center; justify-content: center; padding: 40px 80px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: transparent; border: 1px solid var(--line); color: #fff; width: 52px; height: 52px; font-size: 28px; line-height: 1; transition: background .25s; }
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 20px; inset-inline-end: 20px; }
.lightbox__prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .lightbox__prev, [dir="rtl"] .lightbox__next { transform: translateY(-50%) scaleX(-1); }

/* =========================================================
   Blog list
   ========================================================= */
.blog { background: var(--paper); padding-top: 70px; }
.feat { display: grid; grid-template-columns: 1.25fr 1fr; background: #fff; margin-bottom: 70px; box-shadow: 0 40px 70px -45px rgba(0,0,0,.35); }
.feat__img { overflow: hidden; min-height: 380px; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat:hover .feat__img img { transform: scale(1.04); }
.feat__body { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; border-inline-start: 4px solid var(--red); }
.feat__tag { align-self: flex-start; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; margin-bottom: 20px; letter-spacing: .1em; text-transform: uppercase; }
html[lang="ar"] .feat__tag { letter-spacing: 0; font-size: 13px; }
.feat h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.35; margin: 14px 0 16px; color: var(--text); }
.feat__body > p:not(.pcard__meta) { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.feat .link-arrow--red { margin-top: 0; }

/* =========================================================
   Article
   ========================================================= */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; background: var(--red); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .progress { transform-origin: right; }
body[data-page="post"] { background: var(--paper); }
.posthead { background: var(--ink); color: #fff; margin-top: calc(var(--tick) * -1); padding: calc(var(--tick) + var(--header) + 70px) 0 200px; }
.posthead__inner { max-width: 900px; }
.posthead__cat { display: inline-block; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 14px; margin-bottom: 22px; }
.posthead__title { font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
html[lang="ar"] .posthead__title { letter-spacing: 0; font-weight: 700; line-height: 1.45; }
.posthead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 26px; color: var(--muted-light); font-size: 14.5px; }
.posthead__meta i { width: 5px; height: 5px; background: var(--red); transform: rotate(45deg); }
.postcover { margin-top: -150px; position: relative; z-index: 2; }
.postcover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.postwrap { background: var(--paper); padding: 70px 0 90px; }
.postwrap__grid { display: grid; grid-template-columns: 90px minmax(0, 740px); justify-content: center; gap: 0 60px; }

.share { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.share a, .share button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; background: #fff; color: var(--text); font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; transition: all .25s; }
.share a:hover, .share button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.share__copied { color: var(--red); font-weight: 600; min-height: 1em; max-width: 90px; word-break: break-all; }

.prose { font-size: 18px; line-height: 1.95; color: #2b2b30; }
html[lang="ar"] .prose { font-size: 19px; line-height: 2.05; }
.prose > * + * { margin-top: 1.1em; }
.prose__lead { font-size: 1.2em; font-weight: 500; color: var(--text); padding-bottom: 1.3em; border-bottom: 1px solid var(--line-dark); }
.prose h2 { font-size: 1.45em; font-weight: 800; color: var(--text); margin-top: 1.9em; line-height: 1.4; position: relative; padding-inline-start: 18px; }
html[lang="ar"] .prose h2 { font-weight: 700; }
.prose h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 4px; background: var(--red); }
.prose ul { padding-inline-start: 0; list-style: none; }
.prose li { position: relative; padding-inline-start: 26px; margin-top: .6em; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .8em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 2em 0; padding: 30px 34px; background: var(--ink); color: #fff; font-family: var(--f-head); font-size: 1.25em; font-weight: 600; line-height: 1.6; border-inline-start: 5px solid var(--red); }

.author { grid-column: 2; display: flex; gap: 22px; align-items: center; margin-top: 60px; padding: 30px; background: #fff; border-top: 3px solid var(--red); }
.author__mark { width: 72px; height: 44px; flex: none; color: var(--ink); }
.author small { color: var(--muted); font-size: 13px; }
.author strong { display: block; font-family: var(--f-head); font-size: 19px; margin: 2px 0 6px; }
.author p { color: var(--muted); font-size: 14.5px; }
.related { background: #fff; }

/* ---------- responsive (inner pages) ---------- */
@media (max-width: 1100px) {
  .pmeta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pmeta__cell { border-bottom: 1px solid var(--line); }
  .pmeta__cell:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 960px) {
  .posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pbody__grid { grid-template-columns: minmax(0, 1fr); }
  .pside { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat__img { min-height: 0; aspect-ratio: 16 / 9; }
  .feat__body { border-inline-start: 0; border-top: 4px solid var(--red); }
  .postwrap__grid { grid-template-columns: minmax(0, 1fr); }
  .share { position: static; flex-direction: row; justify-content: flex-start; margin-bottom: 36px; }
  .share__copied { max-width: none; }
  .author { grid-column: 1; }
}
@media (max-width: 640px) {
  .posts__grid { grid-template-columns: minmax(0, 1fr); }
  .pmeta__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmeta__cell { padding: 20px 14px; }
  .pmeta__cell:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .pmeta__cell:nth-child(4) { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
  .pblock { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gallery__item--wide { grid-row: auto; aspect-ratio: 16 / 10; }
  .posthead { padding-bottom: 120px; }
  .postcover { margin-top: -90px; }
  .postcover img { aspect-ratio: 16 / 10; }
  .prose { font-size: 17px; }
  html[lang="ar"] .prose { font-size: 17.5px; }
  .prose blockquote { padding: 24px; }
  .author { flex-direction: column; align-items: flex-start; }
  .lightbox { padding: 70px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; }
  [dir="rtl"] .lightbox__prev, [dir="rtl"] .lightbox__next { transform: scaleX(-1); }
  .lightbox__prev, .lightbox__next { transform: none; }
}
