/* ============================================
   EVOLUTION INC — Premium Dark / Neon
   ============================================ */

:root {
  --bg-0: #07070b;
  --bg-1: #0b0b12;
  --bg-2: #11111c;
  --surface: #14141f;
  --surface-2: #1a1a28;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);

  --text-0: #f5f5f7;
  --text-1: #c8c8d0;
  --text-2: #8a8a96;
  --text-3: #56565f;

  /* Default palette: Magenta → Violet → Cyan (matches Evolution logo) */
  --accent-1: #c026d3;
  --accent-1-soft: #e879f9;
  --accent-2: #06b6d4;
  --accent-2-soft: #67e8f9;
  --accent-mid: #7c3aed;
  --accent-grad: linear-gradient(135deg, #c026d3 0%, #7c3aed 50%, #06b6d4 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(192,38,211,.18), rgba(6,182,212,.12));
  --glow: rgba(192, 38, 211, 0.45);
  --glow-2: rgba(6, 182, 212, 0.35);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Palette variants (toggled via [data-palette]) */
[data-palette="violet"] {
  --accent-1: #c026d3;
  --accent-1-soft: #e879f9;
  --accent-2: #06b6d4;
  --accent-2-soft: #67e8f9;
  --accent-grad: linear-gradient(135deg, #c026d3 0%, #7c3aed 50%, #06b6d4 100%);
  --glow: rgba(192, 38, 211, 0.45);
  --glow-2: rgba(6, 182, 212, 0.35);
}
[data-palette="emerald"] {
  --accent-1: #10b981;
  --accent-2: #84cc16;
  --accent-grad: linear-gradient(135deg, #10b981 0%, #22c55e 50%, #84cc16 100%);
  --glow: rgba(16, 185, 129, 0.4);
  --glow-2: rgba(132, 204, 22, 0.3);
}
[data-palette="amber"] {
  --accent-1: #f59e0b;
  --accent-2: #ef4444;
  --accent-grad: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
  --glow: rgba(245, 158, 11, 0.4);
  --glow-2: rgba(239, 68, 68, 0.3);
}

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

html, body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(192, 38, 211, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(6, 182, 212, 0.08), transparent 60%),
    var(--bg-0);
}

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

::selection { background: var(--accent-1); color: white; }

/* Material Symbols base — ensure font-family applies even if
   Google's CSS file is slow to register. */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ============================================
   Typography
   ============================================ */

.font-display { font-family: 'Space Grotesk', 'DM Sans', sans-serif; letter-spacing: -0.02em; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-1);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.muted { color: var(--text-2); }

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  padding: 140px 0;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s var(--easing);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(7, 7, 11, 0.7);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(192, 38, 211, 0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 20, 31, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(12px);
}
.nav-link {
  font-size: 13.5px;
  color: var(--text-1);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s var(--easing);
  font-weight: 450;
}
.nav-link:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.04);
}

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

.lang-toggle {
  display: flex;
  background: rgba(20, 20, 31, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.lang-toggle button {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-2);
  transition: all 0.2s var(--easing);
  letter-spacing: 0.08em;
}
.lang-toggle button.active {
  background: var(--text-0);
  color: var(--bg-0);
  font-weight: 600;
}

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

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s var(--easing);
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: white;
  box-shadow: 0 8px 24px var(--glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--glow), inset 0 1px 0 rgba(255,255,255,0.25);
  filter: brightness(1.1);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-0);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--easing);
}
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
}
.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: var(--accent-1);
  top: -10%; left: -10%;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: var(--accent-2);
  bottom: -20%; right: -10%;
  animation-delay: -9s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(80px, -40px); }
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(20, 20, 31, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-1);
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
}
.hero-badge-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-grad);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px white;
  animation: pulse 1.6s ease-in-out infinite;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero-title .italic {
  display: inline-block;
  font-style: italic;
  font-weight: 300;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.06em 0.18em 0.06em 0.08em;
  margin: 0 -0.18em 0 -0.08em;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-1);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-cta { display: inline-flex; gap: 12px; }

.hero-marquee {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  white-space: nowrap;
}
.marquee-item .material-symbols-rounded {
  font-size: 18px;
  color: var(--accent-1);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   Reveal animations — slide-up only.
   Opacity is always 1 so content is readable even before
   the animation runs (important for static captures and
   throttled iframes).
   ============================================ */

.reveal.in {
  animation: revealIn 0.85s var(--easing) both;
}
.reveal-delay-1.in { animation-delay: 0.08s; }
.reveal-delay-2.in { animation-delay: 0.18s; }
.reveal-delay-3.in { animation-delay: 0.28s; }
.reveal-delay-4.in { animation-delay: 0.38s; }

@keyframes revealIn {
  0% { transform: translateY(28px); }
  100% { transform: translateY(0); }
}

[data-motion="off"] .reveal {
  animation: none !important;
}

/* ============================================
   Section Header
   ============================================ */

.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}
.sec-header .heading { max-width: 720px; }
.sec-header .eyebrow { margin-bottom: 18px; }
.sec-header p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
}

/* ============================================
   Stats
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-1);
  padding: 40px 32px;
  position: relative;
  transition: background 0.3s var(--easing);
}
.stat:hover { background: var(--bg-2); }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 13px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 880px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Services
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: all 0.35s var(--easing);
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 400px at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--easing);
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: all 0.3s var(--easing);
}
.service-card:hover .service-icon {
  background: var(--accent-grad);
  border-color: transparent;
  transform: rotate(-6deg) scale(1.05);
}
.service-icon .material-symbols-rounded {
  font-size: 28px;
  color: var(--accent-1-soft);
  transition: color 0.3s var(--easing);
}
.service-card:hover .service-icon .material-symbols-rounded { color: white; }
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
}
.service-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-1);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-1);
}
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Portfolio / Projects
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.project {
  grid-column: span 6;
  position: relative;
  display: block;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--easing);
  text-decoration: none;
}
.project.tall { grid-column: span 6; }
.project.wide { grid-column: span 12; }
.project:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--glow);
}
.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
}
.project.wide .project-media { aspect-ratio: 21 / 9; }
.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(1.04) contrast(1.08) brightness(0.95);
  transition: transform 0.65s var(--easing), filter 0.65s var(--easing);
}
.project-media.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 11, 0.02), rgba(7, 7, 11, 0.52)),
    radial-gradient(circle at 18% 20%, rgba(192, 38, 211, 0.12), transparent 42%),
    radial-gradient(circle at 84% 70%, rgba(6, 182, 212, 0.10), transparent 46%);
  pointer-events: none;
  z-index: 2;
}
.project:hover .project-img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.1) brightness(1);
}
.project-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.2), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(56, 189, 248, 0.15), transparent 60%),
              var(--bg-2);
  transition: transform 0.6s var(--easing);
}
.project:hover .project-art { transform: scale(1.05); }
.project-art-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 50%, black 40%, transparent 80%);
}
.project-art-shape {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px var(--glow));
}
.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 7, 11, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-tag-dot {
  width: 6px; height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-1);
}
.project-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(7, 7, 11, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--easing);
}
.project:hover .project-arrow {
  background: var(--accent-grad);
  border-color: transparent;
  transform: rotate(-45deg);
}
.project-info {
  padding: 24px 28px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.project-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.project-info p { color: var(--text-2); font-size: 13.5px; }
.project-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 880px) {
  .project, .project.tall, .project.wide { grid-column: span 12; }
}

/* ============================================
   Stack
   ============================================ */

.stack-marquee {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.stack-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.stack-track:hover { animation-play-state: paused; }
.stack-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  white-space: nowrap;
  transition: all 0.3s var(--easing);
}
.stack-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: var(--bg-2);
}
.stack-item-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-grad-soft);
  display: grid;
  place-items: center;
}
.stack-item-icon .material-symbols-rounded {
  font-size: 20px;
  color: var(--accent-1-soft);
}
.stack-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 500;
}
.stack-item-cat {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.3s var(--easing);
}
.testimonial:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.testimonial-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  line-height: 1;
  color: var(--accent-1);
  margin-bottom: 16px;
  opacity: 0.5;
}
.testimonial-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-1);
  margin-bottom: 28px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  position: relative;
}
.testimonial-avatar::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-2), var(--surface));
  display: grid;
  place-items: center;
}
.testimonial-avatar span {
  position: relative;
  z-index: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.testimonial-name { font-weight: 500; font-size: 14.5px; }
.testimonial-role {
  color: var(--text-2);
  font-size: 12.5px;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}
@media (max-width: 1000px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Contact
   ============================================ */

.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-left .eyebrow { margin-bottom: 24px; }
.contact-left h2 { margin-bottom: 24px; }
.contact-left > p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 460px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-1);
  transition: background 0.2s var(--easing);
}
.channel:hover { background: var(--bg-2); }
.channel-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-grad-soft);
  display: grid;
  place-items: center;
}
.channel-icon .material-symbols-rounded {
  font-size: 22px;
  color: var(--accent-1-soft);
}
.channel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.channel-value { font-size: 15px; margin-top: 2px; }
.channel-arrow {
  margin-left: auto;
  color: var(--text-3);
  transition: all 0.2s var(--easing);
}
.channel:hover .channel-arrow {
  color: var(--accent-1-soft);
  transform: translate(3px, -3px);
}

.contact-form {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-input, .form-textarea, .form-select {
  background: rgba(7, 7, 11, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-0);
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  transition: all 0.2s var(--easing);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-1);
  background: var(--bg-0);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-tag {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 7, 11, 0.4);
  font-size: 12.5px;
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.2s var(--easing);
  font-family: 'JetBrains Mono', monospace;
}
.form-tag:hover { border-color: var(--line-strong); }
.form-tag.active {
  background: var(--accent-grad);
  color: white;
  border-color: transparent;
}
.contact-submit {
  background: var(--accent-grad);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s var(--easing);
  box-shadow: 0 8px 24px var(--glow);
  margin-top: 8px;
}
.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px var(--glow);
  filter: brightness(1.1);
}
.contact-success {
  text-align: center;
  padding: 60px 40px;
}
.contact-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 40px var(--glow);
}
.contact-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  margin-bottom: 8px;
}
.contact-success p { color: var(--text-2); }

@media (max-width: 880px) {
  .contact-shell { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   Footer
   ============================================ */

footer {
  position: relative;
  padding: 100px 0 40px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: var(--accent-1);
  filter: blur(160px);
  opacity: 0.3;
  border-radius: 50%;
}
.footer-wordmark {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(80px, 14vw, 200px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 80px;
  user-select: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-grid h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-grid a {
  color: var(--text-1);
  font-size: 14px;
  transition: color 0.2s var(--easing);
}
.footer-grid a:hover { color: var(--accent-1-soft); }
.footer-intro {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 20px 0 24px;
  max-width: 340px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-1);
  transition: all 0.25s var(--easing);
}
.footer-socials a:hover {
  background: var(--accent-grad);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-status::before {
  content: '';
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.6s ease-in-out infinite;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 5px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }


/* ============================================
   Vault CTA — links to vault.evolutionfivem.com
   ============================================ */

.vault-cta {
  position: relative;
  margin-top: 80px;
  padding: 56px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle 600px at 80% 50%, rgba(6, 182, 212, 0.18), transparent 70%),
    radial-gradient(circle 500px at 0% 100%, rgba(192, 38, 211, 0.22), transparent 65%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.vault-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.vault-cta-content { position: relative; z-index: 1; }
.vault-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 0 24px var(--glow);
}
.vault-cta h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 540px;
}
.vault-cta p {
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 32px;
}
.vault-stats-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(7, 7, 11, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 0;
  backdrop-filter: blur(8px);
}
.vault-stat {
  text-align: center;
  border-right: 1px solid var(--line);
}
.vault-stat:last-child { border-right: 0; }
.vault-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.vault-stat-label {
  font-size: 11.5px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .vault-cta { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
}

/* ============================================
   Frameworks grid
   ============================================ */

.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.framework-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: all 0.3s var(--easing);
}
.framework-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 0%), rgba(192, 38, 211, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--easing);
  pointer-events: none;
}
.framework-card:hover {
  border-color: rgba(192, 38, 211, 0.3);
  transform: translateY(-4px);
}
.framework-card:hover::before { opacity: 1; }
.framework-glyph {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  box-shadow: 0 12px 30px var(--glow);
  position: relative;
}
.framework-glyph::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.framework-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.framework-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--accent-1-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.framework-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 1000px) {
  .frameworks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .frameworks-grid { grid-template-columns: 1fr; }
}

/* ============================================
   AI Project Builder
   ============================================ */

.builder-shell {
  position: relative;
  padding: 56px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle 800px at 100% 0%, rgba(6, 182, 212, 0.15), transparent 60%),
    radial-gradient(circle 600px at 0% 100%, rgba(192, 38, 211, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.builder-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.builder-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.builder-left .eyebrow { margin-bottom: 18px; }
.builder-left h2 { margin-bottom: 20px; }
.builder-left > p { color: var(--text-1); font-size: 16px; line-height: 1.65; max-width: 480px; margin-bottom: 36px; }

.builder-examples-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.builder-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.builder-example {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(7, 7, 11, 0.4);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.2s var(--easing);
}
.builder-example:hover {
  border-color: var(--accent-1);
  color: var(--accent-1-soft);
  transform: translateY(-1px);
}

.builder-panel {
  background: rgba(7, 7, 11, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.builder-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.builder-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}
.builder-dot.amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.builder-dot.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.builder-panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 6px;
}
.builder-textarea {
  flex: 1;
  background: transparent;
  border: 0;
  resize: none;
  color: var(--text-0);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.65;
  outline: none;
  padding: 8px 0;
  min-height: 120px;
}
.builder-textarea::placeholder { color: var(--text-3); }
.builder-submit {
  margin-top: 16px;
  background: var(--accent-grad);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s var(--easing);
  box-shadow: 0 8px 24px var(--glow);
}
.builder-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px var(--glow);
  filter: brightness(1.1);
}
.builder-submit:disabled { opacity: 0.7; cursor: wait; }

.builder-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  color: var(--text-2);
  font-size: 14px;
}
.builder-loading-spinner {
  width: 36px; height: 36px;
  border: 2px solid var(--line);
  border-top-color: var(--accent-1);
  border-right-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.builder-result {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.builder-result-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.builder-result-body {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-1);
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 320px;
  padding-right: 8px;
}
.builder-result-body strong { color: var(--accent-1-soft); }
.builder-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.builder-actions .btn { padding: 12px 18px; font-size: 13px; flex: 1; justify-content: center; }

@media (max-width: 880px) {
  .builder-shell { padding: 32px 24px; }
  .builder-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Improved Contact — visual upgrade
   ============================================ */

.contact-bg {
  position: relative;
  padding: 64px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle 700px at 0% 100%, rgba(192, 38, 211, 0.18), transparent 60%),
    radial-gradient(circle 600px at 100% 0%, rgba(6, 182, 212, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.contact-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
  pointer-events: none;
}
.contact-shell { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .contact-bg { padding: 32px 24px; }
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.live-indicator::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 1.6s ease-in-out infinite;
}


/* ============================================
   Work filters
   ============================================ */

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px;
  background: rgba(20, 20, 31, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(12px);
}
.work-filter {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s var(--easing);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  position: relative;
}
.work-filter:hover { color: var(--text-0); }
.work-filter.active {
  background: var(--accent-grad);
  color: white;
  box-shadow: 0 6px 18px var(--glow);
}

/* ============================================
   Project 3D tilt + stats pills
   ============================================ */

.project.tilt {
  perspective: 1200px;
  transition: transform 0.3s var(--easing), box-shadow 0.4s var(--easing), border-color 0.3s var(--easing);
}
.project.tilt:hover {
  transform: translateY(-6px);
}
.project-tilt-inner {
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s var(--easing);
}

.project-stats {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s var(--easing);
}
.project:hover .project-stats {
  opacity: 1;
  transform: translateY(0);
}
.project-stat-pill {
  padding: 5px 10px;
  background: rgba(7, 7, 11, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-1);
  letter-spacing: 0.04em;
}

/* ============================================
   Framework glyph float
   ============================================ */

.framework-card:hover .framework-glyph {
  animation: glyphFloat 2.4s ease-in-out infinite;
}
@keyframes glyphFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}

/* ============================================
   Hero CTA shimmer
   ============================================ */

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: btnShimmer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
@keyframes btnShimmer {
  0%, 80%, 100% { transform: translateX(-100%); }
  90% { transform: translateX(100%); }
}

/* ============================================
   Floating ambient orbs (extra hero motion)
   ============================================ */

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(2px);
  mix-blend-mode: screen;
}
.hero-orb-1 {
  width: 8px; height: 8px;
  background: var(--accent-1);
  top: 30%; left: 20%;
  box-shadow: 0 0 32px var(--accent-1);
  animation: orbFloat 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 6px; height: 6px;
  background: var(--accent-2);
  top: 60%; right: 25%;
  box-shadow: 0 0 28px var(--accent-2);
  animation: orbFloat 12s ease-in-out -3s infinite;
}
.hero-orb-3 {
  width: 5px; height: 5px;
  background: var(--accent-1-soft);
  top: 25%; right: 30%;
  box-shadow: 0 0 24px var(--accent-1-soft);
  animation: orbFloat 11s ease-in-out -6s infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  25% { transform: translate(60px, -40px); opacity: 1; }
  50% { transform: translate(-30px, -80px); opacity: 0.8; }
  75% { transform: translate(40px, 20px); opacity: 0.4; }
}

/* ============================================
   Stat counter + section divider
   ============================================ */

.stat-num.counting {
  display: inline-block;
  min-width: 1ch;
}

.section-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong) 30%, var(--accent-1) 50%, var(--line-strong) 70%, transparent);
  background-size: 200% 100%;
  animation: dividerSlide 4s linear infinite;
}
@keyframes dividerSlide {
  to { background-position: -200% 0; }
}

/* ============================================
   Scroll progress bar (top)
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent-grad);
  z-index: 200;
  width: 0%;
  box-shadow: 0 0 12px var(--glow);
  transition: width 0.05s linear;
}

/* ============================================
   Service card icon — micro float
   ============================================ */

.service-card:hover .service-icon {
  animation: glyphFloat 2.6s ease-in-out infinite;
}

/* ============================================
   Pulse rings — hero badge
   ============================================ */

.hero-badge-dot {
  position: relative;
}
.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  animation: pulseRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0% { opacity: 1; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* ============================================
   Marquee item hover
   ============================================ */

.stack-item, .marquee-item {
  transition: transform 0.25s var(--easing);
}
.stack-item:hover, .marquee-item:hover {
  transform: translateY(-3px);
}

/* ============================================
   Project editor panel — admin mode (?admin=1)
   ============================================ */

.project-editor,
.project-editor-open {
  position: fixed;
  z-index: 250;
  color: var(--text-0);
  font-family: 'DM Sans', system-ui, sans-serif;
}

.project-editor {
  top: 88px;
  right: 18px;
  width: min(380px, calc(100vw - 28px));
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
  background: rgba(9, 9, 16, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44), 0 0 34px rgba(192, 38, 211, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
}

.project-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.project-editor-head strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-editor-head span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}

.project-editor-head button,
.project-editor-actions button,
.project-editor-open,
.project-editor-upload span {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-1);
  border-radius: 10px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.18s var(--easing), color 0.18s var(--easing), border-color 0.18s var(--easing);
}

.project-editor-head button:hover,
.project-editor-actions button:hover,
.project-editor-open:hover,
.project-editor-upload:hover span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-0);
}

.project-editor-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
}

.project-editor label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.project-editor label > span {
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-editor input,
.project-editor textarea,
.project-editor select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-0);
  outline: 0;
  padding: 10px 11px;
  font: 13px/1.35 'DM Sans', system-ui, sans-serif;
}

.project-editor textarea {
  min-height: 92px;
  resize: vertical;
}

.project-editor input:focus,
.project-editor textarea:focus,
.project-editor select:focus {
  border-color: rgba(192, 38, 211, 0.55);
  box-shadow: 0 0 0 3px rgba(192, 38, 211, 0.12);
}

.project-editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.project-editor-upload input {
  display: none;
}

.project-editor-upload span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.project-editor-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-1);
  aspect-ratio: 16 / 9;
}

.project-editor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}

.project-editor-status {
  margin: 0 16px 12px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.4;
}

.project-editor-status.dirty {
  color: #f8d186;
}

.project-editor-status.saved {
  color: #8de7ba;
}

.project-editor-save {
  grid-column: 1 / -1;
}

.project-editor-actions .project-editor-save {
  background: var(--accent-grad);
  color: white;
  border-color: transparent;
}

.project-editor-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.project-editor-open {
  right: 18px;
  bottom: 18px;
  background: var(--accent-grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 30px var(--glow);
}

.project-editor-logout {
  position: fixed;
  z-index: 251;
  right: 18px;
  bottom: 66px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(9, 9, 16, 0.94);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.project-editor-logout:hover {
  color: var(--text-0);
  border-color: rgba(255,255,255,0.2);
}

@media (max-width: 680px) {
  .project-editor {
    inset: auto 14px 14px 14px;
    width: auto;
    max-height: calc(100vh - 28px);
  }

  .project-editor-row,
  .project-editor-actions {
    grid-template-columns: 1fr;
  }

  .project-editor-logout {
    left: 14px;
    right: auto;
    bottom: 14px;
  }
}
