
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/tajawal-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFC;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/tajawal-arabic-500-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFC;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/tajawal-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFC;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/tajawal-arabic-800-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFC;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/tajawal-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+2000-206F;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/tajawal-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+2000-206F;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/tajawal-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+2000-206F;
  font-display: swap;
}

:root {
  --bg0: #0A0A0A;
  --panel: #141414;
  --black: #141414;
  --midgray: #8A8A85;
  --linegray: #333330;
  --lightonblack: #9A9A9A;
  --softgray: #C4C4BF;
  --white: #FFFFFF;
  --accent: #C9703F;
  --cardfill: rgba(255,255,255,0.045);
  --cardfill-hover: rgba(255,255,255,0.075);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  color: var(--white);
  background: var(--bg0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="ltr"] body, html[dir="ltr"] * { font-family: 'Tajawal', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; position: relative; }

::selection { background: var(--white); color: var(--bg0); }

/* ---------- scroll reveal ----------
   Safe by default: content is fully visible (opacity:1) unless JS confirms it can
   manage the reveal animation AND watch every element — so no-JS browsers, crawlers,
   print/export, and any edge case where a trigger is missed never end up with
   permanently invisible content. Only html.reveal-ready (set by JS once the
   IntersectionObserver is wired up) switches to the animated hidden→shown state. */
[data-reveal] { opacity: 1; transform: none; }
html.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.2,.7,.3,1), transform .75s cubic-bezier(.2,.7,.3,1);
}
html.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.stagger [data-reveal-child] { opacity: 1; transform: none; }
html.reveal-ready .stagger [data-reveal-child] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
html.reveal-ready .stagger.is-visible [data-reveal-child] { opacity: 1; transform: translateY(0); }
html.reveal-ready .stagger.is-visible [data-reveal-child]:nth-child(1) { transition-delay: .02s; }
html.reveal-ready .stagger.is-visible [data-reveal-child]:nth-child(2) { transition-delay: .1s; }
html.reveal-ready .stagger.is-visible [data-reveal-child]:nth-child(3) { transition-delay: .18s; }
html.reveal-ready .stagger.is-visible [data-reveal-child]:nth-child(4) { transition-delay: .26s; }
html.reduced-motion [data-reveal], html.reduced-motion .stagger [data-reveal-child] {
  opacity: 1 !important; transform: none !important; transition: none !important;
}

/* ---------- ghost numerals ---------- */
.ghost-num {
  position: absolute; top: 6px; inset-inline-end: 0;
  font-size: clamp(90px, 14vw, 190px); font-weight: 700; line-height: 1;
  color: var(--white); opacity: 0.05; pointer-events: none; z-index: 0;
  user-select: none;
}

/* ---------- vertical index rail ---------- */
.rail {
  position: fixed; top: 50%; inset-inline-start: 26px; transform: translateY(-50%);
  z-index: 90; display: none; flex-direction: column; gap: 18px;
}
.rail-dot {
  display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer;
  padding: 2px 0; font-family: inherit; color: var(--lightonblack);
}
.rail-num {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  opacity: 0; width: 0; overflow: hidden; white-space: nowrap;
  transition: opacity .25s ease, width .25s ease;
}
.rail-dot .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--linegray); transition: all .25s ease; flex-shrink: 0; }
.rail-dot:hover .rail-num, .rail-dot.active .rail-num { opacity: 1; width: 108px; }
.rail-dot:hover .dot, .rail-dot.active .dot { background: var(--accent); transform: scale(1.6); }
.rail-dot.active .rail-num { color: var(--accent); font-weight: 700; }
.rail-num .kicker-num { color: var(--accent); }

/* ---------- nav ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(10px);
  border-bottom: none;
  transition: padding .25s ease, background .25s ease;
}
header.site-nav.scrolled { background: rgba(10,10,10,0.95); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; transition: padding .25s ease;
  max-width: 1040px; margin: 0 auto;
}
header.site-nav.scrolled .nav-inner { padding: 11px 28px; }
.nav-logo { height: 34px; display: block; transition: height .25s ease; }
header.site-nav.scrolled .nav-logo { height: 27px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--lightonblack); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: color .15s; position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 0; height: 1px;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.lang-btn {
  border: 1px solid var(--linegray); background: transparent; color: var(--lightonblack);
  font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0.5px;
  padding: 7px 16px; border-radius: 20px; cursor: pointer; transition: all .15s;
}
.lang-btn:hover { background: var(--white); color: var(--bg0); border-color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; }

/* ---------- hero ---------- */
.hero {
  background: var(--bg0); color: var(--white);
  min-height: 94vh; display: flex; align-items: center;
  padding: 120px 0 90px; position: relative; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.12) brightness(0.72);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.58) 0%, rgba(8,8,8,0.82) 55%, rgba(8,8,8,0.96) 100%);
}
.hero-bg-mark {
  position: absolute; top: 50%; inset-inline-end: -8%; width: min(720px, 62vw);
  transform: translateY(-50%); opacity: 0.08; pointer-events: none; z-index: 0;
}
.hero-bg-mark img { width: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg-mark img { animation: driftMark 26s ease-in-out infinite; }
}
@keyframes driftMark {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(3.5deg) scale(1.05); }
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo { height: 66px; margin-bottom: 46px; display: block; }
.hero-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px; color: var(--lightonblack);
  margin-bottom: 22px; text-transform: uppercase;
}
html[dir="rtl"] .hero-eyebrow { text-transform: none; letter-spacing: 0.5px; }
.hero h1 { max-width: 780px; margin-bottom: 24px; }
.hero h1 .h-lead {
  font-size: clamp(32px, 5vw, 60px); font-weight: 700; line-height: 1.22;
  color: var(--white); margin-bottom: 8px;
}
.hero h1 .h-sub {
  font-size: clamp(16px, 2vw, 21px); font-weight: 400; line-height: 1.55;
  color: var(--lightonblack); max-width: 620px;
}
html[dir="rtl"] .hero h1 .h-lead[data-lang="ar"],
html[dir="ltr"] .hero h1 .h-lead[data-lang="en"],
html[dir="rtl"] .hero h1 .h-sub[data-lang="ar"],
html[dir="ltr"] .hero h1 .h-sub[data-lang="en"] { display: block; }
p.hero-sub {
  font-size: 15px; color: var(--lightonblack); max-width: 560px; line-height: 1.7;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-block; background: var(--white); color: var(--bg0);
  font-weight: 700; font-size: 14px; padding: 15px 34px; border-radius: 2px;
  text-decoration: none; transition: transform .2s ease, opacity .2s ease;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--accent);
  font-weight: 700; font-size: 14px; padding: 14px 33px; border-radius: 2px;
  border: 1px solid var(--accent); text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  margin-inline-start: 14px;
}
.btn-secondary:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }

.scroll-cue {
  position: absolute; bottom: 34px; inset-inline-start: 0; width: 100%;
  display: flex; justify-content: center; z-index: 1;
}
.scroll-cue span {
  display: block; width: 1px; height: 34px; background: var(--lightonblack);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span { animation: bounceCue 1.9s ease-in-out infinite; }
}
@keyframes bounceCue {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50% { transform: scaleY(0.55); opacity: 1; }
}

/* ---------- sections ---------- */
section { padding: 100px 0; position: relative; background: var(--bg0); }
section.beat-dark { background: var(--panel); }
.section-kicker { font-size: 11px; font-weight: 700; color: var(--lightonblack); letter-spacing: 1px; margin-bottom: 16px; text-transform: uppercase; position: relative; z-index: 1; }
.section-kicker .kicker-num { color: var(--accent); }
html[dir="rtl"] .section-kicker { text-transform: none; }
h2.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 400; color: var(--white); margin-bottom: 22px; position: relative; z-index: 1; }
p.section-gov { font-size: 15px; color: var(--softgray); max-width: 620px; line-height: 1.7; margin-bottom: 44px; position: relative; z-index: 1; }
p.body-copy { font-size: 14.5px; color: var(--softgray); max-width: 720px; line-height: 1.9; margin-bottom: 38px; position: relative; z-index: 1; }
p.lead-in { font-size: 13.5px; font-weight: 700; color: var(--lightonblack); margin-bottom: 24px; position: relative; z-index: 1; }

/* ---------- card base ---------- */
.card {
  background: var(--cardfill); border-radius: 4px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), background .3s ease;
}
.card:hover { transform: translateY(-5px); background: var(--cardfill-hover); }
.card h3 { font-size: 15.5px; font-weight: 700; color: var(--white); }
.card p { font-size: 13px; color: var(--lightonblack); line-height: 1.7; }

/* ---------- about bento ---------- */
.bento-3 { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 16px; position: relative; z-index: 1; }
.bento-lead { grid-column: 1; grid-row: 1 / 3; justify-content: center; padding: 36px 28px; }
.bento-lead h3 { font-size: 19px; }
.bento-lead p { font-size: 13.5px; }
.bento-3 > .card:nth-child(2) { grid-column: 2; grid-row: 1; }
.bento-3 > .card:nth-child(3) { grid-column: 2; grid-row: 2; }

/* ---------- photo band ---------- */
.photo-band {
  position: relative; min-height: 62vh; display: flex; align-items: center;
  padding: 90px 0; overflow: hidden; text-align: center;
}
.photo-band-media { position: absolute; inset: 0; z-index: 0; }
.photo-band-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.68);
}
.photo-band-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.42) 0%, rgba(8,8,8,0.8) 100%);
}
.photo-band-inner { position: relative; z-index: 1; margin: 0 auto; }
.photo-band .section-kicker { color: var(--softgray); }
.photo-band-quote {
  font-size: clamp(22px, 3.6vw, 36px); color: var(--white); line-height: 1.5;
  font-weight: 400; max-width: 780px; margin: 0 auto;
}

/* ---------- manifesto (why) ---------- */
.offset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 1; }
.principle-card {
  background: var(--cardfill); border-radius: 4px; padding: 26px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), background .3s ease;
}
.principle-card:hover { background: var(--cardfill-hover); transform: translateY(-5px); }
.offset-grid > .principle-card:nth-child(even) { transform: translateY(26px); }
.offset-grid > .principle-card:nth-child(even):hover { transform: translateY(21px); }
.principle-card .p-num { font-size: 12px; font-weight: 700; color: var(--lightonblack); }
.principle-card h3 { font-size: 14.5px; font-weight: 700; color: var(--white); }
.principle-card p { font-size: 12.5px; color: var(--lightonblack); line-height: 1.7; }

/* ---------- vision/mission ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; position: relative; z-index: 1; }
.vm-mission { margin-top: 64px; }
.vm-block h3.vm-label { font-size: 18px; font-weight: 700; color: var(--softgray); margin-bottom: 12px; }
.vm-block p.vm-gov { font-size: 14px; color: var(--white); margin-bottom: 22px; line-height: 1.7; }
.vm-points { display: flex; flex-direction: column; gap: 10px; }
.vm-point {
  background: var(--cardfill); border-radius: 4px; padding: 15px 18px; font-size: 13px; color: var(--softgray); line-height: 1.6;
  transition: background .25s ease;
}
.vm-point:hover { background: var(--cardfill-hover); }

/* ---------- services ---------- */
.service-tier { margin-bottom: 68px; position: relative; z-index: 1; }
.service-tier:last-child { margin-bottom: 0; }
h3.tier-title { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
p.tier-gov { font-size: 13.5px; color: var(--lightonblack); margin-bottom: 30px; }
.bento-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-services .card:first-child { grid-column: span 2; }

/* ---------- methodology ---------- */
.method-grid { grid-template-columns: repeat(2, 1fr); }
.method-grid .principle-card { padding: 34px 28px; }
.method-grid .p-num { font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: rgba(255,255,255,0.22); line-height: 1; margin-bottom: 4px; }
.method-grid h3 { font-size: 16.5px; }
.method-grid p { font-size: 13px; }

/* ---------- who we serve ---------- */
.serve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; position: relative; z-index: 1; }
.serve-card {
  background: var(--cardfill); border-radius: 4px; padding: 34px 28px; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), background .3s ease;
}
.serve-card:hover { transform: translateY(-5px); background: var(--cardfill-hover); }
.serve-card .serve-ghost {
  position: absolute; top: -8px; inset-inline-end: 6px; font-size: 90px; font-weight: 700;
  color: var(--white); opacity: 0.045; z-index: 0; user-select: none;
}
.serve-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; position: relative; z-index: 1; color: var(--white); }
.serve-points { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.serve-point { font-size: 13px; color: var(--softgray); line-height: 1.65; padding-inline-start: 14px; position: relative; }
.serve-point::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--lightonblack);
}
.serve-closing { margin-top: 30px; font-size: 13.5px; font-weight: 700; color: var(--white); position: relative; z-index: 1; }

/* ---------- contact ---------- */
.contact {
  background: var(--panel); color: var(--white); text-align: center; padding: 110px 0 60px;
  position: relative; overflow: hidden;
}
.contact-mark {
  position: absolute; top: -10%; inset-inline-end: -10%; width: min(560px, 60vw); opacity: 0.09; z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .contact-mark { animation: driftMark 30s ease-in-out infinite; }
}
.contact-inner { position: relative; z-index: 1; }
.contact-logo { height: 58px; margin: 0 auto 44px; display: block; }
.contact h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; margin-bottom: 14px; }
.contact p.contact-tag { font-size: 14px; color: var(--lightonblack); margin-bottom: 58px; }
.contact-fields { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-bottom: 60px; }
.contact-field {
  padding: 22px 42px; border-radius: 4px; transition: background .2s ease;
  min-width: 200px;
}
.contact-field:hover { background: var(--cardfill); }
.contact-field .field-label { font-size: 11.5px; color: var(--lightonblack); margin-bottom: 10px; letter-spacing: 1px; }
.contact-field .field-value {
  font-size: 15px; font-weight: 700; color: var(--white); text-decoration: none;
  position: relative; padding-bottom: 3px;
}
.contact-field .field-value::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 50%; width: 0; height: 1px;
  background: var(--accent); transition: width .25s ease, inset-inline-start .25s ease;
}
.contact-field:hover .field-value::after { width: 100%; inset-inline-start: 0; }
footer.site-footer {
  border-top: none; padding-top: 28px; font-size: 11.5px; color: #6B6B6B;
}
.social-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cardfill); color: var(--softgray);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-icon svg { width: 17px; height: 17px; }
.social-icon:hover { background: var(--cardfill-hover); color: var(--white); transform: translateY(-2px); }

/* ---------- language visibility ---------- */
[data-lang] { display: none; }
html[dir="rtl"] [data-lang="ar"] { display: block; }
html[dir="rtl"] span[data-lang="ar"], html[dir="rtl"] a[data-lang="ar"] { display: inline; }
html[dir="ltr"] [data-lang="en"] { display: block; }
html[dir="ltr"] span[data-lang="en"], html[dir="ltr"] a[data-lang="en"] { display: inline; }

/* ---------- responsive ---------- */
@media (min-width: 1140px) {
  .rail { display: flex; }
}
@media (max-width: 860px) {
  .bento-3, .bento-services, .vm-grid, .serve-grid { grid-template-columns: 1fr; }
  .bento-lead { grid-row: auto; }
  .bento-3 > .card:nth-child(2), .bento-3 > .card:nth-child(3) { grid-column: 1; }
  .bento-services .card:first-child { grid-column: 1; }
  .offset-grid, .method-grid { grid-template-columns: 1fr; }
  .offset-grid > .principle-card:nth-child(even) { transform: none; }
  .offset-grid > .principle-card:nth-child(even):hover { transform: translateY(-5px); }
  .vm-mission { margin-top: 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .contact-fields { gap: 6px; }
  .contact-field { padding: 18px 22px; min-width: 150px; }
  .hero { padding: 90px 0 70px; min-height: auto; }
  .hero-logo { height: 52px; margin-bottom: 34px; }
  section { padding: 64px 0; }
  .photo-band { min-height: 46vh; padding: 64px 0; }
  .ghost-num { font-size: 70px; }
  .method-grid .p-num { font-size: 30px; }
}
.nav-links.open {
  display: flex; flex-direction: column; position: absolute; top: 100%; inset-inline-start: 0; inset-inline-end: 0;
  background: rgba(10,10,10,0.98); padding: 20px 28px; gap: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
@media (max-width: 560px) {
  html[dir="rtl"] a.btn-primary[data-lang="ar"],
  html[dir="rtl"] a.btn-secondary[data-lang="ar"],
  html[dir="ltr"] a.btn-primary[data-lang="en"],
  html[dir="ltr"] a.btn-secondary[data-lang="en"] {
    display: block; width: 100%; text-align: center; margin-inline-start: 0;
  }
  .btn-secondary { margin-top: 14px; }
}
