:root {
  --bg: #080809;
  --bg2: #0f0f11;
  --bg3: #161618;
  --fg: #f0ede8;
  --fg2: #8a887f;
  --fg3: #3a3835;
  --accent: #17AEFF;
  --accent2: #17AEFF;
  --border: rgba(240,237,232,0.08);
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-head);
  overflow-x: hidden;
  cursor: none;
  max-width: 1350px;
  margin: 0 auto;
}

/* ── CURSOR ── */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 40px; height: 40px;
  border: 1px solid rgba(240,237,232,0.3);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, width 0.3s ease, height 0.3s ease;
}
body:has(a:hover) #cursor, body:has(button:hover) #cursor { width: 24px; height: 24px; }
body:has(a:hover) #cursor-ring, body:has(button:hover) #cursor-ring { width: 64px; height: 64px; opacity: 0.4; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9990;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; z-index: 100;
  left: max(0px, calc(50vw - 675px));
  right: max(0px, calc(50vw - 675px));
  padding: 24px 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
  border-color: var(--border);
  background: rgba(8,8,9,0.85);
  backdrop-filter: blur(20px);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo img { width: 36px !important; height: 36px !important; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.05em;
  color: var(--fg2); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 13px; letter-spacing: 0.05em;
  color: var(--fg); text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--accent); background: rgba(100,220,130,0.05); }

/* ── SECTIONS ── */
section { position: relative; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  padding: 0 60px 60px;
  padding-top: 120px;
  align-items: center;
  gap: 60px;
  overflow: hidden;
}
.hero-left {}
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.hero-label::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--accent);
}
.hero-title {
  font-size: clamp(56px, 6vw, 92px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg2);
  max-width: 480px;
  margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; }
.btn-primary {
  padding: 16px 40px;
  background: var(--accent);
  color: #080809;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 2px;
  cursor: none;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-ghost {
  padding: 16px 32px;
  border: 1px solid var(--border);
  color: var(--fg2);
  font-family: var(--font-head);
  font-size: 14px; letter-spacing: 0.04em;
  border-radius: 2px;
  cursor: none;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--fg2); color: var(--fg); }

.hero-right {
  position: relative;
  height: 560px;
  display: flex; align-items: center; justify-content: center;
}
.hero-grid-vis {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-code-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
}
.code-header {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.r { background: #ff5f57; }
.code-dot.y { background: #febc2e; }
.code-dot.g { background: #28c840; }
.code-filename {
  margin-left: 8px;
  font-size: 11px; color: var(--fg3);
  letter-spacing: 0.05em;
}
.code-line {
  font-size: 13px; line-height: 2.0;
  white-space: pre;
  opacity: 0;
  animation: fadeInLine 0.3s ease forwards;
}
.code-line:nth-child(1)  { animation-delay: 0.2s; }
.code-line:nth-child(2)  { animation-delay: 0.5s; }
.code-line:nth-child(3)  { animation-delay: 0.8s; }
.code-line:nth-child(4)  { animation-delay: 1.1s; }
.code-line:nth-child(5)  { animation-delay: 1.4s; }
.code-line:nth-child(6)  { animation-delay: 1.7s; }
.code-line:nth-child(7)  { animation-delay: 2.0s; }
.code-line:nth-child(8)  { animation-delay: 2.3s; }
@keyframes fadeInLine { to { opacity: 1; } }
.c-kw { color: #c792ea; }
.c-fn { color: var(--accent2); }
.c-str { color: var(--accent); }
.c-cm { color: var(--fg3); }
.c-num { color: #f78c6c; }
.c-var { color: var(--fg); }

/* ── HERO 3D SCENE ── */
.hero-scene {
  position: absolute; inset: 0;
  perspective: 1400px;
  z-index: 2;
}
.scene-stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}
.float-card {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  transform-style: preserve-3d;
  will-change: transform;
}
.card-code   { top: 36px; left: 2%; width: 340px; padding: 0; --z: 40px;  animation: scFloatA 7s ease-in-out infinite; }
.card-metric { top: 0; right: 0; width: 188px; padding: 18px; --z: 90px;  animation: scFloatB 8s ease-in-out infinite; }
.card-deploy { bottom: 88px; left: 0; width: 272px; padding: 16px 18px; --z: 120px; animation: scFloatB 6.5s ease-in-out infinite; }
.card-pills  { bottom: 0; right: 4%; width: 222px; padding: 16px; --z: 60px; display: flex; flex-wrap: wrap; gap: 8px; animation: scFloatA 7.5s ease-in-out infinite; }

@keyframes scFloatA { 0%,100% { transform: translateZ(var(--z)) translateY(0); } 50% { transform: translateZ(var(--z)) translateY(-16px); } }
@keyframes scFloatB { 0%,100% { transform: translateZ(var(--z)) translateY(0); } 50% { transform: translateZ(var(--z)) translateY(14px); } }

/* code card */
.card-code .code-header { margin-bottom: 0; padding: 11px 14px; }
.sc-code {
  padding: 7px 16px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.0;
  white-space: pre;
}

/* metric card */
.sc-metric-label { font-size: 12px; color: var(--fg2); }
.sc-metric-value { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; color: var(--fg); }
.sc-metric-value span { color: var(--accent); font-size: 24px; }
.sc-spark { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 16px; }
.sc-spark span { flex: 1; background: linear-gradient(var(--accent), rgba(23,174,255,0.2)); border-radius: 3px 3px 0 0; opacity: 0.9; }

/* deploy card */
.sc-deploy-row { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--fg); }
.sc-deploy-dot { width: 9px; height: 9px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 4px rgba(40,200,64,0.18); }
.sc-deploy-text { flex: 1; }
.sc-deploy-badge { font-family: var(--font-mono); font-size: 10px; color: #3ddc6a; background: rgba(40,200,64,0.14); padding: 3px 8px; border-radius: 6px; }
.sc-deploy-bar { height: 6px; background: var(--bg3); border-radius: 6px; margin: 14px 0 10px; overflow: hidden; }
.sc-deploy-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; animation: scFill 4s ease-in-out infinite; }
.sc-deploy-sub { font-family: var(--font-mono); font-size: 11px; color: var(--fg3); }
@keyframes scFill { 0% { width: 0; } 60%,100% { width: 100%; } }

/* pills card */
.sc-pill { font-family: var(--font-mono); font-size: 12px; color: var(--fg2); background: var(--bg3); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }

.hero-stats {
  position: relative;
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg2);
  overflow: hidden;
  grid-column: 1 / -1;
  margin: 0 0 0 0;
}
.stat-item {
  flex: 1;
  padding: 28px 36px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 12px; letter-spacing: 0.05em;
  color: var(--fg2);
}

/* ── MARQUEE ── */
.marquee-wrap {
  margin-top: 120px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 24px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg3);
}
.marquee-item::after {
  content: '';
  display: block; width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SERVICES ── */
#services {
  padding: 140px 60px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: attr(data-num);
  color: var(--fg3);
}
.section-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 80px;
  max-width: 600px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 48px 40px;
  position: relative;
  transition: background 0.3s;
  cursor: none;
}
.service-card:hover { background: var(--bg2); }
.service-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
  color: var(--accent);
  transition: border-color 0.3s, background 0.3s;
}
.service-card:hover .service-icon {
  border-color: var(--accent);
  background: rgba(100,220,130,0.06);
}
.service-name {
  font-size: 20px; font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 14px; line-height: 1.7;
  color: var(--fg2);
}
.service-arrow {
  position: absolute; bottom: 40px; right: 40px;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg3);
  transition: all 0.3s;
  font-size: 14px;
}
.service-card:hover .service-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ── PROJECTS ── */
#projects {
  padding: 140px 60px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.projects-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px;
}
.projects-header .section-title { margin-bottom: 0; }
.projects-list { display: flex; flex-direction: column; gap: 0; }
.project-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  cursor: none;
  transition: padding-left 0.3s;
  position: relative;
  overflow: hidden;
}
.project-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent);
  opacity: 0.04;
  transition: width 0.4s ease;
}
.project-row:hover::before { width: 100%; }
.project-row:hover { padding-left: 12px; }
.project-num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--fg3);
  letter-spacing: 0.1em;
}
.project-info {}
.project-name {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.project-row:hover .project-name { color: var(--accent); }
.project-tech {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
  padding: 3px 10px;
  border: 1px solid var(--fg3);
  border-radius: 20px;
}
.project-type {
  font-size: 13px; color: var(--fg2);
  letter-spacing: 0.03em;
}
.project-link {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg3);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 16px;
}
.project-row:hover .project-link {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── PROCESS ── */
#process {
  padding: 140px 60px;
  border-top: 1px solid var(--border);
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 80px;
}
.process-left {}
.process-steps {}
.process-step {
  display: flex; gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: none;
  transition: padding-left 0.3s;
}
.process-step:hover { padding-left: 8px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.15em;
  min-width: 32px;
  padding-top: 4px;
}
.step-content {}
.step-name {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px; line-height: 1.7; color: var(--fg2);
}
.process-right {
  position: sticky;
  top: 120px;
  height: fit-content;
}
.process-visual {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.process-visual::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(23,174,255,0.12), transparent 70%);
  border-radius: 50%;
}
.pv-title {
  font-size: 13px; color: var(--fg2);
  margin-bottom: 36px;
  letter-spacing: 0.05em;
}
.pv-stack { display: flex; flex-direction: column; gap: 16px; }
.pv-row {
  display: flex; align-items: center; gap: 16px;
}
.pv-label {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--fg2);
  min-width: 100px;
  letter-spacing: 0.08em;
}
.pv-bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}
.pv-bar {
  height: 100%; border-radius: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pv-bar.animated { transform: scaleX(1); }
.pv-val {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--fg3);
  min-width: 36px; text-align: right;
}

/* ── TECH STACK ── */
#stack {
  padding: 140px 60px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 80px;
}
.stack-item {
  background: var(--bg2);
  padding: 36px 24px;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  transition: background 0.3s;
  cursor: none;
}
.stack-item:hover { background: var(--bg3); }
.stack-logo {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.stack-name {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--fg2);
  text-align: center;
}

/* ── TESTIMONIALS ── */
#testimonials {
  padding: 140px 60px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}
.testi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  position: relative;
  transition: border-color 0.3s;
}
.testi-card:hover { border-color: rgba(240,237,232,0.2); }
.testi-quote {
  font-size: 32px; line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}
.testi-text {
  font-size: 15px; line-height: 1.75;
  color: var(--fg2);
  margin-bottom: 32px;
}
.testi-author {
  display: flex; align-items: center; gap: 16px;
}
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.testi-role { font-size: 12px; color: var(--fg3); }

/* ── CTA ── */
#cta {
  padding: 160px 60px;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(23,174,255,0.07), transparent 70%);
  pointer-events: none;
}
.cta-label { margin-bottom: 24px; justify-content: center; }
.cta-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 32px;
}
.cta-title em {
  font-style: normal;
  color: var(--accent);
}
.cta-sub {
  font-size: 17px; color: var(--fg2);
  max-width: 480px; margin: 0 auto 56px;
  line-height: 1.7;
}
.cta-form {
  display: flex; gap: 12px;
  max-width: 500px; margin: 0 auto;
  position: relative; z-index: 1;
}
.cta-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 16px 20px;
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.cta-input::placeholder { color: var(--fg3); }
.cta-input:focus { border-color: var(--accent); }

/* ── FOOTER ── */
footer {
  padding: 80px 60px 60px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.0;
  text-transform: uppercase;
}
.footer-brand span { color: var(--accent); }
.footer-tagline {
  font-size: 14px;
  color: var(--fg3);
  max-width: 480px;
  line-height: 1.7;
}
.footer-copy {
  font-size: 12px;
  color: var(--fg3);
  margin-top: 8px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }

  nav {
    padding: 18px 20px;
  }
  .nav-links { gap: 10px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  #lk-btn { display: none; }

  #hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    padding: 100px 20px 40px;
    gap: 40px;
    min-height: auto;
  }
  .hero-left { min-width: 0; }
  .hero-title { font-size: clamp(40px, 11vw, 60px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { text-align: center; }
  .hero-right { height: 340px; }
  .hero-scene { perspective: 1000px; }
  .card-code   { width: 288px; left: 0; }
  .card-metric { width: 150px; }
  .card-deploy { width: 220px; bottom: 64px; }
  .card-pills  { width: 180px; bottom: 0; }
  .sc-code { font-size: 11px; }
  .sc-metric-value { font-size: 30px; }
  .hero-stats {
    grid-column: 1;
    flex-wrap: wrap;
    min-width: 0;
  }
  .stat-item {
    flex: 1 1 45%;
    min-width: 0;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-num { font-size: 28px; }

  .marquee-wrap { margin-top: 0; }

  #services, #projects, #process, #stack, #testimonials, #cta {
    padding: 80px 20px;
  }
  .section-title { font-size: clamp(28px, 7vw, 40px); margin-bottom: 40px; }

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

  .projects-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .project-row {
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
  }
  .project-type { display: none; }
  .project-name { font-size: 16px; }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-right { position: static; }

  .stack-grid { grid-template-columns: repeat(2, 1fr); }

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

  .cta-title { font-size: clamp(32px, 8vw, 52px); }
  .cta-form { flex-direction: column; }

  footer { padding: 48px 20px 40px; }

  #tweaks-panel { right: 12px; bottom: 12px; width: 200px; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  #hero { padding: 100px 40px 60px; gap: 40px; }
  nav { padding: 20px 40px; }
  #services, #projects, #process, #stack, #testimonials, #cta { padding: 100px 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-card:last-child { grid-column: 1 / -1; }
  footer { padding: 60px 40px; }
}

/* ── TWEAKS PANEL ── */
#tweaks-panel {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 1000;
  background: var(--bg2);
  border: 1px solid rgba(240,237,232,0.15);
  border-radius: 8px;
  padding: 20px;
  width: 240px;
  display: none;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
#tweaks-panel.open { display: block; }
.tweaks-title {
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fg2);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.tweak-row { margin-bottom: 16px; }
.tweak-row label {
  display: block;
  font-size: 11px; color: var(--fg3);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.tweak-swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tweak-swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tweak-swatch.active { border-color: white; }
.tweak-toggle {
  display: flex;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}
.tweak-opt {
  flex: 1; padding: 6px 0;
  font-size: 11px; text-align: center;
  cursor: pointer;
  color: var(--fg3);
  transition: all 0.2s;
  font-family: var(--font-mono);
}
.tweak-opt.active { background: var(--accent); color: #080809; }

/* stretched-link: делает весь project-row кликабельным через ссылку внутри */
.stretched-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: '';
}

/* ── ANIMATIONS ── */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
