/* Deneba Network — design tokens & base */

:root {
  /* Surfaces */
  --bg:            #07070C;
  --bg-2:          #0A0A12;
  --bg-3:          #0F0F1A;
  --surface:       rgba(255,255,255,0.04);
  --surface-2:     rgba(255,255,255,0.06);
  --surface-glass: rgba(20, 14, 38, 0.42);

  /* Borders */
  --hairline:      rgba(255,255,255,0.08);
  --hairline-2:    rgba(255,255,255,0.14);
  --border-violet: rgba(124, 58, 237, 0.28);

  /* Ink */
  --ink:           #ECECF2;
  --ink-2:         #B8B8C8;
  --ink-3:         #7A7A8C;
  --ink-4:         #4A4A5A;

  /* Brand */
  --violet-300:    #C4B5FD;
  --violet-400:    #A855F7;
  --violet-500:    #8B5CF6;
  --violet-600:    #7C3AED;
  --violet-700:    #6D28D9;

  --cyan-300:      #67E8F9;
  --cyan-400:      #22D3EE;
  --cyan-500:      #06B6D4;

  /* Gradients */
  --grad-violet:   linear-gradient(135deg, #7C3AED 0%, #A855F7 60%, #C4B5FD 100%);
  --grad-cyan:     linear-gradient(135deg, #06B6D4 0%, #22D3EE 100%);
  --grad-mix:      linear-gradient(135deg, #7C3AED 0%, #A855F7 45%, #22D3EE 100%);
  --grad-text:     linear-gradient(180deg, #FFFFFF 0%, #C4B5FD 100%);

  /* Glow */
  --glow-violet:   0 0 40px rgba(124,58,237,0.35), 0 0 80px rgba(124,58,237,0.15);
  --glow-violet-sm:0 0 20px rgba(124,58,237,0.40);
  --glow-cyan:     0 0 32px rgba(34,211,238,0.30);

  /* Type */
  --font-display:  "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:     "Inter", system-ui, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Layout */
  --maxw: 1280px;
  --pad-x: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page background — deep space gradient + grain */
.page-bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(34,211,238,0.08), transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 70%, rgba(168,85,247,0.10), transparent 60%),
    linear-gradient(180deg, #07070C 0%, #050509 100%);
}
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55; mix-blend-mode: overlay;
  pointer-events: none;
}

/* Container */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-300);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-400));
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(56px, 7.8vw, 120px); font-weight: 500; }
h2 { font-size: clamp(36px, 4.4vw, 64px); }
h3 { font-size: clamp(20px, 1.4vw, 22px); font-weight: 500; }
p  { color: var(--ink-2); }

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

/* Buttons */
.btn {
  --bg: rgba(255,255,255,0.04);
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline-2);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); border-color: var(--hairline-2); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  border: 1px solid rgba(255,255,255,0.16);
  color: #FFFFFF;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.0),
    var(--glow-violet);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.btn-primary:hover {
  box-shadow: 0 0 60px rgba(168,85,247,0.55), 0 0 24px rgba(124,58,237,0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--ink); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* Glass card */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.glass::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(124,58,237,0.35), rgba(255,255,255,0.02) 30%, transparent 70%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Reveal-on-scroll — disabled to guarantee visibility across all rendering
   contexts. Elements are visible by default; .reveal/.in classes are inert. */
.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }

/* ── NAV ──────────────────────────────────────── */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: all 0.3s ease;
}
.nav-wrap.scrolled {
  padding: 12px 0;
  background: rgba(7,7,12,0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px; position: relative;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
}
.brand-name .dot { color: var(--violet-400); }

.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.02);
}
.lang-toggle button {
  appearance: none; border: 0; background: transparent;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle button.active {
  background: rgba(124,58,237,0.18);
  color: var(--violet-300);
  box-shadow: inset 0 0 0 1px rgba(124,58,237,0.35);
}

/* ── HERO ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, transparent 30%, rgba(7,7,12,0.7) 80%, rgba(7,7,12,1) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 0 var(--pad-x);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--border-violet);
  background: rgba(124,58,237,0.08);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--violet-300);
  margin-bottom: 36px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet-400);
  box-shadow: 0 0 8px var(--violet-400);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 156px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 28px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 45%, #A78BFA 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(124,58,237,0.0);
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 44px;
}
.hero-ctas {
  display: inline-flex; gap: 14px; align-items: center;
}
.hero-meta {
  position: absolute; bottom: 36px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: end;
  padding: 0 var(--pad-x);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  pointer-events: none;
}
.hero-meta .coord { color: var(--ink-3); }
.hero-meta .coord b { color: var(--ink); font-weight: 500; }
.hero-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll .line {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, transparent, var(--violet-400));
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.4; }
}

/* ── SECTIONS ──────────────────────────────────── */
section { position: relative; }
.section { padding: 140px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 60px; margin-bottom: 72px;
}
.section-head h2 { max-width: 720px; }
.section-head .lede { max-width: 380px; color: var(--ink-2); font-size: 15px; }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  padding: 36px 32px;
  min-height: 360px;
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(124,58,237,0.35);
}
.service-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(168,85,247,0.08));
  border: 1px solid rgba(124,58,237,0.32);
  display: grid; place-items: center;
  color: var(--violet-300);
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 24px rgba(124,58,237,0.12);
}
.service-card h3 { font-size: 24px; margin-bottom: 12px; }
.service-card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; }
.service-card .bullets {
  list-style: none; padding: 0; margin: auto 0 0;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}
.service-card .bullets li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase;
}
.service-card .bullets li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--violet-500); box-shadow: 0 0 6px var(--violet-500);
}
.service-card .num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-4); letter-spacing: 0.1em;
}

/* Projects */
.projects-stack { display: flex; flex-direction: column; gap: 24px; }
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 480px;
  overflow: hidden;
}
.project.flip { grid-template-columns: 1fr 1.1fr; }
.project.flip .project-info { order: -1; }
.project-visual {
  position: relative;
  background: linear-gradient(135deg, #100A22 0%, #1A0E36 100%);
  border-right: 1px solid var(--hairline);
  overflow: hidden;
  display: grid; place-items: center;
}
.project.flip .project-visual { border-right: 0; border-left: 1px solid var(--hairline); }
.project-info {
  padding: 56px 52px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 18px;
}
.project-info .meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.badge.live  { color: #6EE7B7; background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.32); }
.badge.beta  { color: var(--violet-300); background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.40); }
.badge.scale { color: var(--cyan-300); background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.32); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.project-info h3 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.project-info .desc { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 460px; }
.project-info .kvs {
  display: grid; grid-template-columns: repeat(3, auto); gap: 36px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.project-info .kvs .k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 6px;
}
.project-info .kvs .v {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: var(--ink);
}
.project-info .actions { display: flex; gap: 10px; margin-top: 10px; }

/* Logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(8px);
}
.logo-cell {
  height: 110px;
  display: grid; place-items: center;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
  transition: all 0.3s;
  position: relative;
}
.logo-cell:nth-child(4n) { border-right: 0; }
.logo-cell:nth-child(n+5) { border-bottom: 0; }
.logo-cell:hover {
  color: var(--violet-300);
  background: rgba(124,58,237,0.04);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 24px; }
.about-text p { font-size: 17px; line-height: 1.65; margin: 0 0 18px; }
.about-text p.lead { color: var(--ink); font-size: 19px; }
.about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}
.about-stats .stat {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}
.about-stats .stat:nth-child(odd) { padding-right: 28px; }
.about-stats .stat:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--hairline); }
.about-stats .v {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.about-stats .k {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}

.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: radial-gradient(ellipse at 30% 30%, rgba(124,58,237,0.22), transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(34,211,238,0.14), transparent 60%),
              linear-gradient(180deg, #0E0820, #050509);
}

/* Footer */
.footer {
  position: relative;
  padding: 100px 0 36px;
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 72px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 22px;
  font-weight: 500;
}
.footer .col a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
  transition: color 0.2s;
}
.footer .col a:hover { color: var(--violet-300); }
.footer .about-col p { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer .brand { margin-bottom: 20px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 220px);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 60px 0 -10px;
  line-height: 0.9;
  background: linear-gradient(180deg, rgba(196,181,253,0.25) 0%, rgba(124,58,237,0.04) 70%, transparent 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
}

/* Section divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-2) 50%, transparent);
  margin: 0 auto;
  max-width: 1280px;
}

/* Mocked UI inside project visuals */
.mock-sano,
.mock-gpindex,
.mock-usera {
  width: 86%;
  aspect-ratio: 4 / 3;
  position: relative;
}
.mock-shadow {
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(124,58,237,0.40), 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events: none;
}

@media (max-width: 980px) {
  :root { --pad-x: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .project, .project.flip { grid-template-columns: 1fr; }
  .project.flip .project-info { order: 0; }
  .project-visual { aspect-ratio: 16/10; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .project-info { padding: 36px 28px; }
  .project-info h3 { font-size: 32px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-cell:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .logo-cell:nth-child(even) { border-right: 0; }
  .logo-cell:nth-child(-n+6) { border-bottom: 1px solid var(--hairline); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero-meta { display: none; }
  .section { padding: 100px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 20px; margin-bottom: 48px; }
}

/* ── Hero CSS-only background (replaces canvas) ──────────── */
.hero-css-bg { position: absolute; inset: 0; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero-orb-1 {
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  top: -10%; left: 20%;
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
  animation: orbDrift1 20s ease-in-out infinite;
}
.hero-orb-2 {
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  top: 20%; right: -5%;
  background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 70%);
  animation: orbDrift2 25s ease-in-out infinite;
}
.hero-orb-3 {
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
  bottom: 0; left: 40%;
  background: radial-gradient(circle, rgba(34,211,238,0.15) 0%, transparent 70%);
  animation: orbDrift3 22s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 80%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 80%, black 20%, transparent 70%);
  opacity: 0.7;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.05); }
  66% { transform: translate(-20px, -15px) scale(0.95); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 25px) scale(1.08); }
  66% { transform: translate(25px, -20px) scale(0.92); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.06); }
  66% { transform: translate(-35px, 15px) scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none !important; }
}

/* ── Mobile overflow fixes (2026-05-31) ──────────── */
html, body { overflow-x: hidden; }

@media (max-width: 980px) {
  .nav-right .btn { display: none; }
  .lang-toggle { font-size: 10px; }

  .project-info .kvs {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .project-info .kvs .v { font-size: 18px; }

  .about-stats .v { font-size: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer-mark { font-size: clamp(48px, 12vw, 120px); }

  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .hero-orb { max-width: 300px; max-height: 300px; }
}
