/* ==========================================================================
   LeadMagnet — Agency site
   Tokens → base → layers → components → sections → responsive
   Perf note: no backdrop-filter over the WebGL canvas (except the nav) —
   re-blurring an animated canvas every frame is the #1 cause of scroll jank.
   ========================================================================== */
:root {
  --bg: #06070b;
  --surface: #0d0f17;
  --surface-2: #121522;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #8a8fa3;
  --accent: #7c5cff;
  --accent-2: #00e0b8;
  --hot: #ff5a3c;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.container { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(88px, 13vw, 180px) 0; }
main, footer { position: relative; z-index: 2; }

/* ---------- Fixed layers ---------- */
#webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(6,7,11,.85) 100%); }
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, border-color .45s;
}
.cursor__ring b { font: 600 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #0a0b10; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(255,255,255,.7); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent-2); border-color: transparent; }
.cursor.is-label .cursor__ring b { opacity: 1; transform: scale(1); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; }
.loader__grid { position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(circle at center, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at center, #000, transparent 70%); }
.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader__logo { color: var(--text); }
.loader__path { stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw 1.4s var(--ease) forwards .1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__label { color: var(--muted); }
.loader__count { font: 600 clamp(64px, 15vw, 168px)/1 var(--f-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.loader__bar { width: 200px; height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Buttons (text-roll hover) ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--text); color: #0a0b10; font: 600 15px/1 var(--f-body); overflow: hidden; isolation: isolate;
  will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(120deg, var(--accent), var(--accent-2)); transform: scale(0, 1); transform-origin: right; transition: transform .6s var(--ease); }
.btn:hover::before { transform: scale(1, 1); transform-origin: left; }
.btn:hover { color: #fff; }
.btn__label { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25em; }
.btn__label > span { display: block; text-shadow: 0 1.6em 0 currentColor; transition: transform .6s var(--ease); }
.btn:hover .btn__label > span { transform: translateY(-1.6em); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--small { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--full { width: 100%; }
.btn svg { transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.chips input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter);
  transition: transform .7s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(6, 7, 11, 0.72); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font: 500 20px var(--f-display); letter-spacing: -0.03em; }
.nav__logo b { font-weight: 700; }
.nav__links { display: flex; gap: 36px; font-size: 14px; color: var(--muted); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; z-index: 2; }
.nav__burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger i:first-child { top: 18px; } .nav__burger i:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] i:first-child { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(6,7,11,.97);
  display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - var(--gutter) - 23px) calc(var(--nav-h) / 2)); transition: clip-path .9s var(--ease); visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(160% at calc(100% - var(--gutter) - 23px) calc(var(--nav-h) / 2)); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; font: 600 clamp(40px, 11vw, 72px)/1.15 var(--f-display); letter-spacing: -0.04em; border-bottom: 1px solid var(--line); padding: 8px 0; }
.mobile-menu nav a .mono { color: var(--accent-2); }
.mobile-menu > p { color: var(--muted); }

/* ---------- Shared ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(13,15,23,.6); font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(0,224,184,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0,224,184,0); } 100% { box-shadow: 0 0 0 0 rgba(0,224,184,0); } }
.tag { display: inline-block; color: var(--accent-2); margin-bottom: 24px; }
.section__head { max-width: 900px; margin-bottom: clamp(48px, 7vw, 96px); }
.section__head h2, .eng__grid h2, .process__head h2 { font-size: clamp(40px, 6.6vw, 100px); }
.section__sub { margin-top: 24px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 560px; }
em { font-style: normal; background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }
/* once split, the children carry the gradient — the parent em must not paint it too */
.split em, .hero__title em { background: none; color: var(--text); }
em .wi { background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c { display: inline-block; will-change: transform, opacity; backface-visibility: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--nav-h) + 24px); }
.hero__inner { padding-bottom: clamp(28px, 4vw, 48px); }
.hero__title { font-size: clamp(46px, 9.2vw, 164px); line-height: .9; margin: 28px 0 clamp(28px, 4vw, 44px); letter-spacing: -0.06em; }
.hero__title .line { display: block; perspective: 900px; white-space: nowrap; will-change: transform; }
.hero__title .chars { display: inline-block; transform-style: preserve-3d; }
.hero__title .w { overflow: visible; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 470px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--muted); gap: 16px; }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 22px; background: linear-gradient(var(--text), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee / loops ---------- */
.marquee { position: relative; padding: 26px 0; border-block: 1px solid var(--line); background: rgba(6,7,11,.75); overflow: hidden; }
.marquee__track, .qloop__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; gap: 48px; padding-right: 48px; font: 500 clamp(26px, 3.6vw, 52px) var(--f-display); letter-spacing: -0.03em; white-space: nowrap; will-change: transform; }
.marquee__row b { color: var(--accent); font-size: .55em; }

/* ---------- Manifesto ---------- */
.manifesto__text { font: 500 clamp(30px, 4.6vw, 72px)/1.12 var(--f-display); letter-spacing: -0.035em; max-width: 1200px; }
.manifesto__text .hw { opacity: .14; transition: none; }
.manifesto__text mark { background: none; color: inherit; }
.manifesto__text mark .hw { color: transparent; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }

/* ---------- Services: sticky stack ---------- */
.services .section__head { margin-bottom: clamp(32px, 5vw, 64px); }
.stack { position: relative; display: flex; flex-direction: column; gap: clamp(20px, 4vh, 40px); padding-bottom: 4vh; }
.scard {
  --dim: 0;
  position: sticky; top: calc(var(--nav-h) + 16px + var(--i) * 14px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  min-height: min(560px, 72vh); padding: clamp(24px, 3.5vw, 52px); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, #141727 0%, #0b0d15 60%); border: 1px solid var(--line);
  box-shadow: 0 -30px 80px -40px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06) inset;
  transform-origin: 50% 0%; will-change: transform; overflow: hidden;
}
.scard::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 80%) var(--my, 0%), rgba(124,92,255,.18), transparent 60%); }
.scard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: #06070b; opacity: var(--dim); border-radius: inherit; }
.scard__head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 5vh, 56px); }
.scard__num { font: 600 15px var(--f-mono); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); }
.scard__kicker { color: var(--accent-2); }
.scard h3 { font-size: clamp(30px, 3.6vw, 56px); margin-bottom: 18px; }
.scard p { color: var(--muted); max-width: 480px; font-size: clamp(15px, 1.15vw, 17px); }
.pills { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; color: var(--text); }

/* mini visuals */
.viz { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); background: #090b12; overflow: hidden; padding: clamp(16px, 2vw, 26px); }
.viz::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; opacity: .5; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%); }
.viz > * { position: relative; }
/* store */
.vstore__bar { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vstore__bar i { width: 9px; height: 9px; border-radius: 50%; background: #262a3a; }
.vstore__bar span { margin-left: 10px; color: var(--muted); text-transform: none; font-size: 11px; }
.vstore__cart { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 600 12px var(--f-mono); }
.scard.is-in .vstore__cart { animation: bump 2.4s var(--ease) infinite 1s; }
@keyframes bump { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.35); } }
.vstore__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; height: calc(100% - 52px); }
.vstore__grid div { border-radius: 14px; background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(0,224,184,.15)); position: relative; overflow: hidden; }
.vstore__grid div:nth-child(2) { background: linear-gradient(135deg, rgba(255,90,60,.35), rgba(255,210,61,.15)); }
.vstore__grid div:nth-child(3) { background: linear-gradient(135deg, rgba(0,180,255,.3), rgba(124,92,255,.15)); }
.vstore__grid div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 2.8s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.vstore__toast { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; padding: 10px 16px; border-radius: 999px; background: var(--text); color: #0a0b10; font-size: 11px; opacity: 0; }
.scard.is-in .vstore__toast { animation: toast 2.4s var(--ease) infinite 1s; }
@keyframes toast { 0%, 55% { opacity: 0; transform: translateY(12px); } 65%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* serp */
.vserp__search { padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2); text-transform: none; font-size: 12px; color: var(--text); margin-bottom: 16px; }
.vserp__search span { display: inline-block; width: 1px; height: 13px; background: var(--accent-2); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.vserp__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; transition: transform 1.2s var(--ease); background: rgba(255,255,255,.02); margin-bottom: 8px; }
.vserp__row b { font: 600 13px var(--f-mono); color: var(--muted); width: 26px; }
.vserp__row div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.vserp__row i { display: block; height: 7px; border-radius: 4px; background: #23273a; }
.vserp__row.is-you { border-color: rgba(0,224,184,.5); background: rgba(0,224,184,.07); }
.vserp__row.is-you i:first-child { background: var(--accent-2); }
.vserp__row.is-you span { color: var(--accent-2); font-size: 10px; }
.vserp__row.is-you b { color: var(--accent-2); }
/* chart */
.viz--chart { display: flex; flex-direction: column; }
.vchart__label { display: flex; justify-content: space-between; align-items: baseline; }
.vchart__label span { color: var(--muted); }
.vchart__label b { font: 600 clamp(36px, 4vw, 56px)/1 var(--f-display); letter-spacing: -0.04em; color: var(--accent-2); }
.viz--chart svg { flex: 1; width: 100%; margin-top: 12px; }
.vchart__line { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.vchart__area { opacity: 0; transition: opacity 1.4s ease 1s; }
.scard.is-in .vchart__line { stroke-dashoffset: 0; }
.scard.is-in .vchart__area { opacity: 1; }
/* bars */
.viz--bars { display: flex; flex-direction: column; }
.vbars__head, .vbars__foot { display: flex; justify-content: space-between; color: var(--muted); }
.vbars__head span:last-child { color: var(--accent-2); font-size: 14px; }
.vbars { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding: 18px 0 12px; }
.vbars i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), rgba(124,92,255,.15)); transform: scaleY(0); transform-origin: bottom; transition: transform 1.2s var(--ease); }
.vbars i:last-child { background: linear-gradient(180deg, var(--accent-2), rgba(0,224,184,.15)); }
.scard.is-in .vbars i { transform: scaleY(1); }
.vbars i:nth-child(2) { transition-delay: .07s; } .vbars i:nth-child(3) { transition-delay: .14s; } .vbars i:nth-child(4) { transition-delay: .21s; } .vbars i:nth-child(5) { transition-delay: .28s; } .vbars i:nth-child(6) { transition-delay: .35s; } .vbars i:nth-child(7) { transition-delay: .42s; }
/* wireframe */
.viz--wire { display: flex; flex-direction: column; gap: 14px; }
.vwire__nav { display: flex; gap: 10px; } .vwire__nav i { height: 8px; width: 40px; border-radius: 4px; background: #23273a; } .vwire__nav i:first-child { width: 70px; margin-right: auto; background: var(--accent); }
.vwire__hero { flex: 1.4; border-radius: 14px; border: 1px dashed var(--line-2); padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.vwire__hero i { height: 14px; border-radius: 6px; background: #23273a; width: 70%; } .vwire__hero i + i { width: 45%; height: 10px; }
.vwire__hero b { width: 110px; height: 30px; border-radius: 999px; background: var(--accent-2); margin-top: 6px; }
.vwire__cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .vwire__cols i { border-radius: 12px; border: 1px dashed var(--line-2); }
.vwire__cursor { position: absolute; width: 16px; height: 16px; left: 30%; top: 60%; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(-12deg); }
.scard.is-in .vwire__cursor { animation: wcur 4s var(--ease) infinite; }
@keyframes wcur { 0%, 100% { left: 30%; top: 70%; } 40% { left: 22%; top: 50%; } 60% { left: 22%; top: 50%; transform: rotate(-12deg) scale(.85); } 80% { left: 60%; top: 80%; } }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(64px, 9vw, 120px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 24px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; }
.stat__num { font: 600 clamp(46px, 6vw, 96px)/1 var(--f-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__label { color: var(--muted); font-size: 14px; max-width: 210px; }

/* ---------- Process ---------- */
.process__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 6vh, 64px); padding: calc(var(--nav-h) + 10px) 0 40px; overflow: hidden; }
.process__viewport { perspective: 1600px; }
.process__track { display: flex; gap: clamp(14px, 2vw, 24px); padding: 0 var(--gutter); width: max-content; will-change: transform; transform-style: preserve-3d; }
.step {
  width: clamp(280px, 34vw, 460px); min-height: clamp(300px, 46vh, 420px); padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(160deg, #131626, #0a0c14);
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; will-change: transform;
}
.step::after { content: ""; position: absolute; right: -30%; bottom: -50%; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(var(--accent), transparent 70%); opacity: .16; }
.step__n { font: 600 clamp(64px, 7vw, 104px)/1 var(--f-display); letter-spacing: -0.06em; -webkit-text-stroke: 1px rgba(255,255,255,.35); color: transparent; }
.step h3 { font-size: clamp(28px, 2.8vw, 40px); margin-top: auto; }
.step p { color: var(--muted); font-size: 15px; }
.step__t { color: var(--accent-2); }
.process__progress { height: 2px; background: var(--line); }
.process__progress i { display: block; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Work ---------- */
.work__list { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 110px); }
.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.case:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.case:nth-child(even) .case__visual { order: 2; }
.case__visual { aspect-ratio: 16 / 11; border-radius: var(--radius); position: relative; overflow: hidden; clip-path: inset(0 round var(--radius)); will-change: clip-path; }
.case__img { position: absolute; inset: -8%; background: radial-gradient(circle at 25% 30%, var(--c1), transparent 55%), radial-gradient(circle at 80% 75%, var(--c2), transparent 50%), #0f1120; display: grid; place-items: center; will-change: transform; }
.mock { width: 68%; aspect-ratio: 16 / 10; border-radius: 12px; background: rgba(8,9,14,.78); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.5); padding: 10px; display: flex; flex-direction: column; gap: 8px; transform: perspective(900px) rotateX(10deg) rotateY(-12deg); transition: transform .9s var(--ease); }
.case:hover .mock { transform: perspective(900px) rotateX(0) rotateY(0) scale(1.04); }
.mock__bar { display: flex; gap: 5px; } .mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.mock__hero { flex: 1.3; border-radius: 8px; background: linear-gradient(120deg, var(--c1), var(--c2)); opacity: .8; }
.mock__row { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .mock__row i { border-radius: 6px; background: rgba(255,255,255,.08); }
.case__tag { position: absolute; left: 18px; bottom: 18px; padding: 7px 13px; border-radius: 999px; background: rgba(0,0,0,.55); }
.case h3 { font-size: clamp(26px, 2.8vw, 42px); margin-bottom: 28px; }
.case__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.case__metrics b { display: block; font: 600 clamp(26px, 2.8vw, 44px)/1 var(--f-display); letter-spacing: -0.04em; margin-bottom: 8px; }
.case__metrics span { color: var(--muted); font-size: 13px; }

/* ---------- Engineering ---------- */
.eng__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.eng__list { list-style: none; padding: 0; margin: 40px 0 0; }
.eng__list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.eng__list li span { color: var(--accent-2); padding-top: 3px; }
.terminal { border-radius: var(--radius); border: 1px solid var(--line); background: rgba(8, 9, 14, .94); overflow: hidden; box-shadow: 0 40px 120px -30px rgba(124,92,255,.4); }
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; }
.terminal__bar i:nth-child(1) { background: #ff5f57; } .terminal__bar i:nth-child(2) { background: #febc2e; } .terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: auto; color: var(--muted); text-transform: none; font-size: 11px; }
.terminal pre { margin: 0; padding: 22px; height: 420px; overflow: hidden; font-size: 13px; line-height: 1.75; text-transform: none; letter-spacing: 0; white-space: pre-wrap; word-break: break-word; color: #c9cddc; }
.terminal .t-ok { color: #28c840; } .terminal .t-acc { color: var(--accent-2); } .terminal .t-dim { color: #5c6175; } .terminal .t-hl { color: #b9a6ff; } .terminal .t-err { color: #ff5f57; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent-2); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Testimonials loop ---------- */
.qloop { overflow: hidden; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.qloop__row { display: flex; gap: 18px; padding-right: 18px; }
.quote { margin: 0; width: clamp(290px, 34vw, 480px); padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, #131626, #0a0c14); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote blockquote { margin: 0; font: 500 clamp(18px, 1.6vw, 24px)/1.4 var(--f-display); letter-spacing: -0.015em; }
.quote figcaption { color: var(--muted); font-size: 14px; }
.quote figcaption b { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__title { font-size: clamp(44px, 6.6vw, 104px); }
.contact__info { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; font-size: 14px; }
.contact__info a { width: fit-content; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .3s, color .3s; }
.contact__info a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.form { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(19,22,38,.96), rgba(10,12,20,.96)); }
.field { position: relative; }
.field input { width: 100%; height: 58px; padding: 22px 0 6px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--text); font: 16px var(--f-body); outline: none; transition: border-color .3s; }
.field label { position: absolute; left: 0; top: 18px; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease), color .3s; transform-origin: left; }
.field input:focus { border-color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-17px) scale(.8); color: var(--accent-2); }
.field.is-invalid input { border-color: var(--hot); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { color: var(--muted); margin-bottom: 12px; padding: 0; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: background .3s, border-color .3s, color .3s; }
.chips label:hover span { border-color: rgba(255,255,255,.4); }
.chips input:checked + span { background: var(--text); color: #0a0b10; border-color: var(--text); }
.form__note { min-height: 18px; color: var(--accent-2); text-transform: none; }

/* ---------- Footer ---------- */
.footer { padding: clamp(40px, 6vw, 80px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.footer__big { font: 700 clamp(56px, 16.5vw, 280px)/0.86 var(--f-display); letter-spacing: -0.07em; text-align: center; white-space: nowrap; color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(124,92,255,.15)); -webkit-background-clip: text; background-clip: text; user-select: none; margin-bottom: clamp(24px, 4vw, 48px); overflow: hidden; padding-bottom: .05em; }
.footer__big.is-split { background: none; }
.footer__big .c { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(124,92,255,.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; color: var(--muted); }
.footer__links { display: flex; gap: 20px; }
.footer__row a:hover { color: var(--text); }

/* ---------- Reveal defaults (JS animates in) ---------- */
.js [data-reveal], .js .reveal-up { opacity: 0; }
.js .hero__title { visibility: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .nav__links { gap: 26px; }
}
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav .btn--small { display: none; }
  .nav__burger { display: block; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .eng__grid, .contact__grid { grid-template-columns: 1fr; }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__visual { order: 0; }
  .scard { grid-template-columns: 1fr 1fr; min-height: 0; }
}
@media (max-width: 760px) {
  :root { --nav-h: 66px; }
  .hero__title { line-height: .95; }
  .hero__title .line { white-space: normal; }
  .hero__bottom { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__meta span:last-child { display: none; }
  .scard { grid-template-columns: 1fr; gap: 22px; top: calc(var(--nav-h) + 10px + var(--i) * 10px); }
  .scard__head { margin-bottom: 20px; }
  .viz { aspect-ratio: 16 / 10; }
  .pills { margin-top: 18px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 14px 26px 0; }
  .stat:nth-child(even) { padding-left: 14px; padding-right: 0; }
  .stat__num { font-size: clamp(36px, 11vw, 56px); }
  .stat__label { font-size: 13px; }
  .step { width: 80vw; }
  .case__metrics { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .case__metrics b { font-size: clamp(20px, 6vw, 28px); }
  .case__metrics span { font-size: 11px; }
  .mock { width: 78%; }
  .terminal pre { height: 380px; font-size: 11.5px; padding: 16px; }
  .quote { width: 82vw; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
/* short phones: sticky cards must fit the viewport, so drop the mini visual */
@media (max-width: 760px) and (max-height: 720px) {
  .viz { display: none; }
}
@media (max-width: 380px) {
  .hero__title { font-size: 42px; }
  .eyebrow { font-size: 12px; }
  .scard { padding: 20px; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .scard { min-height: 0; }
  .viz { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js .reveal-up { opacity: 1; }
  .js .hero__title { visibility: visible; }
  .manifesto__text .hw { opacity: 1; }
  .scard { position: relative; top: 0; }
}
