/* ═══════════════════════════════════════════════════════════════
   FLAMINGO EMERGING TECHNOLOGIES — DESIGN SYSTEM
   Color Palette: Blue, Light Blue, White, Black, Gray ONLY
   Typography: Space Grotesk, Plus Jakarta Sans, JetBrains Mono, IBM Plex Sans Arabic
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Canvas */
  --white: #FFFFFF;
  --alabaster: #F8FAFC;
  --grid-line: #E2E8F0;
  /* Charcoal Architecture (No pure black anywhere) */
  --charcoal-bg: #16181D;
  --charcoal-surface: #1E2128;
  --charcoal-border: #2B303B;
  --charcoal-border-subtle: #242832;
  --obsidian: #16181D;
  --navy: #16181D;
  --navy-card: #1E2128;
  /* Brand */
  --cobalt: #0284C7;
  --cyan: #00D2FF;
  /* Text */
  --ink: #091426;
  --ink-heading: #181A20;
  --slate: #475569;
  --mono-gray: #64748B;
  /* Two-Tone Headings */
  --heading-light-p1: #181A20;
  --heading-light-p2: #9CA3AF;
  --heading-dark-p1: #FFFFFF;
  --heading-dark-p2: #9CA3AF;
  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1280px;
  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  /* Radius & Double-Framed Card Tokens */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --card-outer-radius: 1.5rem;
  --card-inner-radius: 1rem;
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

/* RTL support */
html[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}
html[dir="rtl"] .mono,
html[dir="rtl"] [class*="mono"] {
  font-family: 'IBM Plex Sans Arabic', 'JetBrains Mono', monospace;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .hero-headline,
html[dir="rtl"] .section-title,
html[dir="rtl"] .bento-title,
html[dir="rtl"] .engine-name,
html[dir="rtl"] .bp-title,
html[dir="rtl"] .gov-title,
html[dir="rtl"] .contact-headline,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-cta,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .nav-wm-primary,
html[dir="rtl"] .fw-primary {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: normal;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.mono { font-family: 'JetBrains Mono', monospace; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ── SCROLL PROGRESS INDICATOR ─────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 99999;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cobalt) 0%, var(--cyan) 100%);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
  transition: width 0.05s ease-out;
}

html[dir="rtl"] .scroll-progress-bar {
  background: linear-gradient(270deg, var(--cobalt) 0%, var(--cyan) 100%);
}

/* ── MAIN CONTENT WRAPPER ─────────────────────────────────── */
.main-content {
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

/* ── SECTION BASE ──────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   INTRO SCROLL RUNWAY & SINGLE-ELEMENT MORPHING NAVBAR
   Zero Duplicate Navbars — Unified Continuous Fixed Element
   ═══════════════════════════════════════════════════════════════ */
#intro-scroll-spacer,
.intro-runway {
  height: 250vh;
  height: 250dvh;
  width: 100%;
  pointer-events: none;
  position: relative;
}

#morph-navbar,
.floating-pill-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-sizing: border-box;
  padding: 0;
  overflow: visible;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.pill-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
}

/* Brand Lockup: Anchored consistently at left: 24px, vertically centered inside #morph-navbar.
   Initial CSS transform renders the bird emblem directly in the dead center at scale(1.4) to eliminate any FOUC or flash on the far left. */
#brand-lockup,
.nav-brand-pill {
  position: absolute !important;
  left: 24px !important;
  top: 50% !important;
  transform-origin: left center !important;
  transform: translateY(-50%) translateX(calc(50vw - 79.1px)) scale(1.75);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-shrink: 0 !important;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
  user-select: none;
  margin: 0 !important;
}

/* High-res Native Emblem (native base size ~80px, crisp high-DPI rendering) */
#brand-emblem,
#nav-logo,
.nav-pill-logo,
.brand-emblem {
  height: 80px !important;
  width: auto;
  aspect-ratio: 1113 / 1414;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: auto !important;
  background-size: contain !important;
  object-fit: contain;
  filter: none !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* Zero-Lag Visual Fix: Eliminate GPU Bitmap Squishing & Jagged Edges */
#brand-lockup, #brand-emblem, #wordmark-wrapper {
  backface-visibility: hidden !important;
  transform-style: preserve-3d !important;
  perspective: 1000px !important;
}

#brand-emblem {
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: auto !important;
  background-size: contain !important;
}

/* Enforce strict scrollbar removal on wordmark and brand lockup */
#wordmark-wrapper,
#brand-lockup {
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#wordmark-wrapper::-webkit-scrollbar,
#brand-lockup::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Lock Document, Navbar, Brand Lockup, and Layout strictly to LTR (No OGNIMALF!) */
html,
body,
#morph-navbar,
.floating-pill-nav,
.pill-nav-inner,
#brand-lockup,
.nav-brand-pill,
#wordmark-wrapper,
.wordmark-wrapper,
#nav-wordmark,
.nav-wordmark,
.nav-wordmark .char,
.wm-letter-wrap,
#nav-controls-wrapper,
.nav-controls-wrapper {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

#brand-lockup {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Translate text in-place with Arabic typography without flipping layouts */
html[lang="ar"] [data-i18n]:not(.nav-wordmark):not(.nav-wordmark *):not(.char) {
  font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', sans-serif;
  unicode-bidi: plaintext;
}

/* Wordmark Wrapper: Native high-res base size, letters revealed via .char yPercent */
#wordmark-wrapper,
.wordmark-wrapper {
  width: 318px !important;
  opacity: 1;
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  white-space: nowrap;
  pointer-events: none;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 26px !important;
  margin-right: 0px;
  box-sizing: border-box;
  flex-shrink: 0 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

#wordmark-wrapper {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

#nav-wordmark,
.nav-wordmark {
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding-right: 0;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0B1528;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  filter: none !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

.wm-letter-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.wm-letter-wrap.wm-letter-o {
  display: inline-block;
  letter-spacing: -0.04em;
}

.nav-wordmark .char {
  display: inline-block;
  line-height: 1;
  color: #0B1528;
  filter: none !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  will-change: transform, opacity;
  opacity: 0;
}

/* Custom Two-Tone Split-Cyan "FLAMINGO" Wordmark */
/* Letter "I": Top ~28% bright cyan (#00C8FF), lower ~72% deep navy (#0B1528) with crisp horizontal split */
.nav-wordmark .char[data-accent="i"] {
  background: linear-gradient(180deg, #00C8FF 0%, #00C8FF 28%, #0B1528 28%, #0B1528 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* Letter "O": Top arch (~32%) bright cyan (#00C8FF), lower body deep navy (#0B1528), compact & sleek */
.nav-wordmark .char[data-accent="o"] {
  background: linear-gradient(180deg, #00C8FF 0%, #00C8FF 32%, #0B1528 32%, #0B1528 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  letter-spacing: -0.04em;
}

/* Nav Controls Wrapper (Links + Actions) */
#nav-controls-wrapper,
.nav-controls-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(36px, 4vw, 64px) !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  max-width: calc(100% - 200px) !important;
}

.floating-pill-nav.docked #nav-controls-wrapper,
#morph-navbar.is-docked-pill #nav-controls-wrapper {
  pointer-events: auto;
}

#morph-navbar:not(.is-docked-pill) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  background: #F8FAFC !important;
}

#morph-navbar.is-docked-pill,
.floating-pill-nav.docked.is-docked-pill {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 12px 32px rgba(9, 20, 38, 0.08) !important;
}

#nav-controls-wrapper .nav-links-pill,
.nav-controls-wrapper .nav-links-pill {
  min-width: max-content !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

#nav-controls-wrapper .nav-actions-pill,
.nav-controls-wrapper .nav-actions-pill {
  min-width: max-content !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* Docked Pill Navbar Pose (Fallback/Static state when docked) */
.floating-pill-nav.docked {
  width: min(95vw, 1240px);
  height: 64px;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
  padding: 0;
  border: 1px solid #E2E8F0;
  pointer-events: auto;
}
.floating-pill-nav.docked .pill-nav-inner {
  padding: 0 24px;
  width: 100%;
}
.floating-pill-nav.docked .wordmark-wrapper {
  pointer-events: auto;
}
.floating-pill-nav.docked .nav-controls-wrapper {
  width: 100%;
  flex-grow: 1;
  opacity: 1;
  margin-left: 28px;
  margin-right: 0;
  gap: clamp(36px, 4vw, 64px) !important;
  pointer-events: auto;
  overflow: visible;
  transform: translateY(0) translateZ(0);
}

/* Center: Navigation Links */
.nav-links-pill {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.1vw, 1.15rem);
  opacity: 1;
}

.pill-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.8rem, 0.85vw, 0.85rem);
  font-weight: 500;
  color: #091426;
  padding: 6px clamp(6px, 0.75vw, 10px);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
html[dir="rtl"] .pill-link {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.pill-link:hover {
  color: var(--cobalt);
  background: rgba(2, 132, 199, 0.08);
}
.pill-link.active {
  color: var(--cobalt);
  font-weight: 600;
  background: rgba(2, 132, 199, 0.1);
}

/* Right: Actions */
.nav-actions-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  flex-shrink: 0;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--grid-line);
  border-radius: 9999px;
  background: var(--alabaster);
  color: var(--slate);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-search-btn:hover {
  border-color: var(--cyan);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.15);
}
.search-svg { color: var(--cobalt); }
.search-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid #cbd5e1;
  color: var(--mono-gray);
  line-height: 1;
}

.lang-toggle-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--slate);
  padding: 6px 12px;
  border: 1px solid var(--grid-line);
  border-radius: 9999px;
  background: var(--white);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.lang-toggle-pill:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.nav-cta-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--cobalt) 0%, #0274b3 100%);
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
html[dir="rtl"] .nav-cta-pill {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.nav-cta-pill:hover {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cobalt) 100%);
  color: var(--obsidian);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.35);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--grid-line);
  cursor: pointer;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* Scroll indicator on initial 100vh canvas */
.intro-scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}
.intro-scroll-indicator .mono {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mono-gray);
  animation: pulseIndicator 2.5s ease-in-out infinite;
}

@keyframes pulseIndicator {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* Mobile dropdown menu */
.mobile-menu-pill {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--grid-line);
  border-radius: var(--r-lg);
  padding: 16px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 20px 40px rgba(9, 20, 38, 0.12);
}
.mobile-menu-pill.open { display: flex; }
.mobile-pill-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  border-radius: 8px;
  transition: all 0.25s ease;
}
.mobile-pill-link:hover {
  background: var(--alabaster);
  color: var(--cobalt);
}
.mobile-pill-link.mobile-cta {
  background: var(--cobalt);
  color: var(--white) !important;
  text-align: center;
  margin-top: 6px;
  font-weight: 600;
}

/* Mobile responsive navbar */
@media (max-width: 1024px) {
  .nav-links-pill { display: none; }
  .mobile-menu-btn { display: flex; }
  .search-btn-label { display: none; }
}
@media (max-width: 640px) {
  .nav-search-btn { padding: 6px 8px; }
  .search-kbd { display: none; }
  .nav-cta-pill { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   EDITORIAL SECTION HEADERS (Consistent Architectural Typography)
   ═══════════════════════════════════════════════════════════════ */
.editorial-header {
  margin-bottom: clamp(36px, 5vw, 64px);
}
.editorial-header.dark {
  color: var(--white);
}

.eyebrow {
  display: none !important;
}

.editorial-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 700;
  color: var(--ink-heading);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.editorial-title.light {
  color: var(--white);
}

.editorial-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--slate);
  max-width: 780px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.editorial-desc.light {
  color: #94a3b8;
}

.editorial-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  border-radius: 2px;
}
.editorial-divider.light {
  background: linear-gradient(90deg, var(--cyan), #38bdf8);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 1: HERO
   ═══════════════════════════════════════════════════════════════ */
.hero-section,
#hero {
  margin-top: 0 !important;
  padding-top: var(--section-pad);
  background: var(--white);
  border-bottom: 1px solid var(--grid-line);
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: 70vh;
}

.hero-left {
  padding-right: clamp(16px, 3vw, 48px);
}
html[dir="rtl"] .hero-left {
  padding-right: 0;
  padding-left: clamp(16px, 3vw, 48px);
}

.pill-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cobalt);
  background: rgba(2,132,199,0.06);
  border: 1px solid rgba(2,132,199,0.15);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}



.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-headline-p1 {
  color: #091426;
  font-weight: 800;
  display: inline;
}

.hero-headline-p2 {
  color: #9CA3AF;
  font-weight: 700;
  display: inline;
}

html[dir="rtl"] .hero-headline {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.hero-subhead {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--slate);
  max-width: 540px;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   HERO CAPABILITY BRIEF CARD (Hover/Tap Expandable)
   ═══════════════════════════════════════════════════════════════ */
.hero-brief-card {
  max-width: 540px;
  background: var(--alabaster);
  border: 1px solid var(--grid-line);
  border-radius: var(--card-inner-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(9, 20, 38, 0.04);
}
.hero-brief-lead {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}
.hero-brief-card .spec-drawer-scroll {
  border-top: 1px dashed var(--grid-line);
}
.hero-brief-card.expanded .spec-drawer-scroll,
.hero-brief-card.is-expanded .spec-drawer-scroll {
  max-height: 72vh !important;
  height: auto !important;
  min-height: 380px;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 3rem !important;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cobalt), var(--cyan));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(2,132,199,0.25);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0,210,255,0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--grid-line);
}
.btn-secondary:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

/* Hero right */
.hero-right {
  position: relative;
}

.hero-image-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-lg);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 85% 100%, 0 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-clip-border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  pointer-events: none;
}

/* Telemetry console */
.telemetry-console {
  position: absolute;
  bottom: -24px;
  left: -48px;
  width: clamp(300px, 80%, 380px);
  background: var(--charcoal-surface);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--card-inner-radius);
  padding: 0;
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
html[dir="rtl"] .telemetry-console {
  left: auto;
  right: -48px;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(30,41,59,0.4);
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.console-dot.red { background: #ef4444; }
.console-dot.yellow { background: #f59e0b; }
.console-dot.green { background: #22c55e; }

.console-title {
  margin-left: auto;
  font-size: 9px;
  color: var(--mono-gray);
  letter-spacing: 0.1em;
}
html[dir="rtl"] .console-title {
  margin-left: 0;
  margin-right: auto;
}

.console-body { padding: 14px 16px; }

.pipeline-svg { width: 100%; height: auto; }

.pipeline-dot {
  animation: pipelinePulse 2s ease-in-out infinite;
}
.pipeline-dot.dot-2 { animation-delay: 0.6s; }

@keyframes pipelinePulse {
  0%, 100% { opacity: 0.3; r: 3; }
  50% { opacity: 1; r: 4; }
}

.console-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(30,41,59,0.3);
}
.stat-label { font-size: 9px; color: var(--mono-gray); letter-spacing: 0.06em; }
.stat-value { font-size: 11px; color: var(--cyan); font-weight: 600; }

.pipeline-latency {
  animation: latencyFlicker 3s ease-in-out infinite;
}
@keyframes latencyFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 2: MARQUEE
   ═══════════════════════════════════════════════════════════════ */
.marquee-section {
  padding: 48px 0;
  border-top: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  background: var(--white);
  overflow: hidden;
}

.marquee-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mono-gray);
  text-align: center;
  margin-bottom: 32px;
}

.marquee-track-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.marquee-track-wrapper::before,
.marquee-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}
.marquee-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeScrollRtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
html[dir="rtl"] .marquee-track {
  animation-name: marqueeScrollRtl;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 20px;
  border: 1px solid var(--grid-line);
  border-radius: var(--r-sm);
  transition: all 0.3s var(--ease);
}
.marquee-item:hover {
  border-color: var(--cobalt);
}
.marquee-item:hover span {
  color: var(--cobalt);
}
.marquee-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: filter 0.3s;
}
.marquee-item:hover img {
  filter: brightness(0) saturate(100%) invert(34%) sepia(98%) saturate(1000%) hue-rotate(178deg) brightness(95%) contrast(101%);
}
.marquee-item span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--slate);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 3: CORE DISCIPLINES
   ═══════════════════════════════════════════════════════════════ */
.capabilities-section {
  background: var(--alabaster);
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM TWO-TONE EDITORIAL SECTION HEADINGS
   Vishwa Limbani Reference Display Typography
   ═══════════════════════════════════════════════════════════════ */
.editorial-header {
  margin-bottom: clamp(36px, 5.5vw, 60px);
  position: relative;
}

.editorial-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cobalt);
  text-transform: uppercase;
  margin-bottom: clamp(14px, 1.8vw, 20px);
}
.editorial-header.dark .eyebrow {
  color: var(--cyan);
}
.editorial-header .eyebrow-num {
  color: var(--cyan);
}

.editorial-heading {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 800;
  font-size: clamp(3.25rem, 6.8vw, 6.25rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(16px, 2.2vw, 24px) 0;
  display: block;
  word-wrap: break-word;
}

html[dir="rtl"] .editorial-heading {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  letter-spacing: 0em;
  line-height: 1.14;
}

/* Light sections (#FFFFFF / #F8FAFC): Very Dark Gray #181A20 + Cool Gray #9CA3AF */
.editorial-header:not(.dark) .heading-part1 {
  color: var(--heading-light-p1);
  display: inline;
}
.editorial-header:not(.dark) .heading-part2 {
  color: var(--heading-light-p2);
  display: inline;
  margin-left: 0.22em;
}
html[dir="rtl"] .editorial-header:not(.dark) .heading-part2 {
  margin-left: 0;
  margin-right: 0.25em;
}

/* Dark sections (#16181D): Pure White #FFFFFF + Cool Gray #9CA3AF */
.editorial-header.dark .heading-part1 {
  color: var(--heading-dark-p1);
  display: inline;
}
.editorial-header.dark .heading-part2 {
  color: var(--heading-dark-p2);
  display: inline;
  margin-left: 0.22em;
}
html[dir="rtl"] .editorial-header.dark .heading-part2 {
  margin-left: 0;
  margin-right: 0.25em;
}

.editorial-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--slate);
  max-width: 620px;
  margin: 0;
}
.editorial-header.dark .editorial-desc {
  color: rgba(255, 255, 255, 0.65);
}

.editorial-divider {
  width: 48px;
  height: 2px;
  background: var(--grid-line);
  margin-top: 24px;
}
.editorial-header.dark .editorial-divider {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .editorial-heading {
    font-size: clamp(2.25rem, 8.5vw, 3.5rem);
    line-height: 1.05;
  }
}

/* Fallback legacy section-header classes */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.section-number {
  font-size: 12px;
  color: var(--cobalt);
  letter-spacing: 0.1em;
}
.section-header-divider {
  width: 40px;
  height: 1px;
  background: var(--grid-line);
}
.section-header-divider.light {
  background: rgba(255,255,255,0.15);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--ink-heading);
  letter-spacing: -0.01em;
}
.section-title.light { color: var(--white); }
.section-header.dark .section-number { color: var(--cyan); }
.section-subtitle {
  font-size: 16px;
  color: var(--slate);
  margin-bottom: 48px;
  max-width: 600px;
}
.section-subtitle.light { color: rgba(255,255,255,0.6); }

/* Bento Grid - 4 Equal Cards in Balanced 2x2 Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--grid-line);
  border-radius: var(--card-outer-radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.bento-card:hover {
  box-shadow: 0 16px 48px rgba(9, 20, 38, 0.08);
  border-color: var(--cobalt);
}

/* ═══════════════════════════════════════════════════════════════
/* ═══════════════════════════════════════════════════════════════
   UNIVERSAL ON-THE-SPOT EXPANDABLE SPEC CARD SYSTEM
   "More Details ↗" Trigger Pill + Floating Overlay + Zero Layout Shift
   ═══════════════════════════════════════════════════════════════ */
/* Ancestor Clipping Prevention - Ensure all parent containers have overflow: visible !important */
.card-slot,
.project-card-slot,
.hero-brief-slot,
.cards-grid,
.bento-grid,
.project-cards-grid,
.blueprints-grid,
.partners-grid,
.governance-grid,
#capabilities,
#products,
#governance,
#partners,
#projects,
#blueprints,
.capabilities-section,
.products-section,
.governance-section,
.partners-section,
.projects-section {
  overflow: visible !important;
}

.card-slot {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

body.modal-is-open {
  overflow: hidden !important;
}

#focus-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9998 !important;
  background: rgba(15, 23, 42, 0.28) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  cursor: pointer;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease !important;
}

body.modal-is-open #focus-backdrop {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#global-spec-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -48%) scale(0.96) translateZ(0) !important;
  width: min(92vw, 620px) !important;
  max-height: 85vh !important;
  background: #FFFFFF !important;
  border: 1.5px solid #0284C7 !important;
  border-radius: 24px !important;
  box-shadow: 0 32px 64px rgba(9, 20, 38, 0.22) !important;
  padding: 0 !important;
  z-index: 10000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease !important;
}

body.modal-is-open #global-spec-modal {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1) translateZ(0) !important;
}

/* Modal Inner Layout & Typography */
.spec-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  max-height: 85vh;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(2, 132, 199, 0.45) transparent;
}

.spec-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 12px;
}

.spec-modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #CBD5E1;
  background: rgba(241, 245, 249, 0.8);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.spec-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
}

.spec-modal-title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin: 0;
}

.spec-modal-lead {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.spec-modal-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-modal-body .spec-content-block {
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.spec-modal-body .spec-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
  margin-bottom: 6px;
}

.spec-modal-body .spec-block-desc {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

/* Arabic RTL support inside Modal */
html[lang="ar"] #global-spec-modal {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .spec-modal-topbar {
  flex-direction: row-reverse;
}

html[lang="ar"] .spec-modal-close {
  margin-left: 0;
  margin-right: auto;
}

html[lang="ar"] .spec-modal-body .spec-block-title {
  flex-direction: row;
}

/* Custom Scrollbar for Modal Inner (Subtle, slim, safely inside rounded borders) */
.spec-modal-inner::-webkit-scrollbar {
  width: 6px;
}
.spec-modal-inner::-webkit-scrollbar-track {
  background: transparent;
  margin: 16px 0;
}
.spec-modal-inner::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.45);
  border-radius: 999px;
}
.spec-modal-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 132, 199, 0.75);
}

/* Dark Mode Modal Support */
.dark #global-spec-modal {
  background: #181A20 !important;
  border-color: #00D2FF !important;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5) !important;
}
.dark .spec-modal-inner {
  scrollbar-color: rgba(0, 210, 255, 0.45) transparent;
}
.dark .spec-modal-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.45);
}
.dark .spec-modal-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 255, 0.75);
}
.dark .spec-modal-topbar {
  border-bottom-color: #2D3748;
}
.dark .spec-modal-close {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.3);
  color: #00D2FF;
}
.dark .spec-modal-close:hover {
  background: rgba(0, 210, 255, 0.2);
}
.dark .spec-modal-title {
  color: #FFFFFF !important;
}
.dark .spec-modal-lead {
  color: #94A3B8 !important;
}
.dark .spec-modal-body .spec-content-block {
  background: #1F242D;
  border-color: #2D3748;
}
.dark .spec-modal-body .spec-block-title {
  color: #FFFFFF;
}
.dark .spec-modal-body .spec-block-desc {
  color: #94A3B8;
}

/* ── ENTERPRISE LEGAL & PRIVACY MODAL ───────────────────────── */
#legal-modal-overlay {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

#legal-modal-inner {
  box-shadow: 0 25px 50px -12px rgba(11, 21, 40, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-family: 'Plus Jakarta Sans', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  transform: scale(0.96) translateZ(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#legal-modal-overlay.open #legal-modal-inner {
  transform: scale(1) translateZ(0);
}

#legal-modal-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0B1528;
  letter-spacing: -0.025em;
  padding-right: 32px;
}

.legal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0B1528;
  margin: 22px 0 8px 0;
  letter-spacing: -0.015em;
}

.legal-content h3:first-child {
  margin-top: 14px;
}

.legal-content p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 14px;
}

#close-legal-btn {
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

#close-legal-btn:hover {
  color: #0B1528 !important;
  transform: scale(1.15);
}

/* Custom scrollbar for legal-modal-inner */
#legal-modal-inner::-webkit-scrollbar {
  width: 6px;
}
#legal-modal-inner::-webkit-scrollbar-track {
  background: transparent;
  margin: 16px 0;
}
#legal-modal-inner::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-radius: 999px;
}
#legal-modal-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.65);
}

/* RTL Support */
html[lang="ar"] #legal-modal-inner {
  direction: rtl;
  text-align: right;
}
html[lang="ar"] #close-legal-btn {
  right: auto !important;
  left: 24px !important;
}
html[lang="ar"] #legal-modal-inner h2 {
  padding-right: 0;
  padding-left: 32px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE OVERRIDE: INTRO CHOREOGRAPHY & COMPACT UI
   (Strictly max-width: 768px ONLY — Desktop remains untouched)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 1. Mobile Intro Scroll Runway & Indicator */
  #intro-scroll-spacer,
  .intro-runway {
    height: 180dvh !important;
    width: 100% !important;
    pointer-events: none !important;
    position: relative !important;
    display: block !important;
  }

  #intro-scroll-indicator,
  .intro-scroll-indicator {
    display: flex !important;
    position: absolute !important;
    bottom: 8dvh !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0.9) !important;
    pointer-events: none !important;
    z-index: 10 !important;
  }

  .intro-scroll-indicator .mono {
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
  }

  #morph-navbar {
    transform: translateX(-50%);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(11, 21, 40, 0.98) !important;
  }

  /* 2. Mobile Navbar Compactness */
  #morph-navbar.is-docked-pill,
  .floating-pill-nav.docked {
    height: 64px !important;
    top: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 24px) !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 12px 32px rgba(9, 20, 38, 0.08) !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
    padding: 0 !important;
  }

  .pill-nav-inner {
    padding: 0 12px !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* 3. Brand Lockup: Left anchored, letters instantly visible, no transform conflict */
  #brand-lockup,
  .nav-brand-pill {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform-origin: left center !important;
    transform: none;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: inline-flex !important;
    margin: 0 !important;
  }

  .hero-section,
  #hero {
    margin-top: 0 !important;
    padding-top: 40px !important;
  }

  .nav-wordmark .char {
    opacity: 1 !important;
    transform: none !important;
  }

  #wordmark-wrapper,
  .wordmark-wrapper {
    width: auto !important;
    max-width: max-content !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    display: inline-flex !important;
  }

  /* 4. Nav Controls: Compact padding and gap to prevent overflow */
  #nav-controls-wrapper,
  .nav-controls-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    max-width: calc(100% - 130px) !important;
    margin-left: auto !important;
    padding: 0 !important;
  }

  .nav-actions-pill {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .lang-toggle-pill {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  .mobile-menu-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 5. Perfectly Centered Expanded Modal on Mobile */
  #global-spec-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(1) translateZ(0) !important;
    width: calc(100vw - 24px) !important; 
    max-height: 85dvh !important;
    padding: 20px 16px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 10000 !important;
  }

  body:not(.modal-is-open) #global-spec-modal {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.modal-is-open #global-spec-modal {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) translateZ(0) !important;
  }

  .spec-modal-inner {
    max-height: calc(85dvh - 40px) !important;
    padding: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    box-sizing: border-box !important;
  }
}

/* Grid Cards: Clean Fixed-Size Interactive Cards */
.card-slot {
  position: relative;
  width: 100%;
}

.expandable-card {
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.expandable-card:hover {
  border-color: #38BDF8 !important;
  box-shadow: 0 16px 32px rgba(9, 20, 38, 0.07) !important;
}

.expandable-card.is-revealed:hover {
  transform: translateY(-4px) !important;
}

/* Bottom Trigger Pill Zone — Persistent single button node */
.card-trigger-zone {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-trigger-pill,
.more-details-btn {
  padding: 7px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(2, 132, 199, 0.3);
  background: rgba(2, 132, 199, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  color: #0284C7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  user-select: none;
  -webkit-user-select: none;
}

.card-trigger-pill:hover,
.more-details-btn:hover {
  background: rgba(2, 132, 199, 0.14);
  border-color: #0284C7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
  transform: translateY(-1px);
}

.card-trigger-pill.is-active,
.more-details-btn.is-active,
.expandable-card.is-expanded .card-trigger-pill,
.expandable-card.is-expanded .more-details-btn {
  background: rgba(2, 132, 199, 0.16);
  border-color: #0284C7;
  color: #0284C7;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.2);
}

/* Native iOS Emoji Conflict Prevention for Unicode Arrows */
.safari-arrow {
  font-family: inherit !important;
  font-variant-emoji: text !important;
  display: inline-block;
}

.card-trigger-pill .trigger-arrow,
.more-details-btn .trigger-arrow,
.trigger-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-weight: 700;
  font-family: inherit !important;
  font-variant-emoji: text !important;
}

.card-trigger-pill:hover .trigger-arrow,
.more-details-btn:hover .trigger-arrow {
  transform: translate(2px, -2px);
}

.dark .card-trigger-pill,
.dark .more-details-btn,
.engine-card .card-trigger-pill,
.engine-card .more-details-btn,
.project-card .card-trigger-pill,
.project-card .more-details-btn {
  border-color: rgba(0, 210, 255, 0.35);
  background: rgba(0, 210, 255, 0.08);
  color: var(--cyan);
}

.dark .card-trigger-pill:hover,
.dark .more-details-btn:hover,
.engine-card .card-trigger-pill:hover,
.engine-card .more-details-btn:hover,
.project-card .card-trigger-pill:hover,
.project-card .more-details-btn:hover {
  background: rgba(0, 210, 255, 0.18);
  border-color: var(--cyan);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.25);
}

.dark .card-trigger-pill.is-active,
.dark .more-details-btn.is-active,
.engine-card.is-expanded .card-trigger-pill,
.engine-card.is-expanded .more-details-btn,
.project-card.is-expanded .card-trigger-pill,
.project-card.is-expanded .more-details-btn {
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.22);
  color: var(--cyan);
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.25);
}

/* Sticky & Bottom Close Pills */
/* Remove/hide all secondary close buttons inside drawer — strictly ONE persistent button per card */
.spec-close-pill,
.spec-close-top,
.spec-close-bottom,
.close-spec-btn,
.expanded-spec-drawer .spec-close-pill,
.expanded-spec-drawer .spec-close-top,
.expanded-spec-drawer .spec-close-bottom,
.spec-drawer-scroll .spec-close-pill,
.spec-drawer-scroll .spec-close-top,
.spec-drawer-scroll .spec-close-bottom {
  display: none !important;
}

.expandable-card.is-expanded .spec-close-pill {
  display: none !important;
}

.spec-close-top {
  display: none !important;
}

.spec-close-bottom {
  display: none !important;
}

/* Hidden data source for the global modal */
.spec-drawer-scroll,
.expanded-spec-drawer {
  display: none !important;
}

/* Custom sleek scrollbar */
.spec-drawer-scroll::-webkit-scrollbar {
  width: 5px;
}
.spec-drawer-scroll::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.4);
  border-radius: 999px;
}
.spec-drawer-scroll::-webkit-scrollbar-thumb {
  background: var(--cobalt);
  border-radius: 999px;
}
.spec-drawer-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* Spec content blocks inside drawer */
.spec-content-block {
  padding: 14px 16px;
  background: var(--alabaster);
  border: 1px solid var(--grid-line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
}
.dark .spec-content-block,
.engine-card .spec-content-block,
.project-card .spec-content-block {
  background: var(--charcoal-bg);
  border-color: var(--charcoal-border);
}
.spec-block-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dark .spec-block-title,
.engine-card .spec-block-title,
.project-card .spec-block-title {
  color: var(--white);
}
.spec-block-title svg {
  color: var(--cobalt);
  flex-shrink: 0;
}
.dark .spec-block-title svg,
.engine-card .spec-block-title svg,
.project-card .spec-block-title svg {
  color: var(--cyan);
}
.spec-block-desc {
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}
.dark .spec-block-desc,
.engine-card .spec-block-desc,
.project-card .spec-block-desc {
  color: #94a3b8;
}

.spec-why-us {
  border-left: 3px solid var(--cobalt);
  background: rgba(2, 132, 199, 0.05);
}
html[dir="rtl"] .spec-why-us {
  border-left: none;
  border-right: 3px solid var(--cobalt);
}
.dark .spec-why-us,
.engine-card .spec-why-us,
.project-card .spec-why-us {
  background: rgba(0, 210, 255, 0.06);
  border-color: var(--cyan);
}

/* Bento image header (Inner Visual Frame) */
.bento-image-header {
  position: relative;
  height: 280px;
  border-radius: var(--card-inner-radius);
  overflow: hidden;
}

.bento-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover .bento-cover {
  transform: scale(1.05);
}

.bento-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(22, 24, 29, 0.95), transparent);
}

.throughput-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.t-label { font-size: 9px; color: rgba(255,255,255,0.6); width: 80px; letter-spacing: 0.06em; }
.t-track { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.t-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  border-radius: 2px;
  animation: fillPulse 3s ease-in-out infinite;
}
.t-fill-active { background: var(--cyan); }
.t-val { font-size: 9px; color: var(--cyan); width: 50px; text-align: right; }
html[dir="rtl"] .t-val { text-align: left; }

@keyframes fillPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Coded headers (Inner Frame) */
.bento-coded-header {
  padding: 20px;
  background: var(--charcoal-surface);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--card-inner-radius);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* AI Filter Diagram */
.filter-flow {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-node {
  padding: 10px 14px;
  border: 1px solid var(--charcoal-border);
  border-radius: var(--r-sm);
  background: var(--charcoal-bg);
}
.f-small { font-size: 8px; letter-spacing: 0.1em; color: var(--mono-gray); display: block; margin-bottom: 4px; }
.prompt-text { font-size: 10px; color: #f87171; }
.gate-check { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 9px; color: var(--mono-gray); }
.gate-check.safe { color: rgba(255,255,255,0.5); }
.gate-badge { font-size: 8px; padding: 2px 6px; border-radius: 3px; }
.gate-badge.rejected { background: rgba(239,68,68,0.15); color: #f87171; }
.gate-badge.approved { background: rgba(0,210,255,0.1); color: var(--cyan); }
.output-badge { color: var(--cyan); font-size: 11px; margin-top: 4px; }
.filter-arrow { flex-shrink: 0; }

/* CI Terminal */
.ci-terminal {
  flex-direction: column;
  align-items: stretch;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--charcoal-border);
}
.term-title { margin-left: auto; font-size: 10px; color: var(--mono-gray); }
html[dir="rtl"] .term-title { margin-left: 0; margin-right: auto; }

.terminal-body { padding: 14px; }

.term-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
}
.term-prefix { width: 14px; text-align: center; flex-shrink: 0; }
.term-line.done .term-prefix { color: var(--cyan); }
.term-line.done .mono { color: rgba(255,255,255,0.6); }
.term-line.running .term-prefix { color: #f59e0b; }
.term-line.running .mono { color: rgba(255,255,255,0.8); }
.term-line.pending .term-prefix { color: var(--mono-gray); }
.term-line.pending .mono { color: var(--mono-gray); }

.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin {
  0% { content: '◐'; }
  25% { content: '◓'; }
  50% { content: '◑'; }
  75% { content: '◒'; }
}

.bento-body { padding: 20px 12px 12px; }
.bento-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-heading);
  margin-bottom: 8px;
}
.bento-desc { font-size: 14px; color: var(--slate); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   SECTION 4: TECHNOLOGY & ENGINEERING EXPERTISE (12 Categories)
   ═══════════════════════════════════════════════════════════════ */
.technology-section {
  background: var(--white);
  border-bottom: 1px solid var(--grid-line);
}

.tech-tabs-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding-bottom: 14px;
  margin-bottom: 28px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #94A3B8 rgba(226, 232, 240, 0.8);
}

.tech-tabs-wrapper::-webkit-scrollbar {
  height: 6px;
  display: block;
}

.tech-tabs-wrapper::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  margin: 0 4px;
}

.tech-tabs-wrapper::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.tech-tabs-wrapper::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

.tech-tabs-wrapper::-webkit-scrollbar-thumb:active {
  background: #475569;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tech-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
  gap: 8px;
  width: max-content;
  min-width: max-content;
  flex-shrink: 0;
  padding: 6px;
  background: var(--alabaster);
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.tech-tabs-nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.tech-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}
.tech-tab .tab-icon {
  width: 16px;
  height: 16px;
  color: var(--slate);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.tech-tab:hover {
  color: var(--cobalt);
  background: rgba(2, 132, 199, 0.08);
}
.tech-tab:hover .tab-icon {
  color: var(--cobalt);
}
.tech-tab.active {
  color: var(--white);
  background: var(--ink-heading);
  box-shadow: 0 4px 16px rgba(24, 26, 32, 0.2);
}
.tech-tab.active .tab-icon {
  color: var(--cyan);
}

.tech-showcase-container {
  position: relative;
  min-height: 440px;
}

.tech-card {
  background: var(--alabaster);
  border: 1px solid var(--grid-line);
  border-radius: var(--card-outer-radius);
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 10px 40px -15px rgba(9, 20, 38, 0.05);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tech-badge {
  display: none !important;
}

.tech-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink-heading);
}

.tech-domain-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--cobalt);
  color: var(--cobalt);
  background: rgba(2, 132, 199, 0.04);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.tech-domain-cta:hover {
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
}

.tech-card-desc {
  font-size: 15.5px;
  color: var(--slate);
  line-height: 1.65;
  max-width: 900px;
  margin-bottom: 32px;
}

.tech-card-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 3.5vw, 40px);
  align-items: start;
}

.tech-details-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech-group-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-group-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mono-gray);
  font-weight: 600;
}

.tech-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--grid-line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.3s var(--ease);
}
.tech-chip img {
  width: 14px;
  height: 14px;
  filter: grayscale(1);
  opacity: 0.75;
  transition: all 0.3s ease;
}
.tech-chip:hover {
  border-color: var(--cyan);
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.12);
}
.tech-chip:hover img {
  filter: none;
  opacity: 1;
}

.tech-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tech-specs-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}
.spec-check {
  color: var(--cobalt);
  font-weight: 700;
  flex-shrink: 0;
}

/* Right column live visual frame */
.tech-visual-frame {
  background: var(--charcoal-surface);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--card-inner-radius);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.tech-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--charcoal-border);
}

.tech-widget-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-dot.green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.status-dot.cyan {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.widget-toggle {
  font-size: 10.5px;
  color: #64748B;
}
.widget-toggle .active-mode {
  color: var(--cyan);
  font-weight: 600;
}

.tech-widget-body {
  padding: 20px;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.vital-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vital-val {
  font-size: 18px;
  font-weight: 700;
}
.vital-label {
  font-size: 10.5px;
  color: #94a3b8;
}

.vitals-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.chart-tag {
  width: 75px;
  color: #94a3b8;
  flex-shrink: 0;
}
.chart-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.chart-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  border-radius: 999px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.chart-num {
  width: 60px;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* Category-specific terminal/visual styles */
.tech-terminal-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #cbd5e1;
  background: rgba(22, 24, 29, 0.6);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--charcoal-border-subtle);
}
.tech-terminal-block .term-cyan { color: var(--cyan); }
.tech-terminal-block .term-green { color: #10b981; }
.tech-terminal-block .term-yellow { color: #f59e0b; }
.tech-terminal-block .term-gray { color: #64748B; }

@media (max-width: 1024px) {
  .tech-card-split {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 5: PROPRIETARY ENGINES
   ═══════════════════════════════════════════════════════════════ */
.products-section {
  background: var(--charcoal-bg);
  color: var(--white);
}

.engine-card {
  background: var(--charcoal-surface);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--card-outer-radius);
  padding: clamp(24px, 3.5vw, 40px);
  margin-bottom: 40px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.engine-card:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.engine-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.engine-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--white);
}

.engine-tagline {
  font-size: 11px;
  color: var(--mono-gray);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.engine-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid rgba(0,210,255,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0,210,255,0.05);
}

.engine-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 800px;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* DocuVerify Sandbox */
.engine-sandbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--card-inner-radius);
  overflow: hidden;
  border: 1px solid var(--charcoal-border);
  background: var(--charcoal-border);
}

.sandbox-pane {
  background: var(--charcoal-bg);
  padding: clamp(16px, 2vw, 28px);
}

/* Invoice pane */
.invoice-doc {
  position: relative;
  border: 1px solid var(--charcoal-border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.invoice-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--charcoal-border);
  background: var(--charcoal-surface);
}
.invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--charcoal-border-subtle);
}
.inv-label { font-size: 10px; color: var(--mono-gray); }
.inv-value { font-size: 11px; color: rgba(255,255,255,0.85); }

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  top: 0;
  animation: scanMove 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0,210,255,0.4);
}
@keyframes scanMove {
  0% { top: 0; }
  100% { top: 100%; }
}

/* Extract pane */
.extract-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.extract-status {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  transition: all 0.4s var(--ease);
}
.extract-status.pending {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.2);
}
.extract-status.approved {
  background: rgba(0,210,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,210,255,0.2);
}
.extract-json {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  background: var(--charcoal-surface);
  padding: 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--charcoal-border);
  margin-bottom: 16px;
  overflow-x: auto;
}

.signoff-btn {
  width: 100%;
  padding: 12px;
  background: rgba(0,210,255,0.08);
  border: 1px solid rgba(0,210,255,0.25);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  border-radius: var(--r-sm);
  transition: all 0.3s var(--ease);
  letter-spacing: 0.06em;
}
.signoff-btn:hover {
  background: rgba(0,210,255,0.15);
  box-shadow: 0 0 20px rgba(0,210,255,0.15);
}
.signoff-btn.signed {
  background: rgba(0,210,255,0.15);
  border-color: var(--cyan);
}

/* SynapseSearch Sandbox */
.synapse-sandbox {
  display: block;
}

.synapse-console {
  background: var(--charcoal-surface);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--card-inner-radius);
  overflow: hidden;
}

.synapse-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--charcoal-border);
}
.search-icon { font-size: 18px; color: var(--mono-gray); }
.synapse-input { font-size: 13px; color: var(--mono-gray); }

.synapse-queries {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

.query-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  border: 1px solid var(--charcoal-border);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.query-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,210,255,0.05);
}
.query-chip.active {
  border-color: var(--cobalt);
  background: rgba(2,132,199,0.1);
  color: var(--cyan);
}

.synapse-response {
  padding: 20px;
  min-height: 100px;
  border-top: 1px solid var(--charcoal-border);
}
.response-placeholder { font-size: 12px; color: var(--mono-gray); }

.response-content {
  animation: fadeInUp 0.4s var(--ease);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.response-text {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 12px;
}

.citation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.citation-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--cobalt);
  padding: 4px 10px;
  border: 1px solid rgba(2,132,199,0.2);
  border-radius: 4px;
  background: rgba(2,132,199,0.05);
}

.synapse-lock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--charcoal-bg);
  border-top: 1px solid var(--charcoal-border);
}
.lock-icon { font-size: 14px; }
.lock-text { font-size: 10px; color: var(--mono-gray); letter-spacing: 0.08em; }

/* ═══════════════════════════════════════════════════════════════
   SECTION 5: BLUEPRINTS
   ═══════════════════════════════════════════════════════════════ */
.blueprints-section {
  background: var(--alabaster);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--slate);
  padding: 8px 18px;
  border: 1px solid var(--grid-line);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.filter-tab:hover { border-color: var(--cobalt); color: var(--cobalt); }
.filter-tab.active {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}

.blueprints-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bp-card {
  background: var(--white);
  border: 1px solid var(--grid-line);
  border-radius: var(--card-outer-radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, opacity;
}
.bp-card:hover {
  box-shadow: 0 16px 48px rgba(9, 20, 38, 0.08);
  border-color: var(--cobalt);
}
.bp-card.hidden {
  display: none;
}

.bp-diagram-header {
  background: var(--charcoal-surface);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--card-inner-radius);
  padding: 20px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bp-svg { width: 100%; height: auto; }

.bp-dot {
  animation: pipelinePulse 2s ease-in-out infinite;
}
.bp-dot.bp-dot-2 { animation-delay: 0.5s; }

.bp-body { padding: 20px 12px 12px; }

.bp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.bp-code {
  font-size: 11px;
  color: var(--cobalt);
  letter-spacing: 0.08em;
}
.bp-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--mono-gray);
  padding: 4px 10px;
  border: 1px solid var(--grid-line);
  border-radius: 100px;
}

.bp-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-heading);
  margin-bottom: 10px;
}

.bp-desc {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 16px;
}

.bp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.stack-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--slate);
  padding: 4px 10px;
  background: var(--alabaster);
  border: 1px solid var(--grid-line);
  border-radius: 4px;
}

.bp-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt);
  padding: 10px 0;
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bp-cta:hover { color: var(--cyan); }

/* ═══════════════════════════════════════════════════════════════
   SECTION: TECHNOLOGY & INFRASTRUCTURE PARTNERS (#partners)
   Modeled after ./vishwa-limbani-portfolio double-framed card craftsmanship
   ═══════════════════════════════════════════════════════════════ */
.partners-section {
  background: var(--white);
  border-top: 1px solid var(--grid-line);
}

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

@media (max-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* Double-framed rounded partner card */
.partner-card {
  background: var(--alabaster);
  border: 1px solid var(--grid-line);
  border-radius: var(--card-outer-radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, opacity;
}

.partner-card:hover {
  border-color: var(--cobalt);
  box-shadow: 0 16px 40px rgba(9, 20, 38, 0.08);
}

.partner-logo-frame {
  background: var(--white);
  border: 1px solid var(--grid-line);
  border-radius: var(--card-inner-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  margin-bottom: 16px;
  transition: border-color 0.4s ease;
}

.partner-card:hover .partner-logo-frame {
  border-color: rgba(2, 132, 199, 0.3);
}

.partner-svg-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover .partner-svg {
  transform: scale(1.08);
}

.partner-tier-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cobalt);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.partner-body {
  padding: 4px 8px 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.partner-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: 8px;
}

.partner-desc {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 6: SAFETY LAWS / GOVERNANCE
   ═══════════════════════════════════════════════════════════════ */
.governance-section {
  background: var(--white);
  overflow: visible !important;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.circuit-line {
  position: absolute;
  top: 48px;
  left: 0; right: 0;
  height: 20px;
  z-index: 1;
  pointer-events: none;
}

#circuit-path {
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 0.05s linear;
}

.gov-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--alabaster);
  border: 1px solid var(--grid-line);
  border-radius: var(--card-outer-radius);
  position: relative;
  z-index: 2;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, opacity;
}
.gov-card:hover {
  box-shadow: 0 16px 40px rgba(9, 20, 38, 0.08);
  border-color: var(--cobalt);
}

.gov-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}
.gov-icon svg { width: 100%; height: 100%; }

.gov-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--cobalt);
  padding: 4px 12px;
  border: 1px solid rgba(2,132,199,0.15);
  border-radius: 100px;
  background: rgba(2,132,199,0.04);
  margin-bottom: 16px;
}

.gov-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-heading);
  margin-bottom: 10px;
}

.gov-desc {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 7: CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact-section {
  background: var(--alabaster);
  border-top: 1px solid var(--grid-line);
}

.contact-header {
  text-align: center;
  margin-bottom: 56px;
}

.contact-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: 12px;
}

.contact-subhead {
  font-size: 16px;
  color: var(--slate);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* HQ Card */
.hq-card {
  margin-bottom: 24px;
}

.hq-image-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--grid-line);
}

.hq-image {
  width: 100%;
  height: 256px;
  object-fit: cover;
  object-position: center;
}

.hq-overlay-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(22, 24, 29, 0.90);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 11px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--charcoal-border);
  letter-spacing: 0.04em;
}

/* Direct contacts */
.direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--grid-line);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.3s var(--ease);
  position: relative;
}
.contact-btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}
.contact-btn svg { flex-shrink: 0; color: var(--cobalt); }

.whatsapp-btn:hover {
  border-color: #25D366;
  color: #25D366;
}
.whatsapp-btn svg { color: #25D366; }

.copy-indicator {
  position: absolute;
  right: 16px;
  font-size: 11px;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s;
}
html[dir="rtl"] .copy-indicator {
  right: auto;
  left: 16px;
}
.copy-indicator.show { opacity: 1; }

/* Intake Form */
.intake-form {
  background: var(--white);
  border: 1px solid var(--grid-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
}

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

.form-group { margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mono-gray);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grid-line);
  border-radius: var(--r-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--alabaster);
  transition: border-color 0.25s;
  outline: none;
}
html[dir="rtl"] .form-input {
  font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}
.form-input:focus {
  border-color: var(--cobalt);
  background: var(--white);
}

/* Form Validation States */
.form-input.input-invalid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}
.form-input.input-invalid:focus {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3) !important;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.form-input.shake-input {
  animation: inputShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%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;
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.form-submit-email {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 14px 20px;
}
.form-submit-wa {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 14px 20px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 8: FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer-section {
  background: var(--charcoal-bg);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--charcoal-border);
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.fw-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.fw-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--mono-gray);
}

.footer-entity {
  font-size: 11px;
  color: var(--mono-gray);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

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

.footer-reg-item, .footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reg-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--mono-gray);
  text-transform: uppercase;
}

.reg-value {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.footer-link {
  transition: color 0.25s;
}
.footer-link:hover { color: var(--cyan); }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-copy {
  font-size: 11px;
  color: var(--mono-gray);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   MINIMAL ENTERPRISE FOOTER (Privacy & Legal)
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #E2E8F0;
  padding: 32px 5%;
  background-color: #FFFFFF;
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.5;
}

.site-footer-left {
  color: #64748B;
}

.site-footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer-link {
  color: #64748B;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.site-footer-link:hover {
  color: #00C8FF;
}

.site-footer-link:focus-visible {
  outline: 2px solid #00C8FF;
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  /* Final Section: Technical Intake & Abu Dhabi HQ ("Build Resilient, Compliant Systems") */
  #contact,
  .contact-section {
    padding: 64px 20px !important;
    overflow-x: hidden !important;
  }

  .contact-section .container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-section .editorial-header {
    margin-bottom: 32px !important;
  }

  .contact-section .editorial-heading {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 16px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .contact-section .heading-part1,
  .contact-section .heading-part2 {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .contact-section .editorial-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }

  .contact-section .editorial-divider {
    margin-top: 16px !important;
  }

  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    width: 100% !important;
  }

  .contact-left,
  .contact-right {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hq-card {
    margin-bottom: 20px !important;
  }

  .hq-image {
    height: 200px !important;
  }

  .direct-contacts {
    gap: 12px !important;
    width: 100% !important;
  }

  .contact-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .intake-form {
    padding: 24px 16px !important;
    width: 100% !important;
  }

  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .form-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .form-actions .btn {
    width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 14px 16px !important;
    font-size: 0.85rem !important;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px 5%;
    position: relative;
    z-index: 10;
    width: 100%;
  }

  .site-footer-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
  }

  .site-footer-link {
    display: inline-block;
    padding: 4px 6px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links, .nav-links-pill { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-left { padding-right: 0; }
  .hero-right { max-width: 500px; }
  .telemetry-console { left: 0; bottom: -16px; }
  html[dir="rtl"] .telemetry-console { right: 0; }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large { grid-column: auto; grid-row: auto; }

  .engine-sandbox { grid-template-columns: 1fr; }

  .blueprints-grid { grid-template-columns: 1fr; }

  .governance-grid { grid-template-columns: 1fr; }
  .circuit-line { display: none; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .filter-tabs { gap: 6px; }
  .filter-tab { font-size: 10px; padding: 6px 12px; }
  .nav-cta, .nav-cta-pill { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL MOTION & SCROLL REVEALS (Driven by GSAP ScrollTrigger)
   Strict Motion Direction Rules & Vishwa Limbani Easing
   ═══════════════════════════════════════════════════════════════ */
.editorial-heading,
.editorial-desc,
.editorial-divider,
.bento-card,
.engine-card,
.bp-card,
.partner-card,
.gov-card,
.tech-card,
.contact-left,
.contact-right,
.hero-image-frame,
.telemetry-console {
  will-change: transform, opacity;
}

/* ═══════════════════════════════════════════════════════════════
   QUICK SEARCH MODAL (Cmd+K / Ctrl+K)
   ═══════════════════════════════════════════════════════════════ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px, 12vh, 120px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-dialog {
  position: relative;
  width: min(92vw, 680px);
  background: var(--white);
  border: 1px solid var(--grid-line);
  border-radius: var(--r-lg);
  box-shadow: 0 25px 60px -15px rgba(9, 20, 38, 0.28);
  overflow: hidden;
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.3s var(--ease);
  z-index: 10;
}
.search-modal.open .search-dialog {
  transform: scale(1) translateY(0);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--grid-line);
  background: var(--white);
}
.search-input-icon {
  color: var(--cobalt);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.search-input::placeholder {
  color: var(--mono-gray);
  opacity: 0.8;
}
.search-esc-hint {
  font-size: 10px;
  padding: 3px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: var(--mono-gray);
  background: var(--alabaster);
  user-select: none;
}

.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mono-gray);
  padding: 10px 12px 4px;
  text-transform: uppercase;
}
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.search-result-item:hover,
.search-result-item.selected {
  background: rgba(2, 132, 199, 0.08);
}
.search-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.search-item-icon {
  font-size: 14px;
  color: var(--cobalt);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.search-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-desc {
  font-size: 12px;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-badge {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--mono-gray);
  white-space: nowrap;
  flex-shrink: 0;
}
.search-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--slate);
  font-size: 14px;
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 20px;
  background: var(--alabaster);
  border-top: 1px solid var(--grid-line);
  font-size: 11px;
  color: var(--mono-gray);
}
.search-footer-hint kbd {
  padding: 2px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: var(--white);
  color: var(--slate);
  margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 5 SUBSECTION: PROPRIETARY HARDWARE & SOFTWARE SHOWCASE
   ═══════════════════════════════════════════════════════════════ */
.project-showcase {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-showcase-header {
  margin-bottom: 40px;
}

.project-showcase-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.project-showcase-desc {
  font-size: 15px;
  color: #94A3B8;
  max-width: 760px;
  line-height: 1.65;
}

.project-filter-tabs {
  margin-bottom: 32px;
}

.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .project-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.project-card-slot {
  position: relative;
  width: 100%;
}

.project-card-slot.hidden {
  display: none !important;
}

.project-card {
  background: var(--charcoal-surface);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--card-outer-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.project-card:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.project-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: var(--card-inner-radius);
  overflow: hidden;
  background: #0B0F19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content-visibility: visible;
  transform: translateZ(0);
  will-change: transform;
}

.project-card-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  content-visibility: visible;
  transform: translateZ(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-image-fallback {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #111827 0%, #080C14 100%);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.project-image-fallback.is-visible {
  display: flex !important;
}

.fallback-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.project-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.45) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.project-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

.project-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #E2E8F0;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.project-card-body {
  padding: 18px 4px 6px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 10px;
}

.project-card-lead {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Arabic Specific Typography & RTL Text Alignment (Layout Stays LTR) */
html[lang="ar"] .project-showcase-title {
  font-family: 'IBM Plex Sans Arabic', 'Space Grotesk', sans-serif;
  text-align: right;
  letter-spacing: 0;
}

html[lang="ar"] .project-showcase-desc {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  text-align: right;
  line-height: 1.8;
}

html[lang="ar"] .project-card-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  text-align: right;
  letter-spacing: 0;
  line-height: 1.45;
}

html[lang="ar"] .project-card-lead {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  text-align: right;
  line-height: 1.7;
}

html[lang="ar"] .project-card .spec-block-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  text-align: right;
}

html[lang="ar"] .project-card .spec-block-desc {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  text-align: right;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   PREFERS REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .marquee-track {
    animation: none !important;
    transform: none !important;
  }
  .pipeline-dot, .bp-dot, .scan-line {
    animation: none !important;
  }
}
