/* ================================================================
   NAWAT STUDIO — styles.css
   Digital Product Design Studio | نواة ستوديو
   ================================================================ */

/* Fonts loaded via <link> in HTML — no duplicate @import needed */

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --black:     #0E0E11;
  --white:     #F5F5F5;
  --blue:      #2563EB;

  /* Opacity Variants */
  --black-85:  rgba(14,14,17, 0.85);
  --black-60:  rgba(14,14,17, 0.60);
  --black-30:  rgba(14,14,17, 0.30);
  --black-10:  rgba(14,14,17, 0.10);
  --black-05:  rgba(14,14,17, 0.05);
  --black-03:  rgba(14,14,17, 0.03);
  --white-85:  rgba(245,245,245, 0.85);
  --white-60:  rgba(245,245,245, 0.60);
  --white-30:  rgba(245,245,245, 0.30);
  --white-10:  rgba(245,245,245, 0.10);
  --white-05:  rgba(245,245,245, 0.05);
  --blue-85:   rgba(37,99,235, 0.85);
  --blue-15:   rgba(37,99,235, 0.15);
  --blue-08:   rgba(37,99,235, 0.08);

  /* Semantic Tokens — Light Mode */
  --c-bg:         var(--white);
  --c-bg-alt:     #EBEBEB;
  --c-text:       var(--black);
  --c-text-85:    var(--black-85);
  --c-text-60:    var(--black-60);
  --c-text-30:    var(--black-30);
  --c-surface:    var(--black-05);
  --c-surface-md: var(--black-10);
  --c-border:     var(--black-10);
  --c-border-lg:  var(--black-30);
  --nav-bg:       rgba(245,245,245, 0.85);

  /* Typography */
  --font-arabic: 'IBM Plex Sans Arabic', sans-serif;
  --font-latin:  'IBM Plex Sans', sans-serif;

  /* Layout */
  --nav-h:      72px;
  --container:  1280px;
  --gutter:     clamp(20px, 5vw, 80px);
  --section-py: clamp(80px, 12vw, 160px);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Easing */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transitions */
  --t-fast: 0.18s var(--ease-out);
  --t-base: 0.4s  var(--ease-out);
  --t-slow: 0.7s  var(--ease-out);
}

/* ── Dark Mode Tokens ─────────────────────────────────────────── */
[data-theme="dark"] {
  --c-bg:         var(--black);
  --c-bg-alt:     #161619;
  --c-text:       var(--white);
  --c-text-85:    var(--white-85);
  --c-text-60:    var(--white-60);
  --c-text-30:    var(--white-30);
  --c-surface:    var(--white-05);
  --c-surface-md: var(--white-10);
  --c-border:     var(--white-10);
  --c-border-lg:  var(--white-30);
  --nav-bg:       rgba(14,14,17, 0.90);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-arabic);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--t-base), color var(--t-base);
}

html[lang="en"] body,
html[lang="fr"] body {
  font-family: var(--font-latin);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Language Visibility ──────────────────────────────────────── */
/* Hide all translation variants by default */
.t-ar, .t-en, .t-fr { display: none !important; }

/* Reveal only the active language — display:revert restores the
   element's natural (browser-default) display (inline for span,
   block for p/div/h1 etc.) regardless of inline styles.           */
html[data-lang="ar"] .t-ar { display: revert !important; }
html[data-lang="en"] .t-en { display: revert !important; }
html[data-lang="fr"] .t-fr { display: revert !important; }

/* ── Container ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Typography Scale ─────────────────────────────────────────── */
.display { font-size: clamp(48px, 8vw, 120px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.h1      { font-size: clamp(36px, 5.5vw, 72px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.h2      { font-size: clamp(28px, 3.5vw, 52px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.h3      { font-size: clamp(18px, 2vw, 28px);   font-weight: 600; line-height: 1.3; }
.body-lg { font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; line-height: 1.7; }
.body    { font-size: clamp(14px, 1.2vw, 16px); font-weight: 400; line-height: 1.65; }
.caption { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 100px;
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-lg);
}
.btn-secondary:hover {
  border-color: var(--c-text);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--c-surface-md);
}

/* ── Section Layout ───────────────────────────────────────────── */
section { padding: var(--section-py) 0; }

.section-header { margin-bottom: clamp(40px, 7vw, 80px); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--blue);
}
html[dir="rtl"] .section-label::before {
  order: 1;
}

.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

/* ── Scroll Reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service cards — rise + scale, CSS stagger */
.service-card {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    background var(--t-fast),
    box-shadow var(--t-base);
}
.service-card.visible { opacity: 1; transform: translateY(0) scale(1); }

.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 60ms; }
.service-card:nth-child(3) { transition-delay: 120ms; }
.service-card:nth-child(4) { transition-delay: 180ms; }
.service-card:nth-child(5) { transition-delay: 240ms; }
.service-card:nth-child(6) { transition-delay: 300ms; }

/* Work cards — lift + blur clear, CSS stagger */
.work-card {
  opacity: 0;
  transform: translateY(44px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out),
    box-shadow var(--t-base),
    border-color var(--t-fast);
}
.work-card.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

.work-card:nth-child(1) { transition-delay: 0ms; }
.work-card:nth-child(2) { transition-delay: 80ms; }
.work-card:nth-child(3) { transition-delay: 160ms; }
.work-card:nth-child(4) { transition-delay: 240ms; }

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
html[dir="rtl"] .reveal-left {
  transform: translateX(32px);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color var(--t-base),
              box-shadow var(--t-base),
              backdrop-filter var(--t-base);
}


.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--c-border);
}


.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  text-decoration: none;
}

.nav-logo-mark {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring);
  /* Stable compositor layer + fixed rotation direction (prevents reverse-spin glitch) */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.nav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-logo:hover .nav-logo-mark {
  transform: rotate(179.99deg) scale(1.05);
}

/* Show correct logo per theme × language */
.logo-variant { display: none; }
[data-theme="light"][data-lang="ar"] .lv-light-ar { display: block; }
[data-theme="light"][data-lang="en"] .lv-light-la { display: block; }
[data-theme="light"][data-lang="fr"] .lv-light-la { display: block; }
[data-theme="dark"][data-lang="ar"]  .lv-dark-ar  { display: block; }
[data-theme="dark"][data-lang="en"]  .lv-dark-la  { display: block; }
[data-theme="dark"][data-lang="fr"]  .lv-dark-la  { display: block; }

/* Footer is always dark — show dark logo variants regardless of theme */
.footer-logo-mark .logo-variant { display: none !important; }
[data-lang="ar"] .footer-logo-mark .lv-dark-ar { display: block !important; }
[data-lang="en"] .footer-logo-mark .lv-dark-la { display: block !important; }
[data-lang="fr"] .footer-logo-mark .lv-dark-la { display: block !important; }

.nav-wordmark {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text-60);
  padding: 6px 14px;
  border-radius: 100px;
  position: relative;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  transition: color var(--t-fast), background var(--t-fast);
  text-decoration: none;
}
.nav-link:hover {
  color: var(--c-text);
  background: var(--c-surface);
}

/* Active section indicator — blue dot below the active link */
.nav-link.active {
  color: var(--blue);
  font-weight: 500;
}

/* ── Work Nav Dropdown ──────────────────────────────────────────── */
.nav-work {
  position: relative;
}

/* Transparent bridge fills the gap between trigger and panel */
.nav-work::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0; right: 0;
  height: 12px;
}

.nav-work-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.nav-work-chevron {
  opacity: 0.45;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
  flex-shrink: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.nav-work:hover .nav-work-chevron {
  transform: rotate(179.99deg);
  opacity: 1;
}

/* Panel */
.nav-work-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 310px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px var(--black-10), 0 2px 8px var(--black-05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  z-index: 300;
  overflow: hidden;
}

[data-theme="dark"] .nav-work-panel {
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
}

.nav-work:hover .nav-work-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Panel header label */
.nwp-label {
  padding: 12px 16px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-30);
  border-bottom: 1px solid var(--c-border);
}

/* Cards container */
.nwp-cards {
  display: flex;
  flex-direction: column;
}

/* Individual card */
.nwp-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 16px;
  text-decoration: none;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.15s var(--ease-out);
  overflow: hidden;
}

.nwp-card:last-child { border-bottom: none; }
/* When cards are non-clickable divs, hide interactive hints */
div.nwp-card { cursor: default; }
div.nwp-card .nwp-arrow,
div.nwp-card .nwp-dot { display: none; }

.nwp-card:hover {
  background: var(--c-surface);
}

/* Stagger in on panel open */
.nwp-card {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s var(--ease-out),
              transform 0.22s var(--ease-out),
              background 0.15s var(--ease-out);
}
.nav-work:hover .nwp-card { opacity: 1; transform: translateY(0); }
.nav-work:hover .nwp-card:nth-child(1) { transition-delay: 40ms; }
.nav-work:hover .nwp-card:nth-child(2) { transition-delay: 75ms; }
.nav-work:hover .nwp-card:nth-child(3) { transition-delay: 110ms; }
.nav-work:hover .nwp-card:nth-child(4) { transition-delay: 145ms; }

/* Colored side bar — slides in on card hover */
.nwp-accent-bar {
  position: absolute;
  inset-inline-start: 0;
  top: 20%;
  bottom: 20%;
  width: 2.5px;
  border-radius: 2px;
  background: var(--nwp-accent);
  transform: scaleY(0);
  transition: transform 0.2s var(--ease-out);
  transform-origin: center;
}
.nwp-card:hover .nwp-accent-bar {
  transform: scaleY(1);
}

/* Info row */
.nwp-info {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.nwp-num {
  font-size: 10px;
  color: var(--c-text-30);
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 2px;
}

.nwp-text { min-width: 0; }

.nwp-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nwp-tags {
  font-size: 10.5px;
  color: var(--c-text-30);
  white-space: nowrap;
}

/* Accent color dot */
.nwp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nwp-accent);
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s, transform 0.2s var(--ease-spring);
}
.nwp-card:hover .nwp-dot {
  opacity: 1;
  transform: scale(1.3);
}

/* Arrow */
.nwp-arrow {
  color: var(--c-text-30);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out), color 0.15s;
}
.nwp-card:hover .nwp-arrow {
  color: var(--nwp-accent);
  transform: translateX(3px);
}
html[dir="rtl"] .nwp-card:hover .nwp-arrow {
  transform: translateX(-3px) scaleX(-1);
}

/* Footer */
.nwp-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.nwp-view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.18s var(--ease-out);
}
.nwp-view-all:hover { gap: 10px; }
.nwp-view-all svg { flex-shrink: 0; }

/* Hide panel on mobile — touch has no hover */
@media (max-width: 768px) {
  .nav-work-panel { display: none; }
  .nav-work-chevron { display: none; }
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-inline-start: auto;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  position: relative;
  padding: 3px;
}

/* Sliding pill behind active lang button */
.lang-pill {
  position: absolute;
  top: 4px;
  left: 3px;
  height: calc(100% - 8px);
  background: var(--c-text);
  border-radius: 100px;
  transition: left 0.28s var(--ease-out), width 0.28s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.lang-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text-60);
  padding: 5px 10px;
  border-radius: 100px;
  position: relative;
  z-index: 1;
  transition: color 0.2s var(--ease-out);
  transition: all var(--t-fast);
  font-family: var(--font-latin);
}
.lang-btn:hover { color: var(--c-text); }
.lang-btn.active {
  color: var(--c-bg); /* text over the sliding pill */
  background: transparent; /* pill handles the fill */
}

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-60);
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--c-surface-md);
  color: var(--c-text);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-spring);
}
.theme-toggle { position: relative; }

/* Light mode: show moon, hide sun */
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }

/* Nav CTA */
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  transition: all var(--t-fast);
  text-decoration: none;
}
.nav-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--blue-15);
}

/* Mobile Menu Toggle — hamburger → X morph */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  transition: background 0.2s;
}
.nav-mobile-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
  transform-origin: center;
}
/* X state */
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav — slide + fade animation */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--c-bg);
  z-index: 99;
  padding: 32px var(--gutter);
  gap: 0;
  border-top: 1px solid var(--c-border);
  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Staggered link reveal */
.mobile-menu .nav-link {
  font-size: 20px;
  font-weight: 500;
  padding: 16px 0;
  padding-inline-start: 16px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  border-radius: 0;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.15s;
}
.mobile-menu.open .nav-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .nav-link:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.open .nav-link:nth-child(2) { transition-delay: 100ms; }
.mobile-menu.open .nav-link:nth-child(3) { transition-delay: 140ms; }
.mobile-menu.open .nav-link:nth-child(4) { transition-delay: 180ms; }
.mobile-menu .nav-link:hover { background: none; color: var(--blue); }
.mobile-menu .nav-link.active {
  color: var(--blue);
  font-weight: 600;
}
.mobile-menu .nav-link.active::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--blue);
  border-radius: 2px;
}
.mobile-menu-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease-out) 0.22s, transform 0.3s var(--ease-out) 0.22s;
}
.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

/* Floating dots - seed particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp var(--dur, 8s) var(--delay, 0s) ease-in infinite;
}

@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  10%  { opacity: 0.6; }
  80%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-80vh) scale(0.2); }
}

/* Blur-in animation (used for hero entrance — calligraphy only) */
@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Fade-up animation (lighter alternative for most hero elements) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  animation: blurIn 1s 1.2s var(--ease-out) both;
}

.scroll-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-60);
}
.scroll-label .t-en,
.scroll-label .t-fr {
  font-size: 10px;
  font-family: var(--font-latin);
}

.scroll-line-wrap {
  width: 1px;
  height: 40px;
  background: var(--c-border);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-line-inner {
  width: 100%;
  height: 40%;
  background: var(--blue);
  border-radius: 2px;
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}

/* ================================================================
   MARQUEE / TICKER
   ================================================================ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 16px 0;
  background: var(--c-surface);
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}
html[dir="rtl"] .ticker-track {
  animation: tickerScrollRTL 30s linear infinite;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes tickerScrollRTL {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-60);
  flex-shrink: 0;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================================================
   MANIFESTO
   ================================================================ */
.manifesto {
  background: var(--c-bg);
  padding: clamp(100px, 15vw, 200px) 0;
  position: relative;
}

.manifesto-inner {
  position: relative;
  z-index: 1;
}

.manifesto-label-wrap {
  margin-bottom: 60px;
}
.manifesto-label-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.manifesto-body {
  max-width: 900px;
}

.manifesto-line {
  display: block;
  font-size: clamp(18px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
  margin-bottom: 0.15em;
  overflow: hidden;
}

.manifesto-line.accent {
  color: var(--blue);
}

/* Word spans for animation */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out),
              filter 0.5s var(--ease-out);
}
.word.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ================================================================
   SERVICES
   ================================================================ */
.services {
  background: var(--c-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 80px;
}

.service-card {
  background: var(--c-bg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
  position: relative;
}
.service-card:hover {
  background: var(--c-surface);
}
/* No inset ring — hover button signals clickability instead */
/* Keyboard focus ring */
.service-card[data-service]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
/* Small "→ contact" hint that fades in on hover */
.service-card[data-service]::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.3s var(--ease-out);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.service-card[data-service]:hover::after {
  transform: scaleX(1);
}

.service-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-family: var(--font-latin);
}

.service-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-md);
  border-radius: var(--radius-md);
  color: var(--c-text);
  transition: background var(--t-fast), transform var(--t-fast);
}
.service-card:hover .service-icon-wrap {
  background: var(--blue-15);
  color: var(--blue);
  transform: scale(1.05);
}

.service-card-title {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* In Arabic mode: show Arabic name (primary) + English name (secondary) */
html[data-lang="ar"] .service-card-title .t-en {
  display: block !important;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-60);
  font-family: var(--font-latin);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.service-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-60);
  flex: 1;
}

/* .service-card-arrow — removed (false affordance with no link target) */

.service-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}
.service-card-link-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s var(--ease-out), opacity var(--t-fast);
}
.service-card:hover .service-card-link-text {
  max-width: 200px;
  opacity: 1;
}
html[dir="rtl"] .service-card-link svg { transform: scaleX(-1); }

/* Services Pipeline */
.services-pipeline {
  padding: 40px 0;
  border-top: 1px solid var(--c-border);
}

/* .pipeline-label — removed with pipeline component */

.pipeline-track {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.pipeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  inset-inline-end: 0;
  width: 50%;
  height: 1px;
  background: var(--c-border);
  z-index: 0;
}

.pipeline-step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 18px;
  inset-inline-start: 0;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, var(--blue), var(--c-border));
  z-index: 0;
}

.pipeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: var(--c-text-60);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-latin);
  transition: all var(--t-fast);
}

.pipeline-step.active .pipeline-dot {
  background: var(--blue-15);
  border-color: var(--blue);
  color: var(--blue);
}

.pipeline-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-60);
  text-align: center;
}
.pipeline-step.active .pipeline-name { color: var(--c-text); }

/* pipeline names use div.t-* so revert gives block — force inline-block so they
   don't stack when only one is visible */
html[data-lang="ar"] .pipeline-name.t-ar,
html[data-lang="en"] .pipeline-name.t-en,
html[data-lang="fr"] .pipeline-name.t-fr { display: block !important; }

/* ================================================================
   CASE STUDIES / WORK
   ================================================================ */
.work { }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color var(--t-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.1);
  border-color: var(--c-border-lg);
}
/* Cards without a case study page — not interactive */
.work-card:not(:has(.work-card-overlay)) {
  cursor: default;
}
.work-card:not(:has(.work-card-overlay)):hover {
  transform: none;
  box-shadow: none;
  border-color: var(--c-border);
}
[data-theme="dark"] .work-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.work-card.featured   { grid-column: span 8; }
.work-card.secondary  { grid-column: span 4; }
.work-card.wide       { grid-column: span 6; }

/* Stretched overlay link (makes entire card clickable) */
.work-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.work-card-body {
  position: relative;
  z-index: 1;
}

.work-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-surface);
  position: relative;
  flex-shrink: 0;
}

.work-card.secondary .work-card-image {
  aspect-ratio: 4/3;
}

.work-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
}

/* Animated placeholder pattern */
.work-placeholder-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.work-placeholder-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.work-placeholder-tag {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text);
  font-family: var(--font-latin);
  z-index: 1;
}

.work-coming-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-30);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-card-body {
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-60);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: var(--font-latin);
}

.work-card-title {
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
}

.work-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-60);
}

.work-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--c-border);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.work-card:hover .work-card-link { opacity: 1; }

/* ================================================================
   FOUNDER / TEAM
   ================================================================ */
/* Temporarily hidden — re-enable when founder/team content is ready */
#founder   { display: none !important; }
#sd-founder { display: none !important; }

.founder-section {
  background: var(--c-bg);
}

.founder-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 10vw, 120px);
}

html[dir="rtl"] .founder-layout { direction: rtl; }

.founder-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--c-surface);
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.founder-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--c-surface-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.founder-photo-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, var(--blue-08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(14,14,17,0.08) 0%, transparent 50%);
}

.founder-photo-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  background: var(--c-surface-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-30);
}

.founder-caption {
  position: absolute;
  bottom: 20px;
  inset-inline: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  backdrop-filter: blur(16px);
}

.founder-caption-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.founder-caption-subtitle {
  font-size: 12px;
  color: var(--c-text-60);
  margin-top: 2px;
}

.founder-bio-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.founder-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.founder-name {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--c-text);
}

.founder-title {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--c-text-60);
}

.founder-desc {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
  color: var(--c-text-85);
  max-width: 45ch;
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.founder-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-60);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  padding: 8px 16px;
  transition: all var(--t-fast);
  text-decoration: none;
}
.founder-link:hover {
  color: var(--c-text);
  border-color: var(--c-text);
  background: transparent;
}

/* Team Cards */
.team-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}
.team-divider::before, .team-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.team-divider-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-30);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.team-card-photo {
  aspect-ratio: 1 / 1;
  background: var(--c-surface-md);
  position: relative;
  overflow: hidden;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-md);
}

.team-card-body {
  padding: 20px 24px;
}

.team-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
}

.team-role {
  font-size: 13px;
  color: var(--c-text-60);
  margin-top: 4px;
}

/* ================================================================
   PROCESS
   ================================================================ */
.process { }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  position: relative;
}

/* Manifesto accent words stay blue when revealed */
.manifesto-line.accent .word { color: var(--blue); }

/* Connecting line */
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  inset-inline: 0;
  height: 1px;
  background: var(--c-border);
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.process-num-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-60);
  font-family: var(--font-latin);
  transition: all 0.6s var(--ease-out);
  flex-shrink: 0;
}

.process-step.visible .process-num {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-08);
  box-shadow: 0 0 0 8px var(--blue-08);
}

.process-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.process-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}

.process-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-60);
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact {
  background: var(--c-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--c-text-60);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--c-text-60);
  text-decoration: none;
  transition: color var(--t-fast);
}
.contact-detail:hover { color: var(--c-text); }

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#fname {
  scroll-margin-top: calc(var(--nav-h, 72px) + 16px);
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-60);
  letter-spacing: 0.03em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--c-text);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  background: var(--c-bg);
  box-shadow: 0 0 0 3px var(--blue-08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--c-text-30);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  width: 100%;
  font-family: inherit;
}
.form-submit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--blue-15);
}
.form-submit:active { transform: translateY(0); }

/* Prefilled state — brief highlight when service card auto-selects this */
.form-select.prefilled {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-08);
  animation: prefillPulse 1.8s var(--ease-out) forwards;
}
@keyframes prefillPulse {
  0%   { box-shadow: 0 0 0 3px var(--blue-08), 0 0 0 6px var(--blue-15); }
  100% { box-shadow: 0 0 0 3px transparent; }
}

.form-submit svg {
  transition: transform var(--t-fast);
}
html[dir="rtl"] .form-submit svg {
  transform: scaleX(-1);
}
.form-submit:hover svg {
  transform: translateX(3px);
}
html[dir="rtl"] .form-submit:hover svg {
  transform: scaleX(-1) translateX(3px);
}

.form-note {
  font-size: 12px;
  color: var(--c-text-30);
  text-align: center;
}

/* Success state */
.form-success {
  display: none;
  padding: 40px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-align: center;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.form-success.show { display: flex; }

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

/* ================================================================
   FOOTER — always dark regardless of theme
   ================================================================ */
.footer {
  background: #0E0E11;
  color: var(--white-85);
  padding: clamp(60px, 8vw, 100px) 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--white-10);
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.footer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-wordmark {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.65;
  color: var(--white-60);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-60);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: var(--white-60);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--white-60);
  font-family: var(--font-latin);
}

.footer-copy-ar {
  font-size: 12px;
  color: var(--white-60);
  font-family: var(--font-arabic);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-60);
  text-decoration: none;
  transition: all var(--t-fast);
}
.footer-social-link:hover {
  background: var(--white-10);
  color: var(--white);
}

/* ================================================================
   UTILITIES & MISC
   ================================================================ */

/* Divider */
.divider {
  height: 1px;
  background: var(--c-border);
  width: 100%;
}

/* Blue highlight */
.text-blue { color: var(--blue); }

/* Number display */
.stat-num {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-text);
  font-family: var(--font-latin);
}
.stat-num span { color: var(--blue); }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 80px;
}

.stat-item {
  background: var(--c-bg);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--c-text-60);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  inset-inline-end: 32px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-fast);
  z-index: 50;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px var(--blue-15);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--blue-15);
}

/* ================================================================
   RESPONSIVE — Tablet
   ================================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 48px;
  }
  .process-grid::before { display: none; }

  .work-card.featured  { grid-column: span 12; }
  .work-card.secondary { grid-column: span 6; }
  .work-card.wide      { grid-column: span 12; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}

/* Hide mobile menu entirely on desktop */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ================================================================
   LTR ↔ RTL DIRECTION TRANSITION OVERLAY
   ================================================================ */
.lang-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: var(--c-bg);
  clip-path: circle(0px at var(--sweep-x, 50%) var(--sweep-y, 50%));
}
.lang-transition-overlay.lang-sweep-in {
  animation: langSweepIn 0.28s var(--ease-out) both;
}
.lang-transition-overlay.lang-sweep-out {
  animation: langSweepOut 0.35s var(--ease-out) both;
}
@keyframes langSweepIn {
  from { clip-path: circle(0px at var(--sweep-x) var(--sweep-y)); }
  to   { clip-path: circle(150vmax at var(--sweep-x) var(--sweep-y)); }
}
@keyframes langSweepOut {
  from { clip-path: circle(150vmax at var(--sweep-x) var(--sweep-y)); }
  to   { clip-path: circle(0px at var(--sweep-x) var(--sweep-y)); }
}

/* ================================================================
   RESPONSIVE — Mobile
   ================================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero-title { font-size: clamp(36px, 10vw, 56px); }

  /* ── 1. Contact spacing fix ─────────────────────────────────── */
  /* Prevent reveal-left/right from causing horizontal overflow    */
  .reveal-left,
  .reveal-right {
    transform: translateY(24px) !important;
  }
  .reveal-left.visible,
  .reveal-right.visible {
    transform: translateY(0) !important;
  }

  /* ── 2. Services — always show CTA on mobile ────────────────── */
  .service-card-link-text {
    max-width: 200px;
    opacity: 1;
  }
  .service-card::after {
    transform: scaleX(1);
  }
  .service-card:active {
    background: var(--c-surface);
  }
  .service-card:active .service-icon-wrap {
    background: var(--blue-15);
    color: var(--blue);
    transform: scale(1.05);
  }

  /* ── 3. Process — vertical timeline on mobile ───────────────── */
  .services-grid { grid-template-columns: 1fr; }

  .work-card.featured,
  .work-card.secondary,
  .work-card.wide { grid-column: span 12; }

  .founder-layout { grid-template-columns: 1fr; }
  .founder-photo-wrap { max-width: 380px; margin: 0 auto; }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-inline-start: 24px;
    border-inline-start: 2px solid var(--c-border);
  }
  .process-grid::before { display: none; }
  .process-step {
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 40px;
    padding-inline-start: 24px;
    margin-inline-start: -25px;
  }
  .process-step:last-child { padding-bottom: 0; }
  .process-num-wrap { flex-shrink: 0; margin-top: 2px; }
  .process-num { width: 44px; height: 44px; font-size: 14px; background: var(--c-bg); }
  .process-content { text-align: start; }

  /* ── 4. Pull-quote — mobile ─────────────────────────────────── */
  .pull-quote { flex-direction: column; gap: 16px; }
  .pull-quote-mark::after { font-size: 60px; }

  .form-row { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr; }

  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand { grid-column: auto; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .manifesto-line { font-size: clamp(16px, 5vw, 24px); }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }

  .hero-badge { font-size: 11px; }

  .process-grid { grid-template-columns: 1fr; }
  .process-step { flex-direction: row; gap: 16px; align-items: flex-start; }
  .process-content { text-align: start; }

  .lang-switcher { gap: 0; }
  .lang-btn { padding: 4px 8px; }
}

/* ================================================================
   RTL / LTR Specific Adjustments
   ================================================================ */
html[dir="ltr"] .section-label::before { margin-right: 0; }
html[dir="ltr"] .pipeline-step:not(:first-child)::before {
  background: linear-gradient(to right, var(--blue), var(--c-border));
}

/* Nav layout for RTL */
html[dir="rtl"] .nav-controls { margin-inline-start: auto; margin-inline-end: 0; }

/* Stats RTL */
html[dir="rtl"] .stat-num { direction: ltr; text-align: right; }

/* ================================================================
   ANIMATIONS — Accessibility
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ================================================================
   LITE MODE — weak device / slow-connection graceful degradation.
   Set via html.lite by the head init script. Keeps layout, colors,
   content and hover interactions intact; drops only the GPU-heavy
   effects (backdrop/blur filters) and decorative infinite loops.
   ================================================================ */
html.lite *,
html.lite *::before,
html.lite *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}
/* Opaque nav instead of translucent blur */
html.lite .nav.scrolled { background: var(--c-bg) !important; }
/* Drop decorative floating particles + ring pulse */
html.lite .hero-particles { display: none !important; }
html.lite .particle { animation: none !important; }
html.lite .manifesto-ring { animation: none !important; }

/* ================================================================
   ADDITIONAL FIXES & POLISH
   ================================================================ */

/* Footer logo overrides are handled in the logo-variant block above */

/* RTL: flip inline arrows in buttons */
html[dir="rtl"] .btn svg,
html[dir="rtl"] .hero-actions .btn svg {
  transform: scaleX(-1);
}

/* service-card-arrow removed */

/* Ticker RTL: reverse direction */
html[dir="rtl"] .ticker-track {
  animation-name: tickerScrollRTL;
}

/* Smooth color transitions for all semantic tokens */
body, nav, section, footer, .service-card, .work-card, .team-card,
.contact-form, .form-input, .form-select, .form-textarea {
  transition: background-color var(--t-base), color var(--t-base),
              border-color var(--t-base);
}

/* Prevent transition flash on page load */
html.no-transitions * { transition: none !important; }

/* Ensure hero section fills viewport even on iOS */
@supports (height: 100svh) {
  .hero { min-height: 100svh; }
}

/* Nav wordmark font */
.nav-wordmark { font-family: var(--font-arabic); }
html[lang="en"] .nav-wordmark,
html[lang="fr"] .nav-wordmark { font-family: var(--font-latin); }

/* Stat number always LTR regardless of layout direction */
.stat-num {
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
}

/* Blue dot available pulse (reused in contact section) */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  50%       { box-shadow: 0 0 0 6px transparent; }
}

/* Form select arrow (custom) */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
html[dir="rtl"] .form-select {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 36px;
}

/* Work card body flex grows to fill */
.work-card-image { flex-shrink: 0; }
.work-card-body { flex: 1; display: flex; flex-direction: column; }
.work-card-desc { flex: 1; }

/* Founder section spacing refinement */
.founder-section { padding-bottom: clamp(60px, 10vw, 140px); }

/* ================================================================
   BLUE-REDUCTION OVERRIDES
   Blue kept ONLY in: manifesto accent climax, badge-dot, work tags
   Everything else → dark / neutral
   ================================================================ */

/* Buttons: dark primary */
.btn-primary {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}
.btn-primary:hover {
  background: var(--c-text-85);
  border-color: var(--c-text-85);
  box-shadow: 0 8px 24px var(--black-10);
}
[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Nav CTA: dark */
.nav-cta {
  background: var(--c-text);
  color: var(--c-bg);
}
.nav-cta:hover {
  background: var(--c-text-85);
  box-shadow: 0 6px 20px var(--black-10);
}
[data-theme="dark"] .nav-cta:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Section labels: neutral */
.section-label { color: var(--c-text-60); }
.section-label::before { background: var(--c-text-30); }

/* Service card hover: dark tint */
.service-card:hover .service-icon-wrap {
  background: var(--c-surface-md);
  color: var(--c-text);
  transform: scale(1.05);
}

/* Light mode: soften hover backgrounds on belief items + service cards */
[data-theme="light"] .manifesto-belief-item:hover { background: #F0F0F0 !important; }
[data-theme="light"] .service-card:hover { background: #F0F0F0 !important; }
[data-theme="light"] .service-card:hover .service-icon-wrap { background: var(--blue-08) !important; }
.service-card-arrow { color: var(--c-text-60); }

/* Pipeline dots: dark */
.pipeline-step.active .pipeline-dot {
  background: var(--c-surface-md);
  border-color: var(--c-text);
  color: var(--c-text);
}
.pipeline-step.active .pipeline-name { color: var(--c-text); }

/* Process active step: dark ring */
.process-step.visible .process-num {
  border-color: var(--c-text);
  color: var(--c-text);
  background: var(--c-surface);
  box-shadow: 0 0 0 8px var(--c-surface);
}

/* Scroll indicator line: dark */
.scroll-line-inner { background: var(--c-text-30); }

/* Form focus: dark, no blue shadow */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c-text);
  background: var(--c-bg);
  box-shadow: 0 0 0 3px var(--c-surface-md);
}

/* Form submit: dark */
.form-submit {
  background: var(--c-text);
  color: var(--c-bg);
}
.form-submit:hover {
  background: var(--c-text-85);
  box-shadow: 0 8px 24px var(--black-10);
}
[data-theme="dark"] .form-submit:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Success icon: dark */
.success-icon {
  background: var(--c-surface-md);
  color: var(--c-text);
}

/* Contact detail hover: dark */
.contact-detail:hover { color: var(--c-text); }

/* Work card link: dark */
.work-card-link { color: var(--c-text-60); }

/* Founder role color: neutral */
.founder-role { color: var(--c-text-60); }

/* Mobile menu CTA: dark */
.mobile-menu .btn-primary {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}

/* ================================================================
   HERO — Calligraphy-centred, grid background
   ================================================================ */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Subtle dot grid — masked at edges */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--c-border) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 10%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}

/* Per-element spacing for intentional hierarchy */
.hero-brand-display { margin-bottom: clamp(20px, 3.5vw, 40px); }
.hero-divider       { margin-bottom: clamp(16px, 2.5vw, 28px); }
.hero-text          { margin-bottom: clamp(20px, 3vw, 32px); }
.hero-actions-new   { margin-bottom: clamp(28px, 4vw, 44px); }

/* ─ Calligraphy brand display ─ */
.hero-brand-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: blurIn 1.4s 0.1s var(--ease-out) both;
}

/* Background watermark calligraphy */
.hero-calligraphy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 55vw, 700px);
  height: auto;
  opacity: 0.06;
  pointer-events: none;
  will-change: transform;
  /* note: display controlled by .logo-variant + lv-* rules */
}

/* Legacy class — used in index.html hero brand display */
.hero-calligraphy-main {
  width: clamp(200px, 38vw, 520px);
  height: auto;
  display: block;
  will-change: transform;
}
/* When used as a logo variant, hide by default (theme+lang rules override) */
.hero-calligraphy-main.logo-variant { display: none; }

/* ================================================================
   INTRO OVERLAY ANIMATION
   ================================================================ */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-bg);           /* matches page bg — light or dark */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
#intro-overlay.intro-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#intro-overlay.intro-done .intro-sig-wrap {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.4s;
}
.intro-sig-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sizing + animation — NO display:block here (controlled by .logo-variant rules) */
/* Latin logo: reveal left → right */
.intro-sig-la {
  width: clamp(240px, 44vw, 580px);
  height: auto;
  clip-path: inset(0 100% 0 0);
  animation: sig-write 1.3s cubic-bezier(0.76, 0, 0.24, 1) 0.25s 1 normal both;
}
/* Arabic logo: reveal right → left */
.intro-sig-ar {
  width: clamp(180px, 28vw, 400px);
  height: auto;
  clip-path: inset(0 0 0 100%);
  animation: sig-write-rtl 1.3s cubic-bezier(0.76, 0, 0.24, 1) 0.25s 1 normal both;
}
@keyframes sig-write {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}
@keyframes sig-write-rtl {
  0%   { clip-path: inset(0 0 0 100%); }
  100% { clip-path: inset(0 0 0 0%); }
}
/* Prevent scroll during intro */
body.intro-active { overflow: hidden; }

/* Latin tracked wordmark */
.hero-latin-track {
  display: flex;
  align-items: center;
  gap: 0.15em;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(8px, 1.1vw, 13px);
  font-weight: 300;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--c-text-30);
  /* Brand wordmark is always LTR regardless of page direction */
  direction: ltr;
  unicode-bidi: isolate;
}
.hero-latin-dot { color: var(--c-text-30); margin: 0 0.25em; letter-spacing: 0; }

/* ─ Decorative divider with logo mark ─ */
.hero-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  animation: fadeUp 0.9s 0.35s var(--ease-out) both;
}
.hero-divider-line {
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.hero-divider-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.35;
}
.hero-divider-mark img { width: 100%; height: 100%; object-fit: contain; }

/* ─ Headline + sub + CTA ─ */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 660px;
  animation: fadeUp 0.9s 0.5s var(--ease-out) both;
}

.hero-headline {
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.hero-sub-new {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-text-60);
  max-width: 48ch;
}

.hero-actions-new {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: fadeUp 0.9s 0.7s var(--ease-out) both;
}

/* ─ Location/availability strip ─ */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeUp 0.9s 0.9s var(--ease-out) both;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-60);
  font-family: var(--font-latin);
}
.hero-meta-dot { width: 5px; height: 5px; background: var(--c-text-30); border-radius: 50%; }
.hero-meta-dot.live { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }

/* ================================================================
   ILLUSTRATION STYLES
   ================================================================ */

/* ─ Seed-growth divider between sections ─ */
.seed-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.seed-divider-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seed-divider-line {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: var(--c-border);
}
.seed-divider-mark-large {
  width: 80px;
  height: 80px;
  background: var(--c-bg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.6s var(--ease-spring);
}
.seed-divider-mark-large:hover { transform: rotate(179.99deg) scale(1.1); }
.seed-divider-mark-large img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
/* ─ UI Mockup inside work card placeholder ─ */
.ui-mockup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}
.ui-mockup-bar {
  height: 36px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
  flex-shrink: 0;
}
.ui-mockup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-border);
}
.ui-mockup-url {
  flex: 1;
  height: 14px;
  background: var(--c-border);
  border-radius: 100px;
  max-width: 160px;
  margin-inline: auto;
}
.ui-mockup-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.ui-mockup-nav-row {
  height: 32px;
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.ui-mockup-nav-logo {
  width: 20px; height: 20px;
  background: var(--c-text);
  border-radius: 4px;
  opacity: 0.15;
}
.ui-mock-spacer { flex: 1; }
.ui-mock-btn {
  width: 60px; height: 16px;
  background: var(--c-text);
  border-radius: 100px;
  opacity: 0.12;
}
.ui-mockup-hero-row {
  flex: 1;
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  min-height: 60px;
  position: relative;
  overflow: hidden;
}
.ui-mock-hero-text {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ui-mock-line {
  height: 8px;
  background: var(--c-text);
  border-radius: 100px;
  opacity: 0.12;
}
.ui-mock-line.lg { width: 120px; }
.ui-mock-line.md { width: 80px; }
.ui-mock-line.sm { width: 50px; }
.ui-mock-cta {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  width: 70px; height: 22px;
  background: var(--c-text);
  border-radius: 100px;
  opacity: 0.15;
}
.ui-mockup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ui-mock-card {
  height: 50px;
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}

/* Featured card: branding mockup (more colorful) */
.ui-mockup.brand-mockup .ui-mockup-bar { background: var(--black); }
.ui-mockup.brand-mockup .ui-mockup-dot:first-child { background: #ff5f56; }
.ui-mockup.brand-mockup .ui-mockup-dot:nth-child(2) { background: #ffbd2e; }
.ui-mockup.brand-mockup .ui-mockup-dot:nth-child(3) { background: #27c93f; }

/* ─ Founder highlight strip ─ */
.founder-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
}
.founder-highlight-item {
  background: var(--c-bg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.founder-highlight-num {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-text);
  font-family: var(--font-latin);
  line-height: 1;
}
.founder-highlight-label {
  font-size: 12px;
  color: var(--c-text-60);
  line-height: 1.4;
}

/* ─ Process visual connector ─ */
.process-visual {
  margin-top: 60px;
  padding: 40px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.process-visual-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.process-visual-track::before {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--c-border) 0px, var(--c-border) 6px, transparent 6px, transparent 14px);
  z-index: 0;
}
.process-visual-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.process-visual-circle {
  width: 48px; height: 48px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-60);
  font-family: var(--font-latin);
}
.process-visual-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-60);
  text-align: center;
}
.process-visual-seed {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  opacity: 0.04;
  pointer-events: none;
}

/* ─ Services full-spectrum band ─ */
.spectrum-header {
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spectrum-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spectrum-header-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--c-text);
  margin: 0;
}
.spectrum-header-desc {
  font-size: 14px;
  color: var(--c-text-60);
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

.spectrum-band {
  margin-top: 60px;
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg);
}
.spectrum-top {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--c-border);
  gap: 1px;
}
.spectrum-cell {
  background: var(--c-bg);
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: background var(--t-fast);
}
.spectrum-cell:hover {
  background: var(--blue-08, rgba(37, 99, 235, 0.06));
}
.spectrum-cell-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-15, rgba(37, 99, 235, 0.12));
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-latin);
}
.spectrum-cell-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.35;
}
.spectrum-bottom {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.spectrum-tagline {
  font-size: 13px;
  color: var(--c-text-60);
}
.spectrum-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  letter-spacing: 0.01em;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.spectrum-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ─ Quote / Pull-quote element ─ */
.pull-quote {
  padding: clamp(40px, 6vw, 80px) 0;
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.pull-quote-mark {
  font-size: 120px;
  line-height: 0.7;
  color: var(--c-border);
  font-family: var(--font-latin);
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 24px;
}
html[dir="rtl"] .pull-quote-mark {
  /* Arabic uses right-opening guillemet; order flips naturally in RTL flex */
  font-family: var(--font-arabic);
}
html[dir="rtl"] .pull-quote-mark::after {
  content: '«';
}
html[dir="ltr"] .pull-quote-mark::after {
  content: '"';
}
/* Remove any text node content in the element; content comes from ::after */
.pull-quote-mark { font-size: 0; }
.pull-quote-mark::after { font-size: 120px; }
.pull-quote-text {
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--c-text-85);
}
.pull-quote-author {
  margin-top: 16px;
  font-size: 13px;
  color: var(--c-text-60);
}

/* Founder photo — professional dark-bg styling */
.founder-photo-dark {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a1f 0%, #0E0E11 60%, #161619 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.founder-photo-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 90%;
  background: linear-gradient(to top, #2a2a30 0%, #1e1e24 40%, transparent 100%);
  border-radius: 50% 50% 0 0;
  opacity: 0.5;
}
.founder-photo-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(37,99,235,0.04) 0%, transparent 60%);
}
.founder-img-instruction {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}
.founder-img-icon {
  width: 48px; height: 48px;
  background: rgba(245,245,245,0.06);
  border: 1px solid rgba(245,245,245,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,245,245,0.4);
}
.founder-img-text {
  font-size: 11px;
  color: rgba(245,245,245,0.3);
  font-family: var(--font-latin);
  letter-spacing: 0.05em;
}

/* Team card photo dark */
.team-photo-dark {
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, #e8e5df 0%, #d4d0c8 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
[data-theme="dark"] .team-photo-dark {
  background: linear-gradient(150deg, #1e1e23 0%, #161619 100%);
}
.team-photo-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 85%;
  background: linear-gradient(to top, rgba(14,14,17,0.2) 0%, transparent 80%);
  border-radius: 50% 50% 0 0;
}
[data-theme="dark"] .team-photo-silhouette {
  background: linear-gradient(to top, rgba(245,245,245,0.08) 0%, transparent 80%);
}

/* ─ Available badge on contact ─ */
.available-pulse {
  width: 8px; height: 8px;
  background: #16a34a;
  border-radius: 50%;
  flex-shrink: 0;
  animation: availPulse 2.5s ease-in-out infinite;
}
@keyframes availPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  50%       { box-shadow: 0 0 0 5px transparent; }
}

/* Nav logo-only size fix */
.nav-logo-mark { width: 60px; height: 60px; }

/* ─ Responsive adjustments for new elements ─ */
@media (max-width: 768px) {
  .nav-logo-mark { width: 40px; height: 40px; }
  .hero-calligraphy-main { width: clamp(220px, 82vw, 420px); }
  .founder-highlights { grid-template-columns: 1fr 1fr; }
  .spectrum-top { grid-template-columns: repeat(3, 1fr); }
  /* Fill the empty cell in the last row when 5 items don't divide evenly */
  .spectrum-cell:last-child { grid-column: span 2; }
  .process-visual { padding: 24px 16px; }
  .pull-quote { flex-direction: column; gap: 16px; }
  .pull-quote-mark { font-size: 60px; }
  /* Faster ticker on mobile */
  .ticker-track { animation-duration: 15s !important; }
}
@media (max-width: 480px) {
  .hero-latin-track { letter-spacing: 0.35em; }
  .founder-highlights { grid-template-columns: 1fr; }
  .spectrum-top { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   MANIFESTO — Two-column redesign
   ================================================================ */

/* Light mode: replace blue glow with a very soft neutral */

.manifesto-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Two-column grid */
.manifesto-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 960px) {
  .manifesto-layout { grid-template-columns: 1fr; }
  .manifesto-aside  { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ─ Visual aside ─ */
.manifesto-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Concentric seed rings */
.manifesto-rings {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.manifesto-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  animation: manifesto-ring-pulse 5s ease-in-out infinite;
}
.manifesto-ring.r1 {
  width: 100%; height: 100%;
  animation-delay: 0s;
}
.manifesto-ring.r2 {
  width: 68%; height: 68%;
  opacity: 0.6;
  animation-delay: 0.6s;
}
.manifesto-ring.r3 {
  width: 40%; height: 40%;
  opacity: 0.35;
  animation-delay: 1.2s;
}
@keyframes manifesto-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.04); opacity: 1; }
}
.manifesto-ring.r1 { animation-name: manifesto-ring-pulse; }
.manifesto-ring.r2 { animation-name: manifesto-ring-pulse; }
.manifesto-ring.r3 { animation-name: manifesto-ring-pulse; }

.manifesto-seed-center {
  width: 76px; height: 76px;
  background: var(--c-bg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.6s var(--ease-spring);
}
.manifesto-seed-center:hover { transform: rotate(179.99deg) scale(1.08); }
.manifesto-seed-center img {
  width: 44px; height: 44px;
  object-fit: contain;
  opacity: 0.85;
}

/* Core belief list */
.manifesto-beliefs {
  list-style: none;
  padding: 0; margin: 0;
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.manifesto-belief-item {
  background: var(--c-bg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: background var(--t-fast);
}
.manifesto-belief-item:hover { background: var(--c-surface); }
.manifesto-belief-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-text-30);
  font-family: var(--font-latin);
  padding-top: 3px;
  flex-shrink: 0;
}
.manifesto-belief-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 5px;
}
.manifesto-belief-desc {
  font-size: 12px;
  color: var(--c-text-60);
  line-height: 1.6;
}

/* Manifesto body: max-width removed for 2-col layout */
.manifesto-body { max-width: none; }

/* Section label inside manifesto — dark mode needs white override */
[data-theme="dark"] .manifesto .section-label {
  color: rgba(255, 255, 255, 0.55);
}
[data-theme="dark"] .manifesto .section-label::before {
  background: rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 900px) {
  .manifesto-layout {
    grid-template-columns: 1fr;
  }
  .manifesto-aside {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .manifesto-rings {
    width: 160px; height: 160px;
    flex-shrink: 0;
  }
  .manifesto-seed-center { width: 52px; height: 52px; }
  .manifesto-seed-center img { width: 30px; height: 30px; }
}
@media (max-width: 600px) {
  .manifesto-aside { flex-direction: column; align-items: center; }
}

