@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("../fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("../fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("../fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
}

:root {
  --ink: #102a2e;
  --ink-deep: #071a15;
  --emerald: #0d6b57;
  --emerald-bright: #16a17e;
  --turquoise: #6ee7c7;
  --parchment: #f7f4ec;
  --paper: #fdfcf8;
  --white: #fff;
  --slate: #415052;
  --muted: #5c6b69;
  --sage: #dce7df;
  --mist: #e8eeec;
  --brass: #83571c;
  --blue: #274c77;
  --mishkat: #9a6b1b;
  --warraq: #3156b4;
  --border: rgba(16, 42, 46, .13);
  --shadow: 0 32px 90px rgba(7, 26, 21, .1);
  --radius: 24px;
  --shell: min(1240px, calc(100vw - 48px));
  --arabic: "IBM Plex Sans Arabic", sans-serif;
  --latin: "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--arabic);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="ltr"] body { font-family: var(--latin); }

body.menu-open { overflow: hidden; }

::selection { background: var(--turquoise); color: var(--ink-deep); }

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid #58cbb0;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  inset-inline-start: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink-deep);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }

.noise {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(4px);
}
.ambient-one {
  width: 720px;
  height: 720px;
  top: -340px;
  inset-inline-start: -260px;
  background: radial-gradient(circle, rgba(110,231,199,.16), transparent 66%);
}
.ambient-two {
  width: 680px;
  height: 680px;
  top: 380px;
  inset-inline-end: -320px;
  background: radial-gradient(circle, rgba(169,120,50,.09), transparent 70%);
}

.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  inset-inline: 0;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(253, 252, 248, .87);
  border-color: var(--border);
  box-shadow: 0 10px 40px rgba(7, 26, 21, .05);
  backdrop-filter: blur(18px);
}
.nav-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { flex: 0 0 auto; }
.brand-lockup { display: grid; line-height: 1; gap: 5px; }
.brand-lockup strong { font-size: 1.22rem; letter-spacing: -.02em; }
.brand-lockup small { color: var(--muted); font-size: .67rem; letter-spacing: .04em; }
html[dir="ltr"] .brand-lockup small { letter-spacing: .13em; text-transform: uppercase; font-size: .58rem; }

.desktop-nav { display: flex; align-items: center; gap: 36px; }
.desktop-nav a {
  position: relative;
  color: var(--slate);
  font-size: .91rem;
  font-weight: 500;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--emerald);
  transition: width .3s var(--ease);
}
.desktop-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle, [data-language-toggle-bottom] {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--latin);
  font-weight: 700;
  text-decoration: none;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: .73rem;
}
.language-toggle:hover { background: var(--white); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .3s var(--ease), background .3s ease, box-shadow .3s ease, color .3s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .button svg { transform: scaleX(-1); }
.button-small { min-height: 42px; padding-inline: 18px; font-size: .86rem; }
.button-ghost { border-color: var(--border); background: rgba(255,255,255,.55); }
.button-ghost:hover { background: var(--ink); color: var(--white); box-shadow: 0 10px 25px rgba(7,26,21,.12); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 0 14px 32px rgba(7,26,21,.16); }
.button-primary:hover { background: var(--emerald); box-shadow: 0 18px 38px rgba(13,107,87,.22); }
.button-light { width: 100%; background: var(--turquoise); color: var(--ink-deep); }
.button-light:hover { background: #8af0d5; box-shadow: 0 16px 35px rgba(110,231,199,.15); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { display: block; height: 1px; background: var(--ink); transition: transform .25s ease; }
.menu-toggle span + span { margin-top: 6px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { padding: 8px 24px 24px; background: rgba(253,252,248,.98); border-bottom: 1px solid var(--border); }
.mobile-menu nav { display: grid; }
.mobile-menu a { padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 1.08rem; font-weight: 600; }

.hero {
  min-height: 840px;
  padding-top: 186px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 50px 36px;
}
.hero-copy { position: relative; z-index: 2; max-width: 670px; }
.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--emerald);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
}
html[dir="ltr"] .eyebrow, html[dir="ltr"] .section-kicker { letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-mark { width: 30px; height: 1px; background: currentColor; }
.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(4rem, 7.4vw, 7rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.055em;
}
html[dir="rtl"] .hero h1 { line-height: 1.34; letter-spacing: -.035em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--emerald); font-style: normal; }
.hero-lead {
  max-width: 610px;
  margin: 32px 0 0;
  color: var(--slate);
  font-size: clamp(1.05rem, 1.55vw, 1.26rem);
  line-height: 1.9;
}
html[dir="ltr"] .hero-lead { line-height: 1.7; max-width: 640px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.text-link span:last-child { color: var(--emerald); transition: transform .2s ease; }
.text-link:hover span:last-child { transform: translateY(4px); }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,107,87,.09), transparent 68%);
}
.orbit { position: absolute; border: 1px solid rgba(13,107,87,.17); border-radius: 50%; }
.orbit-outer { width: 470px; height: 470px; }
.orbit-inner { width: 294px; height: 294px; border-style: dashed; animation: orbitSpin 45s linear infinite; }
.hero-core {
  position: relative;
  z-index: 2;
  width: 158px;
  height: 158px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--ink);
}
.hero-core::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,231,199,.22), rgba(110,231,199,.06) 42%, transparent 70%);
}
.hero-core img { width: 88px; }
.hero-core span { color: var(--muted); font-size: .73rem; }
.orbit-card {
  position: absolute;
  z-index: 3;
  min-width: 178px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(16,42,46,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 40px rgba(7,26,21,.09);
  backdrop-filter: blur(10px);
}
.orbit-card div { display: grid; gap: 2px; }
.orbit-card strong { font-size: .87rem; }
.orbit-card small { color: var(--muted); font-size: .68rem; }
.project-glyph { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-family: var(--latin); font-weight: 700; }
.glyph-field { color: var(--blue); background: #e9f0f8; }
.glyph-masjid { color: var(--mishkat); background: #fbf1dc; }
.glyph-warraq { color: var(--warraq); background: #edf1ff; }
.orbit-card-one { top: 50px; inset-inline-start: 0; animation: floatOne 7s ease-in-out infinite; }
.orbit-card-two { top: 224px; inset-inline-end: -15px; animation: floatTwo 8s ease-in-out infinite; }
.orbit-card-three { bottom: 26px; inset-inline-start: 58px; animation: floatOne 9s ease-in-out infinite reverse; }
.signal { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 7px rgba(22,161,126,.1); }
.signal-one { top: 88px; inset-inline-end: 104px; }
.signal-two { bottom: 112px; inset-inline-end: 44px; background: var(--brass); box-shadow: 0 0 0 7px rgba(169,120,50,.1); }

.hero-foot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 24px;
  padding-bottom: 36px;
  color: var(--muted);
  font-size: .72rem;
}
.hero-foot-line { height: 1px; background: var(--border); }

.vision-section { padding: 140px 0; background: var(--parchment); border-block: 1px solid rgba(16,42,46,.08); }
.vision-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 120px; }
.section-number { display: block; margin-bottom: 28px; color: var(--brass); font-family: var(--latin); font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.section-kicker { margin-bottom: 18px; }
.section-kicker.light, .section-number.light { color: var(--turquoise); }
.section-intro h2, .section-heading h2, .method-heading h2, .contact-copy h2 {
  margin: 0;
  font-size: clamp(2.55rem, 4.8vw, 5rem);
  line-height: 1.16;
  letter-spacing: -.045em;
}
html[dir="rtl"] .section-intro h2, html[dir="rtl"] .section-heading h2, html[dir="rtl"] .method-heading h2, html[dir="rtl"] .contact-copy h2 { letter-spacing: -.025em; }
.vision-statement > p {
  margin: 62px 0 72px;
  color: var(--slate);
  font-size: clamp(1.35rem, 2.15vw, 2rem);
  line-height: 1.85;
}
html[dir="ltr"] .vision-statement > p { line-height: 1.55; }
.vision-principles { border-top: 1px solid var(--border); }
.vision-principles article {
  display: grid;
  grid-template-columns: 52px 190px 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.vision-principles article > span { color: var(--brass); font-family: var(--latin); font-size: .7rem; }
.vision-principles strong { font-size: .95rem; }
.vision-principles p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

.projects-section { padding-block: 150px 160px; }
.section-heading, .method-heading {
  display: grid;
  grid-template-columns: 1fr .6fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 76px;
}
.section-heading > p, .method-heading > p {
  max-width: 480px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.project {
  min-height: 610px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--white);
  box-shadow: 0 8px 40px rgba(7,26,21,.035);
}
.project:nth-of-type(even) { grid-template-columns: 1.12fr .88fr; }
.project:nth-of-type(even) .project-copy { order: 2; }
.project-copy { padding: clamp(38px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 50px; }
.project-index { color: var(--muted); font-family: var(--latin); font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--slate); font-size: .68rem; font-weight: 600; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.project-field .status-pill { color: var(--blue); }
.project-mishkat .status-pill { color: var(--emerald); }
.project-warraq .status-pill { color: var(--warraq); }
.project-label { margin: 0 0 16px; color: var(--emerald); font-size: .77rem; font-weight: 700; letter-spacing: .03em; }
.project-field .project-label { color: var(--blue); }
.project-mishkat .project-label { color: #83590f; }
.project-warraq .project-label { color: var(--warraq); }
.project h3 { margin: 0; font-size: clamp(2rem, 3.35vw, 3.55rem); line-height: 1.3; letter-spacing: -.04em; }
html[dir="ltr"] .project h3 { line-height: 1.14; }
.project-description { margin: 26px 0 30px; color: var(--slate); font-size: .98rem; line-height: 1.9; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 28px 0 0; border-top: 1px solid var(--border); list-style: none; }
.project-tags li { padding: 7px 11px; border-radius: 999px; background: var(--parchment); color: var(--slate); font-family: var(--arabic); font-size: .68rem; font-weight: 600; }
html[dir="ltr"] .project-tags li { font-family: var(--latin); }
.project-detail-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 24px; color: var(--emerald); font-size: .82rem; font-weight: 700; }
.project-detail-link::after { content: "←"; transition: transform .2s ease; }
html[dir="ltr"] .project-detail-link::after { content: "→"; }
.project-detail-link:hover::after { transform: translateX(-4px); }
html[dir="ltr"] .project-detail-link:hover::after { transform: translateX(4px); }

.project-stage { position: relative; min-height: 610px; display: grid; place-items: center; overflow: hidden; }
.project-field .project-stage { background: #eaf0f6; }
.project-mishkat .project-stage { background: #e7efe9; }
.project-warraq .project-stage { background: #e8ecf7; }
.stage-grid {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image: linear-gradient(rgba(16,42,46,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(16,42,46,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 25%, #000 78%, transparent 100%);
}
.stage-caption { position: absolute; bottom: 26px; inset-inline-start: 30px; color: rgba(16,42,46,.6); font-size: .66rem; }

.field-phone {
  position: relative;
  z-index: 2;
  width: min(295px, 72%);
  padding: 18px;
  border: 6px solid #16304d;
  border-radius: 38px;
  background: #fbfcfd;
  box-shadow: 0 36px 70px rgba(39,76,119,.25);
  transform: rotate(-3deg);
}
html[dir="rtl"] .field-phone { transform: rotate(3deg); }
.mock-status { display: flex; justify-content: space-between; color: #405b75; font-family: var(--latin); font-size: .57rem; }
.mock-status i { width: 20px; height: 7px; border: 1px solid #688095; border-radius: 3px; }
.mock-greeting { display: grid; gap: 4px; margin: 38px 0 20px; }
.mock-greeting small, .mock-route small { color: #506b84; font-size: .62rem; }
.mock-greeting strong { color: #16304d; font-size: 1.16rem; }
.mock-route { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; padding: 14px; border-radius: 15px; background: #16304d; color: var(--white); box-shadow: 0 10px 20px rgba(22,48,77,.16); }
.route-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #dce9f4; color: #16304d; }
.mock-route div:nth-child(2) { display: grid; }
.mock-route small { color: rgba(255,255,255,.62); }
.mock-route strong { font-size: .72rem; }
.mock-tasks { display: grid; gap: 10px; margin: 18px 2px 8px; }
.mock-tasks span { height: 46px; border: 1px solid #e3eaf0; border-radius: 12px; background: linear-gradient(90deg,#eef3f7 25%,transparent 25%); }

.mishkat-dashboard {
  position: relative;
  z-index: 2;
  width: min(510px, 83%);
  padding: 24px;
  border: 1px solid rgba(16,42,46,.11);
  border-radius: 25px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 34px 70px rgba(13,80,62,.17);
  transform: perspective(900px) rotateY(4deg) rotateX(1deg);
}
html[dir="rtl"] .mishkat-dashboard { transform: perspective(900px) rotateY(-4deg) rotateX(1deg); }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #e6ece8; }
.dashboard-top > div { display: grid; }
.dashboard-top small { color: var(--emerald); font-size: .63rem; font-weight: 700; }
.dashboard-top strong { margin-top: 4px; font-size: 1.1rem; }
.dashboard-top > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--white); background: var(--emerald); }
.progress-card { margin-top: 20px; padding: 17px; border-radius: 15px; color: var(--white); background: var(--ink-deep); }
.progress-card > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.progress-card small { color: rgba(255,255,255,.65); }
.progress-card strong { font-family: var(--latin); font-size: 1.2rem; }
.progress-track { height: 5px; margin-top: 14px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.14); }
.progress-track i { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--turquoise); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dashboard-grid > div { display: grid; gap: 2px; min-height: 86px; padding: 16px; border: 1px solid #e5ebe7; border-radius: 14px; background: #fbfdfb; }
.dashboard-grid span { color: var(--emerald); font-family: var(--latin); font-size: 1.3rem; font-weight: 700; }
.dashboard-grid small { color: var(--muted); font-size: .63rem; }
.dashboard-grid .wide { position: relative; grid-column: 1 / -1; min-height: 72px; align-content: center; background: #e7f5ed; }
.dashboard-grid .wide strong { font-size: .8rem; }
.dashboard-grid .wide b { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }

.warraq-window {
  position: relative;
  z-index: 2;
  width: min(560px, 86%);
  overflow: hidden;
  border: 1px solid rgba(24,53,113,.16);
  border-radius: 22px;
  background: #fdfdff;
  box-shadow: 0 34px 70px rgba(49,86,180,.2);
  transform: rotate(1.5deg);
}
html[dir="rtl"] .warraq-window { transform: rotate(-1.5deg); }
.window-bar { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 15px; border-bottom: 1px solid #e3e7f1; background: #f4f6fb; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4dae8; }
.window-bar i:first-child { background: #6d87ca; }
.window-bar span { margin-inline-start: auto; margin-inline-end: auto; color: #5d6d95; font-size: .62rem; }
.warraq-body { display: grid; grid-template-columns: 1fr .68fr; gap: 20px; padding: 26px; }
.document-page { min-height: 270px; padding: 30px 24px; border: 1px solid #e1e5ee; background: #fff; box-shadow: 0 12px 24px rgba(41,58,95,.08); }
.doc-title { width: 56%; height: 10px; margin: 0 auto 22px; border-radius: 4px; background: #243c73; }
.doc-line { height: 5px; margin: 9px 0; border-radius: 4px; background: #c5ccdb; }
.doc-line.long { width: 100%; }.doc-line.short { width: 62%; }
.doc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.doc-columns span { height: 85px; border-radius: 3px; background: repeating-linear-gradient(to bottom,#cdd3df 0,#cdd3df 4px,transparent 4px,transparent 12px); }
.pipeline { align-self: center; display: grid; }
.pipeline > div { position: relative; display: grid; grid-template-columns: 26px 1fr 18px; align-items: center; gap: 8px; min-height: 58px; border-bottom: 1px solid #e6e9f1; }
.pipeline span { color: #53617f; font-family: var(--latin); font-size: .58rem; }
.pipeline small { font-size: .66rem; font-weight: 600; }
.pipeline i { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid #c4cada; border-radius: 50%; color: var(--white); font-size: .55rem; font-style: normal; }
.pipeline i.done { border-color: var(--warraq); background: var(--warraq); }
.pipeline i.active { border: 4px solid #bdcafa; background: var(--white); }

.method-section { padding: 150px 0 160px; color: var(--white); background: var(--ink-deep); }
.method-heading > p { color: rgba(255,255,255,.61); }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.method-steps li { position: relative; min-height: 340px; padding: 24px 28px 30px; border-inline-start: 1px solid rgba(255,255,255,.12); }
.method-steps li:first-child { border-inline-start: 0; }
.method-steps li > span { color: rgba(255,255,255,.62); font-family: var(--latin); font-size: .66rem; }
.step-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 64px 0 30px; border: 1px solid rgba(110,231,199,.35); border-radius: 18px; color: var(--turquoise); font-family: var(--latin); font-size: 1.2rem; }
.method-steps strong { display: block; margin-bottom: 15px; font-size: 1.2rem; }
.method-steps p { margin: 0; color: rgba(255,255,255,.55); font-size: .86rem; line-height: 1.8; }

.conviction-section { display: grid; grid-template-columns: 160px 1fr; align-items: start; gap: 70px; padding-block: 150px; }
.conviction-mark { width: 110px; height: 110px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 30px; background: var(--parchment); }
.conviction-mark img { width: 62px; }
.conviction-section blockquote { margin: 0; }
.conviction-section blockquote p { margin: 0; max-width: 950px; font-size: clamp(2.1rem, 4.1vw, 4.25rem); font-weight: 600; line-height: 1.5; letter-spacing: -.04em; }
html[dir="ltr"] .conviction-section blockquote p { line-height: 1.25; }
.conviction-section blockquote footer { margin-top: 32px; color: var(--emerald); font-size: .8rem; font-weight: 700; }

.contact-section { padding: 140px 0; background: var(--emerald); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 110px; align-items: center; }
.contact-copy > p:last-child { max-width: 580px; margin: 32px 0 0; color: rgba(255,255,255,.84); line-height: 1.9; }
.contact-section .section-number.light, .contact-section .section-kicker.light { color: #b9f4e4; }
.contact-card { padding: clamp(26px, 4vw, 46px); border: 1px solid rgba(255,255,255,.14); border-radius: 28px; background: var(--ink-deep); box-shadow: 0 30px 80px rgba(7,26,21,.24); }
.form-row { display: grid; gap: 9px; margin-bottom: 22px; }
.form-row label { color: rgba(255,255,255,.68); font-size: .75rem; font-weight: 600; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  caret-color: var(--turquoise);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--turquoise); }
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,.28); }
.form-row input[aria-invalid="true"], .form-row textarea[aria-invalid="true"] { border-color: #ffaea6; }
.contact-card .button { margin-top: 10px; }
.form-status { min-height: 20px; margin: 14px 0 0; color: var(--turquoise); font-size: .75rem; text-align: center; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.turnstile-row { min-height: 68px; margin: 4px 0 12px; }
.form-note { margin: 16px 0 0; color: rgba(255,255,255,.72); font-size: .68rem; line-height: 1.75; text-align: center; }
.form-note a { color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 3px; }

.site-footer { padding: 72px 0 24px; color: var(--white); background: #04110e; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr auto; gap: 70px; align-items: center; padding-bottom: 58px; }
.footer-brand .brand-lockup small { color: rgba(255,255,255,.68); }
.footer-main > p { margin: 0; max-width: 380px; color: rgba(255,255,255,.5); font-size: .85rem; line-height: 1.8; }
.footer-main nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 34px; }
.footer-main nav a { color: rgba(255,255,255,.66); font-size: .8rem; transition: color .2s ease; }
.footer-main nav a:hover { color: var(--turquoise); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.68); font-size: .68rem; }
.footer-bottom button { border: 0; background: transparent; color: rgba(255,255,255,.68); cursor: pointer; font-size: inherit; }
.back-top { color: rgba(255,255,255,.68); }

/* Institutional pages */
.inner-page .site-header { background: rgba(253,252,248,.92); border-color: var(--border); backdrop-filter: blur(18px); }
.page-hero { padding: 172px 0 112px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(220,231,223,.52), rgba(253,252,248,.2) 54%, rgba(110,231,199,.1)); }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 58px; color: var(--muted); font-size: .76rem; }
.breadcrumb a { color: var(--emerald); font-weight: 600; }
.page-hero .section-kicker { margin-bottom: 22px; }
.page-hero h1 { max-width: 990px; margin: 0; font-size: clamp(3.1rem, 6.2vw, 6.4rem); line-height: 1.12; letter-spacing: -.052em; }
html[dir="rtl"] .page-hero h1 { letter-spacing: -.032em; line-height: 1.28; }
.page-lead { max-width: 860px; margin: 34px 0 0; color: var(--slate); font-size: clamp(1.08rem, 1.65vw, 1.32rem); line-height: 1.9; }
html[dir="ltr"] .page-lead { line-height: 1.72; }

.content-section { padding: 108px 0; border-bottom: 1px solid var(--border); }
.content-section:nth-of-type(even) { background: rgba(247,244,236,.58); }
.content-split { display: grid; grid-template-columns: minmax(220px,.62fr) minmax(0,1.38fr); gap: clamp(52px,9vw,130px); align-items: start; }
.content-label { position: sticky; top: 125px; }
.content-label > span, .inner-card > span { display: block; margin-bottom: 18px; color: var(--emerald); font-family: var(--latin); font-size: .72rem; font-weight: 700; letter-spacing: .13em; }
.content-label h2 { margin: 0; font-size: clamp(1.75rem,3.2vw,3rem); line-height: 1.35; letter-spacing: -.035em; }
html[dir="ltr"] .content-label h2 { line-height: 1.15; }
.content-label.wide { position: static; margin-bottom: 48px; }
.prose { max-width: 790px; }
.prose p { margin: 0; color: var(--slate); font-size: 1.11rem; line-height: 2; }
html[dir="ltr"] .prose p { line-height: 1.82; }
.prose p + p { margin-top: 24px; }
.prose ul { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.prose li { position: relative; padding-inline-start: 29px; color: var(--slate); font-size: 1.02rem; line-height: 1.85; }
.prose li::before { content: ""; position: absolute; top: .88em; inset-inline-start: 0; width: 9px; height: 9px; border: 2px solid var(--emerald); border-radius: 50%; }
.muted-section { background: var(--parchment) !important; }

.inner-card-grid, .principles-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inner-card { min-height: 290px; padding: 34px; border: 1px solid var(--border); border-radius: 24px; background: var(--white); transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.project-link-card:hover { transform: translateY(-5px); border-color: rgba(13,107,87,.32); box-shadow: 0 22px 50px rgba(7,26,21,.08); }
.inner-card h2, .inner-card h3 { margin: 0; font-size: 1.55rem; line-height: 1.35; }
.inner-card p { margin: 18px 0 0; color: var(--muted); line-height: 1.75; }
.inner-card strong { display: block; margin-top: 35px; color: var(--emerald); font-size: .76rem; }
.principles-page-grid { grid-template-columns: repeat(2, 1fr); }
.principle-card { min-height: 270px; }
.principle-card h2 { font-size: 1.75rem; }

.project-fact-band { color: var(--white); background: var(--ink-deep); }
.project-fact-band .shell { display: grid; grid-template-columns: 1fr 1fr; }
.project-fact-band .shell > div { min-height: 170px; display: grid; align-content: center; gap: 10px; padding: 30px 0; }
.project-fact-band .shell > div + div { padding-inline-start: 70px; border-inline-start: 1px solid rgba(255,255,255,.15); }
.project-fact-band span { color: rgba(255,255,255,.55); font-size: .72rem; font-weight: 600; }
.project-fact-band strong { font-size: clamp(1.2rem,2.1vw,1.75rem); }
.project-accent-field { background: #16304d; }
.project-accent-mishkat { background: #164e40; }
.project-accent-warraq { background: #243c73; }

.inner-cta { padding: 110px 0; text-align: center; background: var(--sage); }
.inner-cta .shell { display: grid; justify-items: center; }
.inner-cta p { max-width: 850px; margin: 0 0 32px; font-size: clamp(1.6rem,3.2vw,3rem); font-weight: 600; line-height: 1.5; }

.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--paper); }
.error-shell { width: min(760px, calc(100% - 32px)); padding: 70px 0; text-align: center; }
.error-shell > img { margin: 0 auto 24px; }
.error-code { margin: 0; color: var(--emerald); font-family: var(--latin); font-size: .8rem; font-weight: 700; letter-spacing: .18em; }
.error-shell h1 { margin: 12px 0 18px; font-size: clamp(2.5rem,8vw,5.5rem); line-height: 1.2; }
.error-shell > p:not(.error-code) { max-width: 560px; margin: 0 auto 30px; color: var(--slate); line-height: 1.9; }
.error-english { max-width: 560px; margin: 50px auto 0; padding-top: 32px; border-top: 1px solid var(--border); }
.error-english h2 { margin: 0 0 8px; font-size: 1.35rem; }
.error-english p { margin: 0 0 14px; color: var(--muted); }
.error-english a { color: var(--emerald); font-weight: 700; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 1; transform: translateY(24px); transition: transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.method-steps .reveal:nth-child(2) { transition-delay: .08s; }
.method-steps .reveal:nth-child(3) { transition-delay: .16s; }
.method-steps .reveal:nth-child(4) { transition-delay: .24s; }

@keyframes floatOne { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatTwo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

@media (max-width: 1060px) {
  :root { --shell: min(100% - 36px, 900px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 160px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 580px; }
  .hero-foot { margin-top: -25px; }
  .vision-grid, .section-heading, .method-heading, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .vision-statement > p { margin-top: 0; }
  .project, .project:nth-of-type(even) { grid-template-columns: 1fr; }
  .project:nth-of-type(even) .project-copy { order: initial; }
  .project-stage { min-height: 540px; }
  .method-steps { grid-template-columns: 1fr 1fr; }
  .method-steps li:nth-child(3) { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .method-steps li:nth-child(4) { border-top: 1px solid rgba(255,255,255,.12); }
  .contact-grid { max-width: 760px; }
  .inner-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 28px); --radius: 18px; }
  html { scroll-padding-top: 78px; }
  .nav-shell { min-height: 72px; }
  .brand img { width: 38px; height: 38px; }
  .brand-lockup strong { font-size: 1.05rem; }
  .desktop-cta { display: none; }
  .hero { padding-top: 128px; gap: 20px; }
  .hero h1 { font-size: clamp(3.35rem, 18vw, 5.1rem); }
  html[dir="ltr"] .hero h1 { font-size: clamp(3.1rem, 15vw, 4.6rem); }
  .hero-lead { font-size: 1rem; line-height: 1.85; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; margin-top: 30px; }
  .hero-visual { min-height: 470px; margin-inline: -10px; }
  .orbit-outer { width: 360px; height: 360px; }
  .orbit-inner { width: 230px; height: 230px; }
  .hero-core { width: 126px; height: 126px; border-radius: 35px; }
  .hero-core img { width: 51px; }
  .orbit-card { min-width: 142px; gap: 8px; padding: 9px; border-radius: 13px; }
  .orbit-card strong { font-size: .7rem; }.orbit-card small { font-size: .56rem; }
  .project-glyph { width: 31px; height: 31px; border-radius: 9px; }
  .orbit-card-one { top: 45px; inset-inline-start: 0; }
  .orbit-card-two { top: 210px; inset-inline-end: 0; }
  .orbit-card-three { bottom: 35px; inset-inline-start: 18px; }
  .signal-one { top: 75px; inset-inline-end: 54px; }.signal-two { bottom: 95px; inset-inline-end: 36px; }
  .hero-foot { grid-template-columns: 1fr; gap: 10px; padding-bottom: 28px; text-align: center; }
  .hero-foot-line { display: none; }
  .vision-section, .projects-section, .method-section, .conviction-section, .contact-section { padding-block: 92px; }
  .vision-grid { gap: 42px; }
  .section-intro h2, .section-heading h2, .method-heading h2, .contact-copy h2 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .vision-statement > p { margin: 0 0 50px; font-size: 1.25rem; }
  .vision-principles article { grid-template-columns: 36px 1fr; gap: 8px 14px; }
  .vision-principles p { grid-column: 2; }
  .section-heading, .method-heading { margin-bottom: 48px; }
  .project { min-height: auto; margin-bottom: 20px; border-radius: 24px; }
  .project-copy { padding: 30px 24px 34px; }
  .project-meta { margin-bottom: 34px; }
  .project h3 { font-size: 2.1rem; }
  .project-description { font-size: .91rem; }
  .project-stage { min-height: 410px; }
  .field-phone { width: 240px; }
  .mishkat-dashboard { width: 90%; padding: 16px; }
  .warraq-window { width: 92%; }
  .warraq-body { grid-template-columns: 1fr; padding: 18px; }
  .pipeline { grid-template-columns: 1fr 1fr 1fr; }
  .pipeline > div { grid-template-columns: 1fr; justify-items: center; text-align: center; border: 0; border-inline-start: 1px solid #e6e9f1; }
  .pipeline > div:first-child { border-inline-start: 0; }
  .document-page { min-height: 180px; }
  .method-steps { grid-template-columns: 1fr; }
  .method-steps li { min-height: auto; padding: 26px 0 38px; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .method-steps li:first-child { border-top: 0; }
  .step-icon { margin: 34px 0 22px; }
  .conviction-section { grid-template-columns: 1fr; gap: 38px; }
  .conviction-mark { width: 88px; height: 88px; }
  .conviction-section blockquote p { font-size: 2rem; line-height: 1.55; }
  .contact-grid { gap: 46px; }
  .contact-card { border-radius: 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .footer-main nav { max-width: 250px; }
  .footer-bottom { align-items: flex-start; flex-wrap: wrap; }
  .page-hero { padding: 126px 0 76px; }
  .breadcrumb { margin-bottom: 38px; }
  .page-hero h1 { font-size: clamp(2.75rem,13vw,4.4rem); }
  .content-section { padding: 76px 0; }
  .content-split { grid-template-columns: 1fr; gap: 34px; }
  .content-label { position: static; }
  .prose p { font-size: 1rem; }
  .principles-page-grid { grid-template-columns: 1fr; }
  .inner-card { min-height: auto; padding: 26px; border-radius: 20px; }
  .project-fact-band .shell { grid-template-columns: 1fr; }
  .project-fact-band .shell > div { min-height: 125px; }
  .project-fact-band .shell > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .inner-cta { padding: 78px 0; }
}

@media (max-width: 400px) {
  .language-toggle { min-width: 38px; min-height: 38px; }
  .menu-toggle { width: 40px; height: 40px; }
  .brand-lockup small { display: none; }
  .hero h1 { font-size: 3.2rem; }
  .orbit-outer { width: 325px; height: 325px; }
  .orbit-card-three { inset-inline-start: 2px; }
  .status-pill { padding-inline: 8px; }
}

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