/* ==========================================================================
   VENERA Technology — Corporate Design System V5 (Sovereign Tech)
   Bilingual English (LTR) & Arabic (RTL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  /* Color Palette - Sovereign Tech */
  --bg-darkest: #040914;
  --bg-dark: #071324;
  --bg-navy: #09172b;
  --bg-navy-light: #0d2246;
  --bg-card: #0c1b33;
  --bg-card-hover: #102447;
  
  --accent-blue: #2563eb;
  --accent-blue-bright: #3b82f6;
  --accent-cyan: #38bdf8;
  --accent-ice: #7dd3fc;
  
  --text-white: #f8fafc;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --line-dark: rgba(148, 163, 184, 0.14);
  --line-active: rgba(56, 189, 248, 0.4);
  --glow-blue: rgba(37, 99, 235, 0.25);
  --glow-cyan: rgba(56, 189, 248, 0.2);

  /* Light section tokens */
  --bg-soft: #f8fafc;
  --bg-soft-card: #ffffff;
  --text-soft-main: #0f172a;
  --text-soft-muted: #475569;
  --line-soft: #e2e8f0;

  /* Typography */
  --font-en: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* Container */
  --max-w: 1260px;
  --nav-h: 84px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-en);
  line-height: 1.65;
  background-color: var(--bg-darkest);
  color: var(--text-light);
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  font-size: 1.05rem;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header & Top Navigation
   -------------------------------------------------------------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 9, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 210px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.92;
}

.brand img {
  width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.links a {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

.links a:hover {
  color: var(--text-white);
}

.links a:focus-visible,
.nav-more-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.links a.active {
  color: var(--text-white);
  font-weight: 600;
}

.links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue-bright), var(--accent-cyan));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-ice) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}

.lang-pill:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--glow-cyan);
}

.hamb {
  display: none;
  color: var(--text-white);
  font-size: 1.5rem;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--line-dark);
}

/* --------------------------------------------------------------------------
   Buttons & Action UI
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  color: #ffffff;
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 4px 18px var(--glow-blue);
  transition: all 0.25s ease;
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-blue-bright), var(--accent-blue));
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--line-dark);
  color: var(--text-light);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--text-muted);
  color: #ffffff;
  transform: translateY(-2px);
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.inline-link:hover {
  color: var(--accent-ice);
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Badges & Eyebrows
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-dev {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-hist {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.status-third {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-ops {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* --------------------------------------------------------------------------
   Hero Section (Homepage & Subpages)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
  background: radial-gradient(circle at 75% 40%, rgba(13, 34, 70, 0.7) 0%, rgba(7, 19, 36, 0.95) 55%, var(--bg-darkest) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #93c5fd 0%, #38bdf8 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  color: var(--text-light);
  max-width: 580px;
}

/* Interactive Canvas 3D Connected Digital Globe */
.globe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  filter: drop-shadow(0 0 32px rgba(37, 99, 235, 0.28));
}

.globe-canvas:active {
  cursor: grabbing;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}

.stat-item strong {
  display: block;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stat-item span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.stat-item small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Sections & Layout
   -------------------------------------------------------------------------- */
.section {
  padding: 100px 0;
  position: relative;
}

.section.soft {
  background-color: var(--bg-soft);
  color: var(--text-soft-main);
}

.section.soft .eyebrow {
  color: var(--accent-blue);
}

.section.soft .eyebrow::before {
  background-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.section.soft h2 {
  color: var(--text-soft-main);
}

.section.soft p.lead {
  color: var(--text-soft-muted);
}

.section.dark {
  background-color: var(--bg-navy);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.sect-head {
  margin-bottom: 52px;
}

.sect-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.section h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 8px;
  margin-bottom: 14px;
}

.section p.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   Portfolio Category Filters (V5.3)
   -------------------------------------------------------------------------- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.portfolio-filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.portfolio-filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.portfolio-filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.portfolio-card[data-category] {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-cat-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  opacity: 0.85;
}

.portfolio-cat-trading  { background: rgba(16,185,129,0.15);  color: #10b981; }
.portfolio-cat-commerce { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.portfolio-cat-bizops   { background: rgba(167,139,250,0.15); color: #a78bfa; }
.portfolio-cat-heritage { background: rgba(139,92,246,0.15);  color: #8b5cf6; }
.portfolio-cat-ai       { background: rgba(56,189,248,0.15);  color: #38bdf8; }

/* --------------------------------------------------------------------------
   Cards & Grid Systems
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-active);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px rgba(4, 9, 20, 0.6);
}

.card:hover::before {
  background: linear-gradient(90deg, var(--accent-blue-bright), var(--accent-cyan));
}

.card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin: 16px 0 10px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1;
}

.card-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}

/* Light cards for soft sections */
.section.soft .card {
  background: #ffffff;
  border-color: var(--line-soft);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.section.soft .card h3 {
  color: var(--text-soft-main);
}

.section.soft .card p {
  color: var(--text-soft-muted);
}

.section.soft .card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Capabilities 4-column */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cap-box {
  background: rgba(13, 34, 70, 0.35);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.25s ease;
}

.cap-box:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  background: rgba(13, 34, 70, 0.55);
}

.cap-num {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.cap-box h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.cap-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Strategic Initiatives Table / List */
.init-table {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.init-row {
  display: grid;
  grid-template-columns: 1fr 220px 140px;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line-dark);
  gap: 24px;
  transition: background 0.2s ease;
}

.init-row:last-child {
  border-bottom: none;
}

.init-row:hover {
  background: var(--bg-card-hover);
}

.init-row h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.init-row p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.init-type {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notice-box {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 6px;
  background: rgba(13, 34, 70, 0.4);
  border-left: 3px solid var(--accent-cyan);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

html[lang="ar"] .notice-box {
  border-left: none;
  border-right: 3px solid var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Subpage Page-Hero
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 80px 0 70px;
  background: linear-gradient(135deg, var(--bg-darkest) 0%, var(--bg-navy) 60%, var(--bg-navy-light) 100%);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Per-project accent strips — top border + ambient glow */
.page-hero[data-project="cylendra"]   { border-top: 3px solid #38bdf8; }
.page-hero[data-project="veneraswap"] { border-top: 3px solid #7c3aed; }
.page-hero[data-project="paynxs"]     { border-top: 3px solid #10b981; }
.page-hero[data-project="ordernxs"]   { border-top: 3px solid #f59e0b; }
.page-hero[data-project="roic"]       { border-top: 3px solid #8b5cf6; }
.page-hero[data-project="nuxese"]     { border-top: 3px solid #6366f1; }
.page-hero[data-project="stylai"]     { border-top: 3px solid #f43f5e; }
.page-hero[data-project="stylai-store"] { border-top: 3px solid #fb923c; }
.page-hero[data-project="max-hub"]      { border-top: 3px solid #0ea5e9; }
.page-hero[data-project="deyon"]        { border-top: 3px solid #22c55e; }
.page-hero[data-project="muhasebos"]    { border-top: 3px solid #a78bfa; }
.page-hero[data-project="dilmart"]      { border-top: 3px solid #f97316; }
.page-hero[data-project="orbitraai"]    { border-top: 3px solid #f59e0b; }

.page-hero[data-project="veneraswap"]::after { background: radial-gradient(circle, rgba(124, 58, 237, 0.10) 0%, transparent 70%); }
.page-hero[data-project="paynxs"]::after     { background: radial-gradient(circle, rgba(16, 185, 129, 0.10) 0%, transparent 70%); }
.page-hero[data-project="ordernxs"]::after   { background: radial-gradient(circle, rgba(245, 158, 11, 0.10) 0%, transparent 70%); }
.page-hero[data-project="roic"]::after       { background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 70%); }
.page-hero[data-project="nuxese"]::after       { background: radial-gradient(circle, rgba(99, 102, 241, 0.10) 0%, transparent 70%); }
.page-hero[data-project="stylai"]::after       { background: radial-gradient(circle, rgba(244, 63, 94, 0.10) 0%, transparent 70%); }
.page-hero[data-project="stylai-store"]::after { background: radial-gradient(circle, rgba(251, 146, 60, 0.10) 0%, transparent 70%); }
.page-hero[data-project="max-hub"]::after      { background: radial-gradient(circle, rgba(14, 165, 233, 0.10) 0%, transparent 70%); }
.page-hero[data-project="deyon"]::after        { background: radial-gradient(circle, rgba(34, 197, 94, 0.10) 0%, transparent 70%); }
.page-hero[data-project="muhasebos"]::after    { background: radial-gradient(circle, rgba(167, 139, 250, 0.10) 0%, transparent 70%); }
.page-hero[data-project="dilmart"]::after      { background: radial-gradient(circle, rgba(249, 115, 22, 0.10) 0%, transparent 70%); }
.page-hero[data-project="orbitraai"]::after    { background: radial-gradient(circle, rgba(245, 158, 11, 0.10) 0%, transparent 70%); }

.page-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-top: 8px;
  margin-bottom: 14px;
  line-height: 1.15;
}

.page-hero p {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   Founder Page Showcase
   -------------------------------------------------------------------------- */
.founder-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.founder-portrait-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 24px 60px rgba(4, 9, 20, 0.8), 0 0 30px var(--glow-blue);
  background: var(--bg-navy);
}

.founder-portrait-hero img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.02);
}

.founder-badge-overlay {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(4, 9, 20, 0.95) 0%, rgba(4, 9, 20, 0.6) 60%, transparent 100%);
}

.founder-badge-overlay strong {
  display: block;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
}

.founder-badge-overlay span {
  display: block;
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quote-card {
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: 8px;
  background: rgba(13, 34, 70, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 4px solid var(--accent-cyan);
  position: relative;
}

html[lang="ar"] .quote-card {
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  border-right: 4px solid var(--accent-cyan);
}

.quote-card blockquote {
  font-size: 1.0625rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--text-white);
  margin-bottom: 12px;
}

.quote-card cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Timeline Component */
.timeline {
  position: relative;
  border-inline-start: 2px solid var(--line-active);
  padding-inline-start: 36px;
  margin-top: 36px;
}

.milestone {
  position: relative;
  padding-bottom: 40px;
}

.milestone:last-child {
  padding-bottom: 0;
}

.milestone::before {
  content: '';
  position: absolute;
  inset-inline-start: -44px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  border: 3px solid var(--bg-navy);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.milestone-period {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.milestone h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.milestone p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* Founder Story Split */
.story-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
}

.story-portrait {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 45px rgba(4, 9, 20, 0.6);
  background: var(--bg-navy);
}

.story-portrait img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 25%;
}

/* --------------------------------------------------------------------------
   Project Detail Template
   -------------------------------------------------------------------------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 52px;
  align-items: start;
}

.detail-body h2 {
  font-size: 1.75rem;
  color: #ffffff;
  margin: 32px 0 14px;
}

.detail-body p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.detail-caps-list {
  list-style: none;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.detail-caps-list li {
  position: relative;
  padding-inline-start: 24px;
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.detail-caps-list li::before {
  content: '▸';
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent-cyan);
  font-weight: 800;
}

html[lang="ar"] .detail-caps-list li::before {
  content: '◂';
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-box h3 {
  font-size: 1.125rem;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.sidebar-item {
  margin-bottom: 20px;
}

.sidebar-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.sidebar-item span {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Research & Insights (Editorial)
   -------------------------------------------------------------------------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.insight-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(4, 9, 20, 0.5);
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.insight-category {
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.insight-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 16px;
}

.insight-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Contact Page & Form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 28px;
}

.channel-card h3 {
  font-size: 1.125rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.channel-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  background: rgba(4, 9, 20, 0.7);
  border: 1px solid var(--line-dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--glow-cyan);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 6px;
  font-size: 0.875rem;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.form-feedback.info {
  display: block;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

.form-feedback.info a {
  color: #38bdf8;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #020610;
  border-top: 1px solid var(--line-dark);
  padding: 72px 0 40px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand img {
  max-height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-white);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-disclaimer {
  max-width: 720px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Layout Grids for Pages
   -------------------------------------------------------------------------- */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .mission-vision-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   Responsive Layout & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  :root {
    --nav-h: 74px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .hamb {
    display: block;
  }

  .links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(4, 9, 20, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line-dark);
    padding: 24px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }

  .links.open {
    display: flex;
  }

  .links a {
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }

  .lang-pill {
    align-self: flex-start;
    margin-top: 8px;
  }

  .hero-grid,
  .founder-hero-grid,
  .story-split,
  .detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .caps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .init-row {
    grid-template-columns: 1fr 140px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 40px 0 60px;
  }

  .globe-container {
    max-width: 380px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cards-grid,
  .caps-grid {
    grid-template-columns: 1fr;
  }

  .sect-head.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .init-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .founder-portrait-hero img {
    max-height: 480px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .brand {
    width: 175px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

/* ======================================================
   FOUNDER HERO — Cinematic dark navy with network grid
   ====================================================== */

.founder-hero-section {
  position: relative;
  padding: 80px 0 90px;
  background:
    radial-gradient(ellipse 70% 60% at 75% 35%, rgba(37, 99, 235, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 18% 70%, rgba(56, 189, 248, 0.09) 0%, transparent 50%),
    var(--bg-darkest);
  overflow: hidden;
}

.founder-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.founder-hero-section::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 52%;
  height: 120%;
  background: radial-gradient(ellipse at 70% 30%, rgba(37, 99, 235, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

.founder-hero-section .founder-portrait-hero {
  box-shadow: 0 28px 70px rgba(4, 9, 20, 0.92), 0 0 70px rgba(37, 99, 235, 0.22), inset 0 0 0 1px rgba(56, 189, 248, 0.18);
}

/* --------------------------------------------------------------------------
   Founder Cinematic Hero — Transparent image + globe (V5.4)
   -------------------------------------------------------------------------- */

.founder-visual-col {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.founder-cinematic-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 560px;
}

/* Atmospheric glow disc behind founder */
.founder-cinematic-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, rgba(56,189,248,0.10) 38%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.founder-globe-svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  pointer-events: none;
  z-index: 1;
}

.founder-transparent-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 40px rgba(37,99,235,0.30))
    drop-shadow(0 0 90px rgba(56,189,248,0.12));
}

@media (max-width: 900px) {
  .founder-globe-svg { width: 360px; height: 360px; }
  .founder-transparent-img { max-width: 360px; }
  .founder-cinematic-wrap::before { width: 340px; height: 340px; }
}

@media (max-width: 600px) {
  .founder-globe-svg { width: 260px; height: 260px; }
  .founder-transparent-img { max-width: 280px; }
  .founder-cinematic-wrap::before { width: 240px; height: 240px; }
}

/* -------------------------------------------------------------------------- */

/* Homepage founder intro */
.founder-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.founder-intro-portrait {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 20px 56px rgba(4, 9, 20, 0.82), 0 0 40px rgba(37, 99, 235, 0.12);
}

.founder-intro-portrait img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  /* Very light cooling so the portrait sits in the site's blue palette */
  filter: saturate(0.92) contrast(1.02);
}

/* Subtle, restrained blue treatment — blends the homepage founder portrait
   into the dark-navy identity without altering the image or its crop. */
.founder-intro-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(165deg, rgba(37, 99, 235, 0.24) 0%, rgba(56, 189, 248, 0.08) 45%, rgba(37, 99, 235, 0) 72%),
    radial-gradient(120% 85% at 50% 0%, rgba(29, 78, 216, 0.18) 0%, transparent 60%);
  mix-blend-mode: soft-light;
}

/* A faint bottom wash toward navy so the frame melts into the section bg */
.founder-intro-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 68%, rgba(4, 9, 20, 0.32) 100%);
}

@media (max-width: 1080px) {
  .founder-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .founder-intro-portrait img {
    max-height: 280px;
  }
}

/* ====================================================== */

/* ====================================================== */
/* AI VENTURES PAGE */
/* ====================================================== */

.ai-ventures-hero {
  background: linear-gradient(135deg, #040914 0%, #070f2a 50%, #040914 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.ai-ventures-section {
  background: #040914;
}

.ai-ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.ai-venture-card {
  background: linear-gradient(135deg, rgba(10, 25, 60, 0.8) 0%, rgba(5, 15, 40, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ai-venture-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 32px rgba(56, 189, 248, 0.08);
}

.ai-venture-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-venture-content {
  flex: 1;
  min-width: 0;
}

.ai-venture-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ai-category-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 10px;
  border-radius: 4px;
}

.ai-venture-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.ai-venture-tagline {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin: 0 0 10px 0;
}

.ai-venture-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.ai-ventures-notice {
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(10, 25, 60, 0.4);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .ai-ventures-grid {
    grid-template-columns: 1fr;
  }
  .ai-venture-card {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
}

/* ====================================================== */
/* INVESTMENT PARTNERSHIPS PAGE */
/* ====================================================== */

.opportunities-hero {
  background: linear-gradient(135deg, #040914 0%, #06101f 50%, #040914 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  font-style: italic;
}

.no-public-listing {
  text-align: center;
  padding: 64px 32px;
  max-width: 600px;
  margin: 0 auto;
}

.no-listing-icon {
  margin-bottom: 24px;
}

.no-listing-primary {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.no-listing-secondary {
  color: var(--text-secondary);
  line-height: 1.7;
}

.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.audience-list li {
  padding: 10px 0;
  padding-inline-start: 20px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.12);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  position: relative;
}

.audience-list li::before {
  content: '›';
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

.partnership-models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.partnership-model-card {
  background: rgba(10, 25, 60, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 8px;
  padding: 18px;
}

.partnership-model-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin: 0 0 8px 0;
}

.partnership-model-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

.journey-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.journey-step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
}

.journey-step-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.journey-step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.cta-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-block h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-block p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.legal-disclaimer {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(10, 25, 60, 0.3);
  border: 1px solid rgba(100, 116, 139, 0.15);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .two-col-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .partnership-models-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .journey-step {
    gap: 16px;
  }
  .journey-step-number {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
}

/* ====================================================== */
/* NAV DROPDOWN — "More" menu                            */
/* ====================================================== */

.links {
  gap: 20px;
}

.links a {
  font-size: 0.8125rem;
}

.nav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-more-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-more-btn:hover,
.nav-more.open .nav-more-btn {
  color: var(--text-white);
}

.nav-more.has-active .nav-more-btn {
  color: var(--text-white);
  font-weight: 600;
}

.nav-more.has-active .nav-more-btn::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue-bright), var(--accent-cyan));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-more-chevron {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
  line-height: 1;
}

.nav-more.open .nav-more-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 180px;
  background: rgba(8, 16, 38, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 200;
  padding: 8px 0;
  animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-more.open .nav-dropdown {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 18px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  color: var(--text-white);
  background: rgba(56,189,248,0.07);
}

.nav-dropdown-item.active {
  font-weight: 600;
}

[dir="rtl"] .nav-dropdown {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

@media (max-width: 1080px) {
  .links .nav-more {
    display: block;
    width: 100%;
  }

  .links .nav-more-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 1rem;
    text-align: start;
  }

  .links .nav-dropdown {
    position: static;
    inset: auto;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(8, 16, 38, 0.72);
    box-shadow: none;
  }

  .links .nav-dropdown-item {
    padding: 10px 12px;
    font-size: 0.9375rem;
    white-space: normal;
  }
}

/* ====================================================== */
/* TEAM PAGE (V5.6.2 — single-image gallery, editorial)   */
/* ====================================================== */

/* ---- SECTION A: HERO + GALLERY ---- */
.tm-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(29,78,216,0.22) 0%, transparent 62%),
    linear-gradient(180deg, #030711 0%, #040914 60%);
}

.tm-hero-head {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.tm-hero-head .eyebrow { margin-bottom: 18px; }

.tm-hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.tm-hero-desc {
  margin: 22px auto 0;
  max-width: 600px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---- GALLERY (one image at a time) ---- */
.tm-gallery {
  margin: 52px auto 0;
  max-width: 1120px;
}

.tm-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #081226;
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.16),
    0 40px 90px rgba(0,0,0,0.55);
}

.tm-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.tm-slide.active { opacity: 1; pointer-events: auto; }
.tm-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  transform: scale(1.001);
  transition: transform 6s ease;
}
.tm-slide.active img { transform: scale(1.04); }

.tm-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,11,24,0.16) 0%, transparent 22%, transparent 70%, rgba(5,11,24,0.5) 100%);
}

.tm-gbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(120,160,220,0.3);
  background: rgba(5,11,24,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tm-gbtn:hover { background: rgba(47,107,255,0.4); border-color: var(--accent-cyan); }
.tm-gbtn:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
.tm-prev { inset-inline-start: 18px; }
.tm-next { inset-inline-end: 18px; }

.tm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 4px;
}
.tm-caption {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.tm-dots { display: flex; gap: 10px; }
.tm-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(120,160,220,0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tm-dot.active { background: var(--accent-cyan); transform: scale(1.2); }
.tm-dot:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
.tm-counter {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---- SECTION B: PEOPLE, TECHNOLOGY & COLLABORATION ---- */
.tm-collab {
  padding: 88px 0;
  border-top: 1px solid rgba(120,160,220,0.14);
  background: #040914;
}
.tm-collab-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.tm-collab-left .eyebrow { margin-bottom: 18px; }
.tm-collab-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.tm-lede {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.tm-points {
  margin-top: 38px;
  display: grid;
  gap: 0;
}
.tm-point {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid rgba(120,160,220,0.14);
}
.tm-point:last-child { border-bottom: 1px solid rgba(120,160,220,0.14); }
.tm-point .tm-idx {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.tm-point h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.tm-point p {
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin: 0;
}

/* ---- SECTION C: COMPACT CTA ---- */
.tm-cta {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(760px 380px at 50% 10%, rgba(29,78,216,0.2) 0%, transparent 70%),
    #030711;
  border-top: 1px solid rgba(120,160,220,0.14);
}
.tm-cta-inner { max-width: 620px; margin: 0 auto; position: relative; z-index: 2; }
.tm-cta-inner .eyebrow { margin-bottom: 16px; }
.tm-cta-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.tm-cta-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .tm-collab-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .tm-hero { padding: 72px 0 56px; }
  .tm-gallery { margin-top: 40px; }
  .tm-stage { aspect-ratio: 4 / 3; border-radius: 12px; }
  .tm-gbtn { width: 44px; height: 44px; font-size: 1.05rem; }
  .tm-prev { inset-inline-start: 10px; }
  .tm-next { inset-inline-end: 10px; }
  .tm-collab, .tm-cta { padding: 64px 0; }
  .nav-more-btn { padding: 8px 0; }
}
@media (max-width: 440px) {
  .tm-stage { aspect-ratio: 1 / 1; }
  .tm-slide img { object-position: center 12%; }
}

/* ====================================================== */
/* PORTFOLIO MEDIA (V5.7)                                 */
/* ====================================================== */

/* ---- Cards with cover ---- */
.pf-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pf-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #081226;
  flex-shrink: 0;
}
.pf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.pf-card:hover .pf-cover img { transform: scale(1.04); }
/* Light, consistent bottom scrim — not a heavy dark overlay */
.pf-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(5,11,24,0.42));
  pointer-events: none;
}
.pf-cover-status {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Logo-only cover */
.pf-cover-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(520px 300px at 50% 35%, rgba(29,78,216,0.22), transparent 70%), #060d1f;
}
.pf-cover-logo::after { display: none; }
.pf-mono {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(56,189,248,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-cyan);
  background: rgba(5,11,24,0.5);
}

.pf-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pf-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.pf-card-top h3 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.pf-card-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}
.pf-card-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
}

/* ---- Detail visual section ---- */
.pf-visual-section {
  padding: 8px 0 8px;
  background: var(--navy-1, #040914);
}
.pf-visual-section .wrap { max-width: 1040px; }

.pf-stage,
.pf-single-frame {
  position: relative;
  width: 100%;
  /* Matches the captured product-shot ratio (1440x740) so detail interface
     views render complete and readable — no aggressive cropping. */
  aspect-ratio: 1440 / 740;
  border-radius: 16px;
  overflow: hidden;
  background: #081226;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.16), 0 30px 70px rgba(0,0,0,0.5);
}

.pf-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.pf-slide.active { opacity: 1; pointer-events: auto; }
.pf-slide img,
.pf-single-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pf-gbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(120,160,220,0.3);
  background: rgba(5,11,24,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pf-gbtn:hover { background: rgba(47,107,255,0.4); border-color: var(--accent-cyan); }
.pf-gbtn:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
.pf-prev { inset-inline-start: 16px; }
.pf-next { inset-inline-end: 16px; }

.pf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px;
}
.pf-cap,
.pf-single-cap {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.pf-single-cap { display: block; text-align: center; margin-top: 14px; }
.pf-dots { display: flex; gap: 9px; }
.pf-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(120,160,220,0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pf-dot.active { background: var(--accent-cyan); transform: scale(1.2); }
.pf-dot:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
.pf-counter {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Logo panel on detail page */
.pf-logo-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  aspect-ratio: 16 / 5;
  border-radius: 16px;
  background: radial-gradient(520px 260px at 50% 40%, rgba(29,78,216,0.2), transparent 70%), #060d1f;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.14);
}
.pf-logo-mono {
  width: 72px; height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(56,189,248,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900;
  color: var(--accent-cyan);
  background: rgba(5,11,24,0.5);
}
.pf-logo-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---- Portfolio responsive / mobile typography ---- */
@media (max-width: 768px) {
  .pf-stage, .pf-single-frame { border-radius: 12px; }
  .pf-gbtn { width: 42px; height: 42px; font-size: 1.05rem; }
  .pf-prev { inset-inline-start: 10px; }
  .pf-next { inset-inline-end: 10px; }
  .pf-logo-panel { aspect-ratio: 16 / 7; }
}
@media (max-width: 560px) {
  .pf-cover { aspect-ratio: 16 / 10; }
  .pf-card-top h3 { font-size: 1.18rem; }
  .pf-card-tag { font-size: 0.8125rem; }
  .pf-card-body { padding: 18px 18px 20px; }
  .pf-card-body p { font-size: 0.9375rem; line-height: 1.6; }
  .pf-card .card-footer a { font-size: 0.875rem; }
}

/* Reduced Motion Support */
@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;
  }
}
