/* ============================================================
   BuildSystems — Modern Design System v3
   Complete visual redesign with dark/light theme support
   ============================================================ */

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

/* ── Design Tokens ────────────────────────────────────────── */
[data-theme="dark"], [data-theme="dark"] body {
  /* ── Obsidian Architecture — Dark ─────────────────────── */
  --bg-base:      #07080F;
  --bg-surface:   #0D0F1C;
  --bg-card:      #121628;
  --bg-card-h:    #171E35;
  --bg-elevated:  #1C2440;

  --border:       rgba(100,120,255,0.07);
  --border-md:    rgba(100,120,255,0.12);
  --border-lg:    rgba(100,120,255,0.20);

  /* Indigo Forge — más premium que azul puro */
  --primary:      #4F6EF7;
  --primary-h:    #6D83FF;
  --primary-glow: rgba(79,110,247,0.22);

  /* Architect Teal — el diferenciador */
  --accent:       #0ABFA3;
  --accent-2:     #38BDF8;

  /* Warm Brass — toque premium (uso restringido) */
  --gold:         #C9A870;

  --text-1:       #EDF0FF;
  --text-2:       #7A8AB0;
  --text-3:       #3D4A6A;

  --shadow-sm:    0 2px 16px rgba(0,0,0,0.45);
  --shadow-md:    0 8px 48px rgba(0,0,0,0.55);
  --shadow-lg:    0 28px 90px rgba(0,0,0,0.65);

  /* Cubic-bezier premium — spring physics */
  --ease-spring:  cubic-bezier(0.32, 0.72, 0, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"], [data-theme="light"] body {
  /* ── Obsidian Architecture — Light ────────────────────── */
  --bg-base:      #F4F6FF;
  --bg-surface:   #EBF0FF;
  --bg-card:      #FFFFFF;
  --bg-card-h:    #F0F4FF;
  --bg-elevated:  #E4EAFF;

  --border:       rgba(79,110,247,0.08);
  --border-md:    rgba(79,110,247,0.14);
  --border-lg:    rgba(79,110,247,0.22);

  --primary:      #3A5CE8;
  --primary-h:    #2A4DD4;
  --primary-glow: rgba(79,110,247,0.12);

  --accent:       #0ABFA3;
  --accent-2:     #0284C7;

  --gold:         #B8924A;

  --text-1:       #09101F;
  --text-2:       #3A4A6B;
  --text-3:       #7080A0;

  --shadow-sm:    0 2px 12px rgba(79,110,247,0.07);
  --shadow-md:    0 8px 36px rgba(79,110,247,0.10);
  --shadow-lg:    0 24px 72px rgba(79,110,247,0.14);

  --ease-spring:  cubic-bezier(0.32, 0.72, 0, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.5s var(--ease-smooth), color 0.5s var(--ease-smooth);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Reset old dark class — now using data-theme */
body.dark {
  --color-bg: var(--bg-base);
  --theme-color: var(--bg-base);
  --theme-color-dark: var(--bg-surface);
  --light-color: var(--bg-base);
  --text-color: var(--text-1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-1);
}

a { color: var(--primary); text-decoration: none; }

img { max-width: 100%; }
img:hover { transform: none !important; }

/* Resets from old styles */
section, .section { background: var(--bg-base); padding: 128px 0; overflow: hidden; }
.sections-bg { background: var(--bg-surface) !important; }
.section-header h2::after { display: none !important; }

/* ── Preloader ────────────────────────────────────────────── */
#preloader { background: #07080F; }

/* ── Header — Floating Glass Pill ─────────────────────────── */
#header,
.header {
  position: fixed;
  top: 20px; left: 0; right: 0;
  z-index: 997;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  transition: top 0.4s var(--ease-spring);
}

#header > .container-fluid,
.header > .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 32px;
  max-width: 1340px;
  margin: 0 auto;
  gap: 0;
  /* The pill itself */
  background: rgba(7,8,15,0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(100,120,255,0.12);
  border-radius: 100px;
  padding: 10px 10px 10px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
  transition: all 0.4s var(--ease-spring);
}

[data-theme="light"] #header > .container-fluid,
[data-theme="light"] .header > .container-fluid {
  background: rgba(244,246,255,0.82);
  border-color: rgba(79,110,247,0.14);
  box-shadow: 0 8px 40px rgba(79,110,247,0.10), 0 0 0 1px rgba(79,110,247,0.06);
}

#header.sticked > .container-fluid,
.header.sticked > .container-fluid {
  background: rgba(7,8,15,0.92);
  box-shadow: 0 12px 52px rgba(0,0,0,0.50), 0 0 0 1px rgba(255,255,255,0.05);
}

[data-theme="light"] #header.sticked > .container-fluid,
[data-theme="light"] .header.sticked > .container-fluid {
  background: rgba(244,246,255,0.96);
}

.header .logo img { height: 32px !important; width: auto; }

/* Desktop nav */
@media (min-width: 1280px) {
  .navbar { padding: 0; }

  .navbar ul {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0; padding: 0;
    align-items: center;
    position: relative; /* anchor for sliding pill */
  }

  .navbar li { position: relative; }
  .navbar > ul > li { padding: 0; white-space: nowrap; }

  .navbar a, .navbar a:focus {
    position: relative;
    z-index: 1;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--text-2) !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    transition: color 0.2s ease !important;
    display: flex;
    align-items: center;
    background: transparent !important; /* pill handles background */
  }

  /* Active & hover text color — pill handles bg */
  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    color: var(--text-1) !important;
    background: transparent !important;
  }

  /* Active dot above link */
  .navbar a.active::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    animation: nav-dot-in 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards;
  }

  @keyframes nav-dot-in {
    from { opacity: 0; transform: translateX(-50%) scale(0); }
    to   { opacity: 1; transform: translateX(-50%) scale(1); }
  }

  /* Underline — disabled, pill handles it */
  .navbar a::before { display: none !important; }

  /* Sliding pill indicator (injected by JS) */
  .nav-pill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    background: var(--bg-card-h);
    border: 1px solid var(--border-md);
    border-radius: 8px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition:
      left  0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
      width 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 0.2s ease;
  }

  /* Contact CTA in nav — pill sólido premium */
  .navbar a.nav-cta,
  .navbar a.nav-cta:focus {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 9px 20px !important;
    margin-left: 8px;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: all 0.3s var(--ease-spring) !important;
  }

  .navbar a.nav-cta:hover {
    background: var(--primary-h) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 22px var(--primary-glow) !important;
  }

  /* Hide dot and pill on CTA */
  .navbar a.nav-cta::after { display: none !important; }

  .stikcy-menu .navbar a { color: var(--text-2) !important; }
  [data-theme="light"] .stikcy-menu .navbar a { color: var(--text-2) !important; }
}

/* Header actions area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.lang-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
  overflow: hidden;
}

/* flag-icons sizing inside button */
.lang-btn .fi {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  display: block !important;
  background-size: cover !important;
  opacity: 0.65;
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}

.lang-btn:hover .fi {
  opacity: 1;
  transform: scale(1.15);
}

.lang-btn.active {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.18);
}

.lang-btn.active .fi {
  opacity: 1;
  transform: scale(1.05);
}

/* Theme toggle */
#theme-toggle, #darkmode-button {
  width: 38px !important;
  height: 38px !important;
  border: 1.5px solid var(--border-md) !important;
  background: var(--border) !important;
  color: var(--text-2) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: all 0.22s ease !important;
  margin-left: 0 !important;
}

#theme-toggle:hover, #darkmode-button:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* Mobile nav trigger */
.mobile-nav-show {
  color: var(--text-1) !important;
  font-size: 26px !important;
  cursor: pointer;
  line-height: 1;
  transition: 0.3s;
  z-index: 9999;
  margin-right: 0 !important;
}

/* ── Premium Full-Screen Mobile Nav Overlay ────────────── */
@media (max-width: 1279px) {
  /* Override drawer slide → full-screen fade overlay */
  .navbar {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    right: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s ease, visibility 0.38s ease !important;
    z-index: 9997 !important;
  }

  .mobile-nav-active .navbar {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Background: dark glass */
  .navbar ul {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 60px 0 40px !important;
    margin: 0 !important;
    background: rgba(4, 5, 18, 0.97) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    list-style: none !important;
    overflow-y: auto !important;
  }

  /* Staggered link items */
  .navbar ul li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.38s ease, transform 0.38s ease;
  }

  .mobile-nav-active .navbar ul li { opacity: 1 !important; transform: translateY(0) !important; }
  .mobile-nav-active .navbar ul li:nth-child(1) { transition-delay: 0.08s; }
  .mobile-nav-active .navbar ul li:nth-child(2) { transition-delay: 0.13s; }
  .mobile-nav-active .navbar ul li:nth-child(3) { transition-delay: 0.18s; }
  .mobile-nav-active .navbar ul li:nth-child(4) { transition-delay: 0.23s; }
  .mobile-nav-active .navbar ul li:nth-child(5) { transition-delay: 0.28s; }
  .mobile-nav-active .navbar ul li:nth-child(6) { transition-delay: 0.33s; }

  /* Link styles */
  .navbar a, .navbar a:focus {
    display: block !important;
    font-size: 18px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    color: rgba(255, 255, 255, 0.55) !important;
    padding: 11px 40px !important;
    text-align: center !important;
    text-transform: none !important;
    background: transparent !important;
    transition: color 0.2s ease !important;
    border: none !important;
  }

  .navbar a:hover, .navbar .active {
    color: #fff !important;
    background: transparent !important;
  }

  /* Contact CTA pill */
  .navbar .nav-cta {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 40px !important;
    padding: 9px 26px !important;
    margin-top: 10px !important;
    color: rgba(255,255,255,0.7) !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s !important;
  }

  .navbar .nav-cta:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
  }

  /* Remove the dark ::before overlay since nav IS the overlay */
  .mobile-nav-active .navbar:before { display: none !important; }

  /* X button over the overlay */
  .mobile-nav-hide {
    position: fixed !important;
    top: 22px !important;
    right: 20px !important;
    font-size: 28px !important;
    color: rgba(255,255,255,0.7) !important;
    z-index: 9999 !important;
    transition: color 0.2s !important;
  }

  .mobile-nav-hide:hover { color: #fff !important; }
}

/* stikcy-menu — el pill ya maneja el bg, no hacer nada extra */
.header.stikcy-menu { background: transparent !important; }
[data-theme="light"] .header.stikcy-menu { background: transparent !important; }

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 80px;
  padding-bottom: 0 !important;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10,191,163,0.08);
  border: 1px solid rgba(10,191,163,0.20);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(22px, 2.4vw, 34px) !important;
  font-weight: 700 !important;
  color: var(--text-1) !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.03em !important;
  display: block !important;
  position: static !important;
  line-height: 1.08 !important;
}

.section-header p {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 17px !important;
  color: var(--text-2) !important;
  line-height: 1.72;
  margin: 0 !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
/* Wrapper prevents horizontal scroll while hero content stays unclipped */
.hero-clip-wrapper {
  overflow: hidden;
  position: relative;
}

#hero, .hero {
  min-height: 100vh;
  background: var(--bg-base) !important;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  padding: 72px 0 0 !important;
  height: auto !important;
}

/* Old hero overlay — remove */
.hero::before { display: none !important; }

/* Ambient orbs — Obsidian Architecture */
#hero .hero-orb-1 {
  position: absolute;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(79,110,247,0.14) 0%, transparent 60%);
  top: -320px; right: -280px;
  pointer-events: none; z-index: 0;
  animation: orb-drift-1 18s ease-in-out infinite;
}

#hero .hero-orb-2 {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(10,191,163,0.08) 0%, transparent 60%);
  bottom: -200px; left: -200px;
  pointer-events: none; z-index: 0;
  animation: orb-drift-2 22s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-30px, 20px); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(20px, -25px); }
}

[data-theme="light"] #hero .hero-orb-1 {
  background: radial-gradient(circle, rgba(79,110,247,0.09) 0%, transparent 60%);
}

[data-theme="light"] #hero .hero-orb-2 {
  background: radial-gradient(circle, rgba(10,191,163,0.06) 0%, transparent 60%);
}

/* Reemplaza particles.js — grid de puntos con CSS puro, cero JS, cero CPU */
#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Dot grid pattern generado con CSS — GPU-composited, sin JS */
  background-image:
    radial-gradient(circle, rgba(100,120,255,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  animation: grid-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 16px 16px; }
}

[data-theme="light"] #particles-js {
  background-image:
    radial-gradient(circle, rgba(79,110,247,0.12) 1px, transparent 1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10,191,163,0.08);
  border: 1px solid rgba(10,191,163,0.22);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-entry 0.8s var(--ease-spring) 0.1s forwards;
}

.badge-dot {
  width: 6px; height: 6px; min-width: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: bs-pulse 2s ease-in-out infinite;
}

@keyframes bs-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

#hero h1 {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(32px, 4.8vw, 64px) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  color: var(--text-1) !important;
  margin-bottom: 28px !important;
  text-transform: none !important;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-entry 0.9s var(--ease-spring) 0.25s forwards;
}

@keyframes hero-entry {
  to { opacity: 1; transform: translateY(0); }
}

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

/* Override old hero h2/span */
.hero h2 { display: none !important; }
.hero .dark-bg { display: none !important; }

#hero p, .hero-subtitle {
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: var(--text-2) !important;
  max-width: 500px;
  margin-bottom: 20px !important;
  font-weight: 400 !important;
  letter-spacing: 0.005em !important;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-entry 0.8s var(--ease-spring) 0.45s forwards;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-entry 0.7s var(--ease-spring) 0.6s forwards;
}

.hero-pill {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-2);
  background: rgba(79,110,247,0.07);
  border: 1px solid rgba(79,110,247,0.14);
  border-radius: 100px;
  padding: 6px 14px;
  transition: color 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth);
}

.hero-pill:hover {
  color: var(--text-1);
  background: rgba(79,110,247,0.13);
  border-color: rgba(79,110,247,0.25);
}

[data-theme="light"] .hero-pill {
  background: rgba(29,78,216,0.06);
  border-color: rgba(29,78,216,0.14);
  color: #334155;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-entry 0.8s var(--ease-spring) 0.6s forwards;
}

.btn-primary {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 100px;
  background: var(--primary);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 28px var(--primary-glow);
  transition: all 0.4s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  border-radius: 100px;
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--primary-h);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px var(--primary-glow);
  color: #fff !important;
}

.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  color: var(--text-1) !important;
  border: 1px solid var(--border-md);
  transition: all 0.4s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--primary-glow);
  transform: translateY(-2px);
}

.btn-ghost:active { transform: scale(0.98); }

/* Hero inline stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-entry 0.8s var(--ease-spring) 0.75s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

.hero-stat:first-child { padding-left: 0; }

.hero-stat strong {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 5px;
}

.hero-stat span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px; height: 36px;
  background: var(--border-md);
  flex-shrink: 0;
}

.hero-social {
  display: flex; gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-social a {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border-md);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 14px;
  transition: all 0.22s ease;
}

.hero-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Services Bento ───────────────────────────────────────── */
#services { background: var(--bg-surface) !important; }

/* ── Services — Interactive List + Panel ──────────────────── */
#services { background: var(--bg-base) !important; }

.srv-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  border: 1px solid var(--border-md);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  min-height: 560px;
}

/* ── List (left) ── */
.srv-list { border-right: 1px solid var(--border); }

.srv-item {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: background 0.22s ease, padding-left 0.22s ease;
}

.srv-item:last-child { border-bottom: none; }

/* Left accent bar */
.srv-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s ease;
  border-radius: 0 2px 2px 0;
}

.srv-item:hover { background: var(--bg-card-h); }
.srv-item:hover::before,
.srv-item.active::before { transform: scaleY(1); }

.srv-item.active {
  background: var(--bg-elevated);
}

.srv-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
  transition: color 0.3s var(--ease-smooth);
}

.srv-item:hover .srv-num,
.srv-item.active .srv-num { color: var(--primary); }

.srv-meta h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-1) !important;
  margin: 0 0 4px !important;
  letter-spacing: -0.02em !important;
  transition: color 0.22s !important;
}

.srv-item:hover .srv-meta h4,
.srv-item.active .srv-meta h4 { color: var(--primary) !important; }

.srv-tags {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.srv-arrow {
  font-size: 14px;
  color: var(--text-3);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s, transform 0.22s, color 0.22s;
}

.srv-item:hover .srv-arrow,
.srv-item.active .srv-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}

/* ── Panel (right) ── */
.srv-panel {
  background: var(--bg-surface);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 40px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind panel */
.srv-panel::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--primary-glow);
  filter: blur(60px);
  top: -40px; right: -40px;
  pointer-events: none;
}

.srv-panel-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Tech stack chips */
.srv-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  min-height: 72px;
}

.srv-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 99px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease,
              border-color 0.25s, background 0.25s, color 0.25s;
  cursor: default;
  white-space: nowrap;
}

.srv-chip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.srv-chip:hover {
  background: var(--bg-card-h);
  border-color: var(--primary);
  color: var(--text-1);
}

.srv-chip img {
  width: 16px; height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.4) saturate(1.1);
}

.srv-chip-dot {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.srv-panel-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
}

.srv-panel-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--text-1) !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 10px !important;
  line-height: 1.15 !important;
}

.srv-panel-desc {
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  color: var(--text-2) !important;
  margin-bottom: 18px !important;
}

.srv-panel-projs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.srv-projs-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 2px;
  white-space: nowrap;
}

.srv-projs-item {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(10,191,163,0.08);
  border: 1px solid rgba(10,191,163,0.18);
  border-radius: 100px;
  padding: 2px 10px;
  white-space: nowrap;
}

.srv-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.srv-panel-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--primary-glow);
  border: 1px solid var(--border-md);
  padding: 4px 12px;
  border-radius: 100px;
}

.srv-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  transition: gap 0.2s ease, color 0.2s ease;
}

.srv-panel-cta:hover {
  color: var(--primary-h);
  gap: 14px;
}

/* Fade transition on panel content */
.srv-panel-inner.is-switching {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.srv-panel-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s ease 0.05s, transform 0.24s ease 0.05s;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .srv-layout { grid-template-columns: 1fr 340px; }
  .srv-panel { padding: 36px 28px; }
}

@media (max-width: 768px) {
  .srv-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .srv-list { border-right: none; border-bottom: 1px solid var(--border); }
  .srv-panel { padding: 36px 28px; }
  .srv-item { padding: 18px 20px; }
}

@media (max-width: 480px) {
  .srv-item { grid-template-columns: 36px 1fr 20px; gap: 10px; padding: 16px; }
  .srv-panel { padding: 28px 20px; }
}

/* ── Methodology ──────────────────────────────────────────── */
/* content-visibility: auto — el browser omite el render hasta que sea visible */
#workprocess {
  background: var(--bg-surface) !important;
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

#featured, #portfolio, #testimonials, #technologies, #contact, #call-to-action {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Hide old blog-card structure */
#workprocess .recent-posts { display: none !important; }

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

.methodology-steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 60px; right: 60px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-md) 8%, var(--border-md) 92%, transparent 100%);
  z-index: 0;
}

.method-step {
  padding: 0 20px 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--primary-glow);
  border: 1px solid rgba(37,99,235,0.2);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  position: relative; z-index: 1;
  backdrop-filter: blur(8px);
}

.step-img {
  border-radius: 14px;
  overflow: hidden;
  height: 170px;
  margin-bottom: 18px;
}

.step-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.method-step:hover .step-img img { transform: scale(1.07); }

.step-stage {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

.method-step h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-1) !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em !important;
}

.method-step p {
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: var(--text-2) !important;
  margin: 0 !important;
}

@media (max-width: 991px) {
  .methodology-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .methodology-steps::before { display: none; }
}
@media (max-width: 575px) {
  .methodology-steps { grid-template-columns: 1fr; }
}

/* ── Why BuildSystems ─────────────────────────────────────── */
/* ── Why BuildSystems — Asymmetric Layout ─────────────────── */
#featured,
.why-section {
  background: var(--bg-surface) !important;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid background */
.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-md) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.5;
}

/* Hide old layout remnants */
#featured .row { display: none !important; }

/* Main two-column layout */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Left column ── */
.why-left {
  position: sticky;
  top: 100px;
}

.why-headline {
  font-size: clamp(24px, 2.8vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  color: var(--text-1) !important;
  margin: 16px 0 20px !important;
}

.why-headline-accent {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 380px;
  margin-bottom: 44px;
}

/* Metrics grid */
.why-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border-md);
  border-radius: 16px;
  overflow: hidden;
}

.why-metric {
  background: var(--bg-card);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}

.why-metric:hover { background: var(--bg-card-h); }

.why-metric-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-metric-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.why-metric-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-top: 2px;
  opacity: 0.75;
}

/* ── Right column — differentiators ── */
.why-right {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.why-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: all 0.25s ease;
}

.why-item:first-child { padding-top: 0; }
.why-item:last-child  { border-bottom: none; padding-bottom: 0; }

/* Accent left bar on hover */
.why-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.why-item:hover::before { transform: scaleY(1); }

.why-item:hover { padding-left: 16px; }

.why-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding-top: 4px;
  transition: color 0.25s;
}

.why-item:hover .why-num { color: var(--primary); }

.why-body h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-1) !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em !important;
  transition: color 0.25s !important;
}

.why-item:hover .why-body h4 { color: var(--primary) !important; }

.why-body p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: var(--text-2) !important;
  margin: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .why-layout { gap: 56px; }
}

@media (max-width: 860px) {
  .why-layout { grid-template-columns: 1fr; gap: 56px; }
  .why-left { position: static; }
  .why-headline { font-size: clamp(22px, 5vw, 32px) !important; }
  .why-metrics { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  .why-metrics { grid-template-columns: 1fr 1fr; }
  .why-item { grid-template-columns: 40px 1fr; gap: 14px; }
}

/* ── About Section ───────────────────────────────────────── */
.about-section {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* Section header */
.about-header {
  margin-bottom: 48px;
}

.about-headline {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  color: var(--text-1) !important;
  margin: 12px 0 0 !important;
}

.about-headline span { display: block; }

.about-accent {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Bento grid ── */
.about-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 140px auto auto auto;
  gap: 16px;
}

.about-bento-hero                { grid-column: 1 / 6;  grid-row: 1 / 4; }
.about-bento-cell:nth-child(2)   { grid-column: 6 / 10; grid-row: 1; }
.about-bento-cell:nth-child(3)   { grid-column: 10 / 13; grid-row: 1; }
.about-bento-founder-bio         { grid-column: 6 / 13; grid-row: 2; }
.about-bento-mission             { grid-column: 6 / 13; grid-row: 3; }
.about-bento-cell:nth-child(6)   { grid-column: 1 / 7;  grid-row: 4; }
.about-bento-cell:nth-child(7)   { grid-column: 7 / 13; grid-row: 4; }

/* Base cell */
.about-bento-cell {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.35s var(--ease-smooth);
  position: relative;
}

.about-bento-cell:hover {
  border-color: var(--border-md);
}

/* ── Hero card — David ── */
.about-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,8,15,0)    25%,
    rgba(7,8,15,0.55) 60%,
    rgba(7,8,15,0.97) 100%
  );
}

.about-hero-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
}

.about-founder-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,112,0.12);
  border: 1px solid rgba(201,168,112,0.28);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 10px;
}

.about-hero-name {
  font-family: 'Syne', sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #EDF0FF !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 6px !important;
}

.about-hero-role {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(237,240,255,0.55) !important;
  margin: 0 0 8px !important;
}

.about-bento-founder-bio {
  display: flex;
  align-items: center;
  padding: 24px 28px;
  background: var(--bg-card);
}

.about-founder-bio-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
}

/* ── Stat cards ── */
.about-bento-stat {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  min-height: 0;
}

.about-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  display: block;
}

.about-stat-num sup {
  font-size: 0.42em;
  vertical-align: super;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  display: block;
  text-align: center;
}

.about-stat-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  color: var(--text-3);
  margin-top: 3px;
  display: block;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Mission card ── */
.about-bento-mission {
  background: var(--bg-elevated);
  border-left: 3px solid var(--primary) !important;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.about-mission-text {
  font-size: 14px !important;
  line-height: 1.85 !important;
  color: var(--text-2) !important;
  margin: 0 !important;
  flex-grow: 1;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(79,110,247,0.20);
  border-radius: 100px;
  padding: 5px 12px;
}

/* ── Member cards ── */
.about-bento-member {
  background: var(--bg-card);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  transition: background 0.3s var(--ease-smooth), border-color 0.35s var(--ease-smooth);
}

.about-bento-member:hover {
  background: var(--bg-card-h);
  border-color: var(--border-md);
}

.about-member-photo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: border-color 0.3s var(--ease-smooth);
}

.about-bento-member:hover .about-member-photo {
  border-color: var(--primary);
}

.about-member-info { flex: 1; min-width: 0; }

.about-member-name {
  font-family: 'Syne', sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--text-1) !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 5px !important;
}

.about-member-role {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  margin: 0 0 10px !important;
}

.about-member-bio {
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: var(--text-2) !important;
  margin: 0 !important;
}

/* ── Light theme ── */
[data-theme="light"] .about-bento-stat,
[data-theme="light"] .about-bento-member {
  background: #ffffff;
}

[data-theme="light"] .about-bento-mission {
  background: #EEF2FF;
}

[data-theme="light"] .about-bento-member:hover {
  background: #F8FAFC;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .about-bento {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 320px auto auto auto auto;
    gap: 14px;
  }
  .about-bento-hero              { grid-column: 1 / 7; grid-row: 1; }
  .about-bento-cell:nth-child(2) { grid-column: 1 / 4; grid-row: 2; }
  .about-bento-cell:nth-child(3) { grid-column: 4 / 7; grid-row: 2; }
  .about-bento-founder-bio       { grid-column: 1 / 7; grid-row: 3; }
  .about-bento-mission           { grid-column: 1 / 7; grid-row: 4; }
  .about-bento-cell:nth-child(6) { grid-column: 1 / 7; grid-row: 5; }
  .about-bento-cell:nth-child(7) { grid-column: 1 / 7; grid-row: 6; }
}

@media (max-width: 640px) {
  .about-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px auto auto auto auto auto;
    gap: 12px;
  }
  .about-bento-hero              { grid-column: 1 / 3; grid-row: 1; }
  .about-bento-cell:nth-child(2) { grid-column: 1 / 2; grid-row: 2; }
  .about-bento-cell:nth-child(3) { grid-column: 2 / 3; grid-row: 2; }
  .about-bento-founder-bio       { grid-column: 1 / 3; grid-row: 3; }
  .about-bento-mission           { grid-column: 1 / 3; grid-row: 4; }
  .about-bento-cell:nth-child(6) { grid-column: 1 / 3; grid-row: 5; }
  .about-bento-cell:nth-child(7) { grid-column: 1 / 3; grid-row: 6; }
  .about-member-photo            { width: 68px; height: 68px; }
  .about-bento-member            { padding: 20px; gap: 16px; }
}

/* ── Portfolio — Elevated Surface ────────────────────────── */
/*
   Dark mode: deep navy elevado — más claro que el bg-base pero
   claramente oscuro. Las imágenes claras se leen bien sin que la
   sección se vea blanca.
   Light mode: azul suave aireado.
*/
#portfolio {
  background: var(--bg-elevated) !important;
  position: relative;
}

[data-theme="light"] #portfolio {
  background: #EBF0FF !important;
}

/* Textos dark mode — heredan vars normalmente (claros sobre oscuro) */
#portfolio .pf-arrow {
  background: var(--bg-card) !important;
  border-color: var(--border-md) !important;
  color: var(--text-1) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.20);
}

#portfolio .pf-arrow:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* Light mode — textos oscuros */
[data-theme="light"] #portfolio .section-header h2 {
  color: #09101F !important;
}

[data-theme="light"] #portfolio .section-header p {
  color: #3A4A6B !important;
}

[data-theme="light"] #portfolio .pf-name {
  color: #09101F !important;
}

[data-theme="light"] #portfolio .pf-quote {
  color: #4A5B7A !important;
}

[data-theme="light"] #portfolio .pf-arrow {
  background: #FFFFFF !important;
  border-color: rgba(79,110,247,0.18) !important;
  color: #09101F !important;
  box-shadow: 0 2px 12px rgba(79,110,247,0.08);
}

/* Hide old portfolio structure completely */
#portfolio .portfolio-isotope { display: none !important; }

.portfolio-filters-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  list-style: none;
  padding: 0; margin-left: 0; margin-right: 0;
}

.pf-btn {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 100px;
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border-md);
  cursor: pointer;
  transition: all 0.22s ease;
}

.pf-btn:hover, .pf-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 18px var(--primary-glow);
}

/* Compact grid */
.portfolio-new-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pgrid-item {
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pgrid-inner {
  position: relative;
  height: 215px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}

.pgrid-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.pgrid-inner:hover img { transform: scale(1.09); }

.pgrid-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,10,38,0.93) 0%, rgba(4,10,38,0.25) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 16px 16px;
}

.pgrid-inner:hover .pgrid-overlay { opacity: 1; }

.pgrid-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
  display: block;
}

.pgrid-overlay h4 {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}

.pgrid-link {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
}

.pgrid-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (max-width: 1199px) { .portfolio-new-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .portfolio-new-grid { grid-template-columns: repeat(2, 1fr); } .pgrid-inner { height: 185px; } }
@media (max-width: 440px)  { .portfolio-new-grid { gap: 7px; } .pgrid-inner { height: 155px; } }

/* ── Testimonials ─────────────────────────────────────────── */
#testimonials { background: var(--bg-surface) !important; }

.testimonials .testimonial-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  padding: 40px !important;
  margin: 24px 12px !important;
  min-height: 320px !important;
  transition: all 0.26s ease !important;
  box-shadow: none !important;
}

.testimonials .testimonial-item:hover {
  border-color: rgba(37,99,235,0.22) !important;
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-sm) !important;
}

.testimonials .testimonial-item h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  letter-spacing: -0.01em !important;
}

.testimonials .testimonial-item p {
  font-size: 17px !important;
  color: var(--text-2) !important;
  line-height: 1.85 !important;
  font-style: italic !important;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--primary) !important;
  font-size: 28px !important;
}

.testimonials .swiper-pagination .swiper-pagination-bullet { background: var(--border-md) !important; }
.testimonials .swiper-pagination .swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ── Stats Counter ────────────────────────────────────────── */
/* ── Stats Counter ─────────────────────────────────────────── */
#stats-counter,
.stats-counter {
  background: linear-gradient(135deg, #03091f 0%, #081947 55%, #0c2060 100%);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

#stats-counter::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 60%, rgba(96,165,250,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 20%, rgba(59,122,247,0.14) 0%, transparent 48%);
  pointer-events: none;
}

/* Subtle grid lines overlay */
#stats-counter::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

#stats-counter .container { position: relative; z-index: 1; }

/* Intro label + tagline */
.stats-intro {
  text-align: center;
  margin-bottom: 56px;
}

.stats-intro .section-eyebrow {
  color: rgba(96,165,250,0.85) !important;
  border-color: rgba(96,165,250,0.2) !important;
  background: rgba(96,165,250,0.08) !important;
}

.stats-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.stats-tagline::before,
.stats-tagline::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

/* 4-cell metrics bar */
.stats-bar {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.stats-cell {
  flex: 1;
  padding: 44px 32px;
  text-align: center;
  transition: background 0.25s;
}

.stats-cell:hover {
  background: rgba(255,255,255,0.06);
}

.stats-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  margin: 24px 0;
}

.stats-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 14px;
}

.stats-num .purecounter {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  background: inherit !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
}

.stats-num--static {
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-suffix {
  font-size: 0.55em;
  font-weight: 900;
  opacity: 0.75;
  align-self: flex-start;
  margin-top: 6px;
}

.stats-label {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  margin-bottom: 6px;
}

.stats-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 860px) {
  .stats-bar {
    flex-direction: column;
    border-radius: 16px;
  }
  .stats-divider {
    width: auto; height: 1px;
    margin: 0 24px;
  }
  .stats-cell { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .stats-tagline { font-size: 18px; }
  .stats-cell { padding: 28px 16px; }
}

/* ── Technologies ─────────────────────────────────────────── */
#technologies {
  background: var(--bg-base) !important;
  padding: 20px 0 !important;
  position: relative;
  overflow: hidden;
}

/* Dot grid background */
#technologies::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] #technologies::before {
  background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
}

#technologies .container { position: relative; z-index: 1; }

/* Hide old swiper */
#technologies .technologies-slider { display: none !important; }

/* ── Tech Hybrid: Cloud + Category Grid ─────────────────── */
.tech-hybrid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left cloud right";
  align-items: center;
  gap: 40px;
  margin-top: 32px;
}

.tech-cats--left  { grid-area: left; }
.tech-cloud-wrap  { grid-area: cloud; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.tech-cats--right { grid-area: right; }

.tech-cats {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tech-cat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.8;
  margin-bottom: 8px;
}

.tech-cats--left .tech-cat-label { text-align: right; }

.tech-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-cats--left .tech-cat-chips { justify-content: flex-end; }

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 7px;
  border-radius: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
}

.tech-chip:hover {
  border-color: var(--primary);
  color: var(--text-1);
  background: var(--bg-card-h);
}

.tech-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.4) saturate(1.1);
}

[data-theme="light"] .tech-chip img { filter: brightness(0.75) saturate(1); }

/* Icon Cloud sphere */

.icon-cloud-stage {
  position: relative;
  width: min(520px, 90vw);
  height: min(460px, 80vw);
  cursor: grab;
  user-select: none;
}

.icon-cloud-stage:active { cursor: grabbing; }

.cloud-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  will-change: transform, opacity;
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.cloud-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 4px 20px rgba(37,99,235,0.25);
  z-index: 999 !important;
}

.cloud-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
  max-width: none !important;
  transform: none !important;
  filter: brightness(1.5) saturate(1.2);
}

[data-theme="light"] .cloud-item img {
  filter: brightness(0.9) saturate(1.1);
}

.cloud-item-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--text-2);
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
}

.cloud-item:hover .cloud-item-label { opacity: 1; }

/* Tablet: cloud top, cats side-by-side below */
@media (max-width: 1100px) {
  .tech-hybrid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "cloud cloud"
      "left  right";
    gap: 32px 20px;
  }
  .tech-cats--left .tech-cat-chips { justify-content: flex-start; }
  .tech-cats--left .tech-cat-label { text-align: left; }
}

/* Mobile: smaller chips */
@media (max-width: 600px) {
  .tech-chip { font-size: 10px; padding: 4px 8px 4px 6px; }
  .tech-chip img { width: 12px; height: 12px; }
  .tech-cat-chips { gap: 5px; }
}

/* Very small: single column */
@media (max-width: 420px) {
  .tech-hybrid {
    grid-template-columns: 1fr;
    grid-template-areas: "cloud" "left" "right";
    gap: 24px;
  }
}

/* ── CTA ──────────────────────────────────────────────────── */
#call-to-action {
  background: linear-gradient(135deg, #07080F 0%, #0D1535 50%, #0F1E50 100%) !important;
  padding: 100px 0 !important;
  background-attachment: scroll !important;
  position: relative;
  overflow: hidden;
}

#call-to-action::before {
  content: '' !important;
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 60%, rgba(79,110,247,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(10,191,163,0.10) 0%, transparent 45%);
  pointer-events: none;
}

/* Decorative grid lines */
#call-to-action::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

#call-to-action .container { position: relative; z-index: 1; }

/* Split layout */
.cta-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta-left .section-eyebrow { margin-bottom: 20px; }

.call-to-action h3 {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(24px, 2.8vw, 38px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: #fff !important;
  margin-bottom: 18px !important;
  line-height: 1.1 !important;
}

.call-to-action p {
  font-size: 16px !important;
  color: rgba(255,255,255,0.6) !important;
  margin: 0 !important;
  line-height: 1.75 !important;
}

/* Steps */
.cta-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.cta-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cta-step-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  opacity: 0.8;
  min-width: 24px;
  padding-top: 2px;
}

.cta-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-step-body strong {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cta-step-body span {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.call-to-action .cta-btn {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 15px 44px !important;
  border-radius: 100px !important;
  background: #fff !important;
  color: #0D1535 !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.12) !important;
  transition: all 0.35s var(--ease-spring) !important;
}

.call-to-action .cta-btn:hover {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 40px var(--primary-glow) !important;
  transform: translateY(-2px) !important;
}

/* CTA responsive */
@media (max-width: 900px) {
  .cta-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  #call-to-action { padding: 72px 0 !important; }
}

/* ── Contact ──────────────────────────────────────────────── */
/* ── Contact Section ──────────────────────────────────────── */
#contact,
.contact-section { background: var(--bg-surface) !important; }

.ct-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

/* ── Left panel ── */
.ct-available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.20);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.ct-avail-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: ct-blink 2s ease-in-out infinite;
}

@keyframes ct-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.ct-headline {
  font-size: clamp(26px, 3vw, 42px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.05 !important;
  color: var(--text-1) !important;
  margin-bottom: 16px !important;
}

.ct-headline span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ct-lead {
  font-size: 14px !important;
  color: var(--text-2) !important;
  line-height: 1.7 !important;
  margin-bottom: 36px !important;
}

.ct-details {
  list-style: none;
  padding: 0; margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ct-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ct-details li i {
  width: 36px; height: 36px;
  background: var(--primary-glow);
  border: 1px solid var(--border-md);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}

.ct-detail-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}

.ct-details a, .ct-details span {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
}

.ct-details a:hover { color: var(--primary); }

.ct-social {
  display: flex;
  gap: 8px;
}

.ct-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 14px;
  transition: all 0.2s;
}

.ct-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Form ── */
.ct-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

/* Honeypot — completamente invisible */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;

}

/* Service chips */
.ct-selector-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--text-3) !important;
  margin-bottom: 10px !important;
}

.ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.ct-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-md);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}

.ct-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ct-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Floating label fields */
.ct-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.ct-field-full { grid-column: 1 / -1; }

.ct-field-group {
  position: relative;
}

.ct-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-md);
  border-radius: 10px;
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 22px 14px 8px;
  transition: all 0.22s ease;
  outline: none;
  resize: none;
}

.ct-textarea { min-height: 120px; }

.ct-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-elevated);
}

.ct-field-group label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-3);
  pointer-events: none;
  transition: all 0.18s ease;
}

.ct-field-group:has(.ct-textarea) label { top: 18px; transform: none; }

.ct-input:focus + label,
.ct-input:not(:placeholder-shown) + label {
  top: 8px;
  transform: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.ct-input::placeholder { color: transparent; }

/* Footer row */
.ct-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ct-privacy {
  font-size: 11px !important;
  color: var(--text-3) !important;
  margin: 0 !important;
  max-width: 220px;
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 28px var(--primary-glow);
  white-space: nowrap;
}

.ct-submit:hover {
  background: var(--primary-h);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37,99,235,0.38);
  gap: 16px;
}

.ct-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Feedback messages */
.ct-msg {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.ct-msg.show { display: flex; }

.ct-msg--ok  { background: rgba(34,197,94,0.10); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.ct-msg--err { background: rgba(239,68,68,0.10);  color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.ct-msg--bot { background: rgba(245,158,11,0.10); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }

/* Responsive */
@media (max-width: 900px) {
  .ct-layout { grid-template-columns: 1fr; gap: 40px; }
  .ct-form-wrap { padding: 28px 20px; }
}

@media (max-width: 520px) {
  .ct-fields { grid-template-columns: 1fr; }
  .ct-form-footer { flex-direction: column; align-items: flex-start; }
}

/* ── Footer ───────────────────────────────────────────────── */
/* ── Footer ───────────────────────────────────────────────── */
#footer, .ft {
  background: #07080F !important;
  padding: 0 !important;
  margin: 0 !important;
  border-top: 1px solid rgba(100,120,255,0.10);
  overflow: hidden;
}

/* ── Editorial CTA Stage ── */
.ft-stage {
  position: relative;
  padding: 80px 0 10px;
  overflow: hidden;
}

.ft-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(79,110,247,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(10,191,163,0.07) 0%, transparent 50%);
  pointer-events: none;
}

.ft-stage-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.ft-stage-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.ft-stage-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: ft-pulse 2s ease-in-out infinite;
}

@keyframes ft-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.ft-stage-headline {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(52px, 8vw, 112px) !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
  margin: 0 !important;
}

.ft-word-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.18);
}

.ft-word-filled {
  display: block;
  background: linear-gradient(135deg, #EDF0FF 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ft-stage-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 100px;
  width: fit-content;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.ft-stage-btn i {
  transition: transform 0.3s var(--ease-spring);
  font-size: 16px;
}

.ft-stage-btn:hover {
  background: var(--primary-h);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px var(--primary-glow);
  gap: 18px;
}

/* Ghost decorative text */
.ft-ghost-text {
  position: absolute;
  right: -5px;
  bottom: -30px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(60px, 18vw, 110px);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 1;
}

/* ── Divider ── */
.ft-divider { padding: 0; }
.ft-divider-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59,122,247,0.25) 30%,
    rgba(14,165,233,0.25) 70%,
    transparent 100%);
}

/* ── Info Grid ── */
.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0;
}

.ft-logo {
  height: 30px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.ft-logo:hover { opacity: 1; }

.ft-tagline {
  font-size: 13px !important;
  color: rgba(255,255,255,0.30) !important;
  line-height: 1.7 !important;
  margin-bottom: 22px !important;
}

.ft-social {
  display: flex;
  gap: 8px;
}

.ft-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  transition: all 0.22s ease;
}

.ft-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.ft-col-heading {
  font-family: 'Syne', sans-serif !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.20) !important;
  margin-bottom: 18px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

.ft-links {
  list-style: none;
  padding: 0; margin: 0;
}

.ft-links li { margin-bottom: 10px; }

.ft-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.ft-links a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.2s ease, margin-right 0.2s ease;
  margin-right: 0;
}

.ft-links a:hover {
  color: #fff;
}

.ft-links a:hover::before {
  width: 12px;
  margin-right: 6px;
}

.ft-contact-list {
  list-style: none;
  padding: 0; margin: 0;
}

.ft-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}

.ft-contact-list i {
  color: var(--primary);
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.ft-contact-list a {
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}

.ft-contact-list a:hover { color: #fff; }

/* ── Bottom bar ── */
.ft-bottom {
  border-top: 1px solid rgba(100,120,255,0.08);
  padding: 20px 0;
}

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

.ft-copy {
  font-size: 12px !important;
  color: rgba(255,255,255,0.16) !important;
  margin: 0 !important;
}

.ft-countries {
  font-size: 11px !important;
  letter-spacing: 0.10em !important;
  color: rgba(255,255,255,0.12) !important;
  margin: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .ft-stage { padding: 72px 0 56px; }
  .ft-stage-headline { font-size: clamp(40px, 12vw, 72px) !important; }
  .ft-word-outline { -webkit-text-stroke-width: 1px; }
  .ft-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 20px; }
  .ft-bottom { padding-left: 20px; padding-right: 20px; }
  .ft-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }
  .ft-ghost-text { font-size: 80px; bottom: -10px; }
}

/* ── Scroll Top ───────────────────────────────────────────── */
.scroll-top {
  background: var(--primary) !important;
  box-shadow: 0 4px 18px var(--primary-glow) !important;
  transition: all 0.26s ease !important;
}

.scroll-top:hover {
  background: var(--primary-h) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(37,99,235,0.42) !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  section, .section { padding: 72px 0 !important; }
  .section-header { margin-bottom: 48px; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .hero-stat-divider { display: none; }
  .hero-stat { padding: 0; }
  .contact-information-box-3 { margin-bottom: 24px !important; }
  .contact-form-box { padding: 28px 20px !important; }
}

@media (max-width: 767px) {
  section, .section { padding: 60px 0 !important; }
  .hero-content { padding: 40px 0; }
  #hero h1 { font-size: clamp(26px, 7vw, 38px) !important; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 22px !important; }
  .call-to-action h3 { font-size: 20px !important; }
}

@media (max-width: 575px) {
  .portfolio-filters-v2 { gap: 6px; }
  .pf-btn { font-size: 10px; padding: 8px 16px; }
  .stats-counter .stats-item .purecounter { font-size: 38px !important; }
}

/* ============================================================
   PREMIUM COMPONENTS v2
   Hero Split · Orbital Timeline · Vapour Text · 3D Marquee
   ============================================================ */

/* ── Hero Split Layout ──────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 88px);
  align-items: center;
  gap: 56px;
  padding: 80px 0;
}

.hero-left { position: relative; z-index: 1; }

.hero-right {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: transparent;
  z-index: 2;
  margin-right: -100px;
  width: calc(100% + 100px);
}

spline-viewer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 70px);
  display: block;
  border-radius: 24px;
}

/* Hide Spline watermark badge */
spline-viewer::part(logo),
spline-viewer::part(watermark) { display: none !important; }

#spline-watermark,
.spline-watermark,
[class*="spline-watermark"],
[id*="spline-watermark"] { display: none !important; }

/* Cover the Spline iframe badge (bottom-right corner) */

.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-headline {
  margin-bottom: 26px;
  overflow: visible;
}

.hero-line-static {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  display: block;
  line-height: 1.05;
}

.hero-line-3 { color: var(--text-2); }

.hero-vapour-canvas {
  display: block;
  pointer-events: none;
  max-width: 100%;
  min-height: 70px;
  overflow: visible;
}

@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; padding: 60px 0 0; }
  .hero-right { height: 340px; order: -1; }
}

/* ── Methodology Showcase ───────────────────────────────────── */
.method-section { background: var(--bg-alt); overflow: hidden; }

.msh-wrap {
  position: relative;
  overflow: hidden;
}

.msh-progress {
  height: 3px;
  background: var(--border-sm);
  width: 100%;
}

.msh-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  width: 0%;
  border-radius: 0 2px 2px 0;
}

.msh-ghost {
  position: absolute;
  bottom: -0.08em;
  right: -0.04em;
  font-family: 'Syne', sans-serif;
  font-size: clamp(140px, 24vw, 300px);
  font-weight: 900;
  color: var(--text-1);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transition: color 0.4s;
}

.msh-inner {
  padding: 3.5rem 0 4rem;
  position: relative;
  z-index: 2;
}

/* Step nav pills */
.msh-step-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.msh-pill {
  height: 36px;
  padding: 0 1.25rem;
  border-radius: 99px;
  border: 1px solid var(--border-md);
  background: transparent;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.msh-pill:hover { border-color: var(--primary); color: var(--primary); }
.msh-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Content grid */
.msh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  min-height: 400px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.msh-grid.msh-out { opacity: 0; transform: translateY(12px); }
.msh-grid.msh-in  { opacity: 1; transform: translateY(0); }

/* Left content */
.msh-badge {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.msh-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px) !important;
  font-weight: 800 !important;
  color: var(--text-1) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 1.25rem !important;
}

.msh-desc {
  font-size: 1.075rem !important;
  color: var(--text-2) !important;
  line-height: 1.78 !important;
  margin-bottom: 2rem !important;
  max-width: 44ch;
}

.msh-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: 8px;
  background: var(--primary);
  color: #fff !important;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.msh-cta:hover {
  background: #1d4fd8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
  text-decoration: none !important;
  color: #fff !important;
}

/* Right image */
.msh-img-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 28px 64px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.1);
}

.msh-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.msh-img-frame:hover .msh-img { transform: scale(1.04); }

.msh-img-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.13) 0%, transparent 55%);
  pointer-events: none;
}

/* Footer bar */
.msh-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-sm);
}

.msh-dots { display: flex; gap: 0.5rem; align-items: center; }

.msh-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-md);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.msh-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--primary);
}

.msh-arrows { display: flex; gap: 0.5rem; }

.msh-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background: transparent;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.25s ease;
}

.msh-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

@media (max-width: 991px) {
  .msh-grid { grid-template-columns: 1fr; gap: 2.5rem; min-height: auto; }
  .msh-ghost { font-size: clamp(100px, 28vw, 180px); }
}

@media (max-width: 575px) {
  .msh-step-nav { gap: 0.35rem; margin-bottom: 2rem; }
  .msh-pill { height: 30px; padding: 0 0.85rem; font-size: 10px; }
  .msh-title { font-size: 24px !important; }
  .msh-desc { font-size: 0.95rem !important; }
  .msh-inner { padding: 2.5rem 0 3rem; }
}

/* ── Portfolio Case Studies ──────────────────────────────────── */
.pf-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.pf-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}

.pf-case-card:hover {
  border-color: var(--border-lg);
  transform: translateY(-3px);
}

.pf-case-card--accent {
  background: linear-gradient(145deg, var(--bg-card), rgba(79,110,247,0.06));
  border-color: rgba(79,110,247,0.22);
}

.pf-case-card--accent:hover {
  border-color: rgba(79,110,247,0.40);
}

.pf-case-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.pf-case-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.pf-case-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pf-case-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pf-case-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pf-case-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}

.pf-case-impact {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(79,110,247,0.08);
  border: 1px solid rgba(79,110,247,0.18);
  border-radius: 100px;
  padding: 6px 14px;
  text-align: center;
  line-height: 1.4;
}

[data-theme="light"] .pf-case-card--accent {
  background: linear-gradient(145deg, var(--bg-card), rgba(79,110,247,0.04));
}

@media (max-width: 900px) {
  .pf-cases { grid-template-columns: 1fr; }
}

/* ── Portfolio Circular Showcase ────────────────────────────── */
.pf-circular {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pf-circular-grid {
  display: grid;
  gap: 3rem;
}

.pf-images {
  position: relative;
  width: 100%;
  height: 22rem;
  perspective: 1000px;
}

.pf-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
  /* Sombra calibrada — funciona tanto en dark elevated como en light */
  box-shadow:
    0 4px 16px rgba(0,0,0,0.25),
    0 20px 56px rgba(0,0,0,0.30),
    0 0 0 1px rgba(255,255,255,0.06);
  will-change: transform, opacity;
  top: 0;
  left: 0;
}

.pf-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.pf-project-number {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pf-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.pf-designation {
  font-family: 'Syne', sans-serif;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.pf-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 1.5rem;
  min-height: 4.5rem;
}

.pf-quote span {
  display: inline-block;
}

.pf-arrows {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pf-arrow {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-1);
  transition: background 0.25s ease, transform 0.2s ease;
  border: 1px solid var(--border);
}

.pf-arrow:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

.pf-arrow svg {
  width: 16px;
  height: 16px;
}

.pf-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 0.5rem;
}

.pf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, width 0.3s;
  cursor: pointer;
}

.pf-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

@media (min-width: 768px) {
  .pf-circular-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .pf-images { height: 16rem; }
  .pf-name { font-size: 1.3rem; }
}

/* ── 3D Testimonials Marquee ────────────────────────────────── */
@media (min-width: 2068px) {
  #testimonials .slides-3.swiper,
  #testimonials .swiper-pagination { display: none !important; }
}

.testimonials-3d-scene {
  position: relative;
  height: 440px;
  overflow: hidden;
  perspective: 1000px;
}

.testimonials-3d-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  height: 100%;
  transform: translateX(-50px) translateY(0) translateZ(-10px) rotateX(20deg) rotateY(-10deg) rotateZ(20deg);
}

.marquee-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 440px;
  flex-shrink: 0;
}

.marquee-col-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.marquee-col-track.scroll-down { animation-name: t3d-down; animation-duration: 38s; }
.marquee-col-track.scroll-up   { animation-name: t3d-up;   animation-duration: 38s; }

.marquee-col:hover .marquee-col-track { animation-play-state: paused; }

@keyframes t3d-down {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes t3d-up {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.t3d-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  width: 196px;
  flex-shrink: 0;
}

.t3d-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.t3d-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.t3d-meta { flex: 1; min-width: 0; }

.t3d-name {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.t3d-role {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  line-height: 1.2;
}

.t3d-stars { display: flex; gap: 1px; margin-top: 3px; }
.t3d-stars i { font-size: 9px; color: #fbbf24; }

.t3d-body {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  font-style: italic;
}

.t3d-fade-top,
.t3d-fade-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  pointer-events: none;
  z-index: 4;
}

.t3d-fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-surface) 0%, transparent 100%);
}

.t3d-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-surface) 0%, transparent 100%);
}

/* Mobile testimonials — horizontal snap scroll */
.testimonials-mobile {
  display: none;
}

@media (max-width: 767px) {
  .testimonials-3d-scene { display: none; }

  .testimonials-mobile {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 20px;
    margin: 0 -4px;
  }
  .testimonials-mobile::-webkit-scrollbar { display: none; }

  .tmob-card {
    min-width: 270px;
    max-width: 270px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    flex-shrink: 0;
  }

  .tmob-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .tmob-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .tmob-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.3;
  }

  .tmob-role {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 1px;
  }

  .tmob-stars {
    margin-top: 4px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 1px;
  }

  .tmob-body {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-2);
    margin: 0;
  }
}

/* ══════════════════════════════════════════════════════════════
   Interactive Layer — Custom Cursor · Scroll Progress · Motion
   ══════════════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ───────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--teal) 100%);
  z-index: 10000;
  pointer-events: none;
  transform-origin: left center;
  transition: width 0.05s linear;
}

/* ── Custom Cursor ─────────────────────────────────────────── */
@media (pointer: fine) {
  html { cursor: none; }
  * { cursor: inherit; }
  input, textarea, select { cursor: text; }
  [disabled], [aria-disabled="true"] { cursor: not-allowed; }
}

.cursor-dot {
  position: fixed;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  left: -100px; top: -100px;
  transition: width 0.15s ease, height 0.15s ease, opacity 0.25s ease, background 0.2s;
  will-change: left, top;
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.5);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  left: -100px; top: -100px;
  transition:
    width  0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.25s ease,
    background   0.25s ease,
    opacity      0.25s ease;
  will-change: left, top;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Code symbol inside ring — appears on interactive hover */
.cursor-ring::after {
  content: '</>';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.cursor-ring.hover {
  width: 58px; height: 58px;
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.07);
}

.cursor-ring.hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cursor-ring.click {
  width: 22px; height: 22px;
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--primary);
}

/* Image hover — show expand symbol */
.cursor-ring.view {
  width: 62px; height: 62px;
  border-color: rgba(37,99,235,0.6);
  background: rgba(37,99,235,0.05);
}
.cursor-ring.view::after {
  content: '{ }';
  font-size: 11px;
  opacity: 0;
}
.cursor-ring.view.visible-code::after { opacity: 1; }

@media (pointer: coarse), (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ── Tilt Cards ────────────────────────────────────────────── */
.tilt-card {
  transition: transform 0.08s ease, box-shadow 0.3s ease !important;
  will-change: transform;
}

.tilt-card:hover {
  /* JS overrides transform inline; box-shadow enhancement: */
  box-shadow: var(--shadow-lg) !important;
}

/* ── Magnetic Buttons ──────────────────────────────────────── */
.btn-primary, .btn-ghost, .cta-btn, .msh-cta, .ct-submit {
  will-change: transform;
}

/* ── Section line accent on enter ─────────────────────────── */
.section-header .section-eyebrow {
  position: relative;
}

/* ── Reveal Words animation ────────────────────────────────── */
.word-reveal-wrap .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.word-reveal-wrap.revealed .word { opacity: 1; transform: translateY(0); }
