/* =====================================================================
   ENCAR STUDIO — stylesheet
   Sections: tokens · base · nav · hero · marquee · work · services ·
             process · testimonials · cta/form · footer · animations · responsive
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --bg: #0a0a0f;
  --bg-2: #101018;
  --bg-3: #16161f;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f2f5;
  --muted: #9a9aad;
  --accent: #7c5cff;      /* electric violet */
  --accent-2: #38e8ff;    /* cyan */
  --accent-3: #ff5c8a;    /* pink, used sparingly in the gradient */
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__sub { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); }
.btn--primary {
  background: var(--gradient);
  border: none; color: #0a0a0f;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .7);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(56, 232, 255, .6); }
.btn--ghost { background: transparent; }
.btn--small { padding: 9px 18px; font-size: .85rem; }
.btn--large { padding: 18px 34px; font-size: 1.05rem; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- CURSOR GLOW ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.14) 0%, rgba(56,232,255,.06) 35%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .5s;
  opacity: 0;
}
body.has-mouse .cursor-glow { opacity: 1; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: padding .35s var(--ease), background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(10,10,15,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 500; }
.nav__links a:not(.btn) { position: relative; color: var(--muted); transition: color .3s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 100%;
  background: var(--gradient); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 6px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob--1 { width: 560px; height: 560px; background: var(--accent); top: -160px; left: -120px; }
.blob--2 { width: 480px; height: 480px; background: var(--accent-2); bottom: -140px; right: 10%; animation-duration: 22s; animation-delay: -6s; opacity: .35; }
.blob--3 { width: 380px; height: 380px; background: var(--accent-3); top: 30%; right: -120px; animation-duration: 26s; animation-delay: -12s; opacity: .25; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -40px) scale(1.12); }
  100% { transform: translate(-40px, 50px) scale(.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1.2rem;
}
.hero__title .word {
  display: inline-block;
  margin-right: .22em;
  opacity: 0;
  transform: translateY(40px) rotate(3deg);
  animation: wordIn .9s var(--ease) forwards;
}
.hero__title .word:nth-child(1) { animation-delay: .05s; }
.hero__title .word:nth-child(2) { animation-delay: .12s; }
.hero__title .word:nth-child(3) { animation-delay: .19s; }
.hero__title .word:nth-child(4) { animation-delay: .26s; }
.hero__title .word:nth-child(5) { animation-delay: .33s; }
.hero__title .word:nth-child(6) { animation-delay: .42s; }
.hero__title .word:nth-child(7) { animation-delay: .5s; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0) rotate(0); } }
.word--accent {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 200%;
  animation: wordIn .9s var(--ease) forwards, shimmer 6s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 2rem 0; }
.hero__stats {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 36px; flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.hero__stats span { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.hero__proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; font-weight: 600; font-size: .92rem; }
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #0a0a0f; font-size: .75rem; font-weight: 800; flex-shrink: 0; }
.inline-link { color: var(--text); border-bottom: 1px solid var(--accent); }
.inline-link:hover { color: var(--accent-2); }
.nav__links .btn--primary { color: #0a0a0f; }
.nav__links .btn--primary::after { display: none; }
.footer__inner a:not(.footer__top) { color: var(--muted); transition: color .3s; }
.footer__inner a:not(.footer__top):hover { color: var(--text); }

/* Hero visual — browser + phone mockups with tilt */
.hero__visual { perspective: 1400px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .2s ease-out; }
.browser {
  background: #14141c;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #1c1c26;
  border-bottom: 1px solid var(--border);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a48; }
.browser__bar i:nth-child(1) { background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__url {
  margin-left: 10px; flex: 1;
  background: rgba(255,255,255,.05);
  border-radius: 6px; padding: 4px 12px;
  font-size: .72rem; color: var(--muted);
}
.browser__screen { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser--hero { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.phone {
  position: absolute; right: -34px; bottom: -44px;
  width: 128px;
  border-radius: 24px;
  border: 6px solid #1c1c26;
  background: #000;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  overflow: hidden;
  transform: translateZ(60px);
  animation: float 7s ease-in-out infinite;
  animation-delay: -2.5s;
}
.phone__screen { aspect-ratio: 9/19.5; overflow: hidden; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(16,16,24,.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .8rem; font-weight: 500;
  backdrop-filter: blur(10px);
}
.badge--float {
  position: absolute; left: -18px; top: -16px;
  transform: translateZ(40px);
  animation: float 7s ease-in-out infinite; animation-delay: -4s;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #28c840;
  box-shadow: 0 0 0 0 rgba(40,200,64,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(40,200,64,.6); } 100% { box-shadow: 0 0 0 10px rgba(40,200,64,0); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px;
  z-index: 1;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--muted);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Hero 3D logo (canvas behind the copy) */
.hero__logo3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .45; }
.hero__logo3d canvas { width: 100% !important; height: 100% !important; display: block; }
@media (max-width: 1024px) { .hero__logo3d { opacity: .35; } }

/* ---------- 3D SHOWCASE ---------- */
.showcase { background: radial-gradient(ellipse at 50% 0%, rgba(124,92,255,.12), transparent 60%), var(--bg); }
.engine {
  position: relative; height: clamp(420px, 60vw, 640px);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 60%, rgba(124,92,255,.10), rgba(10,10,15,.2) 70%), var(--bg-2);
  overflow: hidden; cursor: grab;
}
.engine:active { cursor: grabbing; }
.engine__canvas { position: absolute; inset: 0; }
.engine__canvas canvas { width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
.engine__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.engine__lines line { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 3 3; transition: stroke .3s; }
.engine__lines line.is-active { stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: none; }
.engine__labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.engine__labels.is-visible { opacity: 1; pointer-events: none; }
.engine__labels.is-visible .engine__label { pointer-events: auto; }
.engine__label {
  position: absolute; top: 0; left: 0; white-space: nowrap;
  padding: 5px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: rgba(10,10,15,.85); backdrop-filter: blur(6px);
  color: var(--muted); font: 600 .72rem/1.2 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: color .25s, border-color .25s, background .25s;
}
.engine__label:hover, .engine__label.is-active { color: #0a0a0f; background: var(--accent-2); border-color: var(--accent-2); }
.engine__info {
  position: absolute; left: 20px; bottom: 20px; max-width: 320px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(10,10,15,.85); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none;
}
.engine__info.is-visible { opacity: 1; transform: none; }
.engine__info h3 { font-size: 1rem; margin-bottom: .2em; }
.engine__info p { color: var(--muted); font-size: .88rem; margin: 0; }
.engine__hint {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(10,10,15,.7);
  font-size: .78rem; color: var(--muted); pointer-events: none; transition: opacity .4s;
}
.engine__hint.is-hidden { opacity: 0; }
.engine__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; transition: opacity .4s; }
.engine.is-ready .engine__loading { opacity: 0; pointer-events: none; }
.engine.is-failed .engine__loading::after { content: " (3D unavailable on this device)"; }
.engine__caption { text-align: center; color: var(--muted); font-size: .92rem; margin: 20px auto 0; max-width: 640px; }
@media (max-width: 760px) { .engine__info { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee__track {
  display: flex; gap: 40px; width: max-content;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .06em; text-transform: uppercase;
  animation: marquee 30s linear infinite;
}
.marquee__track i { font-style: normal; color: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- WORK / PORTFOLIO ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.work-card {
  --c: var(--accent);
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 60%, transparent);
}
.work-card--featured { grid-column: 1 / -1; }
.work-card--featured .work-card__inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
.work-card__media { padding: 28px 28px 0; }
.work-card--featured .work-card__media { padding: 32px 0 32px 32px; }
.work-card .browser__screen { aspect-ratio: 16/10; }
.work-card .browser__screen img {
  object-position: top;
  transition: object-position 4s ease-in-out;
}
.work-card:hover .browser__screen img { object-position: bottom; }
.work-card__body { padding: 24px 28px 28px; }
.work-card--featured .work-card__body { padding: 32px 36px; }
.work-card__cat { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4rem; }
.work-card h3 { font-size: 1.5rem; margin-bottom: .4em; }
.work-card--featured h3 { font-size: 2rem; }
.work-card p { color: var(--muted); font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.tag {
  padding: 5px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--muted);
}
.work-card__link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; font-size: .95rem;
  color: var(--text);
}
.work-card__link .arrow { transition: transform .3s var(--ease); }
.work-card__link:hover .arrow { transform: translate(3px, -3px); }

/* Placeholder mockup — animated wireframe (no image needed) */
.mock {
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #0e0e14), #0e0e14 70%);
  padding: 8%;
  display: flex; flex-direction: column; gap: 6%;
  position: relative;
}
.mock::after {
  content: "Screenshot coming soon";
  position: absolute; inset: auto 12px 12px auto;
  font-size: .7rem; color: var(--muted);
  padding: 4px 10px; border-radius: 999px;
  border: 1px dashed var(--border);
}
.mock__bar { height: 9%; border-radius: 6px; background: rgba(255,255,255,.08); width: 60%; }
.mock__bar--accent { background: var(--c); width: 38%; opacity: .85; }
.mock__row { display: flex; gap: 4%; flex: 1; }
.mock__box { flex: 1; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }
.mock__bar, .mock__box { animation: shine 3s ease-in-out infinite; }
.mock__box:nth-child(2) { animation-delay: .4s; }
.mock__box:nth-child(3) { animation-delay: .8s; }
@keyframes shine { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.work-card--placeholder .work-card__cat::after {
  content: "Placeholder"; margin-left: 10px;
  padding: 2px 8px; border-radius: 999px;
  border: 1px dashed var(--border); font-size: .65rem; letter-spacing: .04em;
}

/* ---------- SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,.15), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.18); }
.card:hover::before { opacity: 1; }
.card__icon {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; margin-bottom: 20px;
  background: var(--gradient); color: #0a0a0f;
}
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- PROCESS ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
}
.step { position: relative; }
.step__num {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 700;
  margin-bottom: 18px; position: relative;
  transition: border-color .4s, box-shadow .4s;
}
.step:hover .step__num { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(124,92,255,.12); }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- FLOW CHART (How it works) ---------- */
.flow { display: grid; grid-template-columns: 240px 60px 1fr; align-items: center; gap: 0; }
.flow__entry { display: flex; flex-direction: column; gap: 8px; }
.flow__or { text-align: center; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.flow__merge svg { width: 100%; height: 160px; display: block; }
.flow__chain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr; align-items: stretch; }
.flow__step { display: flex; }
.flow__node {
  position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%;
  padding: 24px 22px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.flow__node:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.5); box-shadow: 0 24px 50px -30px rgba(124,92,255,.6); }
.flow__node--entry { padding: 14px 16px; gap: 2px; font-size: .85rem; color: var(--muted); }
.flow__node--entry strong { color: var(--text); font-size: .95rem; }
.flow__node--entry .flow__icon { width: 30px; height: 30px; margin-bottom: 6px; }
.flow__node--last { border-color: rgba(56,232,255,.35); background: linear-gradient(160deg, rgba(124,92,255,.10), rgba(56,232,255,.06)); }
.flow__num {
  position: absolute; top: -12px; left: 18px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gradient); color: #0a0a0f;
  font-family: var(--font-display); font-weight: 800; font-size: .75rem;
}
.flow__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.35); }
.flow__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow__node h3 { margin: 6px 0 0; font-size: 1.15rem; }
.flow__node p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.flow__out { align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--border); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.flow__out::before { content: "→ "; color: var(--accent-2); }
.flow__arrow { display: flex; align-items: center; justify-content: center; }
.flow__arrow svg { width: 100%; height: 24px; overflow: visible; }
.flow__wire { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-dasharray: 6 6; animation: flowDash 1.4s linear infinite; }
.flow__head { fill: var(--accent-2); }
@keyframes flowDash { to { stroke-dashoffset: -12; } }
@media (max-width: 1100px) {
  .flow { grid-template-columns: 1fr; gap: 16px; }
  .flow__entry { flex-direction: row; align-items: center; }
  .flow__node--entry { flex: 1; }
  .flow__merge { display: none; }
  .flow__chain { grid-template-columns: 1fr 1fr; gap: 20px; }
  .flow__arrow { display: none; }
}
@media (max-width: 640px) {
  .flow__entry { flex-direction: column; align-items: stretch; }
  .flow__chain { grid-template-columns: 1fr; gap: 0; }
  .flow__arrow { display: flex; height: 44px; }
  .flow__arrow svg { width: 24px; height: 44px; transform: rotate(90deg); }
  .flow__step { margin-top: 12px; }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { position: relative; }
.testimonials__track {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.t-card {
  --c: var(--accent);
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .5s var(--ease), border-color .4s;
}
.t-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.t-card__quote-mark {
  font-family: var(--font-display); font-size: 4rem; line-height: .6;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.t-card__stars { color: #ffc95c; letter-spacing: 2px; font-size: .9rem; margin-bottom: 14px; }
.t-card blockquote { margin: 0 0 24px; font-size: 1.02rem; line-height: 1.65; flex: 1; }
.t-card__who { display: flex; align-items: center; gap: 14px; }
.t-card__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 35%, #1a1a24);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  overflow: hidden;
}
.t-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-card__name { font-weight: 600; font-size: .95rem; }
.t-card__role { color: var(--muted); font-size: .82rem; }
.t-card__ph {
  position: absolute; top: 18px; right: 18px;
  font-size: .65rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--border);
}
.testimonials__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.ctrl {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 1rem;
  transition: background .3s, border-color .3s, transform .3s;
}
.ctrl:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); transform: scale(1.06); }
.dots { display: flex; gap: 8px; }
.dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: var(--border); cursor: pointer; transition: width .3s var(--ease), background .3s;
}
.dots button.is-active { width: 24px; border-radius: 4px; background: var(--gradient); }

/* ---------- CTA / CONTACT ---------- */
.cta { overflow: hidden; }
.cta__glow {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(124,92,255,.22), transparent 65%);
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 720px; text-align: center; }
.cta__inner .section__sub { margin-bottom: 40px; }
.form { text-align: left; display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea {
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color .3s, box-shadow .3s, background .3s;
  resize: vertical;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124,92,255,.15);
  background: rgba(255,255,255,.06);
}
.form .btn { align-self: center; margin-top: 8px; }
.form__note { text-align: center; color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.form__note a { color: var(--text); border-bottom: 1px solid var(--border); }
.form__success {
  text-align: center; padding: 40px 20px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.footer__inner > span:first-child { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.footer__top { transition: color .3s; }
.footer__top:hover { color: var(--text); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .t-card { flex-basis: calc((100% - 24px) / 2); }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 640px; }
  .work-card--featured .work-card__inner { grid-template-columns: 1fr; }
  .work-card--featured .work-card__media { padding: 28px 28px 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero__stats { gap: 24px; }
  .hero__visual { padding: 20px 8px 48px 0; }
  .phone { width: 100px; right: -6px; bottom: -20px; }
  .badge--float { left: -6px; top: 12px; }
  .scroll-hint { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card__media, .work-card--featured .work-card__media { padding: 20px 20px 0; }
  .work-card__body, .work-card--featured .work-card__body { padding: 20px 22px 24px; }
  .work-card--featured h3 { font-size: 1.6rem; }
  .services, .steps { grid-template-columns: 1fr; }
  .t-card { flex-basis: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }

  /* mobile nav */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0; top: 0;
    flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(10,10,15,.96); backdrop-filter: blur(20px);
    font-size: 1.4rem;
    transform: translateY(-100%); opacity: 0;
    transition: transform .5s var(--ease), opacity .4s;
    z-index: -1;
  }
  .nav__links.is-open { transform: none; opacity: 1; z-index: 1; }
  .nav__brand, .nav__toggle { position: relative; z-index: 2; }
}

/* ---------- "Next client" slot in the work grid ---------- */
.work-card--next {
  border-style: dashed; border-color: rgba(255,255,255,.2);
  background: transparent;
  display: grid; place-items: center; text-align: center;
  min-height: 320px;
  padding: 40px;
}
.work-card--next:hover { background: var(--surface); }
.work-card--next .plus {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 300;
  border: 1px dashed var(--border); color: var(--muted);
  transition: transform .4s var(--ease), border-color .3s, color .3s;
}
.work-card--next:hover .plus { transform: rotate(90deg); border-color: var(--accent); color: var(--text); }
.work-card--next h3 { margin-bottom: .3em; }
.work-card--next p { color: var(--muted); margin-bottom: 18px; }
