/* =========================================================
   Al-Imdad Al-Mutawasil — landing page
   Light theme only. Logical properties so Arabic (RTL) mirrors.
   ========================================================= */

:root {
  color-scheme: light;

  /* Brand — sampled from the logo */
  --navy: #0a2a52;
  --navy-2: #0e3f7a;
  --blue: #1f6fb8;
  --sky: #e8f0fa;
  --gold: #b8862f;
  --gold-2: #ecc777;
  --gold-ink: #8a611d;
  --gold-soft: #f6ecd6;
  --green: #1d8a55;

  /* Neutrals */
  --cream: #fbf7ef;
  --ivory: #fffdf8;
  --line: #e9dfcc;
  --ink: #10213a;
  --muted: #56647a;

  --grad-navy: linear-gradient(135deg, #1352a0 0%, var(--navy-2) 45%, var(--navy) 100%);
  --grad-gold: linear-gradient(100deg, #8a611d 0%, #c8973c 35%, #b07d27 60%, #8a611d 100%);

  --f-body: "Readex Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-display: "Reem Kufi", "Readex Pro", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --gutter: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 48px -24px rgb(10 42 82 / .22);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-2); color: var(--navy); }

img, svg { display: block; max-width: 100%; }
a { color: var(--navy-2); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--f-display); font-weight: 700; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico.star, .eyebrow .ico { fill: currentColor; stroke: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* Emphasis: animated gold gradient text */
em {
  font-style: normal;
  background: var(--grad-gold);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--blue));
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
}
[dir="rtl"] .progress span { transform-origin: right center; background: linear-gradient(270deg, var(--gold), var(--gold-2), var(--blue)); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn-lg { min-height: 58px; padding: 0 12px 0 26px; font-size: 1.02rem; padding-inline: 26px 10px; }
.btn-lg:not(:has(.btn-arrow)) { padding-inline: 22px 26px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad-navy);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgb(14 63 122 / .7), inset 0 1px 0 rgb(255 255 255 / .18);
}
.btn-primary:hover { box-shadow: 0 20px 40px -16px rgb(14 63 122 / .75), inset 0 1px 0 rgb(255 255 255 / .18); }

.btn-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / .14);
  transition: transform .35s var(--ease), background-color .25s;
}
.btn:hover .btn-arrow { transform: translateX(4px); background: var(--gold-2); color: var(--navy); }
[dir="rtl"] .btn:hover .btn-arrow { transform: translateX(-4px); }

.btn-glass {
  background: rgb(255 255 255 / .72);
  border-color: var(--line);
  color: var(--navy);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { border-color: var(--gold); background: #fff; }
.ico-wa { color: var(--green); width: 1.35em; height: 1.35em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 12px;
  inset-inline: 0;
  z-index: 100;
  pointer-events: none;
}
.header-shell {
  position: relative;
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter), var(--container));
  height: 66px;
  margin-inline: auto;
  padding-inline: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  border: 1px solid rgb(233 223 204 / .9);
  background: rgb(255 253 248 / .66);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: background-color .3s, box-shadow .3s, height .3s var(--ease);
}
.site-header.is-scrolled .header-shell {
  height: 60px;
  background: rgb(255 253 248 / .9);
  box-shadow: 0 16px 36px -18px rgb(10 42 82 / .25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
}
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px -6px rgb(10 42 82 / .25);
  overflow: hidden;
}
.brand-mark img { width: 82%; height: auto; }
.brand-text { display: grid; line-height: 1.2; min-width: 0; }
.brand-text strong { font-family: var(--f-display); font-size: 1.08rem; font-weight: 700; white-space: nowrap; }
.brand-text small { font-size: .74rem; color: var(--muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .25s, color .25s;
}
.nav a:hover { background: rgb(246 236 214 / .8); color: var(--navy); }
.nav a.is-active { background: var(--navy); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .25s;
}
.lang:hover { border-color: var(--gold); }
.lang .ico { color: var(--gold); }

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  inset-inline-start: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(700px, 100svh, 960px);
  display: grid;
  align-items: center;
  padding-block: 128px 72px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-1 {
  width: 760px; height: 760px;
  inset-inline-end: -220px; top: -260px;
  background: radial-gradient(circle, rgb(236 199 119 / .5), rgb(236 199 119 / 0) 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-2 {
  width: 680px; height: 680px;
  inset-inline-start: -260px; bottom: -280px;
  background: radial-gradient(circle, rgb(31 111 184 / .22), rgb(31 111 184 / 0) 65%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.blob-3 {
  width: 420px; height: 420px;
  inset-inline-start: 38%; top: 30%;
  background: radial-gradient(circle, rgb(232 240 250 / .9), rgb(232 240 250 / 0) 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%230e3f7a' stroke-opacity='.09' stroke-width='1'%3E%3Crect x='24' y='24' width='24' height='24'/%3E%3Crect x='24' y='24' width='24' height='24' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 36h10M62 36h10M36 0v10M36 62v10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 12px;
  padding-inline: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / .75);
  color: var(--navy);
  font-size: .88rem;
  font-weight: 500;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgb(184 134 47 / .5);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgb(184 134 47 / .55); }
  100% { box-shadow: 0 0 0 10px rgb(184 134 47 / 0); }
}

.hero-title {
  margin: 22px 0 22px;
  font-size: clamp(3.1rem, 1.4rem + 6.2vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 700;
}
[lang="ar"] .hero-title { line-height: 1.22; letter-spacing: 0; }
.hero-title .line { display: block; overflow: hidden; padding-block: .04em .14em; margin-block: -.04em -.14em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(115%); transition: transform 1.1s var(--ease); }
.js .is-ready .hero-title .line > span { transform: none; }
.js .is-ready .hero-title .line:nth-child(2) > span { transition-delay: .12s; }

.hero-lead {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.05rem, .95rem + .45vw, 1.26rem);
  line-height: 1.75;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 38px; }

.hero-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
}
.hero-flow li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
}
.hero-flow li span { font-size: .72rem; color: var(--gold-ink); font-weight: 600; }
.hero-flow li + li::before {
  content: "";
  width: 30px;
  height: 2px;
  margin-inline: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

/* Hero stage */
.hero-stage { position: relative; }
.stage-inner { position: relative; padding-block: 64px 92px; }
.loop-wrap { position: relative; }
.loop { width: 100%; height: auto; overflow: visible; }
.loop .flow { stroke-dasharray: 10 14; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
.loop .spin { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tag {
  position: absolute;
  top: 81%;
  translate: -50% 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px -12px rgb(10 42 82 / .3);
}
.tag-world { left: 26.7%; }
.tag-you { left: 73.3%; }

.float-card {
  position: absolute;
  z-index: 2;
  border-radius: 20px;
  border: 1px solid rgb(255 255 255 / .9);
  background: rgb(255 255 255 / .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -22px rgb(10 42 82 / .3), 0 0 0 1px rgb(233 223 204 / .7);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px); } }

.fc-status { top: 0; left: 50%; translate: -50% 0; width: 250px; padding: 14px 16px; }
.fc-title { margin: 0 0 10px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.fc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.fc-steps li { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.fc-steps i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex: none;
}
.fc-steps .ico { width: 11px; height: 11px; stroke-width: 3; }
.fc-steps .done { color: var(--navy); }
.fc-steps .done i { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.fc-steps .now { color: var(--gold-ink); }
.fc-steps .now i { border-color: var(--gold); box-shadow: 0 0 0 0 rgb(184 134 47 / .5); animation: ping 1.8s var(--ease) infinite; }
.fc-steps .now i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.fc-bar { display: block; height: 5px; margin-top: 12px; border-radius: 5px; background: var(--gold-soft); overflow: hidden; }
.fc-bar span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--navy-2), var(--gold));
  animation: fill 4s var(--ease) infinite alternate;
}
[dir="rtl"] .fc-bar span { margin-inline-start: 0; background: linear-gradient(270deg, var(--navy-2), var(--gold)); }
@keyframes fill { from { width: 55%; } to { width: 74%; } }

.fc-next {
  bottom: 0;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  animation-delay: -2.5s;
}
.fc-next small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.fc-next strong { display: block; font-size: .95rem; color: var(--green); line-height: 1.3; }
.fc-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--grad-navy);
  color: #fff;
}
.fc-icon .ico { width: 20px; height: 20px; }
.fc-icon.gold { background: var(--gold-soft); color: var(--gold-ink); }
.fc-icon.gold .ico { width: 26px; height: 26px; stroke-width: 2.2; }

.fc-quality {
  bottom: 8px;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  font-size: .9rem;
  color: var(--navy);
  animation-delay: -4.5s;
}

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding-block: 28px; margin-block: -28px; position: relative; z-index: 2; }
.marquee {
  position: relative;
  z-index: 2;
  margin-block: 8px;
  padding-block: 20px;
  overflow: hidden;
  transform: rotate(-1.6deg);
  background: linear-gradient(90deg, #f3e5c4, #fff4dc 50%, #f3e5c4);
  border-block: 1px solid #e6d2a6;
  box-shadow: 0 18px 40px -26px rgb(138 97 29 / .45);
}
[dir="rtl"] .marquee { transform: rotate(1.6deg); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee-group { display: flex; align-items: center; gap: 30px; padding-inline-end: 30px; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 600; color: var(--navy); white-space: nowrap; }
.marquee .star { width: 1.05rem; height: 1.05rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(84px, 10vw, 144px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--gold-ink);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow .ico { width: 14px; height: 14px; color: var(--gold); animation: spin 12s linear infinite; }

.title {
  font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}
[lang="ar"] .title { line-height: 1.32; letter-spacing: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub { margin: 18px 0 0; color: var(--muted); font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); font-weight: 300; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.about-copy .title { margin-bottom: 26px; }
.body-lg { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); color: var(--navy); font-weight: 500; line-height: 1.6; }
.about-copy p:not(.body-lg):not(.eyebrow) { color: var(--muted); }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.mv-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.mv-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), transparent);
}
[dir="rtl"] .mv-card::before { background: linear-gradient(270deg, var(--gold), var(--gold-2), transparent); }
.mv-k { font-family: var(--f-display); font-size: 1.15rem; color: var(--navy); font-weight: 700; }
.mv-card p { margin: 8px 0 0; color: var(--muted); font-size: .97rem; }

.name-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(40px, 5vw, 60px) 32px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #ffffff 0%, #fbf3e3 100%);
  box-shadow: var(--shadow);
  text-align: center;
}
.name-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23b8862f' stroke-opacity='.14' stroke-width='1'%3E%3Crect x='24' y='24' width='24' height='24'/%3E%3Crect x='24' y='24' width='24' height='24' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 36h10M62 36h10M36 0v10M36 62v10'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%);
}
.medallion {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px -18px rgb(10 42 82 / .35), inset 0 0 0 1px var(--line);
}
.medallion img { width: 118px; height: auto; position: relative; }
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-1 { inset: -14px; border: 2px dashed rgb(184 134 47 / .55); animation: spin 30s linear infinite; }
.ring-2 { inset: -32px; border: 1px solid rgb(184 134 47 / .25); }
.ring-2::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgb(236 199 119 / .35);
}
.ring-2 { animation: spin 14s linear infinite reverse; }
.name-word {
  position: relative;
  margin: 46px 0 6px;
  font-family: var(--f-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.4rem);
  line-height: 1.35;
  font-weight: 700;
  background: var(--grad-gold);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
.name-card figcaption { position: relative; max-width: 32ch; margin-inline: auto; color: var(--muted); }
.name-card figcaption b { color: var(--navy); }

/* ---------- Services: bento ---------- */
.services { background: linear-gradient(180deg, var(--cream) 0%, #f6efe1 100%); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(230px, auto);
  gap: 18px;
}
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--ivory);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(236 199 119 / .28), transparent 60%);
  transition: opacity .4s;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #e2cf9f; }
.tile:hover::before { opacity: 1; }
.tile-a { grid-column: span 2; grid-row: span 2; background: linear-gradient(170deg, #edf3fb 0%, var(--ivory) 62%); }
.tile-b { grid-column: span 2; }
.tile-c { background: linear-gradient(160deg, #fbf1dc 0%, var(--ivory) 70%); }
.tile-e { grid-column: span 2; }
.tile-f { grid-column: span 2; background: linear-gradient(160deg, #eef4fc 0%, var(--ivory) 70%); }

.tile-ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--grad-navy);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgb(14 63 122 / .6);
}
.tile-ico .ico { width: 24px; height: 24px; }
.tile h3 { margin: 18px 0 8px; font-size: clamp(1.3rem, 1.1rem + .5vw, 1.6rem); line-height: 1.25; }
.tile p { margin: 0; color: var(--muted); font-size: .98rem; }
.tile-a h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); }
.tile-a p { font-size: 1.05rem; max-width: 36em; }

.tile-art { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; }
.art-globe svg { width: 100%; max-width: 440px; height: auto; }
.art-globe .arc { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 9; animation: flow 1.6s linear infinite; }

/* clearance: document stack */
.art-docs { min-height: 120px; }
.doc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 116px;
  margin: -58px 0 0 -48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -14px rgb(10 42 82 / .35);
  transition: transform .6s var(--ease);
}
.d1 { transform: translateX(-62px) rotate(-10deg); }
.d2 { transform: translateX(62px) rotate(9deg); }
.tile:hover .d1 { transform: translateX(-80px) rotate(-14deg); }
.tile:hover .d2 { transform: translateX(80px) rotate(13deg); }
.d3 { display: flex; flex-direction: column; gap: 9px; padding: 22px 16px; z-index: 1; }
.d3 i { display: block; height: 6px; border-radius: 4px; background: #e6edf7; }
.d3 i:nth-child(2) { width: 75%; }
.d3 i:nth-child(3) { width: 55%; }
.d3 b {
  position: absolute;
  inset-inline-end: -14px;
  bottom: -12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 5px #fff;
  animation: stamp 3.2s var(--ease) infinite;
}
.d3 b .ico { width: 20px; height: 20px; stroke-width: 3; }
@keyframes stamp {
  0%, 15% { transform: scale(0) rotate(-30deg); }
  30%, 85% { transform: scale(1) rotate(0); }
  100% { transform: scale(0) rotate(0); }
}

/* distribution: moving truck */
.art-road { min-height: 70px; width: 100%; place-items: stretch; }
.road {
  position: absolute;
  top: 50%;
  inset-inline: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, #d9cba9 0 12px, transparent 12px 22px);
}
.stop {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
}
.s1 { inset-inline-start: 22%; }
.s2 { inset-inline-start: 56%; }
.s3 { inset-inline-start: calc(100% - 12px); }
.truck {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: var(--grad-navy);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgb(14 63 122 / .7);
  animation: drive 7s var(--ease) infinite;
}
.truck .ico { width: 22px; height: 22px; }
[dir="rtl"] .truck .ico { transform: scaleX(-1); }
@keyframes drive {
  0% { inset-inline-start: 0; }
  30%, 40% { inset-inline-start: calc(22% - 17px); }
  65%, 75% { inset-inline-start: calc(56% - 17px); }
  100% { inset-inline-start: calc(100% - 46px); }
}

/* continuous plans: calendar wave */
.art-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 320px;
  justify-self: start;
  place-items: stretch;
}
.art-cal span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #dfe8f5;
  animation: cal 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .14s);
}
@keyframes cal {
  0%, 100% { background: #dfe8f5; transform: scale(1); }
  12%, 22% { background: var(--gold-2); transform: scale(1.08); }
}

/* ---------- Statement ---------- */
.statement {
  position: relative;
  padding-block: clamp(110px, 14vw, 210px);
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgb(236 199 119 / .22), transparent 70%),
    var(--cream);
  overflow: hidden;
}
.statement-text {
  max-width: 20ch;
  margin: 0 auto;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 1rem + 4.4vw, 4.8rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  font-weight: 700;
  color: var(--navy);
}
[lang="ar"] .statement-text { line-height: 1.5; letter-spacing: 0; }
.js .statement-text .w { opacity: .14; transition: opacity .5s var(--ease), color .5s; }
.js .statement-text .w.on { opacity: 1; }
.js .statement-text .w.gold.on { color: var(--gold); }

/* ---------- Process ---------- */
.track { position: relative; }
.track-line {
  position: absolute;
  top: 22px;
  inset-inline: 11px 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.track-line span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}
[dir="rtl"] .track-line span { transform-origin: right center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 70px; }
.step-dot {
  position: absolute;
  top: 12px;
  inset-inline-start: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid #d9cba9;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.step-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(3rem, 2.2rem + 2vw, 4.4rem);
  line-height: 1;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px #d9cba9;
  transition: color .5s, -webkit-text-stroke-color .5s;
}
.step h3 { margin: 16px 0 8px; font-size: 1.35rem; line-height: 1.3; }
.step p { margin: 0; color: var(--muted); }
.step.on .step-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgb(236 199 119 / .3); }
.step.on .step-num { color: var(--gold-soft); -webkit-text-stroke-color: var(--gold); }
.no-js-steps .step-dot { background: var(--gold); }

/* ---------- Why ---------- */
.why { padding-top: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  padding: 44px 30px 40px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--ivory);
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #e2cf9f; }
.pillar-badge { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto; }
.pillar-badge .ico:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--gold-soft);
  stroke: var(--gold);
  stroke-width: .5;
  transition: transform .8s var(--ease);
}
.pillar:hover .pillar-badge .ico:first-child { transform: rotate(45deg) scale(1.05); }
.pillar-badge .inner { position: relative; width: 32px; height: 32px; color: var(--navy-2); }
.pillar h3 { margin: 24px 0 10px; font-size: 1.7rem; }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(24px, 5vw, 64px);
  border-radius: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #eaf1fb 0%, var(--ivory) 45%, #f8edd6 100%);
}
.contact-panel .pattern {
  z-index: -1;
  -webkit-mask-image: radial-gradient(circle at 0% 0%, #000, transparent 60%);
  mask-image: radial-gradient(circle at 0% 0%, #000, transparent 60%);
}
[dir="rtl"] .contact-panel .pattern {
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 60%);
  mask-image: radial-gradient(circle at 100% 0%, #000, transparent 60%);
}

.quick { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick .wide { grid-column: 1 / -1; }
.quick a:not(.q a),
.quick .q {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / .78);
  color: var(--ink);
  text-decoration: none;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease);
}
.quick a:not(.q a):hover,
.quick .q:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 30px -20px rgb(10 42 82 / .35); }
.quick a > span:last-child, .quick .q > span:last-child { min-width: 0; }
.quick .q a { display: block; color: var(--navy); font-weight: 600; font-size: .98rem; line-height: 1.5; text-decoration: none; }
.quick .q a:hover { color: var(--gold-ink); text-decoration: underline; }
[dir="rtl"] .quick .q a { text-align: right; }
.q-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-navy);
  color: #fff;
}
.q-ico.wa { background: linear-gradient(135deg, #25a866, var(--green)); }
.q-ico .ico { width: 20px; height: 20px; }
.quick small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.quick b { display: block; color: var(--navy); font-weight: 600; font-size: .98rem; line-height: 1.45; }
.quick b[dir="ltr"] { text-align: start; unicode-bidi: isolate; }
[dir="rtl"] .quick b[dir="ltr"] { text-align: right; }
.quick .mail { font-size: .9rem; overflow-wrap: anywhere; }

.quote {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 34px 70px -34px rgb(10 42 82 / .35);
}
.quote-title { margin: 0 0 20px; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.f { position: relative; }
.f-full { grid-column: 1 / -1; }
.f input, .f select, .f textarea {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 26px 16px 8px;
  border-radius: 16px;
  border: 1px solid #e4d9c4;
  background: #fdfaf4;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.f textarea { min-height: 120px; resize: vertical; }
.f select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230e3f7a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-inline-end: 40px;
}
[dir="rtl"] .f select { background-position: left 16px center; }
.f input[type="tel"], .f input[type="email"] { direction: ltr; }
[dir="rtl"] .f input[type="tel"], [dir="rtl"] .f input[type="email"] { text-align: right; }
.f label {
  position: absolute;
  inset-inline-start: 17px;
  top: 19px;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  transition: top .25s var(--ease), font-size .25s var(--ease), color .25s;
}
.f input:focus + label,
.f input:not(:placeholder-shown) + label,
.f textarea:focus + label,
.f textarea:not(:placeholder-shown) + label,
.f label.static {
  top: 8px;
  font-size: .74rem;
  color: var(--gold-ink);
  font-weight: 600;
}
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(236 199 119 / .3);
}
.quote-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .84rem; }
.quote-status { margin: 8px 0 0; text-align: center; color: var(--gold-ink); font-size: .88rem; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 96px);
  background: linear-gradient(180deg, var(--cream) 0%, #f4e9d2 100%);
  border-top: 1px solid var(--line);
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 38ch; margin: 18px 0 0; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-h { margin: 0 0 6px; font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.footer-col a { color: var(--ink); font-weight: 500; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold-ink); }
.footer-col span { color: var(--muted); font-size: .94rem; }

.wordmark {
  margin: clamp(40px, 6vw, 72px) 0 0;
  text-align: center;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 7.4vw, 8.4rem);
  line-height: 1.3;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(184 134 47 / .5);
  background: var(--grad-gold);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 1.8s var(--ease);
  user-select: none;
}
.js .wordmark { background-size: 0% 100%; }
.js .wordmark.is-in { background-size: 100% 100%; }
[dir="rtl"] .wordmark { background-position: right center; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 8px;
  padding-block: 22px 26px;
  border-top: 1px solid #e3d3ad;
  color: var(--muted);
  font-size: .88rem;
}
.crafted {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #e3d3ad;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .25s, transform .35s var(--ease);
}
.crafted:hover { border-color: var(--navy); transform: translateY(-2px); }
.crafted b { color: var(--gold-ink); font-weight: 700; }

/* Arabic: Kufi for large display text only; Readex Pro for small headings (legibility) */
[lang="ar"] h3,
[lang="ar"] .quote-title,
[lang="ar"] .footer-h,
[lang="ar"] .mv-k,
[lang="ar"] .brand-text strong {
  font-family: var(--f-body);
  font-weight: 600;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-a { grid-column: span 2; grid-row: span 1; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 1; }
  .tile-f { grid-column: span 2; }
  .art-globe svg { max-width: 360px; }
}

@media (max-width: 960px) {
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: rgb(255 253 248 / .97);
    box-shadow: 0 24px 48px -20px rgb(10 42 82 / .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 18px; font-size: 1.02rem; }
  .menu-btn { display: block; }

  .hero { min-height: 0; padding-block: 120px 56px; }
  .hero-grid, .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-stage { width: min(100%, 600px); margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .track-line { display: none; }
  .step-dot { display: none; }
  .step { padding-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header-shell { height: 60px; padding-inline: 8px; }
  .header-cta { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .98rem; }
  .lang { padding: 0 12px; min-height: 40px; }
  .lang .ico { display: none; }

  .hero { padding-top: 104px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .btn-glass.btn-lg { justify-content: center; }
  .hero-flow li + li::before { width: 16px; margin-inline: 8px; }

  .stage-inner { padding-block: 70px 64px; }
  .fc-status { width: 210px; padding: 12px 14px; }
  .fc-steps li { font-size: .74rem; }
  .fc-quality { display: none; }
  .fc-next { left: 50%; translate: -50% 0; bottom: 0; padding: 10px 16px 10px 10px; }
  .tag { font-size: .72rem; padding: 4px 10px; top: 80%; }

  .mv, .fields, .quick, .pillars { grid-template-columns: 1fr; }
  .quick .mail { font-size: .84rem; overflow-wrap: normal; }
  .hero-flow li span { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f { grid-column: auto; }
  .tile { padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .hero-title .line > span { opacity: 1; transform: none; }
  .js .statement-text .w { opacity: 1; }
}
