/* =========================================================
   DISRUPTREE — IT Agency Website
   Design system + global styles
   ========================================================= */

:root {
  /* Core palette */
  --bg-0: #07070b;
  --bg-1: #0b0b13;
  --bg-2: #10101c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #ececf1;
  --text-dim: #a3a3b2;
  --text-mute: #6b6b7b;

  /* Brand gradient stops */
  --c-violet: #7c5cff;
  --c-indigo: #5b8cff;
  --c-cyan: #22d3ee;
  --c-magenta: #ff3cac;
  --c-amber: #ffb547;

  --grad-primary: linear-gradient(135deg, #7c5cff 0%, #22d3ee 60%, #ff3cac 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.12) 60%, rgba(255, 60, 172, 0.15));
  --grad-line: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);

  /* Effects */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(124, 92, 255, 0.35);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1240px;
  --nav-h: 74px;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

/* Ambient gradient blobs (site-wide) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -20vw; left: -15vw;
  background: radial-gradient(circle, rgba(124,92,255,0.55), transparent 60%);
}
body::after {
  bottom: -25vw; right: -20vw;
  background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 60%);
}

/* Grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  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: 70px 70px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; padding: 120px 0; }
section + section { padding-top: 40px; }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; color: var(--text-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan);
}

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

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 64px;
  max-width: 760px;
}
.section-head .lead { font-size: 1.05rem; color: var(--text-dim); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  color: #0b0b13;
  background: #fff;
  box-shadow: 0 10px 30px rgba(255,255,255,0.08), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity .4s ease;
}
.btn-primary span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px;}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); transform: translateY(-2px); }

/* ======== NAV ======== */
.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 1240px;
  z-index: 100;
  transition: top .35s ease;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 22px;
  background: rgba(10, 10, 18, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand .brand-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--grad-primary);
  position: relative;
  box-shadow: 0 8px 24px rgba(124,92,255,0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
}
.brand .brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
}
.brand .brand-mark::before {
  content: "D";
  position: relative;
  z-index: 1;
  text-shadow: 0 0 12px rgba(124, 92, 255, 0.45);
}
.brand span { font-size: 1.05rem; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 18px; font-size: 0.9rem; }

.mobile-menu { display: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text);
  transition: transform .3s ease, top .3s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ======== HERO ======== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero-copy p {
  font-size: 1.1rem;
  max-width: 520px;
  color: var(--text-dim);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px;
}
.hero-meta {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 36px;
}
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta .num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 500; line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-meta .lbl { font-size: 0.85rem; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }

.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 520px;
  margin-left: auto;
}
.hero-visual .ring {
  position: absolute; inset: 0;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-visual .ring.r2 { inset: 10%; border-color: rgba(124,92,255,0.25); animation-duration: 60s; animation-direction: reverse; }
.hero-visual .ring.r3 { inset: 22%; border-color: rgba(34,211,238,0.25); animation-duration: 80s; }
.hero-visual .orb-glow {
  position: absolute; inset: 15%;
  background: radial-gradient(circle at 30% 30%, rgba(124,92,255,0.6), rgba(34,211,238,0.2) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   FUTURISTIC HERO (landing page)
   Depth-map portrait + scan line + bloom + staggered title
   ===================================================== */
.hero-futuristic {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 22%, rgba(255, 60, 172, 0.22), transparent 52%),
    radial-gradient(ellipse at 88% 30%, rgba(124, 92, 255, 0.28), transparent 58%),
    radial-gradient(ellipse at 50% 88%, rgba(34, 211, 238, 0.2), transparent 62%),
    linear-gradient(180deg, #06060d 0%, #090a16 50%, #05050b 100%);
  isolation: isolate;
}
.hero-futuristic .hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  animation: none;
}
.hero-futuristic .hero-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.hero-futuristic .hero-canvas spline-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.88;
  filter: saturate(1.1) contrast(1.04) brightness(0.95);
}
@keyframes hero-canvas-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* CSS-only fallback for mobile / low-end / reduced-motion (no Three.js load) */
.hero-canvas.hero-canvas--fallback {
  opacity: 1;
  animation: none;
  background:
    radial-gradient(ellipse 60% 75% at 50% 52%, rgba(124, 92, 255, 0.42), transparent 62%),
    radial-gradient(ellipse 44% 58% at 46% 48%, rgba(34, 211, 238, 0.32), transparent 68%),
    radial-gradient(ellipse 36% 48% at 56% 58%, rgba(255, 60, 172, 0.22), transparent 72%);
}
.hero-canvas.hero-canvas--fallback::before,
.hero-canvas.hero-canvas--fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-canvas.hero-canvas--fallback::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 1.3px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse 52% 68% at 50% 52%, #000 0%, rgba(0,0,0,0.9) 40%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 52% 68% at 50% 52%, #000 0%, rgba(0,0,0,0.9) 40%, transparent 88%);
  opacity: 0.32;
  animation: hero-fallback-drift 18s linear infinite;
}
.hero-canvas.hero-canvas--fallback::after {
  background:
    radial-gradient(ellipse 70% 80% at 50% 55%, transparent 55%, rgba(5, 5, 16, 0.55) 78%, #05050b 100%);
}
@keyframes hero-fallback-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 140px; }
}

/* Scan-line ambient glow (CSS layer that pulses even without WebGL) */
.hero-futuristic .hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.62) 85%, #000 100%),
    linear-gradient(180deg, rgba(8, 8, 18, 0.58), transparent 18%, transparent 82%, rgba(6, 6, 16, 0.76));
}
.hero-futuristic .hero-vignette::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: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.hero-futuristic .hero-vignette::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.85), transparent);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.9), 0 0 60px rgba(124, 92, 255, 0.55);
  animation: hero-scan 5s cubic-bezier(.55,.0,.45,1) infinite;
  opacity: 0.9;
}
@keyframes hero-scan {
  0%   { top: -2%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}

/* Centered content */
.hero-center {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 140px;
  pointer-events: none;
}
.hero-center > * { pointer-events: auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(8px);
  animation: hero-fade-up 0.7s ease forwards 0.1s;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-cyan, #22d3ee);
  box-shadow: 0 0 12px var(--c-cyan, #22d3ee);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8.4vw, 7rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em;
  max-width: min(1100px, 92vw);
  filter: drop-shadow(0 0 22px rgba(124, 92, 255, 0.35));
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: hero-word-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  text-shadow: 0 0 36px rgba(124, 92, 255, 0.45);
  position: relative;
}
.hero-title .word:nth-child(1) { animation-delay: 0.15s; }
.hero-title .word:nth-child(2) {
  animation-delay: 0.25s;
  background: linear-gradient(135deg, #7c5cff 0%, #22d3ee 50%, #ff3cac 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title .word:nth-child(3) { animation-delay: 0.35s; }

@keyframes hero-word-in {
  0%   { opacity: 0; transform: translateY(110%) skewY(6deg); filter: blur(10px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0)   skewY(0);   filter: blur(0); }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  margin: 26px auto 0;
  max-width: 680px;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(8px);
  animation: hero-fade-up 0.7s ease forwards 0.55s;
}

.hero-actions-f {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  animation: hero-fade-up 0.7s ease forwards 0.7s;
}

/* Scroll-to-explore pill */
.explore-btn {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  animation: hero-fade-up 0.7s ease forwards 0.9s;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
  will-change: transform;
}
.explore-btn:hover,
.explore-btn:focus-visible {
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.35),
    0 0 40px rgba(124, 92, 255, 0.45),
    0 0 90px rgba(34, 211, 238, 0.25);
  color: #fff;
}
.explore-btn .explore-arrow {
  display: inline-flex;
  animation: arrow-bob 1.6s ease-in-out infinite;
}
.explore-btn .explore-arrow svg { display: block; }
@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* Mobile tuning */
@media (max-width: 720px) {
  .hero-title { font-size: clamp(2.2rem, 12vw, 3.6rem); gap: 0.3em; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.22em; padding: 6px 12px; }
  .hero-center { padding-bottom: 120px; }
  .explore-btn {
    bottom: 22px;
    padding: 11px 18px;
    font-size: 11px;
    letter-spacing: 0.2em;
  }
  .hero-actions-f { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .word,
  .hero-eyebrow,
  .hero-sub,
  .hero-actions-f,
  .explore-btn,
  .hero-futuristic .hero-canvas {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-futuristic .hero-vignette::after { animation: none; }
}

.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-mute);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 3;
}
.hero-scroll .mouse {
  width: 22px; height: 36px; border: 1px solid var(--border-strong); border-radius: 12px;
  position: relative;
}
.hero-scroll .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 2px; height: 6px; background: var(--text); border-radius: 2px;
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* ======== MARQUEE / LOGOS ======== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.marquee-track {
  display: flex; gap: 64px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 500;
  color: var(--text-mute);
  white-space: nowrap;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 18px;
}
.marquee-track span::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-mute);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ======== SERVICES (bento) ======== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s ease, background .4s ease;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
}
.service-card::before {
  content: "";
  position: absolute; inset: -1px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
  border-radius: inherit;
  filter: blur(16px);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.service-card:hover::before { opacity: 0.35; }
.service-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #fff;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; margin: 0; }
.service-card .arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
  align-self: flex-start;
  margin-top: auto;
}
.service-card:hover .arrow {
  background: var(--grad-primary);
  border-color: transparent;
  transform: rotate(-45deg) translateX(2px);
}
.service-card.w-3 { grid-column: span 3; }
.service-card.w-2 { grid-column: span 2; }
.service-card.w-4 { grid-column: span 4; }
.service-card.w-6 { grid-column: span 6; }

/* Feature card (bigger) */
.service-card.feature {
  min-height: 360px;
  background:
    radial-gradient(circle at 85% 15%, rgba(124,92,255,0.25), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(34,211,238,0.2), transparent 50%),
    var(--surface);
}
.service-card.feature h3 { font-size: 1.9rem; }

/* Animated grid pattern inside cards */
.service-card .deco {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 70%; aspect-ratio: 1/1;
  opacity: 0.35;
  pointer-events: none;
  filter: blur(0.5px);
}

/* ======== PROCESS ======== */
.process-list {
  display: grid;
  gap: 0;
}
.process-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: start;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  position: relative;
  transition: padding-left .5s ease;
}
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-item:hover { padding-left: 16px; }
.process-item .num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.process-item h3 { margin-bottom: 10px; }
.process-item p { max-width: 600px; }
.process-item .tag {
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}

/* ======== STATS ======== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { margin-top: 10px; color: var(--text-dim); font-size: 0.95rem; }

/* ======== TESTIMONIALS ======== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 24px;
  transition: transform .4s ease, border-color .4s ease;
}
.testimonial:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.testimonial .stars { color: var(--c-amber); letter-spacing: 2px; }
.testimonial blockquote {
  margin: 0; font-size: 1.05rem; color: var(--text);
  line-height: 1.6;
}
.testimonial .person { display: flex; align-items: center; gap: 14px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600;
  font-family: var(--font-display);
}
.testimonial .name { font-weight: 500; font-size: 0.95rem; }
.testimonial .role { font-size: 0.82rem; color: var(--text-mute); }

/* ======== CTA ======== */
.cta {
  position: relative;
  padding: 90px 60px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 20%, rgba(124,92,255,0.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34,211,238,0.2), transparent 50%),
    var(--surface);
  overflow: hidden;
  text-align: center;
}
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.cta p { max-width: 560px; margin: 10px auto 32px; font-size: 1.05rem; }
.cta .btns { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ======== FOOTER ======== */
.footer {
  position: relative;
  z-index: 2;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-brand p { max-width: 360px; font-size: 0.95rem; margin-top: 18px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-mute);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.socials a:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* ======== PAGE HEADER (inner pages) ======== */
.page-hero {
  padding: calc(var(--nav-h) + 120px) 0 80px;
  position: relative;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero p { max-width: 640px; margin: 18px auto 0; font-size: 1.1rem; }

/* Services detailed */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding: 90px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.service-detail:first-of-type { border-top: 0; }
.service-detail .label {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 14px;
}
.service-detail h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.service-detail ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-detail ul li {
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); font-size: 0.92rem;
  display: flex; align-items: center; gap: 10px;
}
.service-detail ul li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-primary);
  flex-shrink: 0;
}
.service-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 30%, rgba(124,92,255,0.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(34,211,238,0.2), transparent 50%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.service-visual .shape {
  position: absolute; inset: 20%;
  background: var(--grad-primary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.8;
  filter: blur(2px);
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 70% 30% 40% 60% / 50% 60% 40% 50%; transform: rotate(180deg) scale(1.05); }
}

/* =====================================================
   SERVICE-SPECIFIC THEMED ANIMATIONS
   ===================================================== */

/* Shared background grid for all themed visuals */
.service-visual[class*="viz-"] { background: var(--bg-1); }
.service-visual[class*="viz-"]::before {
  content: "";
  position: absolute; inset: 0;
  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 at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.7;
}
.service-visual[class*="viz-"]::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(124,92,255,0.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34,211,238,0.22), transparent 55%);
  pointer-events: none;
}

/* ---------- 01 WEB: browser with animated code ---------- */
.viz-web .browser {
  position: absolute;
  top: 50%; left: 50%;
  width: 78%; aspect-ratio: 16/11;
  transform: translate(-50%, -50%);
  background: rgba(14, 14, 24, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  display: flex; flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.viz-web .chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.viz-web .chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a3a45;
}
.viz-web .chrome .dot:nth-child(1) { background: #ff5f56; }
.viz-web .chrome .dot:nth-child(2) { background: #ffbd2e; }
.viz-web .chrome .dot:nth-child(3) { background: #27c93f; }
.viz-web .chrome .url {
  flex: 1;
  height: 18px;
  margin-left: 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.viz-web .chrome .url::after {
  content: "";
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,0.5), transparent);
  animation: scan 3s ease-in-out infinite;
}
@keyframes scan { to { left: 130%; } }

.viz-web .code {
  flex: 1;
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-body);
}
.viz-web .code .line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  animation: typein 4s ease-out infinite;
  transform-origin: left center;
}
.viz-web .code .line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-primary);
  opacity: 0.7;
  transform: translateX(-100%);
  animation: sweep 4s ease-in-out infinite;
}
.viz-web .code .line:nth-child(1) { width: 30%; }
.viz-web .code .line:nth-child(2) { width: 62%; animation-delay: 0.2s; }
.viz-web .code .line:nth-child(2)::after { animation-delay: 0.2s; }
.viz-web .code .line:nth-child(3) { width: 48%; animation-delay: 0.4s; margin-left: 16px; }
.viz-web .code .line:nth-child(3)::after { animation-delay: 0.4s; }
.viz-web .code .line:nth-child(4) { width: 72%; animation-delay: 0.6s; margin-left: 16px; }
.viz-web .code .line:nth-child(4)::after { animation-delay: 0.6s; }
.viz-web .code .line:nth-child(5) { width: 40%; animation-delay: 0.8s; }
.viz-web .code .line:nth-child(5)::after { animation-delay: 0.8s; }
.viz-web .code .line:nth-child(6) { width: 58%; animation-delay: 1.0s; }
.viz-web .code .line:nth-child(6)::after { animation-delay: 1.0s; }
@keyframes typein {
  0%, 85%, 100% { transform: scaleX(1); opacity: 1; }
  90% { transform: scaleX(0.9); opacity: 0.4; }
}
@keyframes sweep {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ---------- 02 MOBILE: phone + animated app grid ---------- */
.viz-mobile .phone {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  width: 42%; aspect-ratio: 9/19;
  background: linear-gradient(160deg, #1a1a2c, #0d0d18);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255,255,255,0.03) inset;
  animation: tilt 8s ease-in-out infinite;
}
@keyframes tilt {
  0%, 100% { transform: translate(-50%, -50%) rotate(-6deg); }
  50% { transform: translate(-50%, -50%) rotate(6deg); }
}
.viz-mobile .phone .notch {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 36%; height: 14px;
  background: #0a0a14;
  border-radius: 10px;
  z-index: 2;
}
.viz-mobile .phone .screen {
  width: 100%; height: 100%;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(124,92,255,0.35), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(34,211,238,0.3), transparent 60%),
    #0a0a14;
  padding: 34px 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.viz-mobile .apps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: auto;
}
.viz-mobile .apps span {
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: var(--grad-primary);
  opacity: 0.9;
  animation: appPulse 2.4s ease-in-out infinite;
}
.viz-mobile .apps span:nth-child(2) { background: linear-gradient(135deg, #22d3ee, #5b8cff); animation-delay: 0.15s; }
.viz-mobile .apps span:nth-child(3) { background: linear-gradient(135deg, #ff3cac, #7c5cff); animation-delay: 0.3s; }
.viz-mobile .apps span:nth-child(4) { background: linear-gradient(135deg, #ffb547, #ff3cac); animation-delay: 0.45s; }
.viz-mobile .apps span:nth-child(5) { background: linear-gradient(135deg, #7c5cff, #22d3ee); animation-delay: 0.6s; }
.viz-mobile .apps span:nth-child(6) { background: linear-gradient(135deg, #22d3ee, #7c5cff); animation-delay: 0.75s; }
@keyframes appPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(124,92,255,0); }
  50% { transform: scale(1.06); box-shadow: 0 0 18px rgba(124,92,255,0.6); }
}
.viz-mobile .phone .topbar {
  position: absolute; top: 50px; left: 18px; right: 18px;
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.viz-mobile .phone .topbar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-primary);
  transform: translateX(-100%);
  animation: loadbar 3s ease-in-out infinite;
}
@keyframes loadbar {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(0); }
}

/* ---------- 03 SHOPIFY: product cards + cart ---------- */
.viz-shop .products {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 78%;
}
.viz-shop .card {
  aspect-ratio: 3/4;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  animation: floatCard 5s ease-in-out infinite;
}
.viz-shop .card:nth-child(1) { animation-delay: 0s; }
.viz-shop .card:nth-child(2) { animation-delay: 0.3s; transform: translateY(-10px); }
.viz-shop .card:nth-child(3) { animation-delay: 0.6s; }
.viz-shop .card::before {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,92,255,0.4), rgba(34,211,238,0.3));
}
.viz-shop .card:nth-child(2)::before { background: linear-gradient(135deg, rgba(255,60,172,0.4), rgba(124,92,255,0.3)); }
.viz-shop .card:nth-child(3)::before { background: linear-gradient(135deg, rgba(34,211,238,0.45), rgba(255,181,71,0.25)); }
.viz-shop .card::after {
  content: ""; position: absolute;
  bottom: 10px; left: 10px; right: 28px;
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.2);
}
.viz-shop .card .tag {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 600;
  color: #0b0b13;
  background: #fff;
  padding: 3px 8px; border-radius: 999px;
  z-index: 2;
  letter-spacing: 0.04em;
}
.viz-shop .card:nth-child(1) .tag { background: var(--c-amber); color: #0b0b13; }
.viz-shop .card:nth-child(3) .tag { background: var(--c-cyan); color: #0b0b13; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.viz-shop .cart {
  position: absolute;
  bottom: 12%; right: 8%;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #0b0b13;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124,92,255,0.3);
  animation: cartBounce 2.5s ease-in-out infinite;
}
.viz-shop .cart svg { width: 26px; height: 26px; }
.viz-shop .cart .badge {
  position: absolute; top: -4px; right: -4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-magenta);
  color: #fff;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-1);
}
@keyframes cartBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.04); }
}

/* ---------- 04 AUTOMATION: gears + flow ---------- */
.viz-auto .gears {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; aspect-ratio: 16/9;
}
.viz-auto .gear {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.3);
}
.viz-auto .gear::before {
  content: "";
  position: absolute; inset: 12%;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background:
    radial-gradient(circle, rgba(124,92,255,0.3), transparent 60%),
    rgba(255,255,255,0.02);
}
.viz-auto .gear::after {
  content: "";
  position: absolute; inset: 30%;
  border-radius: 50%;
  background: var(--grad-primary);
  opacity: 0.8;
}
.viz-auto .gear.g1 {
  left: 8%; top: 12%;
  width: 44%; aspect-ratio: 1/1;
  animation: spinA 10s linear infinite;
}
.viz-auto .gear.g2 {
  right: 10%; bottom: 8%;
  width: 34%; aspect-ratio: 1/1;
  animation: spinB 8s linear infinite;
}
@keyframes spinA { to { transform: rotate(360deg); } }
@keyframes spinB { to { transform: rotate(-360deg); } }

.viz-auto .flow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.viz-auto .flow .node {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.6);
  position: relative; z-index: 2;
}
.viz-auto .flow .line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.viz-auto .flow .line::after {
  content: ""; position: absolute; top: 50%;
  width: 24px; height: 3px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: translate(-100%, -50%);
  box-shadow: 0 0 12px rgba(124,92,255,0.8);
  animation: packet 2.4s linear infinite;
}
.viz-auto .flow .line:nth-child(4)::after { animation-delay: 1.2s; }
@keyframes packet {
  0% { transform: translate(-30%, -50%); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(calc(100vw), -50%); opacity: 0; }
}

/* ---------- 05 AI / ML: neural network ---------- */
.viz-ai .network {
  position: absolute; inset: 8%;
}
.viz-ai .network svg { width: 100%; height: 100%; }
.viz-ai .network .edge {
  stroke: rgba(255,255,255,0.18);
  stroke-width: 1;
  fill: none;
}
.viz-ai .network .edge.active {
  stroke: url(#ai-grad);
  stroke-width: 1.6;
  stroke-dasharray: 6 120;
  animation: pulseEdge 2.8s linear infinite;
}
@keyframes pulseEdge {
  0% { stroke-dashoffset: 0; opacity: 0.2; }
  30% { opacity: 1; }
  100% { stroke-dashoffset: -126; opacity: 0.2; }
}
.viz-ai .network .node {
  fill: rgba(255,255,255,0.9);
  filter: drop-shadow(0 0 6px rgba(124,92,255,0.8));
  animation: nodePulse 2.4s ease-in-out infinite;
}
.viz-ai .network .node.mid { animation-delay: 0.4s; }
.viz-ai .network .node.out { animation-delay: 0.8s; }
@keyframes nodePulse {
  0%, 100% { r: 5; opacity: 0.8; }
  50% { r: 7; opacity: 1; }
}
.viz-ai .core {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 60px rgba(124,92,255,0.7);
  animation: coreBeat 2s ease-in-out infinite;
  z-index: 3;
}
.viz-ai .core::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 50%; background: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
}
.viz-ai .core::before {
  content: ""; position: absolute; inset: 14px;
  border-radius: 50%; background: var(--grad-primary);
  filter: blur(1px);
  z-index: 1;
}
@keyframes coreBeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* ---------- 06 AGENTIC: orbiting agents ---------- */
.viz-agent .hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; aspect-ratio: 1/1;
}
.viz-agent .hub .center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22%; aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.6);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  z-index: 3;
  animation: coreBeat 2.6s ease-in-out infinite;
}
.viz-agent .hub .center svg { width: 40%; }
.viz-agent .orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  animation: orbit 14s linear infinite;
}
.viz-agent .orbit.o1 { width: 50%; aspect-ratio: 1/1; animation-duration: 10s; }
.viz-agent .orbit.o2 { width: 75%; aspect-ratio: 1/1; animation-duration: 14s; animation-direction: reverse; border-color: rgba(124, 92, 255, 0.3); }
.viz-agent .orbit.o3 { width: 100%; aspect-ratio: 1/1; animation-duration: 20s; border-color: rgba(34, 211, 238, 0.25); }
.viz-agent .orbit .agent {
  position: absolute;
  top: -14px; left: 50%;
  width: 28px; height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(14, 14, 24, 0.9);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.viz-agent .orbit .agent::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 10px rgba(124,92,255,0.8);
}
.viz-agent .orbit .agent.a2 { top: auto; bottom: -14px; }
.viz-agent .orbit .agent.a3 { top: 50%; left: -14px; transform: translateY(-50%); }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- 07 DESIGN: swatches + typography ---------- */
.viz-design .stage {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.viz-design .swatch {
  position: absolute;
  width: 25%; aspect-ratio: 1/1;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  animation: floatSwatch 6s ease-in-out infinite;
}
.viz-design .swatch.s1 {
  top: 16%; left: 10%;
  background: linear-gradient(135deg, #7c5cff, #5b8cff);
  animation-delay: 0s;
}
.viz-design .swatch.s2 {
  top: 22%; right: 10%;
  background: linear-gradient(135deg, #ff3cac, #7c5cff);
  animation-delay: 1s;
}
.viz-design .swatch.s3 {
  bottom: 16%; left: 14%;
  background: linear-gradient(135deg, #22d3ee, #5b8cff);
  animation-delay: 0.5s;
}
.viz-design .swatch.s4 {
  bottom: 12%; right: 14%;
  background: linear-gradient(135deg, #ffb547, #ff3cac);
  animation-delay: 1.5s;
}
@keyframes floatSwatch {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}
.viz-design .bigA {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  position: relative;
  z-index: 2;
  letter-spacing: -0.04em;
  animation: aaPulse 3.4s ease-in-out infinite;
}
.viz-design .bigA::after {
  content: "";
  position: absolute;
  right: -14px; top: 10%;
  width: 4px; height: 80%;
  background: var(--c-cyan);
  animation: blink 1s steps(2) infinite;
}
@keyframes aaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes blink { 50% { opacity: 0; } }

/* Mobile: scale down visuals */
@media (max-width: 720px) {
  .viz-web .browser { width: 90%; }
  .viz-mobile .phone { width: 46%; }
  .viz-agent .hub { width: 90%; }
  .viz-design .bigA { font-size: 3rem; }
}

/* ======== PORTFOLIO ======== */

/* ---- Metrics strip ---- */
.work-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(124,92,255,0.12), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(34,211,238,0.1), transparent 55%),
    var(--surface);
  backdrop-filter: blur(10px);
  margin-bottom: 48px;
}
.work-metrics .m {
  display: flex; flex-direction: column; gap: 6px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.work-metrics .m:first-child { border-left: 0; padding-left: 0; }
.work-metrics .m .v {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1;
  font-weight: 600;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.work-metrics .m .l {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---- Filter tabs ---- */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
  width: fit-content;
  margin: 0 auto 40px;
  position: relative;
}
.work-filter button {
  appearance: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  position: relative;
  z-index: 2;
}
.work-filter button:hover { color: var(--text); }
.work-filter button.is-active {
  color: #0b0b13;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(124,92,255,0.25);
}

/* ---- Featured project ---- */
.project-featured {
  position: relative;
  border-radius: calc(var(--radius-lg) + 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21/9;
  background: var(--surface);
  margin-bottom: 28px;
  isolation: isolate;
  cursor: pointer;
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.project-featured:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,0.4);
  box-shadow: 0 30px 80px -30px rgba(124,92,255,0.4);
}
.project-featured .thumb {
  position: absolute; inset: 0;
  overflow: hidden;
}
.project-featured .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), filter 0.6s ease;
  transform: scale(1.02);
}
.project-featured:hover .thumb img {
  transform: scale(1.08);
  filter: saturate(1.1);
}
.project-featured .thumb::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,11,0.92) 0%, rgba(5,5,11,0.6) 45%, rgba(5,5,11,0.25) 100%),
    linear-gradient(180deg, transparent 40%, rgba(5,5,11,0.85) 100%);
  z-index: 1;
}
.project-featured .scan-top {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  box-shadow: 0 0 18px rgba(34,211,238,0.7);
  animation: proj-scan 6s linear infinite;
  z-index: 3;
  opacity: 0.8;
}
@keyframes proj-scan {
  0%   { transform: translateX(-110%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
.project-featured .content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
  z-index: 2;
  gap: 14px;
  max-width: 62%;
}
.project-featured .badge-featured {
  position: absolute; top: 28px; left: 48px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  z-index: 3;
}
.project-featured .badge-featured::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.project-featured .year {
  position: absolute; top: 28px; right: 48px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  z-index: 3;
}
.project-featured .chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.project-featured h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
  color: #fff;
}
.project-featured .desc {
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  font-size: 1rem;
  margin: 0;
}
.project-featured .metrics {
  display: flex; gap: 36px; flex-wrap: wrap;
  margin-top: 6px;
}
.project-featured .metrics .m {
  display: flex; flex-direction: column;
}
.project-featured .metrics .v {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.project-featured .metrics .l {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-mute);
}
.project-featured .open {
  position: absolute; bottom: 48px; right: 48px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #0b0b13;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 3;
}
.project-featured:hover .open {
  transform: translate(4px, -4px) rotate(45deg);
  box-shadow: 0 0 40px rgba(34,211,238,0.5);
}
.project-featured .open svg { width: 22px; height: 22px; transition: transform 0.3s ease; }

/* ---- Grid ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4/5;
  cursor: pointer;
  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    border-color .4s ease,
    box-shadow .4s ease,
    opacity .5s ease;
  isolation: isolate;
  color: inherit;
  text-decoration: none;
  display: block;
}
.project.is-hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  position: absolute;
}
.project:hover {
  transform: translateY(-8px);
  border-color: rgba(124,92,255,0.4);
  box-shadow: 0 30px 60px -30px rgba(124,92,255,0.35);
}
.project .thumb {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--surface);
}
.project .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), filter 0.5s ease;
}
.project:hover .thumb img {
  transform: scale(1.08);
  filter: saturate(1.1) brightness(0.85);
}
.project .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,11,0.25) 0%, rgba(5,5,11,0.15) 40%, rgba(5,5,11,0.95) 100%);
  z-index: 1;
}
.project .num {
  position: absolute;
  top: 18px; left: 20px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  z-index: 3;
}
.project .tag {
  position: absolute;
  top: 18px; right: 20px;
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  z-index: 3;
  margin: 0;
}
.project .scan-top {
  position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  box-shadow: 0 0 12px rgba(34,211,238,0.65);
  animation: proj-scan 7s linear infinite;
  z-index: 2;
  opacity: 0.55;
}
.project .info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  z-index: 2;
  display: flex; flex-direction: column;
  gap: 10px;
}
.project .info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 600;
  color: #fff;
}
.project .info .oneliner {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.project:hover .info .oneliner {
  max-height: 60px;
  opacity: 1;
}
.project .info .metrics {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}
.project:hover .info .metrics {
  opacity: 1;
  transform: translateY(0);
}
.project .info .metrics .m {
  display: flex; flex-direction: column;
}
.project .info .metrics .v {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.project .info .metrics .l {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
}
.project .open {
  position: absolute;
  bottom: 22px; right: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  z-index: 3;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  transform: translateY(8px);
}
.project:hover .open {
  opacity: 1;
  transform: translateY(0);
  background: rgba(124,92,255,0.35);
  border-color: rgba(124,92,255,0.7);
}

/* ---- Trusted-by logo wall ---- */
.logo-wall {
  margin-top: 60px;
  padding: 48px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at center, rgba(124,92,255,0.08), transparent 70%),
    var(--surface);
  text-align: center;
}
.logo-wall .kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 32px;
}
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.logos .logo {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.logos .logo:hover {
  color: #fff;
  border-color: rgba(124,92,255,0.4);
  background: rgba(124,92,255,0.08);
  transform: translateY(-3px);
}
.logos .logo svg { width: 22px; height: 22px; margin-right: 8px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .work-metrics { grid-template-columns: repeat(2, 1fr); }
  .work-metrics .m:nth-child(3) { border-left: 0; padding-left: 0; }
  .project-featured { aspect-ratio: 16/10; }
  .project-featured .content { padding: 32px; max-width: 100%; }
  .project-featured .badge-featured { top: 18px; left: 32px; }
  .project-featured .year { top: 18px; right: 32px; }
  .project-featured .open { bottom: 32px; right: 32px; width: 52px; height: 52px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .work-metrics { grid-template-columns: 1fr 1fr; padding: 24px; }
  .work-metrics .m { border-left: 0; padding-left: 0; }
  .project-featured .content { padding: 24px; }
  .project-featured .badge-featured { left: 16px; top: 14px; padding: 5px 10px; font-size: 9px; }
  .project-featured .year { top: 14px; right: 16px; }
  .project-featured .open { bottom: 20px; right: 20px; width: 44px; height: 44px; }
  .project-featured .metrics { gap: 18px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .work-filter { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .work-filter button { white-space: nowrap; }
}

/* ======== ABOUT ======== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.value {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.value .num {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--text-mute); letter-spacing: 0.15em;
}
.value h3 { font-size: 1.2rem; margin: 14px 0 8px; }

.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.member {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  text-align: center;
}
.member .avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #0b0b13; font-weight: 600; font-family: var(--font-display); font-size: 1.4rem;
}
.member .name { font-weight: 500; }
.member .role { font-size: 0.85rem; color: var(--text-mute); }

/* ======== CONTACT ======== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}
.info-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 22px;
}
.info-card .row { display: flex; gap: 14px; align-items: flex-start; }
.info-card .row .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-card .row .ic svg { width: 18px; height: 18px; }
.info-card .row .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-mute); }
.info-card .row .val { color: var(--text); }

form.contact-form {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.8rem; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border-color .25s ease, background .25s ease;
  resize: vertical;
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.06);
}
.field textarea { min-height: 140px; }
.form-status {
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
}
.form-status.ok { display: block; color: #8ef0a4; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.2); }
.form-status.err { display: block; color: #ff9a9a; background: rgba(255, 100, 100, 0.08); border: 1px solid rgba(255, 100, 100, 0.25); }

/* ======== FAQ ======== */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform .3s ease, background .3s ease;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--text);
}
.faq-item summary .plus::before { width: 12px; height: 1.5px; }
.faq-item summary .plus::after { width: 1.5px; height: 12px; transition: transform .3s ease; }
.faq-item[open] summary .plus { background: var(--surface-2); }
.faq-item[open] summary .plus::after { transform: scaleY(0); }
.faq-item p { margin: 16px 0 0; color: var(--text-dim); }

/* ======== REVEAL ANIMATION ======== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
[data-reveal-stagger].in > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: .05s; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: .12s; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: .19s; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: .26s; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: .33s; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: .4s; }
[data-reveal-stagger].in > *:nth-child(7) { transition-delay: .47s; }
[data-reveal-stagger].in > *:nth-child(8) { transition-delay: .54s; }

/* Cursor (custom cursor disabled — native cursor is zero-lag) */
.cursor-dot, .cursor-ring { display: none !important; }

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  section { padding: 90px 0; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card.w-3, .service-card.w-2, .service-card.w-4 { grid-column: span 2; }
  .service-card.w-6 { grid-column: span 4; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  section { padding: 70px 0; }
  .container { padding: 0 18px; }
  .nav { top: 10px; width: calc(100% - 20px); }
  .nav-inner { padding: 10px 10px 10px 18px; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    left: 10px; right: 10px;
    background: rgba(10,10,18,0.95);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    z-index: 99;
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 16px; border-radius: 12px; color: var(--text-dim); }
  .mobile-menu a:hover, .mobile-menu a.active { background: var(--surface-2); color: var(--text); }
  .mobile-menu .btn { margin-top: 10px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.w-3, .service-card.w-2, .service-card.w-4, .service-card.w-6 { grid-column: span 1; }
  .stats { grid-template-columns: 1fr; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 60px 24px; }
  .process-item { grid-template-columns: 1fr; gap: 8px; }
  .process-item .tag { justify-self: flex-start; }
  .service-detail ul { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-visual .ring { animation: none; }
}
