/* =========================================================================
   proks.dev — stilet
   ========================================================================= */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --bg: #06070a;
  --bg-2: #0a0c11;
  --panel: #0c0f15;
  --panel-2: #10141c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --muted: #8d95a4;
  --dim: #5a6170;

  --c1: #2cf5c8;
  --c2: #7b61ff;
  --c3: #c8ff3d;
  --grad: linear-gradient(100deg, var(--c1) 0%, #4fb8ff 50%, var(--c2) 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--c1); color: var(--bg); }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }
[class*="__icon"] svg, .btn svg, .socials svg, .to-top svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 2. Utilities ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c1);
  margin-bottom: 20px;
}
.eyebrow .mono { color: var(--muted); letter-spacing: 0; }
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 52ch; }

.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 10px var(--c1);
  flex-shrink: 0;
}
.pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--c1);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.plus { position: absolute; width: 14px; height: 14px; opacity: 0.45; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--muted); }
.plus::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.plus::after { top: 50%; left: 0; right: 0; height: 1px; }

.glass {
  background: rgba(14, 17, 24, 0.62);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

/* Buttons */
.btn {
  --t-extra: transform 0.45s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 8px 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: var(--t-extra);
  isolation: isolate;
}
.btn__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  transition: transform 0.45s var(--ease), background 0.3s;
}
.btn__icon svg { width: 18px; height: 18px; }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn--primary {
  color: #041210;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 40px -10px rgba(44, 245, 200, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary .btn__icon { background: rgba(6, 7, 10, 0.18); }
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 14px 50px -8px rgba(123, 97, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); padding: 0 26px; }
.btn--ghost .btn__icon { width: auto; height: auto; margin-right: -6px; }
.btn--ghost:hover { border-color: var(--c1); background: rgba(44, 245, 200, 0.06); }
.btn--sm { height: 44px; padding: 0 6px 0 18px; font-size: 14px; }
.btn--sm .btn__icon { width: 34px; height: 34px; }
.btn--block { width: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- 3. Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  z-index: 10000;
  display: grid; place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-out);
  animation: preloader-failsafe 0.01s 6s forwards;
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; } }
.no-js .preloader { display: none; }
.preloader__inner { width: min(320px, 80vw); display: grid; gap: 14px; justify-items: start; }
.preloader__logo { width: 44px; height: 44px; margin-bottom: 8px; animation: spin-y 2.4s var(--ease) infinite; }
@keyframes spin-y { to { transform: rotateY(360deg); } }
.preloader__text { font-size: 12px; color: var(--muted); letter-spacing: 0.14em; }
.preloader__count { font-size: clamp(56px, 12vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.preloader__bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--c1); }

/* ---------- 4. Cursor, progress, grain ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__ring {
  position: fixed; left: 0; top: 0;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s;
  will-change: transform;
}
.cursor__label { font: 600 12px/1 var(--font-mono); color: var(--bg); opacity: 0; transition: opacity 0.2s; letter-spacing: 0.04em; }
.cursor.is-hover .cursor__ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-color: var(--c1); background: rgba(44, 245, 200, 0.07); }
.cursor.has-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--c1); border-color: var(--c1); }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-hidden .cursor__ring { opacity: 0; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--c1); }

.grain {
  position: fixed; inset: 0;
  z-index: 999;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 5. Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: translate 0.5s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 7, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { translate: 0 -100%; }
.nav__inner {
  height: 100%;
  max-width: calc(1400px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.logo__mark { width: 30px; height: 30px; transition: transform 0.8s var(--ease); }
.logo:hover .logo__mark { transform: rotate(360deg); }
.logo__text span { color: var(--c1); }

.nav__links {
  display: flex; gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 15, 21, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav__links a {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 14px; height: 2px; margin-left: -7px;
  border-radius: 2px; background: var(--c1); box-shadow: 0 0 8px var(--c1);
}
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__clock {
  display: grid;
  font-size: 10.5px; line-height: 1.35;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--c3);
}
.nav__clock span { color: var(--dim); }
.nav__clock b { font-weight: 500; }
.lang {
  display: flex; padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 11.5px/1 var(--font-mono);
}
.lang span { padding: 7px 9px; border-radius: 999px; color: var(--dim); transition: background 0.25s, color 0.25s; }
html[lang="sq"] .lang [data-lang="sq"], html[lang="en"] .lang [data-lang="en"] { background: var(--text); color: var(--bg); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 990;
  background: rgba(6, 7, 10, 0.985);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(100px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left));
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path 0.7s var(--ease-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 10vw, 56px); letter-spacing: -0.03em; line-height: 1.15;
  opacity: 0; translate: 0 30px;
  transition: opacity 0.5s, translate 0.6s var(--ease);
}
.mobile-menu a .mono { font-size: 13px; color: var(--c1); }
.menu-open .mobile-menu a { opacity: 1; translate: 0 0; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.2s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu__foot { margin-top: auto; color: var(--muted); font-size: 13px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px) 0 calc(110px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 20%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(110px); }
.glow--a { width: 620px; height: 620px; right: 6%; top: 8%; background: radial-gradient(circle, rgba(44, 245, 200, 0.38), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.glow--b { width: 560px; height: 560px; right: 26%; bottom: -12%; background: radial-gradient(circle, rgba(123, 97, 255, 0.42), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }
.hero__beam { position: absolute; right: 0; top: 0; height: 100%; width: 26%; overflow: visible; }
.hero__beam path {
  fill: none;
  stroke: var(--c1);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px var(--c1)) drop-shadow(0 0 18px rgba(44, 245, 200, 0.6));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  opacity: 0.55;
  transition: stroke-dashoffset 2.4s var(--ease-out) 0.6s;
}
.is-loaded .hero__beam path { stroke-dashoffset: 0; }
.hero__watermark {
  position: absolute; left: -1vw; bottom: -6vw;
  font-family: var(--font-display); font-weight: 700;
  font-size: 30vw; line-height: 0.8; letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  user-select: none;
}

.hero__visual { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 1; }
.hero__visual canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__visual.is-ready canvas { opacity: 1; }
.hero__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.6s;
}
.hero__fallback svg { width: 38%; height: auto; stroke: url(#grad-brand); fill: none; stroke-width: 1.1; filter: drop-shadow(0 0 30px rgba(44, 245, 200, 0.5)); animation: float 6s ease-in-out infinite; }
.hero__visual.no-webgl .hero__fallback { opacity: 1; }
@keyframes float { 50% { transform: translateY(-14px); } }

.hud { position: absolute; inset: 15% 7% 15% 10%; pointer-events: none; opacity: 0; transition: opacity 1s 0.8s; }
.is-loaded .hud { opacity: 1; }
.hud__corner { position: absolute; width: 18px; height: 18px; border: 1px solid rgba(44, 245, 200, 0.6); }
.hud__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud__tag { position: absolute; font-size: 11px; color: var(--muted); }
.hud__tag b { color: var(--c1); font-weight: 500; }
.hud__tag--tl { top: -26px; left: 0; }
.hud__tag--tr { top: -26px; right: 0; color: var(--dim); }
.hud__coords {
  position: absolute; right: 0; bottom: -84px;
  display: grid; gap: 2px;
  font-size: 11px; color: var(--c3);
  padding: 8px 12px;
  border: 1px solid rgba(200, 255, 61, 0.35);
  background: rgba(200, 255, 61, 0.04);
}
.hud__coords b { font-weight: 500; }

.float-card { position: absolute; border-radius: 16px; padding: 14px 16px; opacity: 0; translate: 0 20px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.is-loaded .float-card { opacity: 1; translate: 0 0; }
.float-card__head { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.score-card { left: 4%; bottom: 13%; transition-delay: 1.1s; animation: float 7s ease-in-out infinite; }
.score-card__rings { display: flex; gap: 14px; }
.ring { position: relative; width: 52px; display: grid; justify-items: center; gap: 4px; }
.ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring circle:first-child { stroke: rgba(255, 255, 255, 0.08); }
.ring circle:last-child {
  stroke: var(--c1);
  stroke-linecap: round;
  stroke-dasharray: 97.4px;
  stroke-dashoffset: 97.4px;
  transition: stroke-dashoffset 1.8s var(--ease-out) 1.4s;
  filter: drop-shadow(0 0 4px rgba(44, 245, 200, 0.7));
}
.is-loaded .ring circle:last-child { stroke-dashoffset: calc((100 - var(--v)) * 0.974px); }
.ring b { position: absolute; top: 15px; font: 600 14px/22px var(--font-mono); width: 52px; text-align: center; }
.ring small { font: 10px/1 var(--font-mono); color: var(--muted); }
.deploy-card { right: 7%; top: 21%; display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 1.4; transition-delay: 1.3s; animation: float 8s ease-in-out -3s infinite; }
.deploy-card small { color: var(--muted); font-size: 10.5px; }
.deploy-card__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(44, 245, 200, 0.14); color: var(--c1); }
.deploy-card__icon svg { width: 16px; height: 16px; stroke-width: 2.2; }

.hero__inner { position: relative; z-index: 2; pointer-events: none; }
.hero__content { max-width: 660px; pointer-events: auto; }
.hero__eyebrow { color: var(--text); letter-spacing: 0.08em; font-size: 12px; padding: 8px 14px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12, 15, 21, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-bottom: 28px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.line { display: block; overflow: hidden; padding: 0.02em 0 0.08em; margin-bottom: -0.08em; }
.line__in { display: block; }
.hero__word { display: inline-block; min-width: 1ch; }
.hero__word.is-scrambling { font-family: var(--font-display); }
.hero__sub { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); max-width: 50ch; margin-bottom: 36px; }
.hero__sub strong { color: var(--text); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.hero__meta b { color: var(--text); font-family: var(--font-display); font-size: 18px; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  display: grid; place-items: center;
  font: 700 12px/1 var(--font-display);
  color: #051311;
  background: linear-gradient(135deg, var(--a), var(--b));
  overflow: hidden;
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack img { width: 100%; height: 100%; object-fit: cover; }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 2;
  translate: -50% 0;
  display: grid; justify-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: 0.3em; color: var(--dim);
}
.scroll-cue__mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; display: grid; justify-items: center; padding-top: 6px; }
.scroll-cue__mouse i { width: 2px; height: 7px; border-radius: 2px; background: var(--c1); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Hero intro */
.js .line__in { translate: 0 110%; transition: translate 1.2s var(--ease-out); }
.js .line:nth-child(2) .line__in { transition-delay: 0.08s; }
.js .line:nth-child(3) .line__in { transition-delay: 0.16s; }
.js .line:nth-child(4) .line__in { transition-delay: 0.24s; }
.is-loaded .line__in { translate: 0 0; }
.js [data-intro] { opacity: 0; translate: 0 24px; transition: opacity 1s var(--ease), translate 1.1s var(--ease-out); }
.js .hero__eyebrow[data-intro] { transition-delay: 0s; }
.js .hero__sub[data-intro] { transition-delay: 0.4s; }
.js .hero__actions[data-intro] { transition-delay: 0.5s; }
.js .hero__meta[data-intro] { transition-delay: 0.6s; }
.is-loaded [data-intro] { opacity: 1; translate: 0 0; }

/* ---------- 7. Marquee ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex-shrink: 0; }
.marquee__list li {
  display: flex; align-items: center; gap: 44px;
  padding-right: 44px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee__list li::after { content: "✦"; font-size: 0.55em; color: var(--c1); opacity: 0.7; }
.marquee__list li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Features ---------- */
.features { padding-top: clamp(60px, 8vw, 100px); }
.features__panel {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
}
.feature { display: grid; gap: 18px; padding: 32px 28px; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; }
.feature__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--c1);
  box-shadow: inset 0 0 20px rgba(44, 245, 200, 0.06);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- 9. Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { max-width: 42ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .h2 { margin-bottom: 18px; }
.section-head--center .eyebrow { margin-bottom: 16px; }

/* ---------- 10. Cards (shared) ---------- */
.card {
  --t-extra: transform 0.5s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.4s;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: var(--t-extra);
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(44, 245, 200, 0.1), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.card::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(44, 245, 200, 0.9), rgba(123, 97, 255, 0.5) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before, .card:hover::after { opacity: 1; }

/* ---------- 11. Services ---------- */
.services__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 90px); }
.services__sticky { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; justify-items: start; }
.services__sticky .h2 { margin-bottom: 22px; }
.services__sticky .lead { margin-bottom: 32px; }
.quote-card {
  --t-extra: transform 0.4s var(--ease);
  position: relative;
  margin-top: 44px;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(44, 245, 200, 0.16), rgba(123, 97, 255, 0.22));
  border: 1px solid rgba(123, 97, 255, 0.35);
  overflow: hidden;
  width: 100%;
}
.quote-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1.5px);
  background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 70%);
  mask-image: radial-gradient(circle, #000, transparent 70%);
}
.quote-card__icon { width: 30px; height: 30px; fill: var(--c1); stroke: none; margin-bottom: 14px; opacity: 0.9; }
.quote-card blockquote { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 14px; }
.quote-card figcaption { font-size: 13px; color: rgba(238, 241, 246, 0.7); font-family: var(--font-mono); }

.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 290px; }
.service:nth-child(even) { translate: 0 40px; }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.service__icon {
  position: relative;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  color: var(--c1);
  background: rgba(44, 245, 200, 0.06);
  border: 1px solid rgba(44, 245, 200, 0.25);
  transition: transform 0.6s var(--ease), background 0.3s, color 0.3s;
}
.service__icon svg { width: 26px; height: 26px; }
.service:hover .service__icon { transform: translateZ(30px) rotate(-8deg) scale(1.06); background: var(--c1); color: var(--bg); }
.service__num { font-size: 13px; color: var(--dim); }
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.service p { color: var(--muted); font-size: 15px; flex: 1; }
.service--hot { border-color: rgba(200, 255, 61, 0.3); background: linear-gradient(180deg, rgba(200, 255, 61, 0.06), rgba(255, 255, 255, 0.01)); }
.service--hot .service__icon { color: var(--c3); border-color: rgba(200, 255, 61, 0.35); background: rgba(200, 255, 61, 0.07); }
.service--hot:hover .service__icon { background: var(--c3); color: var(--bg); }
.service__badge {
  position: absolute; top: 20px; right: 56px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 9px; border-radius: 6px;
  color: var(--bg); background: var(--c3);
  box-shadow: 0 0 20px rgba(200, 255, 61, 0.35);
}

/* ---------- 12. Team ---------- */
.team { overflow: hidden; }
.team__watermark {
  position: absolute; top: 10%; right: -2vw;
  writing-mode: vertical-rl;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(120px, 16vw, 240px); line-height: 0.8; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  pointer-events: none; user-select: none;
}
.team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }

.member {
  --t-extra: transform 0.5s var(--ease), border-color 0.35s, box-shadow 0.4s, background 0.35s;
  position: relative;
  display: flex; flex-direction: column;
  text-align: left;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: var(--t-extra);
  isolation: isolate;
}
.member::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.09), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.member:hover::after { opacity: 1; }
.member:hover { border-color: var(--line-2); }
.member.is-active {
  border-color: color-mix(in srgb, var(--a) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 30%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--a) 55%, transparent);
}
.member__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 55%, color-mix(in srgb, var(--a) 28%, transparent), transparent 70%),
    radial-gradient(60% 50% at 80% 100%, color-mix(in srgb, var(--b) 30%, transparent), transparent 70%),
    #0b0e14;
}
.member__media::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 70%);
}
.member__orb {
  position: absolute; left: 50%; top: 52%;
  width: 52%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 700 clamp(30px, 3.4vw, 50px)/1 var(--font-display);
  letter-spacing: -0.04em;
  color: rgba(6, 7, 10, 0.85);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.75), transparent 32%),
    linear-gradient(145deg, var(--a), var(--b));
  box-shadow: 0 20px 50px -10px color-mix(in srgb, var(--a) 60%, transparent), inset -10px -14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.7s var(--ease);
}
.member__orb::before {
  content: ""; position: absolute; inset: -12%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--a) 60%, transparent);
  animation: spin 18s linear infinite;
}
.member__orb::after {
  content: ""; position: absolute; inset: -24%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--a);
  border-right-color: color-mix(in srgb, var(--b) 50%, transparent);
  animation: spin 6s linear infinite reverse;
  opacity: 0.8;
}
@keyframes spin { to { transform: rotate(360deg); } }
.member:hover .member__orb { transform: scale(1.06) translateY(-4px); }
.member__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; filter: grayscale(1) contrast(1.05) brightness(0.9); transition: filter 0.6s, transform 0.8s var(--ease); }
.member:hover .member__photo, .member.is-active .member__photo { filter: none; transform: scale(1.04); }
.member__media--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 7, 10, 0.85)), linear-gradient(135deg, color-mix(in srgb, var(--a) 25%, transparent), transparent 60%);
  mix-blend-mode: normal;
}
.member__index { position: absolute; top: 16px; left: 18px; z-index: 2; font: 500 12px var(--font-mono); color: var(--muted); }
.member__media--photo .member__index { top: 12px; left: 12px; padding: 4px 8px; border-radius: 999px; color: var(--text); background: rgba(6, 7, 10, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.member__status {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font: 500 10.5px/1 var(--font-mono);
  background: rgba(6, 7, 10, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
.member__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 8px var(--c1); }
.member__status.is-busy i { background: #f5b52c; box-shadow: 0 0 8px #f5b52c; }
.member__status.is-example { color: var(--muted); border-style: dashed; }
.member__status.is-example i { background: var(--dim); box-shadow: none; }
.member__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; flex: 1; }
.member__role { font: 500 11.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--a); }
.member__name { font: 600 23px/1.2 var(--font-display); letter-spacing: -0.02em; }
.member__skills { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 14px; }
.member__skills span { font: 11px var(--font-mono); padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.member__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.member__foot b { color: var(--text); font-family: var(--font-display); }
.member__arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease); }
.member__arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.member:hover .member__arrow { transform: rotate(45deg); }
.member.is-active .member__arrow { background: var(--a); border-color: var(--a); color: var(--bg); transform: rotate(90deg); }

/* Dossier */
.dossier {
  position: relative;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  isolation: isolate;
  outline: none;
}
.dossier::before {
  content: ""; position: absolute; z-index: -1;
  width: 700px; height: 700px; left: -250px; top: -350px;
  background: radial-gradient(circle, color-mix(in srgb, var(--a, var(--c1)) 22%, transparent), transparent 65%);
  transition: background 0.6s;
}
.dossier__inner { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: clamp(22px, 3.2vw, 44px); }
.dossier__bar {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px clamp(22px, 3.2vw, 44px);
  border-bottom: 1px solid var(--line);
  font: 11px var(--font-mono); letter-spacing: 0.1em; color: var(--dim);
}
.dossier__bar b { color: var(--a); font-weight: 500; }
.dossier__profile { display: grid; align-content: start; gap: 18px; }
.dossier__id { display: flex; align-items: center; gap: 16px; }
.dossier__avatar {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: 22px;
  display: grid; place-items: center;
  font: 700 26px/1 var(--font-display);
  color: rgba(6, 7, 10, 0.85);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.6), transparent 35%), linear-gradient(145deg, var(--a), var(--b));
  overflow: hidden;
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--a) 60%, transparent);
}
.dossier__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dossier__name { font: 600 clamp(26px, 2.6vw, 34px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.dossier__role { font: 500 12px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--a); margin-top: 6px; }
.dossier__bio { color: var(--muted); font-size: 15.5px; }
.dossier__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dossier__stat { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.dossier__stat b { display: block; font: 600 28px/1.1 var(--font-display); letter-spacing: -0.03em; }
.dossier__stat span { font-size: 12.5px; color: var(--muted); }
.dossier__stack h4 { font: 500 11px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.socials a:hover { color: var(--bg); background: var(--c1); border-color: var(--c1); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.dossier__projects-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.dossier__projects-head h4 { font: 600 20px var(--font-display); letter-spacing: -0.02em; }
.dossier__projects-head span { font: 12px var(--font-mono); color: var(--dim); }
.dossier__projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dossier__projects.is-single { grid-template-columns: minmax(0, 1fr); }
.dossier [data-anim] { animation: dossier-in 0.7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes dossier-in { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

.project {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.project:hover { border-color: color-mix(in srgb, var(--p1) 50%, transparent); transform: translateY(-4px); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--p1) 50%, transparent); }
.project__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; }
.project__thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project:hover .project__thumb > img { transform: scale(1.05); }
.project__wip {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: #1a1204; background: #f5b52c;
  padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 4px 16px -4px rgba(245, 181, 44, 0.6);
}
.project__wip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(1) infinite; }
.work-card__thumb .project__wip { top: 14px; right: 14px; }
.dossier__avatar img, .avatar-stack img { object-position: 50% 20%; }
.project__year { position: absolute; top: 10px; left: 12px; z-index: 2; font: 500 11px var(--font-mono); color: rgba(255, 255, 255, 0.7); padding: 3px 8px; border-radius: 6px; background: rgba(6, 7, 10, 0.55); }
.project__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.project__cat { font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--p1); }
.project__title { font: 600 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.project__desc { color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.project .tags { margin-top: 6px; }
.project__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font: 500 13px var(--font-mono);
  color: var(--text);
}
.project__link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.3s var(--ease); }
.project__link:hover { color: var(--p1); }
.project__link:hover svg { transform: translate(3px, -3px); }

.dossier__langs { display: grid; gap: 4px; font-size: 14.5px; }
.dossier__langs span { color: var(--muted); }

/* CV */
.cv { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.dossier__work > .cv:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cv__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cv__tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px; color: var(--muted);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.cv__tab span { font: 500 11px var(--font-mono); padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.cv__tab:hover { color: var(--text); border-color: var(--muted); }
.cv__tab.is-active { color: var(--bg); background: var(--a, var(--c1)); border-color: var(--a, var(--c1)); }
.cv__tab.is-active span { background: rgba(6, 7, 10, 0.18); }
.cv__list { position: relative; display: grid; gap: 2px; }
.cv__list::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.cv__item {
  position: relative;
  display: grid; grid-template-columns: minmax(120px, 150px) minmax(0, 1fr); gap: 4px 20px;
  padding: 12px 0 12px 26px;
  animation: cv-in 0.45s var(--ease-out) both;
}
.cv__item:nth-child(2) { animation-delay: 0.03s; }
.cv__item:nth-child(3) { animation-delay: 0.06s; }
.cv__item:nth-child(4) { animation-delay: 0.09s; }
.cv__item:nth-child(n + 5) { animation-delay: 0.12s; }
@keyframes cv-in { from { opacity: 0; transform: translateY(8px); } }
.cv__item::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--panel); border: 1.5px solid var(--dim);
}
.cv__item.is-live::before { border-color: var(--a, var(--c1)); background: var(--a, var(--c1)); box-shadow: 0 0 10px var(--a, var(--c1)); }
.cv__item.no-when { grid-template-columns: minmax(0, 1fr); }
.cv--stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; align-items: start; }
.cv__heading { display: flex; align-items: center; gap: 8px; font: 500 11px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.cv__heading span { padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); letter-spacing: 0; }
.cv--stack .cv__item { padding-block: 9px; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 16px; }
.cv--stack .cv__item.no-when { grid-template-columns: minmax(0, 1fr); }
.cv--stack .cv__item::before { top: 15px; }
@media (max-width: 1180px) { .cv--stack { grid-template-columns: minmax(0, 1fr); } }
.cv__when { font: 500 12px/1.9 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.cv__item.is-live .cv__when { color: var(--a, var(--c1)); }
.cv__what { display: grid; gap: 2px; min-width: 0; }
.cv__what b { font: 600 16px/1.35 var(--font-display); letter-spacing: -0.01em; }
.cv__what span { color: var(--muted); font-size: 14px; }
.cv__what small { color: var(--dim); font-size: 13px; }
.cv__more {
  margin: 10px 0 0 26px;
  font: 500 12.5px var(--font-mono); letter-spacing: 0.04em;
  color: var(--a, var(--c1));
  padding: 6px 0;
  border-bottom: 1px dashed currentColor;
}
@media (max-width: 640px) {
  .cv__item, .cv--stack .cv__item { grid-template-columns: minmax(0, 1fr); }
  .cv__when { line-height: 1.4; }
  .cv__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px; }
  .cv__tabs::-webkit-scrollbar { display: none; }
  .cv__tab { white-space: nowrap; flex-shrink: 0; }
}

/* ---------- 13. Mockups (thumbs pa foto) ---------- */
.mock {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  perspective: 900px;
  background:
    radial-gradient(90% 70% at 85% 0%, color-mix(in srgb, var(--p1) 38%, transparent), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--p2) 34%, transparent), transparent 60%),
    #0b0e14;
  overflow: hidden;
}
.mock::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px);
  background-size: 4cqw 4cqw;
  -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000);
  mask-image: linear-gradient(135deg, transparent 30%, #000);
  opacity: 0.5;
}
.mock__browser {
  position: relative;
  width: 80%;
  border-radius: 2cqw;
  background: #0f131b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6cqw 12cqw -4cqw rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: rotateX(14deg) rotateY(-12deg) rotateZ(2deg) translateY(8%);
  transition: transform 0.8s var(--ease);
  overflow: hidden;
}
.project:hover .mock__browser, .work-card:hover .mock__browser { transform: rotateX(4deg) rotateY(-3deg) rotateZ(0) translateY(4%) scale(1.04); }
.mock__bar { display: flex; align-items: center; gap: 0.9cqw; height: 4.4cqw; padding: 0 2cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); }
.mock__bar i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.mock__bar i:first-child { background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; }
.mock__bar i:nth-child(3) { background: #28c840; }
.mock__url { margin-left: 2cqw; padding: 0.3cqw 2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.05); font: 1.7cqw/1.4 var(--font-mono); color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.mock__body { display: grid; gap: 2cqw; padding: 2.6cqw; }
.mock__nav { display: flex; align-items: center; gap: 1.6cqw; }
.mock__nav b { width: 8cqw; height: 1.8cqw; border-radius: 1cqw; background: linear-gradient(90deg, var(--p1), var(--p2)); }
.mock__nav i { width: 5cqw; height: 1cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.14); }
.mock__nav i:first-of-type { margin-left: auto; }
.mock__nav s { width: 7cqw; height: 2.4cqw; border-radius: 3cqw; background: var(--p1); text-decoration: none; }
.mock__hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3cqw; align-items: center; padding: 2cqw 0; }
.mock__lines { display: grid; gap: 1.3cqw; }
.mock__lines i { height: 2.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.85); }
.mock__lines i:nth-child(2) { width: 75%; background: linear-gradient(90deg, var(--p1), var(--p2)); }
.mock__lines i:nth-child(3) { width: 90%; height: 1.1cqw; background: rgba(255, 255, 255, 0.18); margin-top: 1cqw; }
.mock__lines i:nth-child(4) { width: 60%; height: 1.1cqw; background: rgba(255, 255, 255, 0.18); }
.mock__lines s { width: 13cqw; height: 3.6cqw; margin-top: 1.4cqw; border-radius: 3cqw; background: linear-gradient(90deg, var(--p1), var(--p2)); text-decoration: none; box-shadow: 0 1cqw 4cqw -1cqw var(--p1); }
.mock__blob { aspect-ratio: 1; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 30%), linear-gradient(145deg, var(--p1), var(--p2)); box-shadow: 0 3cqw 8cqw -2cqw var(--p2); animation: blob 8s ease-in-out infinite; }
@keyframes blob { 50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; transform: rotate(12deg); } }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.mock__cards i { height: 9cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); position: relative; }
.mock__cards i::before { content: ""; position: absolute; left: 1.4cqw; top: 1.4cqw; width: 3cqw; height: 3cqw; border-radius: 0.8cqw; background: color-mix(in srgb, var(--p1) 60%, transparent); }
.mock__cards i::after { content: ""; position: absolute; left: 1.4cqw; right: 3cqw; bottom: 1.6cqw; height: 1cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.15); }

.mock__shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; }
.mock__product { display: grid; gap: 1cqw; }
.mock__product b { aspect-ratio: 1; border-radius: 1.4cqw; background: rgba(255, 255, 255, 0.05); position: relative; overflow: hidden; }
.mock__product b::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 35%), linear-gradient(145deg, var(--p1), var(--p2)); }
.mock__product:nth-child(2) b::after { border-radius: 24%; }
.mock__product:nth-child(3) b::after { inset: 18% 30%; border-radius: 3cqw; }
.mock__product:nth-child(4) b::after { border-radius: 50% 50% 12% 12%; }
.mock__product i { height: 1cqw; width: 80%; border-radius: 1cqw; background: rgba(255, 255, 255, 0.2); }
.mock__product s { height: 1.4cqw; width: 40%; border-radius: 1cqw; background: var(--p1); text-decoration: none; }
.mock__banner { height: 11cqw; border-radius: 1.6cqw; background: linear-gradient(110deg, color-mix(in srgb, var(--p1) 80%, #000), color-mix(in srgb, var(--p2) 70%, #000)); position: relative; overflow: hidden; }
.mock__banner::before { content: ""; position: absolute; left: 3cqw; top: 3cqw; width: 30%; height: 2.2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.9); box-shadow: 0 3.4cqw 0 -0.6cqw rgba(255, 255, 255, 0.4); }
.mock__banner::after { content: ""; position: absolute; right: 6cqw; top: 50%; width: 7cqw; height: 7cqw; translate: 0 -50%; border-radius: 50%; border: 0.8cqw solid rgba(255, 255, 255, 0.5); }

.mock__dash { display: grid; grid-template-columns: 12cqw 1fr; gap: 2cqw; padding: 2.4cqw; }
.mock__side { display: grid; align-content: start; gap: 1.6cqw; padding-right: 1.6cqw; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.mock__side b { height: 2cqw; width: 80%; border-radius: 1cqw; background: linear-gradient(90deg, var(--p1), var(--p2)); margin-bottom: 1cqw; }
.mock__side i { height: 1.1cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.14); }
.mock__side i:nth-child(3) { background: var(--p1); width: 70%; }
.mock__main { display: grid; gap: 1.8cqw; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; }
.mock__kpis i { height: 7cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); position: relative; }
.mock__kpis i::after { content: ""; position: absolute; left: 1.2cqw; bottom: 1.2cqw; width: 50%; height: 2cqw; border-radius: 0.6cqw; background: rgba(255, 255, 255, 0.75); }
.mock__kpis i:first-child::after { background: var(--p1); }
.mock__chart { height: 17cqw; display: flex; align-items: flex-end; gap: 1.2cqw; padding: 1.6cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.mock__chart i { flex: 1; border-radius: 0.6cqw 0.6cqw 0 0; background: linear-gradient(180deg, var(--p1), color-mix(in srgb, var(--p2) 50%, transparent)); transform-origin: bottom; animation: bar 3.2s var(--ease) infinite alternate; }
.mock__chart i:nth-child(odd) { animation-delay: -1.2s; }
.mock__chart i:nth-child(3n) { animation-delay: -2.1s; opacity: 0.7; }
@keyframes bar { from { transform: scaleY(0.55); } }

.mock__phones { position: relative; display: flex; gap: 5cqw; align-items: center; transform: rotateX(12deg) rotateY(-14deg) rotateZ(4deg); transition: transform 0.8s var(--ease); }
.project:hover .mock__phones, .work-card:hover .mock__phones { transform: rotateX(4deg) rotateY(-4deg) rotateZ(0) scale(1.04); }
.mock__phone { width: 22cqw; aspect-ratio: 9 / 18.5; border-radius: 3.6cqw; padding: 0.9cqw; background: #151a24; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 5cqw 10cqw -3cqw rgba(0, 0, 0, 0.85); }
.mock__phone:nth-child(2) { translate: 0 8cqw; }
.mock__screen { position: relative; height: 100%; border-radius: 2.8cqw; overflow: hidden; background: #0b0e14; display: grid; align-content: start; gap: 1.4cqw; padding: 3.6cqw 1.8cqw 1.8cqw; }
.mock__screen::before { content: ""; position: absolute; top: 1.1cqw; left: 50%; width: 6cqw; height: 1.4cqw; margin-left: -3cqw; border-radius: 1cqw; background: #000; }
.mock__screen b { height: 11cqw; border-radius: 2cqw; background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.4), transparent 40%), linear-gradient(140deg, var(--p1), var(--p2)); }
.mock__screen i { height: 4.4cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, 0.06); position: relative; }
.mock__screen i::before { content: ""; position: absolute; left: 1cqw; top: 1cqw; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: color-mix(in srgb, var(--p1) 70%, transparent); }
.mock__screen i::after { content: ""; position: absolute; left: 4.4cqw; right: 2cqw; top: 1.9cqw; height: 0.8cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.2); }
.mock__screen s { position: absolute; left: 1.8cqw; right: 1.8cqw; bottom: 1.8cqw; height: 4cqw; border-radius: 2cqw; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.mock__ring { width: 13cqw; aspect-ratio: 1; margin: 1cqw auto; border-radius: 50%; background: conic-gradient(var(--p1) 0 72%, rgba(255, 255, 255, 0.08) 0); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); }

/* ---------- 14. Work (horizontal) ---------- */
.work { position: relative; }
.work__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); overflow: hidden; padding-top: calc(var(--nav-h) * 0.6); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.work__head .eyebrow { margin-bottom: 14px; }
.work__progress { display: grid; gap: 10px; justify-items: end; font-size: 12px; color: var(--muted); min-width: 180px; }
.work__bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; }
.work__bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.work__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  width: max-content;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2));
  will-change: transform;
}
.work-card {
  position: relative;
  flex-shrink: 0;
  width: clamp(290px, 40vw, 600px);
  display: flex; flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.work-card:hover { border-color: color-mix(in srgb, var(--p1) 45%, transparent); }
.work-card__thumb { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; container-type: inline-size; }
.work-card__thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work-card:hover .work-card__thumb > img { transform: scale(1.05); }
.work-card__meta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; border-top: 1px solid var(--line); }
.work-card__num { font: 500 13px var(--font-mono); color: var(--dim); }
.work-card__title { font: 600 clamp(19px, 1.7vw, 24px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.work-card__sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.work-card__sub .dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.work-card__by { display: inline-flex; align-items: center; gap: 6px; }
.work-card__by i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); display: inline-block; }
.work-card__go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease), border-color 0.3s; }
.work-card__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.work-card:hover .work-card__go { background: var(--p1); border-color: var(--p1); color: var(--bg); transform: rotate(45deg); }
.work-card--intro {
  justify-content: space-between;
  padding: clamp(24px, 3vw, 40px);
  width: clamp(260px, 26vw, 380px);
  background: linear-gradient(160deg, rgba(44, 245, 200, 0.12), rgba(123, 97, 255, 0.14)), var(--panel);
  border-color: rgba(123, 97, 255, 0.3);
}
.work-card--intro p { color: var(--muted); font-size: 16px; }
.work-card--intro .big { font: 700 clamp(64px, 7vw, 110px)/0.9 var(--font-display); letter-spacing: -0.05em; }
.work-card--intro .hint { display: flex; align-items: center; gap: 10px; font: 12px var(--font-mono); color: var(--c1); letter-spacing: 0.08em; text-transform: uppercase; }
.work-card--intro .hint .hint--touch { display: none; }
@media (max-width: 980px) {
  .work-card--intro .hint .hint--desk { display: none; }
  .work-card--intro .hint .hint--touch { display: inline; }
}
.work-card--intro .hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ---------- 15. Process ---------- */
.process__rail { position: relative; margin-top: clamp(20px, 4vw, 40px); }
.process__line { position: absolute; left: 10%; right: 10%; top: 28px; height: 2px; background: var(--line); }
.process__line i { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 14px rgba(44, 245, 200, 0.7); }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { display: grid; justify-items: center; align-content: start; text-align: center; gap: 10px; padding: 0 6px; }
.step__node {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line-2);
  transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease);
}
.step.is-active .step__node { color: var(--bg); background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(44, 245, 200, 0.08), 0 0 34px rgba(44, 245, 200, 0.45); transform: scale(1.08); }
.step h3 { font: 600 20px var(--font-display); letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 26ch; }
.step__meta { font-size: 11.5px; color: var(--c1); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(44, 245, 200, 0.25); background: rgba(44, 245, 200, 0.05); }

/* ---------- 16. Stats ---------- */
.stats__panel {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  position: relative;
  overflow: hidden;
}
.stats__panel::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c1), var(--c2), transparent); opacity: 0.7; }
.stat { display: grid; justify-items: center; text-align: center; gap: 8px; padding: clamp(28px, 4vw, 48px) 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__icon { color: var(--c1); margin-bottom: 6px; }
.stat__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.stat__num { font: 700 clamp(40px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat__label { font: 500 12px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- 17. Contact ---------- */
.cta-card {
  position: relative;
  display: flex; align-items: center; gap: clamp(28px, 5vw, 70px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  border: 1px solid rgba(123, 97, 255, 0.3);
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(123, 97, 255, 0.25), transparent 60%),
    radial-gradient(50% 100% at 100% 0%, rgba(44, 245, 200, 0.14), transparent 60%),
    var(--panel);
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.cta-card::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.cta-card__text { position: relative; z-index: 1; }
.cta-card .h2 { font-size: clamp(32px, 4.4vw, 58px); }
.cta-card .h2 .grad { white-space: nowrap; }
.cube-wrap { --s: clamp(110px, 12vw, 160px); position: relative; z-index: 1; width: var(--s); height: var(--s); perspective: 700px; flex-shrink: 0; margin: 10px; }
.cube-wrap::before { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(123, 97, 255, 0.5), transparent 65%); filter: blur(20px); }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: tumble 16s linear infinite; }
.cube__face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(44, 245, 200, 0.55);
  background: linear-gradient(135deg, rgba(44, 245, 200, 0.1), rgba(123, 97, 255, 0.16));
  box-shadow: inset 0 0 40px rgba(123, 97, 255, 0.35), 0 0 20px rgba(44, 245, 200, 0.15);
  color: var(--c1);
  border-radius: 12px;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
}
.cube__face svg { width: 38%; height: 38%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(44, 245, 200, 0.6)); }
.cube__face--front { transform: translateZ(calc(var(--s) / 2)); }
.cube__face--back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube__face--right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube__face--left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube__face--top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes tumble { from { transform: rotateX(-24deg) rotateY(0deg) rotateZ(0deg); } to { transform: rotateX(336deg) rotateY(360deg) rotateZ(360deg); } }

.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__info { display: grid; gap: 28px; }
.contact__list { display: grid; gap: 10px; }
.contact__list a, .contact__list div {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background 0.3s;
}
.contact__list a:hover { border-color: rgba(44, 245, 200, 0.4); background: rgba(44, 245, 200, 0.04); }
.contact__list small { display: block; font: 11px var(--font-mono); color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.contact__list b { font-weight: 500; font-size: 16px; }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(44, 245, 200, 0.08); color: var(--c1); flex-shrink: 0; }
.contact__icon svg { width: 20px; height: 20px; }

.status-panel { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.015); font-size: 11.5px; display: grid; gap: 12px; }
.status-panel__title { color: var(--text); letter-spacing: 0.12em; font-weight: 500; margin-bottom: 2px; }
.status-row { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 12px; color: var(--muted); }
.status-row b { color: var(--c3); font-weight: 500; text-align: right; }
.status-bar { height: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 4px); position: relative; }
.status-bar::after { content: ""; position: absolute; inset: 0; right: auto; width: calc(var(--v) * 100%); background: repeating-linear-gradient(90deg, var(--c3) 0 2px, transparent 2px 4px); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) 0.3s; }
.status-panel.is-in .status-bar::after, .no-js .status-bar::after { transform: scaleX(1); }
.status-ok { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(200, 255, 61, 0.3); background: rgba(200, 255, 61, 0.05); color: var(--c3); letter-spacing: 0.08em; }
.status-ok .pulse { background: var(--c3); box-shadow: 0 0 10px var(--c3); }
.status-ok .pulse::after { border-color: var(--c3); }

.form {
  display: grid; gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(6, 7, 10, 0.6);
  font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238d95a4' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--panel); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px rgba(44, 245, 200, 0.12); background: rgba(6, 7, 10, 0.85); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b81; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: all 0.25s; user-select: none; }
.chip:hover span { border-color: var(--muted); color: var(--text); }
.chip input:checked + span { color: var(--bg); background: var(--c1); border-color: var(--c1); box-shadow: 0 6px 20px -6px rgba(44, 245, 200, 0.6); }
.chip input:focus-visible + span { outline: 2px solid var(--c1); outline-offset: 3px; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form__status.is-ok { color: var(--c1); }
.form__status.is-err { color: #ff8a9b; }

/* ---------- 18. Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.contact { padding-bottom: clamp(70px, 9vw, 120px); }
.footer__top { display: flex; justify-content: space-between; gap: 48px; padding-top: 64px; padding-bottom: 32px; flex-wrap: wrap; }
.footer__brand { display: grid; gap: 16px; max-width: 320px; align-content: start; }
.footer__brand p { color: var(--muted); font-size: 15px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: clamp(28px, 5vw, 80px); }
.footer__cols h4 { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 16px; }
.footer__cols a { display: block; color: var(--muted); font-size: 15px; padding: 4px 0; transition: color 0.25s, translate 0.3s var(--ease); }
.footer__cols a:hover { color: var(--text); translate: 4px 0; }
.footer__socials a { display: flex; align-items: center; gap: 10px; }
.footer__socials svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__big {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21vw; line-height: 1; letter-spacing: -0.065em;
  text-align: center;
  white-space: nowrap;
  padding: 1vw 0 4vw;
  user-select: none;
}
.footer__big span:first-child { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14); }
.footer__big .grad { opacity: 0.9; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color 0.25s; }
.to-top svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.to-top:hover { color: var(--c1); }
.hazard {
  position: relative;
  min-height: 46px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: content-box;
  display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, var(--c1) 0 20px, var(--bg) 20px 40px);
  background-size: 56.57px 56.57px;
  animation: hazard 2.5s linear infinite;
}
@keyframes hazard { to { background-position: 56.57px 0; } }
.hazard__label { padding: 8px 26px; background: var(--bg); border: 1px solid var(--c1); font-size: 13px; letter-spacing: 0.12em; color: var(--c1); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }

/* ---------- 19. Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 44px;
  transition: opacity 0.9s var(--ease) var(--d, 0s), translate 1.1s var(--ease-out) var(--d, 0s), var(--t-extra, color 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .service[data-reveal]:nth-child(even) { translate: 0 84px; }
.js .service[data-reveal]:nth-child(even).is-in { translate: 0 40px; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1180px) {
  .nav__clock { display: none; }
  .nav__links a { padding: 8px 12px; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member__orb { width: 46%; }
}

@media (max-width: 980px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }

  .hero { flex-direction: column; align-items: stretch; padding-bottom: 60px; min-height: 0; }
  .hero__inner { order: 1; }
  .hero__visual { position: relative; order: 2; width: 100%; height: min(78vw, 520px); margin-top: 10px; }
  .hero__content { max-width: none; }
  .hud { inset: 10% 6%; }
  .hud__tag--tr { display: none; }
  .hud__coords { bottom: -8px; right: 0; translate: 0 100%; }
  .score-card { left: 2%; bottom: 4%; }
  .deploy-card { right: 3%; top: 6%; }
  .scroll-cue { display: none; }
  .hero__watermark { font-size: 42vw; bottom: auto; top: 44%; }
  .hero__beam { width: 40%; opacity: 0.6; }

  .features__panel { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .services__layout { grid-template-columns: 1fr; }
  .services__sticky { position: static; }
  .quote-card { display: none; }
  .service:nth-child(even), .js .service[data-reveal]:nth-child(even).is-in { translate: 0 0; }
  .js .service[data-reveal]:nth-child(even) { translate: 0 44px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head--center { align-items: center; }

  .dossier__inner { grid-template-columns: 1fr; }

  .work { height: auto !important; }
  .work__sticky { position: relative; height: auto; padding: clamp(80px, 12vw, 120px) 0 0; }
  .work__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work__progress { justify-items: start; }
  .work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
  .work__viewport::-webkit-scrollbar { display: none; }
  .work__track { transform: none !important; padding: 0 var(--gutter); }
  .work-card { width: min(82vw, 460px); scroll-snap-align: center; }
  .work-card--intro { width: min(70vw, 320px); }

  .process__line { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .process__line i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .process__steps { grid-template-columns: 1fr; gap: 36px; }
  .step { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 20px; row-gap: 6px; padding: 0; }
  .step__node { grid-row: span 3; margin: 0; }
  .step p { max-width: none; }

  .stats__panel { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .cta-card { flex-direction: column; align-items: flex-start; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__right { gap: 8px; }
  .hero__title { font-size: clamp(40px, 12.5vw, 64px); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__visual { height: 100vw; max-height: 460px; }
  .hero__eyebrow { font-size: 10px; letter-spacing: 0.04em; padding: 7px 12px 7px 10px; gap: 8px; }
  .hud__coords { display: none; }
  .work-card__num { display: none; }
  .work-card__meta { grid-template-columns: 1fr auto; padding: 16px 18px; }
  .score-card { transform: scale(0.82); transform-origin: left bottom; }
  .deploy-card { transform: scale(0.85); transform-origin: right top; }

  .features__panel { grid-template-columns: 1fr; }
  .feature { border-left: 0 !important; border-top: 1px solid var(--line); grid-template-columns: auto 1fr; align-items: start; padding: 22px; }
  .feature:first-child { border-top: 0; }

  .services__grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }

  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .member__orb { width: 50%; font-size: 26px; }
  .member__body { padding: 14px 14px 12px; }
  .member__name { font-size: 18px; }
  .member__role { font-size: 10px; }
  .member__skills { display: none; }
  .member__status { font-size: 0; padding: 6px; gap: 0; }
  .member__foot { font-size: 12px; padding-top: 10px; margin-top: 8px; }
  .member__arrow { width: 28px; height: 28px; }
  .dossier__projects { grid-template-columns: 1fr; }
  .dossier__bar span:last-child { display: none; }

  .form__row { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 90px 1fr 52px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}
