/* ═══════════════════════════════════════════════
   ARCHITECTURAL OBSIDIAN DESIGN SYSTEM — PRO EDITION
   Abderrezak — Studio Portfolio
   ═══════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #050505;
  --surface: #0a0a0a;
  --surface2: #121212;
  --surface-card: #151515;
  --surface-card-hover: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-focus: rgba(229, 229, 229, 0.6);
  --silver: #E5E5E5;
  --silver-light: #F4F4F5;
  --silver-dark: #A1A1AA;
  --silver-gradient: linear-gradient(135deg, #FFFFFF 0%, #E2E2E6 35%, #C4C4CA 70%, #ECECEF 100%);
  --silver-gradient-hover: linear-gradient(135deg, #FFFFFF 0%, #F0F0F3 50%, #D4D4D8 100%);
  --cobalt: #1E3A8A;
  --cobalt-glow: rgba(30, 58, 138, 0.35);
  --muted: #8E8E93;
  --muted-light: #B0B0B5;
  --white: #FFFFFF;
  --green: #00FF66;
  --green-glow: rgba(0, 255, 102, 0.3);
  --wa-green: #25D366;
  --red: #FF3B30;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 72px;
}

html {
  font-size: 16px;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography elements */
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
code, pre { font-family: var(--font-mono); }

/* Selection */
::selection {
  background: var(--silver);
  color: var(--black);
}

/* ═══════════════════════════════════════════════
   PRELOADER (Terminal Boot & Signal Ping)
   ═══════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-box {
  width: 90%;
  max-width: 480px;
  padding: 24px;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 50px rgba(229,229,229,0.05);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.preloader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preloader-dots {
  display: flex;
  gap: 6px;
}

.preloader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.preloader-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 90px;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--silver);
}

.terminal-line.success {
  color: var(--green);
  text-shadow: 0 0 8px var(--green-glow);
}

.terminal-line.dim {
  color: var(--muted);
}

.preloader-bar-wrap {
  margin-top: 18px;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: var(--silver-gradient);
  transition: width 0.2s linear;
}

/* ═══════════════════════════════════════════════
   CUSTOM CURSOR & BADGE
   ═══════════════════════════════════════════════ */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(229, 229, 229, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.2s, background-color 0.2s;
  display: none;
  align-items: center;
  justify-content: center;
}

#custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--silver);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  display: none;
}

#custom-cursor-text {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--black);
  opacity: 0;
  transition: opacity 0.2s;
  text-transform: uppercase;
  pointer-events: none;
}

@media (pointer: fine) {
  #custom-cursor, #custom-cursor-dot { display: flex; }
}

body.cursor-hover #custom-cursor {
  width: 48px;
  height: 48px;
  border-color: var(--silver);
  background: rgba(255, 255, 255, 0.1);
}

body.cursor-card #custom-cursor {
  width: 68px;
  height: 68px;
  border-color: var(--white);
  background: var(--silver-gradient);
}

body.cursor-card #custom-cursor-text {
  opacity: 1;
}

body.cursor-drag #custom-cursor {
  width: 72px;
  height: 72px;
  border-color: var(--silver);
  background: var(--silver-gradient);
}

body.cursor-drag #custom-cursor-text {
  opacity: 1;
}

body.ba-dragging #custom-cursor,
body.ba-dragging #custom-cursor-dot {
  opacity: 0 !important;
  display: none !important;
}

body.ba-dragging {
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize !important;
}

/* ═══════════════════════════════════════════════
   NOISE & BACKGROUND EFFECTS
   ═══════════════════════════════════════════════ */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.6;
}

#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#hero-3d-canvas-wrap {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  max-width: 46vw;
  max-height: 72vh;
  pointer-events: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-3d-canvas {
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}

#hero-3d-canvas:active {
  cursor: grabbing;
}

.hero-3d-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--silver-light);
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(229, 229, 229, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: auto !important;
    padding-top: calc(var(--nav-h) + 24px) !important;
    padding-bottom: 16px !important;
  }

  .hero-content {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    margin: 0 !important;
    text-align: center;
  }

  #hero-3d-canvas-wrap {
    order: 2 !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 300px !important;
    height: 300px !important;
    max-width: 90vw !important;
    margin: 12px auto 0 auto !important;
  }
}

@media (max-width: 480px) {
  #hero-3d-canvas-wrap {
    width: 270px !important;
    height: 270px !important;
    margin: 10px auto 0 auto !important;
  }
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--nav-h);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-symbol {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
  transition: transform 0.3s var(--ease-out);
}

.nav-brand:hover .nav-logo-symbol {
  transform: rotate(-8deg) scale(1.08);
}

.nav-title-group {
  display: flex;
  flex-direction: column;
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
}

.nav-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  transition: color 0.25s;
  position: relative;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--silver);
  transition: width 0.25s var(--ease-out);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-light);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s var(--ease-out);
}

.nav-tool-btn:hover {
  color: var(--white);
  border-color: var(--silver);
  background: rgba(255,255,255,0.08);
}

.nav-tool-btn.active {
  color: var(--green);
  border-color: rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.06);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--silver);
  border-radius: 3px;
  color: var(--white) !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out) !important;
}

.nav-cta:hover {
  background: var(--silver-gradient);
  color: var(--black) !important;
  box-shadow: 0 0 20px rgba(229,229,229,0.3);
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--black);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.8rem;
  color: var(--silver);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--silver);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 85vh;
  padding-top: calc(var(--nav-h) + 36px);
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-pill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(229, 229, 229, 0.05);
  border: 1px solid rgba(229, 229, 229, 0.4);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-light);
  box-shadow: 0 0 25px rgba(229, 229, 229, 0.12), inset 0 0 12px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 10px #FFFFFF, 0 0 20px rgba(229, 229, 229, 0.8);
  animation: pulse-silver 2s infinite ease-in-out;
}

@keyframes pulse-silver {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #FFFFFF; }
  50% { opacity: 0.4; transform: scale(0.85); box-shadow: 0 0 2px #FFFFFF; }
}

.hero-location-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  padding: 7px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 820px;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--silver);
  text-shadow: 0 0 30px rgba(255,255,255,0.15);
}

.hero-sub {
  font-size: clamp(0.98rem, 1.2vw, 1.2rem);
  color: var(--muted-light);
  max-width: 650px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-sub strong {
  color: var(--white);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-primary, .btn-silver {
  background: var(--silver-gradient);
  color: var(--black) !important;
  box-shadow: 0 4px 20px rgba(229, 229, 229, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-primary:hover, .btn-silver:hover {
  background: var(--silver-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 229, 229, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--silver);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-wa {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
}

.btn-wa:hover {
  background: #25D366;
  color: #000;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
}

.btn-full { width: 100%; }

.hero-service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 800px;
}

.service-strip-item {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted-light);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.2s var(--ease-out);
}

.service-strip-item:hover {
  color: var(--white);
  border-color: var(--silver);
  background: rgba(255,255,255,0.06);
}

.service-strip-item.upcoming {
  opacity: 0.6;
  border-style: dashed;
}

/* Mobile Hero Tuning */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-h) + 20px);
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-content {
    padding: 0 16px;
  }
  .hero-pill-row {
    gap: 8px;
    margin-bottom: 18px;
  }
  .hero-badge, .hero-location-badge {
    font-size: 0.68rem;
    padding: 6px 12px;
  }
  .hero-title {
    font-size: clamp(2.2rem, 9.5vw, 3.4rem);
    margin-bottom: 16px;
  }
  .hero-sub {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 30px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.82rem;
  }
  .hero-service-strip {
    gap: 6px;
  }
  .service-strip-item {
    font-size: 0.68rem;
    padding: 5px 10px;
  }
}

/* ═══════════════════════════════════════════════
   STAT & PROOF BAR
   ═══════════════════════════════════════════════ */
.stat-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  width: 100%;
}

.stat-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 300;
  color: var(--silver);
  line-height: 1;
}

.stat-num span {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--muted);
  margin-left: 2px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.stat-divider { display: none; }

@media (max-width: 768px) {
  .stat-bar-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════ */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  max-width: 1300px;
  margin: 0 auto 50px auto;
  padding: 0 24px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tag::before {
  content: '//';
  color: var(--muted);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .section-header { padding: 0 16px; margin-bottom: 30px; }
  .section-title { font-size: 2rem; }
  .section-sub { font-size: 0.92rem; }
}

/* ═══════════════════════════════════════════════
   MVE DIAGNOSTIC QUIZ
   ═══════════════════════════════════════════════ */
.quiz-section {
  background: linear-gradient(180deg, var(--black) 0%, #090909 100%);
}

.quiz-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .quiz-container { padding: 0 16px; }
}

.quiz-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.quiz-step-dots {
  display: flex;
  gap: 8px;
}

.quiz-step-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}

.quiz-step-dot.active {
  background: var(--silver);
}

.quiz-step {
  display: none;
  animation: fadeIn 0.4s var(--ease-out);
}

.quiz-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
}

.quiz-subtext {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .quiz-section {
    padding: 30px 10px;
  }
  .quiz-container {
    padding: 12px 10px;
    margin: 0 auto;
  }
  .quiz-progress-bar {
    margin-bottom: 10px;
    font-size: 0.62rem;
  }
  .quiz-question {
    font-size: 1.05rem;
    margin-bottom: 4px;
    line-height: 1.2;
  }
  .quiz-subtext {
    font-size: 0.70rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  .quiz-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 10px;
  }
  .quiz-opt-btn {
    padding: 8px 6px;
    gap: 2px;
    min-height: 56px;
    border-radius: 4px;
  }
  .quiz-opt-title {
    font-size: 0.68rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-weight: 600;
  }
  .quiz-opt-desc {
    font-size: 0.56rem;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.quiz-opt-btn {
  text-align: left;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.25s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quiz-opt-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--silver);
  transform: translateY(-2px);
}

.quiz-opt-btn.selected {
  background: rgba(229, 229, 229, 0.1);
  border-color: var(--silver);
  box-shadow: 0 0 20px rgba(229, 229, 229, 0.15);
}

.quiz-opt-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.quiz-opt-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.quiz-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-verdict-card {
  padding: 32px;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--silver);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(229,229,229,0.08);
}

@media (max-width: 640px) {
  .quiz-verdict-card { padding: 20px; }
}

.quiz-verdict-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--silver);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.quiz-verdict-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}

.quiz-verdict-body {
  font-size: 0.95rem;
  color: var(--muted-light);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════
   WORK / PROJECTS (3D TILT & SPECULAR GLARE)
   ═══════════════════════════════════════════════ */
.work-section {
  background: var(--black);
}

.work-filter-bar {
  max-width: 1300px;
  margin: 0 auto 40px auto;
  padding: 0 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .work-filter-bar {
    padding: 0 16px;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 6px;
  }
  .work-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .work-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 0.72rem;
  }
}

.work-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.25s var(--ease-out);
}

.work-filter-btn:hover {
  color: var(--white);
  border-color: var(--border-hover);
}

.work-filter-btn.active {
  color: var(--black);
  background: var(--silver-gradient);
  border-color: var(--silver);
  font-weight: 600;
}

.projects-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  perspective: 1200px;
}

@media (max-width: 860px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 10px;
    gap: 10px;
  }
  .project-card--featured {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }
  .project-card--featured .project-thumb-wrap {
    aspect-ratio: 16 / 10;
    min-height: auto;
  }
  .project-tag-pill {
    font-size: 0.52rem;
    padding: 2px 6px;
    top: 6px;
    left: 6px;
  }
  .project-info {
    padding: 10px 8px;
    gap: 4px;
  }
  .project-meta-row {
    gap: 4px;
    margin-bottom: 4px;
  }
  .project-title {
    font-size: 0.92rem;
    line-height: 1.2;
  }
  .project-scope-tags {
    gap: 3px;
  }
  .scope-tag {
    font-size: 0.55rem;
    padding: 1px 4px;
  }
  .project-desc {
    display: none;
  }
  .project-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
  }
  .project-link-case, .project-link-demo {
    font-size: 0.62rem;
    padding: 4px 6px;
  }
}

.project-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 30px rgba(229,229,229,0.05);
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 350px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255,255,255,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.project-card:hover .card-glare {
  opacity: 1;
}

.project-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 860px) {
  .project-card--featured {
    grid-template-columns: 1fr;
  }
}

.project-thumb-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card--featured .project-thumb-wrap {
  aspect-ratio: auto;
  min-height: 340px;
}

.project-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-thumb-wrap img {
  transform: scale(1.04);
}

.project-tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

.project-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

@media (max-width: 640px) {
  .project-info { padding: 20px; }
}

.project-meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
}

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

.scope-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 3px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--muted-light);
  line-height: 1.6;
  margin-bottom: 22px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-link-case {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s;
}

.project-link-case:hover {
  color: var(--white);
  text-decoration: underline;
}

.project-link-demo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.2s;
}

.project-link-demo:hover {
  color: var(--silver);
}

/* ═══════════════════════════════════════════════
   BEFORE / AFTER COMPARISON SLIDER
   ═══════════════════════════════════════════════ */
.before-after-section {
  background: #090909;
}

.ba-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .ba-container { padding: 0 16px; }
}

.ba-slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.ba-badge {
  position: absolute;
  top: 16px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.ba-badge.before {
  left: 16px;
  background: rgba(255, 59, 48, 0.2);
  border: 1px solid rgba(255, 59, 48, 0.5);
  color: #FF6961;
}

.ba-badge.after {
  right: 16px;
  background: rgba(0, 255, 102, 0.15);
  border: 1px solid rgba(0, 255, 102, 0.4);
  color: var(--green);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-img-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid var(--silver);
}

.ba-img-before-wrap .ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--silver);
  z-index: 6;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--silver-gradient);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.8), 0 0 15px rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════
   SERVICES (6 CORE PILLARS + TOGGLES)
   ═══════════════════════════════════════════════ */
.services-section {
  background: var(--black);
}

.services-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; padding: 0 16px; gap: 14px; }
  .service-card { padding: 18px 16px; }
  .service-title { font-size: 1.3rem; margin-bottom: 12px; min-height: auto; }
  .service-view-pane { min-height: 100px; font-size: 0.82rem; }
  .service-checklist li { font-size: 0.8rem; }
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.6);
}

.service-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.service-icon {
  font-size: 1.4rem;
}

.service-turnaround {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--silver);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 18px;
  min-height: 2.2em;
}

.service-toggle-group {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
  margin-bottom: 18px;
}

.service-toggle-btn {
  flex: 1;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: 2px;
  transition: all 0.2s;
  text-align: center;
}

.service-toggle-btn.active {
  background: var(--silver);
  color: var(--black);
  font-weight: 600;
}

.service-view-pane {
  display: none;
  min-height: 140px;
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.55;
  margin-bottom: 18px;
}

.service-view-pane.active {
  display: block;
  animation: fadeIn 0.3s var(--ease-out);
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-checklist li span {
  color: var(--silver);
  font-weight: bold;
}

.service-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-pricing-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.service-proof-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--silver);
  text-transform: uppercase;
  font-weight: 600;
}

.service-proof-link:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   PHILOSOPHY & GAMIFIED "GUESS THE SCOPE" ARENA
   ═══════════════════════════════════════════════ */
.philosophy-section {
  background: linear-gradient(180deg, #090909 0%, var(--black) 100%);
}

.philosophy-grid {
  max-width: 1300px;
  margin: 0 auto 50px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 860px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 10px;
    gap: 8px;
    margin-bottom: 24px;
  }
}

.phil-card {
  padding: 36px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 640px) {
  .phil-card {
    padding: 14px 10px;
    gap: 8px;
    border-radius: 6px;
  }
  .phil-tag {
    font-size: 0.60rem;
    letter-spacing: 0.04em;
  }
  .phil-title {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .phil-desc {
    font-size: 0.68rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .phil-points {
    gap: 4px;
    margin-top: 2px;
  }
  .phil-points li {
    font-size: 0.62rem;
    line-height: 1.2;
  }
}

.phil-card.trap {
  background: rgba(255, 59, 48, 0.03);
  border: 1px solid rgba(255, 59, 48, 0.2);
}

.phil-card.mve {
  background: rgba(229, 229, 229, 0.04);
  border: 1px solid var(--silver);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 30px rgba(229,229,229,0.06);
}

.phil-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phil-card.trap .phil-tag { color: var(--red); }
.phil-card.mve .phil-tag { color: var(--silver); }

.phil-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
}

.phil-desc {
  font-size: 0.92rem;
  color: var(--muted-light);
  line-height: 1.65;
}

.phil-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 6px;
}

/* GAMIFIED "GUESS THE SCOPE" ARENA */
.scope-game-container {
  max-width: 1100px;
  margin: 0 auto 60px auto;
  padding: 0 24px;
}

.scope-game-box {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.9);
}

.scope-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.scope-game-title-group h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--white);
}

.scope-game-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scope-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #262626;
  background: #171717;
  color: #d4d4d4;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.scope-tab-btn:hover {
  background: #262626;
  border-color: #404040;
  color: #ffffff;
}

.scope-tab-btn.active {
  background: #262626;
  border-color: var(--silver);
  color: var(--silver-light);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(229, 229, 229, 0.18);
}

.scope-scenario-prompt {
  font-size: 0.95rem;
  color: var(--silver-light);
  line-height: 1.6;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.02);
  padding: 16px 20px;
  border-left: 3px solid var(--silver);
  border-radius: 0 4px 4px 0;
}

.scope-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.scope-pick-card {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
}

.scope-pick-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--silver);
  transform: translateY(-2px);
}

.scope-pick-card.selected {
  border-color: var(--silver);
  background: rgba(229, 229, 229, 0.08);
  box-shadow: 0 0 20px rgba(229, 229, 229, 0.1);
}

.scope-pick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.scope-pick-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.scope-pick-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--silver);
}

.scope-pick-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.scope-pick-desc {
  font-size: 0.85rem;
  color: var(--muted-light);
  line-height: 1.5;
}

.scope-verdict-reveal {
  display: none;
  padding: 22px;
  border-radius: 6px;
  background: rgba(229, 229, 229, 0.05);
  border: 1px solid var(--silver);
  animation: fadeIn 0.4s var(--ease-out);
}

.scope-verdict-reveal.active {
  display: block;
}

.scope-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.scope-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scope-metric-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
}

.scope-metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
}

/* Boundaries Box */
.boundaries-box {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .boundaries-box { padding: 0 16px; }
}

.boundaries-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

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

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

@media (max-width: 600px) {
  .boundaries-grid { grid-template-columns: 1fr; gap: 10px; }
}

.boundary-item {
  font-size: 0.88rem;
  color: var(--muted-light);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.boundary-item span {
  color: var(--red);
  font-weight: bold;
}

/* ═══════════════════════════════════════════════
   CONTACT & DIRECT WHATSAPP (FULL MOBILE OVERFLOW FIX)
   ═══════════════════════════════════════════════ */
.contact-section {
  background: var(--black);
  padding: 100px 0;
  width: 100%;
  overflow: hidden;
}

.contact-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .contact-section { padding: 60px 0; }
  .contact-box {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 16px;
    width: 100%;
  }
}

.contact-left {
  width: 100%;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 18px;
}

.contact-heading em {
  font-style: italic;
  color: var(--silver);
}

.contact-pitch {
  font-size: 0.98rem;
  color: var(--muted-light);
  line-height: 1.6;
  margin-bottom: 26px;
}

.contact-direct-wa-card {
  padding: 24px;
  background: rgba(37, 211, 102, 0.05);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 6px;
  width: 100%;
}

@media (max-width: 480px) {
  .contact-direct-wa-card { padding: 18px; }
}

.wa-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #25D366;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.wa-card-body {
  font-size: 0.85rem;
  color: var(--muted-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

.contact-right {
  width: 100%;
}

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

@media (max-width: 480px) {
  .contact-form { padding: 20px 16px; gap: 14px; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px; /* Prevents auto zoom on mobile safari */
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--silver);
  background: rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════════
   CASE STUDY DETAIL PAGES & VAULT HERO STYLES
   ═══════════════════════════════════════════════ */
.project-hero {
  position: relative;
  min-height: 52vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.25;
  filter: blur(2px) grayscale(0.2);
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.85) 60%, #050505 100%);
}

.project-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .project-hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 40px;
    min-height: auto;
  }
  .project-hero-inner { padding: 0 16px; }
}

.case-section-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-section-tag::before {
  content: '//';
  color: var(--muted);
}

.project-case-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 100px 24px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

@media (max-width: 768px) {
  .project-case-body { padding: 40px 16px 80px 16px; gap: 40px; }
}

.case-metric-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

@media (max-width: 640px) {
  .case-metric-box { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-card-val {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--silver);
  line-height: 1;
}

.metric-card-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}

.case-section-text {
  font-size: 0.98rem;
  color: var(--muted-light);
  line-height: 1.7;
}

.case-not-built-card {
  padding: 22px;
  background: rgba(255, 59, 48, 0.04);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 6px;
}

.case-showcase-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  margin: 16px 0;
}

.case-showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.case-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.case-nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.case-nav-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   SECRET STUDIO DEVELOPER TERMINAL (EASTER EGG)
   ═══════════════════════════════════════════════ */
#terminal-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#terminal-modal.open {
  display: flex;
  animation: fadeIn 0.25s var(--ease-out);
}

.dev-terminal {
  width: 100%;
  max-width: 760px;
  height: 520px;
  max-height: 85vh;
  background: #080808;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.95), 0 0 50px rgba(0, 255, 102, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.terminal-title-controls {
  display: flex;
  gap: 8px;
}

.t-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.t-btn-close { background: #FF5F56; }
.t-btn-min { background: #FFBD2E; }
.t-btn-max { background: #27C93F; }

.terminal-screen {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--silver);
}

.terminal-output-line {
  line-height: 1.45;
}

.terminal-output-line.cmd-echo {
  color: var(--silver-dark);
}

.terminal-output-line.cmd-res {
  color: var(--silver-light);
}

.terminal-output-line.cmd-success {
  color: var(--green);
}

.terminal-output-line.cmd-error {
  color: var(--red);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #0d0d0d;
  border-top: 1px solid var(--border);
}

.terminal-prompt {
  color: var(--green);
  font-weight: 700;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

/* Floating Terminal Launcher Pill */
.terminal-launcher-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--silver);
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.terminal-launcher-fab:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 102, 0.15);
}

@media (max-width: 640px) {
  .terminal-launcher-fab {
    bottom: 16px;
    left: 16px;
    padding: 6px 10px;
    font-size: 0.65rem;
  }
}

/* Digital Matrix Rain Overlay */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  display: none;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 768px) {
  .footer { padding: 30px 0; }
  .footer-inner { padding: 0 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.footer-perf {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.footer-perf span {
  color: var(--silver);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--white);
}

/* FLOATING WHATSAPP BUTTON */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease-out);
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@media (max-width: 640px) {
  .wa-fab {
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   MASTER MOBILE RESPONSIVENESS OVERHAUL (2-COLUMN & MICRO-TYPOGRAPHY)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* HERO & STAT BAR */
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.8rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 14px !important;
  }
  .stat-bar-inner {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 14px 8px !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .stat-item {
    align-items: center !important;
    text-align: center !important;
  }
  .stat-num {
    font-size: 1.1rem !important;
  }
  .stat-num span {
    font-size: 0.68rem !important;
  }
  .stat-label {
    font-size: 9px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.02em !important;
  }

  /* 1. WORK SECTION: ALL cards strictly 2-column, Kabba Paris matching single span */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 0 6px !important;
  }
  .project-card--featured {
    grid-column: span 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .project-card--featured .project-thumb-wrap {
    aspect-ratio: 16 / 10 !important;
    min-height: auto !important;
  }
  .project-card {
    border-radius: 5px !important;
  }
  .project-info {
    padding: 5px 4px !important;
    gap: 2px !important;
  }
  .project-title {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }
  .project-tag-pill {
    font-size: 6.5px !important;
    padding: 1px 3.5px !important;
    top: 4px !important;
    left: 4px !important;
    white-space: nowrap !important;
    max-width: calc(100% - 8px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.1 !important;
    border-radius: 100px !important;
  }
  .project-scope-tags {
    gap: 2px !important;
    flex-wrap: wrap !important;
    margin-bottom: 2px !important;
  }
  .scope-tag {
    font-size: 6.5px !important;
    padding: 1px 3px !important;
    line-height: 1.1 !important;
    border-radius: 2px !important;
  }
  .project-desc {
    display: none !important;
  }
  .project-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin-top: 2px !important;
  }
  .project-link-case, .project-link-demo {
    font-size: 7.5px !important;
    padding: 2px 3px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 3px !important;
  }

  /* 2. INTERACTIVE DIAGNOSTIC: 2x2 grid fitting inside mobile screen, no horizontal overflow */
  .quiz-section {
    padding: 20px 6px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .quiz-container {
    padding: 8px 6px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .quiz-options-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
    margin-bottom: 6px !important;
    max-width: 100% !important;
  }
  .quiz-opt-btn {
    padding: 6px 5px !important;
    min-height: 46px !important;
    border-radius: 4px !important;
    gap: 2px !important;
    overflow: hidden !important;
  }
  .quiz-opt-title {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }
  .quiz-opt-desc {
    font-size: 7.5px !important;
    line-height: 1.15 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .quiz-question {
    font-size: 11.5px !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
  }
  .quiz-subtext {
    font-size: 8.5px !important;
    margin-bottom: 6px !important;
  }

  /* 3. WHAT I DELIVER (CAPABILITIES & SCOPE): strictly 2-column grid on mobile with micro squares & text */
  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
    padding: 0 5px !important;
  }
  .service-card {
    padding: 5px 4px !important;
    border-radius: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5px !important;
  }
  .service-top-row {
    margin-bottom: 2px !important;
  }
  .service-icon {
    font-size: 9px !important;
  }
  .service-turnaround {
    font-size: 5.5px !important;
    padding: 1px 3px !important;
  }
  .service-title {
    font-size: 8px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    min-height: auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .service-toggle-group {
    margin-bottom: 2px !important;
    padding: 1px !important;
    border-radius: 2px !important;
    gap: 1px !important;
  }
  .service-toggle-btn {
    font-size: 5.5px !important;
    padding: 1px 2px !important;
    border-radius: 2px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }
  .service-view-pane {
    min-height: auto !important;
    font-size: 6px !important;
    line-height: 1.15 !important;
    margin-bottom: 2px !important;
  }
  .service-checklist {
    gap: 1px !important;
  }
  .service-checklist li {
    font-size: 5.8px !important;
    line-height: 1.12 !important;
    gap: 2px !important;
  }
  .service-checklist li span {
    font-size: 5.8px !important;
  }
  .service-rationale {
    font-size: 5.8px !important;
    line-height: 1.15 !important;
  }
  .service-footer,
  .service-card-footer {
    margin-top: auto !important;
    padding-top: 2px !important;
    border-top: 1px solid var(--border) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    align-items: flex-start !important;
  }
  .service-pricing-note {
    font-size: 5.5px !important;
    line-height: 1.1 !important;
    color: var(--muted) !important;
  }
  .service-proof-link {
    font-size: 6px !important;
    line-height: 1.1 !important;
    color: var(--silver) !important;
    font-weight: 600 !important;
  }

  /* 4. MY APPROACH (PHILOSOPHY & BOUNDARIES): vertical spacing between red & green cards */
  .philosophy-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 0 6px !important;
    margin-bottom: 12px !important;
  }
  .phil-card {
    padding: 7px 6px !important;
    border-radius: 4px !important;
    gap: 4px !important;
  }
  .phil-card.trap {
    margin-bottom: 4px !important;
  }
  .phil-tag {
    font-size: 7px !important;
  }
  .phil-title {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
  }
  .phil-desc {
    font-size: 7px !important;
    line-height: 1.25 !important;
  }
  .phil-points li {
    font-size: 6.5px !important;
    line-height: 1.15 !important;
  }

  /* 5. GUESS THE SCOPE (INTERACTIVE SIMULATION): Side-by-Side 2-column grid & Dark Tabs */
  .scope-game-container {
    padding: 0 5px !important;
    margin-bottom: 14px !important;
  }
  .scope-game-box {
    padding: 8px 6px !important;
    border-radius: 4px !important;
  }
  .scope-game-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
  }
  .scope-game-title-group h3 {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
  }
  .scope-game-tabs {
    display: flex !important;
    gap: 3px !important;
    flex-wrap: wrap !important;
  }
  .scope-tab-btn {
    font-size: 7px !important;
    padding: 2px 5px !important;
    border-radius: 9999px !important;
    border: 1px solid #262626 !important;
    background: #171717 !important;
    color: #d4d4d4 !important;
  }
  .scope-tab-btn.active {
    background: #262626 !important;
    border-color: var(--silver) !important;
    color: var(--silver-light) !important;
  }
  .scope-scenario-prompt {
    font-size: 7px !important;
    padding: 4px 5px !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }
  .scope-options-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
  }
  .scope-pick-card {
    padding: 5px 4px !important;
    border-radius: 3px !important;
  }
  .scope-pick-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
    margin-bottom: 1px !important;
  }
  .scope-pick-label {
    font-size: 5.5px !important;
  }
  .scope-pick-price {
    font-size: 6.5px !important;
    line-height: 1.1 !important;
  }
  .scope-pick-title {
    font-size: 7.5px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 1px !important;
  }
  .scope-pick-desc {
    font-size: 6px !important;
    line-height: 1.1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .scope-verdict-reveal {
    padding: 6px 5px !important;
    margin-top: 6px !important;
  }
  #scope-verdict-text {
    font-size: 7px !important;
    line-height: 1.2 !important;
  }
  .scope-metrics-bar {
    gap: 3px !important;
    padding-top: 3px !important;
    margin-top: 3px !important;
  }
  .scope-metric-val {
    font-size: 7.5px !important;
  }
  .scope-metric-lbl {
    font-size: 5.5px !important;
  }

  /* BOUNDARIES ("Who I Don't Work With") */
  .boundaries-box {
    padding: 0 5px !important;
  }
  .boundaries-title {
    font-size: 7.5px !important;
    margin-bottom: 4px !important;
  }
  .boundaries-grid {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }
  .boundary-item {
    padding: 4px 6px !important;
    font-size: 7.5px !important;
    gap: 4px !important;
    border-radius: 3px !important;
  }

  /* 6. CONTACT FORM SECTION: SIDE-BY-SIDE 2-column grid on mobile */
  .contact-section {
    padding: 24px 0 !important;
  }
  .contact-box {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 0 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: start !important;
  }
  .contact-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .contact-heading {
    font-size: 12px !important;
    line-height: 1.15 !important;
    margin-bottom: 2px !important;
  }
  .contact-pitch {
    font-size: 8px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
  }
  .contact-direct-wa-card {
    padding: 6px 5px !important;
    border-radius: 5px !important;
  }
  .wa-card-header {
    gap: 3px !important;
    font-size: 8.5px !important;
    margin-bottom: 2px !important;
  }
  .wa-card-header svg {
    width: 12px !important;
    height: 12px !important;
  }
  .wa-card-body {
    font-size: 7.5px !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
  }
  .contact-direct-wa-card .btn-wa {
    font-size: 7.5px !important;
    padding: 4px 3px !important;
    line-height: 1.1 !important;
  }
  .contact-form {
    padding: 8px 6px !important;
    gap: 4px !important;
    border-radius: 5px !important;
  }
  .contact-form .form-group {
    gap: 1px !important;
  }
  .contact-form label {
    font-size: 7.5px !important;
    margin-bottom: 1px !important;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 4px 5px !important;
    font-size: 8.5px !important;
    border-radius: 3px !important;
  }
  .contact-form button[type="submit"] {
    font-size: 8.5px !important;
    padding: 5px 6px !important;
    margin-top: 1px !important;
  }
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(229,229,229,0.05);
  border: 1px solid rgba(229,229,229,0.12);
  border-radius: 6px;
  padding: 3px 8px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 1px 2px;
  transition: color 0.2s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--green); }
.lang-sep {
  font-size: 0.6rem;
  color: rgba(229,229,229,0.2);
  user-select: none;
}

/* Mobile lang switcher — shown at top of mobile menu */
.lang-switcher--mobile {
  margin: 0 0 18px 0;
  padding: 6px 12px;
  background: rgba(229,229,229,0.04);
  border-radius: 8px;
  justify-content: center;
}
.lang-switcher--mobile .lang-btn {
  font-size: 0.8rem;
  padding: 2px 4px;
}

/* RTL adjustments */
[dir="ar"] .hero-title,
[dir="ar"] .section-title,
[dir="ar"] .contact-heading {
  text-align: right;
}
[dir="ar"] .nav-links { flex-direction: row-reverse; }
[dir="ar"] .phil-points li { text-align: right; }
[dir="ar"] .boundary-item { text-align: right; }
