/* ================================================================
   DESIGN SYSTEM v2 — Mohamed Bassem Khemissi BIM Portfolio
   Modern SaaS / Agency Aesthetic · Plus Jakarta Sans + Inter
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Backgrounds */
  --bg-base:        #FFFFFF;
  --bg-surface:     #F8FAFC;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #F1F5F9;
  --bg-elevated:    #F1F5F9;
  --bg-input:       #F8FAFC;

  /* Accent — Electric Blue primary */
  --blue:           #2563EB;
  --blue-light:     #3B82F6;
  --blue-dark:      #1D4ED8;
  --blue-glow:      rgba(37, 99, 235, 0.1);
  --blue-glow-sm:   rgba(37, 99, 235, 0.06);

  /* Accent — Violet */
  --violet:         #7C3AED;
  --violet-light:   #8B5CF6;
  --violet-glow:    rgba(124, 58, 237, 0.1);

  /* Accent — Emerald */
  --emerald:        #059669;
  --emerald-light:  #10B981;
  --emerald-glow:   rgba(5, 150, 105, 0.08);

  /* Accent — Amber */
  --amber:          #D97706;
  --amber-glow:     rgba(217, 119, 6, 0.08);

  /* Text */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --text-faint:     #CBD5E1;

  /* Borders */
  --border:         rgba(0, 0, 0, 0.08);
  --border-accent:  rgba(37, 99, 235, 0.2);
  --border-strong:  rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-display:   'Plus Jakarta Sans', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* Layout */
  --container-max:  1200px;
  --container-pad:  clamp(20px, 5vw, 56px);
  --section-py:     clamp(88px, 12vw, 144px);

  /* Radii */
  --r-sm:    6px;
  --r-md:    12px;
  --r-lg:    18px;
  --r-xl:    24px;
  --r-2xl:   32px;
  --r-full:  9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.12);
  --shadow-blue:  0 0 40px rgba(37,99,235,0.1);
  --shadow-card:  0 0 0 1px var(--border), 0 4px 20px rgba(0,0,0,0.06);

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    160ms;
  --dur-med:     300ms;
  --dur-slow:    600ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}
img  { display: block; width: 100%; object-fit: cover; }
a    { color: inherit; text-decoration: none; cursor: none; }
ul   { list-style: none; }
button { cursor: none; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Custom Cursor ── */
#cursor, #cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
#cursor {
  width: 8px; height: 8px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  transition: width .2s, height .2s, background .2s;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(59,130,246,0.5);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .2s;
}
body.c-hover #cursor      { width: 5px; height: 5px; }
body.c-hover #cursor-ring { width: 52px; height: 52px; border-color: var(--blue); }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ── Section Tags ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border-accent);
  border-radius: var(--r-full);
  background: var(--blue-glow-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(37,99,235,.4); }
  50%      { opacity:.7; box-shadow:0 0 0 5px rgba(37,99,235,0); }
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.in { opacity:1; transform:translateY(0); }
.d1 { transition-delay: 80ms; }
.d2 { transition-delay: 160ms; }
.d3 { transition-delay: 240ms; }
.d4 { transition-delay: 320ms; }
.d5 { transition-delay: 400ms; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast);
  cursor: none;
  white-space: nowrap;
  border: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(37,99,235,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: rgba(0,0,0,0.22);
  background: rgba(0,0,0,0.03);
  transform: translateY(-2px);
}

.btn-lg { padding: 14px 34px; font-size: 0.95rem; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.badge-blue   { background: var(--blue-glow); color: var(--blue-light); border: 1px solid rgba(59,130,246,0.25); }
.badge-violet { background: var(--violet-glow); color: var(--violet-light); border: 1px solid rgba(139,92,246,0.25); }
.badge-green  { background: var(--emerald-glow); color: var(--emerald-light); border: 1px solid rgba(16,185,129,0.25); }
.badge-amber  { background: var(--amber-glow); color: var(--amber); border: 1px solid rgba(245,158,11,0.25); }

/* ── Card base ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease), transform var(--dur-med) var(--ease-spring), box-shadow var(--dur-med) var(--ease);
}
.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

/* ── Divider ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

/* ── Page Loader ── */
#page-loader {
  position: fixed; inset: 0; z-index: 9100;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px;
  transition: opacity 0.5s var(--ease);
}
#page-loader.hide { opacity: 0; pointer-events: none; }
.pl-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pl-logo img { height: 48px; width: auto; object-fit: contain; }
.pl-logo span { color: var(--blue); }
.pl-bar { width: 140px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pl-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--violet)); animation: loaderFill 1.5s var(--ease) forwards; }
@keyframes loaderFill { from{width:0} to{width:100%} }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 var(--container-pad);
  transition: background var(--dur-med), border-color var(--dur-med), backdrop-filter var(--dur-med);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(255,255,255,0.92);
  border-color: var(--border);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 68px;
  display: flex; align-items: center; gap: 32px;
}

.nav-logo {
  display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.2rem; letter-spacing: -.04em;
  flex-shrink: 0;
}
.nav-logo img {
  height: 38px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast);
}
.nav-logo:hover img {
  transform: scale(1.03);
}
.nav-logo em { color: var(--blue); font-style: normal; }

.nav-links {
  display: flex; align-items: center; gap: 2px; margin-left: auto;
}
.nav-links a {
  padding: 7px 14px;
  font-size: 0.855rem; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-full);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  background: rgba(37,99,235,0.06);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-pill {
  padding: 8px 20px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.855rem; font-weight: 600;
  font-family: var(--font-display);
  transition: background var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
}
.nav-pill:hover { background: var(--blue-dark); box-shadow: 0 4px 16px rgba(37,99,235,.3); transform: translateY(-1px); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: none; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: transform var(--dur-fast), opacity var(--dur-fast); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
  padding: 120px var(--container-pad) 80px;
  max-width: var(--container-max); margin: 0 auto;
  position: relative;
}

/* Hero bg glow */
#hero::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 100vh;
  background:
    radial-gradient(ellipse 55% 60% at 75% 40%, rgba(37,99,235,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 25% 70%, rgba(124,58,237,0.04) 0%, transparent 65%);
  z-index: -1; pointer-events: none;
}

.hero-left { display: flex; flex-direction: column; align-items: flex-start; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 10px;
  border: 1px solid var(--border-accent);
  background: var(--blue-glow-sm);
  border-radius: var(--r-full);
  margin-bottom: 28px;
  animation: fadeInDown .7s var(--ease) both;
}
.hero-eyebrow-badge {
  padding: 3px 10px;
  background: var(--blue);
  border-radius: var(--r-full);
  font-size: 0.68rem; font-weight: 700; color: #fff;
  font-family: var(--font-mono); letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-eyebrow-text { font-size: 0.8rem; color: var(--text-secondary); }

.hero-left h1 { animation: fadeInUp .7s .1s var(--ease) both; margin-bottom: 8px; }
.hero-typerow {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  height: 2rem;
  animation: fadeInUp .7s .18s var(--ease) both;
}
.typerow-cursor { color: var(--blue); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: 1.05rem; line-height: 1.8;
  color: var(--text-secondary); max-width: 500px;
  margin-bottom: 40px;
  animation: fadeInUp .7s .25s var(--ease) both;
}
.hero-desc strong { color: var(--text-primary); font-weight: 600; }

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px;
  animation: fadeInUp .7s .32s var(--ease) both;
}

.hero-trust {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  animation: fadeInUp .7s .4s var(--ease) both;
}
.hero-trust-label { font-size: 0.75rem; color: var(--text-muted); }
.hero-trust-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-trust-badge {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-muted); letter-spacing: .04em;
  background: var(--bg-surface);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.hero-trust-badge:hover { border-color: var(--border-accent); color: var(--blue); }

/* ── Hero Right: BIM Dashboard Card ── */
.hero-right {
  display: flex; justify-content: center; align-items: center;
  animation: fadeInRight .8s .2s var(--ease) both;
}

.bim-card {
  width: 100%; max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-lg), 0 0 40px rgba(37,99,235,0.07);
}

.bim-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-surface);
}
.bim-card-dots { display: flex; gap: 6px; }
.bim-card-dot { width: 10px; height: 10px; border-radius: 50%; }
.bim-card-dot:nth-child(1) { background: #EF4444; opacity:.8; }
.bim-card-dot:nth-child(2) { background: #F59E0B; opacity:.8; }
.bim-card-dot:nth-child(3) { background: var(--emerald); opacity:.8; }
.bim-card-title { font-size: .78rem; color: var(--text-secondary); font-family: var(--font-mono); margin-left: 8px; }
.bim-card-status {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .68rem; color: var(--emerald-light);
}
.bim-card-status::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--emerald); animation:pulse-dot 2s infinite; }

.bim-card-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

/* Project row */
.bim-project-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.bim-project-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--blue-glow);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bim-project-icon svg { width: 16px; height: 16px; color: var(--blue-light); }
.bim-project-name { font-family: var(--font-display); font-size: .82rem; font-weight: 600; }
.bim-project-sub { font-size: .7rem; color: var(--text-muted); font-family: var(--font-mono); }
.bim-project-badge { margin-left: auto; }

/* Metrics row */
.bim-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.bim-metric {
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
}
.bim-metric-val { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.bim-metric-val.blue   { color: var(--blue); }
.bim-metric-val.green  { color: var(--emerald); }
.bim-metric-val.violet { color: var(--violet); }
.bim-metric-lbl { font-size: .65rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }

/* Progress bars */
.bim-progress-group { display: flex; flex-direction: column; gap: 10px; }
.bim-progress-item {}
.bim-progress-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: var(--text-secondary); margin-bottom: 6px;
  font-family: var(--font-mono);
}
.bim-progress-label span { color: var(--text-muted); }
.bim-bar-track {
  height: 5px; background: var(--border);
  border-radius: var(--r-full); overflow: hidden;
}
.bim-bar-fill {
  height: 100%; border-radius: var(--r-full);
  animation: barLoad 1.8s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
.bim-bar-fill.blue   { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.bim-bar-fill.violet { background: linear-gradient(90deg, var(--violet), var(--violet-light)); }
.bim-bar-fill.green  { background: linear-gradient(90deg, var(--emerald), var(--emerald-light)); }
@keyframes barLoad { from{width:0} }

/* Clash row */
.bim-clash-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(16,185,129,.06);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--r-md);
}
.bim-clash-icon { color: var(--emerald); display: flex; }
.bim-clash-icon svg { width: 16px; height: 16px; }
.bim-clash-text { font-family: var(--font-mono); font-size: .76rem; }
.bim-clash-text strong { color: var(--emerald); font-size: .9rem; }
.bim-clash-text span { color: var(--text-muted); display: block; font-size: .66rem; margin-top: 1px; }
.bim-clash-badge { margin-left: auto; padding: 3px 10px; border-radius: var(--r-full); background: var(--emerald-glow); color: var(--emerald); font-family: var(--font-mono); font-size: .65rem; border: 1px solid rgba(5,150,105,.25); }

/* Floating orb decorations */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1;
}
.hero-orb-1 { width: 400px; height: 400px; background: rgba(37,99,235,.04); top:-100px; right:-100px; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(124,58,237,.03); bottom:-50px; left:30%; }

/* ═══════════════════════════════════════
   VALUE PROPOSITION — Feature Cards
═══════════════════════════════════════ */
#features { padding: var(--section-py) var(--container-pad); position: relative; }
.features-wrap { max-width: var(--container-max); margin: 0 auto; }

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

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
  transition: border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease), transform var(--dur-med) var(--ease-spring), box-shadow var(--dur-med) var(--ease);
}
.feature-card::after {
  content: ''; position: absolute; top:0; left:0; right:0; height:2px;
  background: var(--accent-grad, linear-gradient(90deg, var(--blue), var(--violet)));
  opacity: 0; transition: opacity var(--dur-med) var(--ease);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-accent); box-shadow: var(--shadow-blue); }
.feature-card:hover::after { opacity: 1; }

.feature-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-wrap svg { width: 22px; height: 22px; }
.fi-blue   { background: var(--blue-glow);   color: var(--blue-light); }
.fi-violet { background: var(--violet-glow); color: var(--violet-light); }
.fi-green  { background: var(--emerald-glow); color: var(--emerald-light); }

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: .875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

.feature-list { display: flex; flex-direction: column; gap: 7px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .8rem; color: var(--text-secondary);
}
.feature-list li::before {
  content: ''; flex-shrink: 0; width: 14px; height: 14px; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%233B82F6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ═══════════════════════════════════════
   STATS / SOCIAL PROOF
═══════════════════════════════════════ */
#stats {
  padding: clamp(60px, 8vw, 100px) var(--container-pad);
  position: relative;
}
.stats-wrap { max-width: var(--container-max); margin: 0 auto; }

.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stat-item {
  padding: 44px 32px;
  text-align: center;
  position: relative;
  transition: background var(--dur-med);
}
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--border);
}
.stat-item:hover { background: var(--bg-card-hover); }

.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -.04em; line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-lbl { font-size: .82rem; color: var(--text-secondary); font-weight: 500; }
.stat-sub { font-size: .72rem; color: var(--text-muted); margin-top: 3px; font-family: var(--font-mono); }

/* ═══════════════════════════════════════
   PROJECTS
═══════════════════════════════════════ */
#projects { padding: var(--section-py) var(--container-pad); }
.projects-wrap { max-width: var(--container-max); margin: 0 auto; }

/* Filter */
.filter-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 40px; justify-content: center;
}
.filter-btn {
  padding: 8px 20px; border-radius: var(--r-full);
  font-size: .82rem; font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--dur-fast) var(--ease);
  cursor: none;
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text-primary); background: rgba(0,0,0,.03); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

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

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: none;
  transition: border-color var(--dur-med) var(--ease), transform var(--dur-med) var(--ease-spring), box-shadow var(--dur-med) var(--ease);
}
.proj-card:hover { border-color: var(--border-accent); transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.1), var(--shadow-blue); }
.proj-card.hidden { display: none; }

.proj-img { height: 200px; overflow: hidden; position: relative; }
.proj-img img { height: 100%; transition: transform var(--dur-slow) var(--ease); }
.proj-card:hover .proj-img img { transform: scale(1.06); }
.proj-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(15,23,42,.65) 100%); }

.proj-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 3px 12px; border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: .66rem;
  font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
}
.pt-arch  { background: var(--blue-glow);    color: var(--blue-light);   border: 1px solid rgba(59,130,246,.3); }
.pt-str   { background: var(--violet-glow);  color: var(--violet-light); border: 1px solid rgba(139,92,246,.3); }
.pt-mep   { background: var(--amber-glow);   color: var(--amber);        border: 1px solid rgba(245,158,11,.3); }
.pt-coord { background: var(--emerald-glow); color: var(--emerald-light);border: 1px solid rgba(16,185,129,.3); }

.proj-body { padding: 22px 24px; }
.proj-loc { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: .68rem; color: var(--text-muted); margin-bottom: 7px; }
.proj-loc svg { width: 9px; height: 9px; }
.proj-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.proj-desc { font-size: .8rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.proj-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.proj-chip {
  padding: 2px 9px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-family: var(--font-mono); font-size: .62rem;
  color: var(--text-muted); letter-spacing: .03em;
}

.proj-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.proj-cta { display: flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--blue); }
.proj-cta svg { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease-spring); }
.proj-card:hover .proj-cta svg { transform: translateX(4px); }

/* Project Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--dur-med) var(--ease); }
.modal.open { opacity: 1; pointer-events: all; }
.modal-bg { position: absolute; inset: 0; background: rgba(15,23,42,.7); backdrop-filter: blur(24px); }
.modal-panel {
  position: relative; z-index: 1;
  width: min(780px, 92vw); max-height: 88vh; overflow-y: auto;
  background: var(--bg-surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl); box-shadow: var(--shadow-lg), 0 0 60px rgba(59,130,246,.1);
  transform: scale(.94) translateY(16px); transition: transform var(--dur-med) var(--ease-spring);
  scrollbar-width: thin; scrollbar-color: var(--border-accent) transparent;
}
.modal.open .modal-panel { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.1rem;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.modal-close:hover { border-color: var(--border-accent); color: var(--blue-light); background: var(--blue-glow-sm); }

.md-img { height: 280px; overflow: hidden; border-radius: var(--r-2xl) var(--r-2xl) 0 0; }
.md-img img { height: 100%; object-fit: cover; }
.md-body { padding: 36px; }
.md-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.md-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-family: var(--font-display); font-weight: 700; margin-bottom: 14px; }
.md-desc { color: var(--text-secondary); line-height: 1.8; font-size: .9rem; margin-bottom: 28px; }
.md-desc p + p { margin-top: 14px; }
.md-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.md-section h4 { font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: var(--blue); margin-bottom: 12px; letter-spacing: .02em; }
.md-section ul { display: flex; flex-direction: column; gap: 7px; }
.md-section ul li { font-size: .82rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 8px; }
.md-section ul li::before { content:'→'; color: var(--blue); flex-shrink: 0; font-size: .72rem; margin-top: 1px; }
.md-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 22px; background: var(--bg-surface); border-radius: var(--r-lg); border: 1px solid var(--border); }
.md-metric { text-align: center; }
.md-metric-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 4px; }
.md-metric-lbl { font-size: .68rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ═══════════════════════════════════════
   EXPERTISE — TABBED
═══════════════════════════════════════ */
#expertise { padding: var(--section-py) var(--container-pad); }
.expertise-wrap { max-width: var(--container-max); margin: 0 auto; }

.tab-row {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 5px;
  width: fit-content; margin: 0 auto 48px;
}
.tab-btn {
  padding: 10px 24px; border-radius: var(--r-full);
  font-family: var(--font-display); font-size: .875rem; font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease);
  cursor: none;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { background: var(--blue); color: #fff; box-shadow: 0 2px 12px rgba(37,99,235,.25); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}

.tab-text h3 { font-size: 1.8rem; margin-bottom: 14px; }
.tab-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 28px; font-size: .95rem; }

.tab-deliverables { display: flex; flex-direction: column; gap: 12px; }
.tab-deliv {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.tab-deliv:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.tab-deliv-icon { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--blue-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tab-deliv-icon svg { width: 12px; height: 12px; color: var(--blue-light); }
.tab-deliv-text { font-size: .83rem; color: var(--text-secondary); line-height: 1.5; }
.tab-deliv-text strong { display: block; color: var(--text-primary); font-weight: 600; margin-bottom: 1px; font-size: .87rem; }

.tab-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.tab-visual img { height: 380px; object-fit: cover; }
.tab-visual-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37,99,235,.05), transparent); }

/* ═══════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════ */
#faq { padding: var(--section-py) var(--container-pad); }
.faq-wrap { max-width: 760px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--dur-fast);
}
.faq-item.open { border-color: var(--border-accent); }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; text-align: left;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: var(--text-primary); cursor: none;
  transition: color var(--dur-fast);
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem; line-height: 1;
  transition: border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-med) var(--ease), background var(--dur-fast);
}
.faq-item.open .faq-icon { border-color: var(--blue); color: var(--blue); background: var(--blue-glow); transform: rotate(45deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out), padding var(--dur-med) var(--ease);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 24px 20px; font-size: .875rem; color: var(--text-secondary); line-height: 1.8; }

/* ═══════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════ */
#cta { padding: var(--section-py) var(--container-pad); }
.cta-wrap { max-width: var(--container-max); margin: 0 auto; }

.cta-box {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 88px) clamp(32px, 6vw, 80px);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-accent);
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(37,99,235,.06) 0%, transparent 65%),
              var(--bg-surface);
  text-align: center;
}
.cta-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--violet), transparent);
}
.cta-box h2 { margin-bottom: 16px; }
.cta-box p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Floating circles decoration */
.cta-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.cta-orb-1 { width: 300px; height: 300px; background: rgba(37,99,235,.04); top:-80px; right:-60px; }
.cta-orb-2 { width: 250px; height: 250px; background: rgba(124,58,237,.03); bottom:-60px; left:-60px; }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
#contact { padding: var(--section-py) var(--container-pad); }
.contact-wrap { max-width: var(--container-max); margin: 0 auto; }

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

.contact-info h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; line-height: 1.2; }
.contact-info p { font-size: .9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 36px; }

.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); text-decoration: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.contact-item:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.contact-item-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--blue-glow-sm); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 15px; height: 15px; color: var(--blue-light); }
.contact-item-label { font-size: .68rem; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: .04em; margin-bottom: 1px; }
.contact-item-value { font-size: .875rem; font-weight: 500; color: var(--text-primary); }

/* Form */
.contact-form {
  padding: 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .75rem; font-weight: 500; color: var(--text-muted); margin-bottom: 7px; font-family: var(--font-mono); letter-spacing: .04em; }
.form-field {
  width: 100%; padding: 12px 16px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text-primary); font-size: .875rem;
  outline: none; appearance: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.form-field:focus { border-color: var(--blue); background: rgba(59,130,246,.04); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.form-field::placeholder { color: var(--text-muted); }
textarea.form-field { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(59,130,246,.3);
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast);
}
.form-submit:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59,130,246,.45); }
.form-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.form-success { display: none; text-align: center; padding: 18px; color: var(--emerald-light); font-size: .875rem; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 64px var(--container-pad) 36px;
}
.footer-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-brand .footer-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.04em; display: block; margin-bottom: 10px; }
.footer-brand .footer-logo em { color: var(--blue); font-style: normal; }
.footer-brand p { font-size: .82rem; color: var(--text-muted); line-height: 1.7; max-width: 260px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-soc {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.footer-soc svg { width: 15px; height: 15px; }
.footer-soc:hover { border-color: var(--blue); color: var(--blue-light); background: var(--blue-glow-sm); }

.footer-col h5 { font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .82rem; color: var(--text-muted); transition: color var(--dur-fast); }
.footer-col ul a:hover { color: var(--blue-light); }

.footer-bottom { max-width: var(--container-max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .78rem; color: var(--text-muted); }
.footer-bottom span { font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   VIDEO MODAL
═══════════════════════════════════════ */
#videoModal .modal-panel { background: var(--bg-base); border-radius: var(--r-2xl); max-width: 880px; max-height: 90vh; }
.video-wrap { border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--border-accent); aspect-ratio: 16/9; background: var(--bg-card); }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ═══════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════ */
@keyframes fadeInDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp   { from{opacity:0;transform:translateY(28px)}  to{opacity:1;transform:translateY(0)} }
@keyframes fadeInRight{ from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:translateX(0)} }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; min-height: auto; padding-top: 110px; }
  .hero-right { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after, .stat-item:nth-child(4)::after { display: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .tab-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .nav-pill.hide-mobile { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(24px);
    z-index: 999; align-items: center; justify-content: center; gap: 6px;
  }
  .nav-links.open a { font-size: 1.4rem; padding: 16px 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .md-grid { grid-template-columns: 1fr; }
  .md-metrics { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 24px 20px; }
  .tab-row { flex-direction: column; border-radius: var(--r-xl); width: 100%; }
  .tab-btn { width: 100%; border-radius: var(--r-lg); text-align: center; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav-logo img { height: 30px; max-width: 135px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item::after { display: none !important; }
  .stat-item:not(:last-child) { border-bottom: 1px solid var(--border); }
  .md-metrics { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ═══════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════ */
.lang-switcher { position: relative; }

.lang-active {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: transparent;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  color: var(--text-secondary);
  cursor: none;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}
.lang-active:hover { border-color: var(--border-accent); color: var(--blue); background: var(--blue-glow); }
.lang-active svg { flex-shrink: 0; }
.lang-chevron {
  transition: transform var(--dur-fast) var(--ease);
}
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 6px;
  min-width: 152px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px) scale(.97);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-spring);
  z-index: 1100;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0) scale(1);
}

.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-md);
  width: 100%;
  font-family: var(--font-display); font-size: .82rem; font-weight: 500;
  color: var(--text-secondary);
  cursor: none;
  transition: background var(--dur-fast), color var(--dur-fast);
  text-align: left;
}
.lang-option:hover { background: var(--bg-surface); color: var(--text-primary); }
.lang-option.active { background: var(--blue-glow); color: var(--blue); font-weight: 600; }

@media (max-width: 768px) {
  .lang-switcher { order: -1; }
  .lang-dropdown { right: auto; left: 0; }
}
