/* =============================================================
   114.agency — main stylesheet
   Sections: 1 tokens · 2 reset · 3 typography · 4 utilities
            5 buttons · 6 nav · 7 hero · 8 pacing · 9 authority
            10 plan · 11 filter · 12 faq · 13 final-cta · 14 footer
            15 sticky-cta · 16 grain · 17 motion · 18 responsive
   ============================================================= */

/* ----- 1. TOKENS ----- */

:root {
  /* Spacing scale (px) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 192px;

  /* Layout */
  --max-w: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(64px, 8vw, 128px);
  --radius: 2px;
  --hairline: 0.5px;

  /* Type scale */
  --fs-display-xl: clamp(34px, 5.5vw, 72px);
  --fs-display-l: clamp(26px, 3.8vw, 48px);
  --fs-display-m: clamp(22px, 2.6vw, 32px);
  --fs-body-l: clamp(15px, 1.6vw, 18px);
  --fs-body: 15px;
  --fs-body-s: 13px;
  --fs-mono-s: 11px;
  --fs-mono-xs: 10px;

  --lh-tight: 1.05;
  --lh-snug: 1.15;
  --lh-base: 1.6;
  --lh-relaxed: 1.7;
  --lh-loose: 1.85;

  --tr-tight: -2px;
  --tr-snug: -1.5px;
  --tr-mono: 2px;
  --tr-mono-wide: 3px;

  /* Font stacks */
  --ff-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ff-arabic: 'IBM Plex Sans Arabic', system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-base: 300ms;
  --dur-slow: 700ms;
  --dur-theme: 400ms;

  /* Z-index */
  --z-grain: 1000;
  --z-nav: 100;
  --z-scarcity: 99;
  --z-sticky: 50;
}

/* ----- THEME: DARK (default) ----- */

:root,
[data-theme="dark"] {
  --bg: #0A0A0B;
  --bg-elev-1: #111113;
  --bg-elev-2: #18181B;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #FAFAFA;
  --text-mute: #A1A1AA;
  --text-dim: #71717A;
  --accent: #10B981;
  --accent-2: #60A5FA;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-soft: rgba(16, 185, 129, 0.10);
  --accent-2-soft: rgba(96, 165, 250, 0.08);
  --warning: #F59E0B;
  --warning-soft: rgba(245, 158, 11, 0.08);
  --warning-border: rgba(245, 158, 11, 0.20);
  --danger-border: rgba(239, 68, 68, 0.40);
  --grain-opacity: 0.025;
  --shadow-cta: 0 12px 40px rgba(16, 185, 129, 0.25);
  --nav-bg: rgba(10, 10, 11, 0.85);
}

/* ----- THEME: LIGHT ----- */

[data-theme="light"] {
  --bg: #FAFAFA;
  --bg-elev-1: #F4F4F5;
  --bg-elev-2: #E4E4E7;
  --border: rgba(10, 10, 11, 0.08);
  --border-2: rgba(10, 10, 11, 0.14);
  --text: #0A0A0B;
  --text-mute: #52525B;
  --text-dim: #71717A;
  --accent: #059669;
  --accent-2: #2563EB;
  --accent-glow: rgba(5, 150, 105, 0.20);
  --accent-soft: rgba(5, 150, 105, 0.08);
  --accent-2-soft: rgba(37, 99, 235, 0.06);
  --warning: #B45309;
  --warning-soft: rgba(180, 83, 9, 0.08);
  --warning-border: rgba(180, 83, 9, 0.25);
  --danger-border: rgba(220, 38, 38, 0.35);
  --grain-opacity: 0.015;
  --shadow-cta: 0 12px 40px rgba(5, 150, 105, 0.18);
  --nav-bg: rgba(250, 250, 250, 0.85);
}

/* Theme transitions (suspended during initial paint by .no-transitions) */
:root:not(.no-transitions) * {
  transition:
    background-color var(--dur-theme) var(--ease-out),
    color var(--dur-theme) var(--ease-out),
    border-color var(--dur-theme) var(--ease-out);
}
.no-transitions * { transition: none !important; }

/* ----- 2. RESET ----- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { min-height: 100vh; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ----- 3. TYPOGRAPHY (font-face + base) ----- */

@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/InterTight-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/InterTight-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/JetBrainsMono-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

body {
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: hidden;
}

[lang="ar"] body { font-family: var(--ff-arabic); line-height: 1.85; }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 800; letter-spacing: var(--tr-snug); line-height: var(--lh-tight); }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { font-family: var(--ff-arabic); font-weight: 700; letter-spacing: 0; line-height: 1.25; }

h1 { font-size: var(--fs-display-xl); }
h2 { font-size: var(--fs-display-l); line-height: 1.1; }
h3 { font-size: var(--fs-display-m); line-height: var(--lh-snug); }

p { color: var(--text-mute); line-height: var(--lh-relaxed); }
strong { color: var(--text); font-weight: 600; }
em { font-style: normal; }

/* ----- 4. UTILITIES ----- */

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: var(--tr-mono-wide);
  text-transform: uppercase;
  color: var(--accent-2);
  opacity: 0.85;
  margin-bottom: var(--s-3);
  display: inline-block;
}

.hairline { height: 1px; background: var(--border); border: 0; }

.section-head { margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head .sub { font-size: var(--fs-body-l); color: var(--text-mute); max-width: 580px; line-height: var(--lh-relaxed); }

/* Visually-hidden but accessible */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }

/* Bidirectional isolation for Latin numbers in RTL */
.bdi { unicode-bidi: isolate; direction: ltr; }

/* ----- 5. BUTTONS ----- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-fast);
  position: relative;
  overflow: hidden;
}
[lang="ar"] .btn { font-family: var(--ff-arabic); font-weight: 700; }

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary svg { width: 16px; height: 16px; }

/* Shimmer on hover */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 600ms var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(100%); }
[dir="rtl"] .btn-primary::before { transform: translateX(100%); }
[dir="rtl"] .btn-primary:hover::before { transform: translateX(-100%); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--text-mute);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.btn-ghost:hover { color: var(--text); }

.btn-ghost .arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-ghost:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn-ghost:hover .arrow { transform: translateX(-4px); }

/* ----- 5b. BADGES & PILLS ----- */

.badge {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 4px 10px;
  background: var(--accent-2-soft);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  display: inline-block;
}

.pill-cmd {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 6px 12px;
  background: var(--accent-soft);
  border: var(--hairline) solid var(--accent-soft);
  border-radius: var(--radius);
  display: inline-block;
  margin-top: var(--s-3);
}

/* ----- 6. NAV + SCARCITY ----- */

.scarcity {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: var(--z-scarcity);
  background:
    linear-gradient(var(--warning-soft), var(--warning-soft)),
    var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--hairline) solid var(--warning-border);
  padding: 10px var(--pad-x);
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: 0.5px;
  color: var(--warning);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}
[lang="ar"] .scarcity { font-family: var(--ff-arabic); font-size: 12px; letter-spacing: 0; }
.scarcity.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.scarcity__close {
  position: absolute;
  inset-inline-end: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity var(--dur-fast);
}
.scarcity__close:hover { opacity: 1; }
.scarcity__close svg { width: 12px; height: 12px; }

nav.nav {
  position: fixed;
  top: 36px; /* below scarcity */
  inset-inline: 0;
  z-index: var(--z-nav);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--hairline) solid transparent;
  transition: border-color var(--dur-base);
}
nav.nav.scrolled { border-bottom-color: var(--border-2); }
.scarcity.hidden ~ nav.nav { top: 0; }

/* Keep nav OUTER layout identical FR vs AR (logo left, CTA right) —
   force LTR on the bar. But restore RTL inside the link groups so
   Arabic readers see links in natural reading order (first link on right). */
[lang="ar"] nav.nav,
[lang="ar"] .site-footer__inner { direction: ltr; }
[lang="ar"] .nav__links,
[lang="ar"] .site-footer__links { direction: rtl; }

.nav__logo {
  font-family: var(--ff-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 1px;
  direction: ltr;
  unicode-bidi: isolate;
}
.nav__logo .accent { color: var(--accent); transition: transform var(--dur-base) var(--ease-out); display: inline-block; }
.nav__logo:hover .accent { transform: translateY(-2px); }

.nav__links { display: flex; align-items: center; gap: var(--s-6); }
.nav__links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color var(--dur-fast);
  letter-spacing: 0.3px;
}
[lang="ar"] .nav__links a { font-size: 14px; letter-spacing: 0; }
.nav__links a:hover { color: var(--text); }

.nav__right { display: flex; align-items: center; gap: var(--s-4); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}
.theme-toggle:hover { color: var(--text); background: var(--bg-elev-2); }
.theme-toggle svg { width: 18px; height: 18px; transition: opacity 250ms, transform 250ms var(--ease-out); position: absolute; }
.theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(0.8); }
.theme-toggle .moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: rotate(90deg) scale(0.8); }

.nav__cta {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--dur-fast);
}
[lang="ar"] .nav__cta { font-family: var(--ff-arabic); font-weight: 700; font-size: 13px; }
.nav__cta:hover { opacity: 0.85; }
.nav__cta svg { width: 14px; height: 14px; }

@media (max-width: 768px) {
  .nav__links { display: none; }
}

/* ----- 7. HERO ----- */

.hero {
  min-height: 100vh;
  padding: 160px var(--pad-x) var(--s-9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero__ghost {
  position: absolute;
  inset-inline-end: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-mono);
  font-size: clamp(160px, 26vw, 360px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-2-soft);
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 0;
  direction: ltr;
  unicode-bidi: isolate;
}

.hero__inner { position: relative; z-index: 1; max-width: 860px; }

.hero__pacing {
  font-size: var(--fs-body-l);
  color: var(--text-mute);
  line-height: 1.85;
  max-width: 700px;
  margin-bottom: var(--s-7);
  border-inline-start: 2px solid var(--accent-2);
  padding-inline-start: var(--s-5);
}
.hero__pacing strong { color: var(--text); }
.hero__pacing em { color: var(--accent-2); }

.hero h1 { margin-bottom: var(--s-5); }
.hero h1 em { color: var(--accent); }

.hero__sub {
  font-size: var(--fs-body-l);
  color: var(--text-mute);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-bottom: var(--s-7);
}
.hero__sub strong { color: var(--text); }

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-9);
  padding-top: var(--s-6);
  border-top: var(--hairline) solid var(--border);
  flex-wrap: wrap;
}
.hero__proof-item {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: 0.5px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
[lang="ar"] .hero__proof-item { font-family: var(--ff-arabic); font-size: 12px; letter-spacing: 0; }
.hero__proof-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ----- 8. PACING / SCENES ----- */

.pacing {
  background: var(--bg-elev-1);
  position: relative;
  overflow: hidden;
  padding: var(--section-y) var(--pad-x);
}
.pacing::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-2), transparent);
  opacity: 0.6;
}
.pacing > .container { position: relative; z-index: 1; }

.scene {
  background: var(--bg);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
  margin-top: var(--s-6);
  position: relative;
}
.scene::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--danger-border);
}
.scene__time {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--danger-border);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.scene__text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.85;
}
.scene__text p { color: var(--text); margin-bottom: var(--s-3); }
.scene__text p:last-child { margin-bottom: 0; }
.scene__text em { color: var(--text-mute); }

.pacing__interlude {
  margin-top: var(--s-6);
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.scenes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--s-4);
  border: var(--hairline) solid var(--border);
}
.scene-item {
  padding: var(--s-6);
  border-inline-end: var(--hairline) solid var(--border);
  border-bottom: var(--hairline) solid var(--border);
  transition: background var(--dur-fast);
}
.scene-item:hover { background: rgba(255,255,255,0.015); }
.scene-item:nth-child(2n) { border-inline-end: none; }
.scene-item:nth-child(3), .scene-item:nth-child(4) { border-bottom: none; }
.scene-item__num {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-xs);
  color: var(--accent-2);
  margin-bottom: var(--s-3);
  letter-spacing: var(--tr-mono);
}
.scene-item__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: var(--s-2);
}
.scene-item__desc { font-size: 13px; color: var(--text-mute); line-height: 1.65; }

.pace-close {
  margin-top: var(--s-7);
  padding: var(--s-6);
  background: var(--bg-elev-2);
  border: var(--hairline) solid var(--accent-soft);
  border-radius: var(--radius);
  position: relative;
}
.pace-close::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.pace-close p {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
}
.pace-close p em { color: var(--accent); }

@media (max-width: 768px) {
  .scenes-grid { grid-template-columns: 1fr; }
  .scene-item { border-inline-end: none; }
  .scene-item:nth-child(3) { border-bottom: var(--hairline) solid var(--border); }
}

/* ----- 9. AUTHORITY (stats + projects) ----- */

.authority { background: var(--bg); padding: var(--section-y) var(--pad-x); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: var(--s-7) 0;
  border: var(--hairline) solid var(--border);
}
.stat {
  padding: var(--s-5);
  text-align: center;
  border-inline-end: var(--hairline) solid var(--border);
  transition: background var(--dur-fast);
}
.stat:last-child { border-inline-end: none; }
.stat:hover { background: var(--bg-elev-1); }
.stat__num {
  font-family: var(--ff-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.5px;
}
[lang="ar"] .stat__label { font-size: 13px; letter-spacing: 0; }

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: var(--hairline) solid var(--border);
}
.project {
  padding: var(--s-6);
  border-inline-end: var(--hairline) solid var(--border);
  border-bottom: var(--hairline) solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background var(--dur-base);
}
.project:nth-child(2n) { border-inline-end: none; }
.project:nth-child(3), .project:nth-child(4) { border-bottom: none; }
.project::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
[dir="rtl"] .project::after { transform-origin: right; }
.project:hover::after { transform: scaleX(1); }
.project:hover { background: var(--bg-elev-1); }

.project__name { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin: var(--s-4) 0 var(--s-2); }
[lang="ar"] .project__name { font-weight: 700; letter-spacing: 0; }
.project__result {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--ff-mono);
  margin-bottom: var(--s-3);
  letter-spacing: 0.3px;
}
[lang="ar"] .project__result { font-family: var(--ff-arabic); font-size: 13px; letter-spacing: 0; }
.project__desc { font-size: 14px; color: var(--text-mute); line-height: 1.7; margin-bottom: var(--s-5); }
.project__link {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--dur-fast);
}
[lang="ar"] .project__link { font-family: var(--ff-arabic); font-size: 12px; letter-spacing: 0; }
.project__link:hover { color: var(--accent); }
.project__link .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.project__link:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .project__link:hover .arrow { transform: translateX(-4px); }

@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-inline-end: none; border-bottom: var(--hairline) solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .projects { grid-template-columns: 1fr; }
  .project { border-inline-end: none; }
  .project:nth-child(3) { border-bottom: var(--hairline) solid var(--border); }
}

/* ----- 10. PLAN ----- */

.plan { background: var(--bg-elev-1); padding: var(--section-y) var(--pad-x); }

.steps { display: flex; flex-direction: column; margin-top: var(--s-9); }

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-7);
  padding: var(--s-7) 0;
  border-bottom: var(--hairline) solid var(--border);
  transition: background var(--dur-fast);
}
.step:last-child { border-bottom: none; }
.step__num {
  font-family: var(--ff-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1;
  opacity: 0.4;
  transition: opacity var(--dur-fast);
  padding-top: 6px;
}
.step:hover .step__num { opacity: 1; }
.step__title { font-size: 20px; font-weight: 700; margin-bottom: var(--s-3); letter-spacing: -0.3px; }
[lang="ar"] .step__title { font-weight: 700; letter-spacing: 0; font-size: 22px; }
.step__desc { font-size: 15px; color: var(--text-mute); line-height: 1.85; }
.step__desc p { margin-bottom: var(--s-2); color: var(--text-mute); }
.step__desc p:last-child { margin-bottom: 0; }
.step__desc strong { color: var(--text); }

@media (max-width: 768px) {
  .step { grid-template-columns: 50px 1fr; gap: var(--s-4); }
  .step__num { font-size: 36px; }
}

/* ----- 11. FILTER ----- */

.filter { background: var(--bg); padding: var(--section-y) var(--pad-x); }

.filter__intro {
  font-size: 17px;
  color: var(--text-mute);
  line-height: 1.75;
  max-width: 680px;
  margin-top: var(--s-5);
  border-inline-start: 2px solid var(--accent-2);
  padding-inline-start: var(--s-5);
}
.filter__intro strong { color: var(--text); }

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--s-7);
  border: var(--hairline) solid var(--border);
}
.filter-col { padding: var(--s-7); }
.filter-col + .filter-col { border-inline-start: var(--hairline) solid var(--border); }

.filter-col__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
[lang="ar"] .filter-col__title { letter-spacing: 0; font-size: 14px; }
.filter-col__title .dot { width: 7px; height: 7px; border-radius: 50%; }
.filter-col--yes .filter-col__title { color: var(--accent); }
.filter-col--yes .filter-col__title .dot { background: var(--accent); }
.filter-col--no .filter-col__title { color: var(--text-dim); }
.filter-col--no .filter-col__title .dot { background: var(--text-dim); }

.filter-items { display: flex; flex-direction: column; gap: var(--s-3); }
.filter-item {
  padding: var(--s-3) var(--s-4);
  background: var(--bg-elev-1);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
}
[lang="ar"] .filter-item { font-size: 14px; line-height: 1.85; }
.filter-item.yes { border-inline-start: 2px solid var(--accent); }
.filter-item.no { border-inline-start: 2px solid var(--bg-elev-2); color: var(--text-dim); }
.filter-item strong { font-weight: 600; }
.filter-item.yes strong { color: var(--accent); }

.filter-callout {
  margin-top: var(--s-7);
  padding: var(--s-7);
  background: var(--bg-elev-1);
  border: var(--hairline) solid var(--accent-soft);
  border-radius: var(--radius);
  text-align: center;
}
.filter-callout__text { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: var(--s-2); line-height: 1.4; }
.filter-callout__sub {
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: var(--s-6);
  line-height: 1.65;
}
.filter-callout__sub em { color: var(--text); font-weight: 600; }
.filter-callout__scarcity {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent-2);
  margin-top: var(--s-3);
  letter-spacing: 0.5px;
}
[lang="ar"] .filter-callout__scarcity { font-family: var(--ff-arabic); font-size: 12px; letter-spacing: 0; }

@media (max-width: 768px) {
  .filter-grid { grid-template-columns: 1fr; }
  .filter-col + .filter-col { border-inline-start: none; border-top: var(--hairline) solid var(--border); }
}

/* ----- 12. FAQ ----- */

.faq { background: var(--bg-elev-1); padding: var(--section-y) var(--pad-x); }

.faq-list { margin-top: var(--s-7); border: var(--hairline) solid var(--border); border-radius: var(--radius); }
.faq-item { border-bottom: var(--hairline) solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  text-align: start;
  padding: var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  transition: background var(--dur-fast);
  line-height: 1.5;
  color: var(--text);
  font-family: inherit;
}
[lang="ar"] .faq-q { font-size: 17px; font-weight: 700; }
.faq-q:hover { background: var(--bg-elev-2); }
.faq-icon {
  font-family: var(--ff-mono);
  font-size: 22px;
  color: var(--accent-2);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
  font-weight: 400;
  line-height: 1;
}
.faq-item[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease-out);
}
.faq-a__inner {
  padding: 0 var(--s-5) var(--s-6);
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.85;
}
[lang="ar"] .faq-a__inner { font-size: 15px; }
.faq-a__inner strong { color: var(--text); font-weight: 600; }

/* ----- 13. FINAL CTA ----- */

.final-cta {
  background: var(--bg-elev-1);
  padding: var(--section-y) var(--pad-x);
  text-align: center;
  border-top: var(--hairline) solid var(--border);
}
.final-cta__title {
  font-size: var(--fs-display-l);
  font-weight: 800;
  margin-bottom: var(--s-4);
}
.final-cta__sub {
  font-size: var(--fs-body-l);
  color: var(--text-mute);
  margin-bottom: var(--s-7);
  max-width: 580px;
  margin-inline: auto;
}
.final-cta__scarcity {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-s);
  color: var(--text-dim);
  margin-top: var(--s-5);
  letter-spacing: 0.5px;
}
[lang="ar"] .final-cta__scarcity { font-family: var(--ff-arabic); font-size: 12px; letter-spacing: 0; }

/* ----- 14. FOOTER ----- */

footer.site-footer {
  background: var(--bg);
  padding: var(--s-9) var(--pad-x) var(--s-7);
  border-top: var(--hairline) solid var(--border);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-5);
}
.site-footer__logo {
  font-family: var(--ff-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  direction: ltr;
  unicode-bidi: isolate;
}
.site-footer__logo .accent { color: var(--accent); }
.site-footer__links { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.site-footer__links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color var(--dur-fast);
}
.site-footer__links a:hover { color: var(--text); }

.site-footer__copy {
  font-size: 11px;
  color: var(--text-dim);
  width: 100%;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: var(--hairline) solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}
[lang="ar"] .site-footer__copy { font-size: 12px; }

/* ----- 15. STICKY MOBILE CTA ----- */

.sticky-cta {
  position: fixed;
  bottom: var(--s-5);
  inset-inline-end: var(--s-5);
  z-index: var(--z-sticky);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-cta);
  transform: translateY(120px);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}
.sticky-cta.visible { transform: translateY(0); opacity: 1; }
.sticky-cta.hidden { transform: translateY(120px); opacity: 0; pointer-events: none; }
.sticky-cta svg { width: 26px; height: 26px; }

@media (hover: none) and (max-width: 768px) {
  .sticky-cta { display: inline-flex; }
}

/* Pulsing halo */
.sticky-cta::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.5;
  animation: pulse 2.5s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ----- 16. GRAIN OVERLAY ----- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}

/* ----- 17. MOTION ----- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ----- 18. RESPONSIVE OVERRIDES ----- */

@media (max-width: 768px) {
  .scarcity { font-size: 10px; padding: 8px var(--s-4); }
  nav.nav { padding: 0 var(--s-4); }
  .hero { padding-top: 140px; }
  .hero__proof { gap: var(--s-3); }
  .hero__pacing { padding-inline-start: var(--s-4); }
  .filter-callout { padding: var(--s-5); }
  .final-cta__title { font-size: clamp(24px, 6vw, 36px); }
}

@media (max-width: 480px) {
  .hero__actions .btn-ghost { display: none; }
  .stat__num { font-size: 24px; }
}
