:root {
  color-scheme: dark;
  --bg: #050811;
  --bg-soft: #0d1420;
  --surface: rgba(17, 25, 39, 0.82);
  --surface-strong: #121b2b;
  --text: #f5f7fb;
  --muted: #9aa7bc;
  --line: rgba(154, 167, 188, 0.22);
  --cyan: #17c4e8;
  --green: #02d69d;
  --violet: #6657f2;
  --pink: #ff5ea8;
  --gold: #d2aa58;
  --orange: #ff9d45;
  --red: #ff5a5f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 12px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

svg {
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2;
}

h1, h2, h3 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; letter-spacing: -0.015em; }

/* ---------- Background system ---------- */
.bg-canvas {
  position: fixed; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  pointer-events: none; opacity: 0.5;
}

.grid-fade {
  position: fixed; inset: 0; z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(rgba(154, 167, 188, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(154, 167, 188, 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
  mask: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}

.bg-orb {
  position: fixed; z-index: -2;
  width: 540px; height: 540px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  pointer-events: none;
  will-change: transform;
  animation: orbFloat 22s ease-in-out infinite;
}
.orb-a { top: -180px; left: -160px; background: radial-gradient(circle, var(--violet), transparent 70%); }
.orb-b { top: 30%; right: -200px; background: radial-gradient(circle, var(--cyan), transparent 70%); animation-delay: -8s; }
.orb-c { bottom: -200px; left: 30%; background: radial-gradient(circle, var(--pink), transparent 70%); animation-delay: -14s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.08); }
  66% { transform: translate(-50px, 50px) scale(0.94); }
}

/* ---------- Scroll progress + cursor ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 50;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet), var(--pink));
  background-size: 300% 100%;
  animation: gradientShift 6s ease infinite;
  box-shadow: 0 0 12px rgba(23, 196, 232, 0.6);
  pointer-events: none;
  transition: width 80ms linear;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(23, 196, 232, 0.7);
  border-radius: 50%;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease, width 180ms ease, height 180ms ease, background 180ms ease, border-color 180ms ease;
  mix-blend-mode: difference;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hover {
  width: 56px; height: 56px;
  background: rgba(23, 196, 232, 0.18);
  border-color: rgba(23, 196, 232, 0.9);
}
@media (hover: none) { .cursor-dot { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 8, 17, 0.55);
  backdrop-filter: blur(18px);
  transition: background 260ms ease, border-color 260ms ease, padding 260ms ease;
}
.site-header.is-scrolled {
  background: rgba(5, 8, 17, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  padding-top: 12px; padding-bottom: 12px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  width: max-content;
  font-size: 0.98rem; font-weight: 800;
  transition: transform 200ms ease;
}
.brand:hover { transform: translateY(-1px); }
.brand-text { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.01em; }

.brand-mark {
  display: inline-grid; width: 36px; height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 56%, var(--pink));
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  color: #fff;
  box-shadow: 0 12px 32px rgba(23, 196, 232, 0.32);
  font-family: "Space Grotesk", sans-serif;
}

.site-nav {
  display: inline-flex; justify-content: center; gap: 28px;
  color: var(--muted);
  font-size: 0.94rem; font-weight: 700;
}
.site-nav a {
  position: relative; padding: 4px 0;
  transition: color 160ms ease;
}
.site-nav a::after {
  content: ""; position: absolute; inset: auto 0 -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

.header-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 9px;
  width: max-content;
  padding: 11px 16px;
  border: 1px solid rgba(2, 214, 157, 0.35);
  border-radius: 999px;
  background: rgba(2, 214, 157, 0.1);
  color: var(--green);
  font-size: 0.86rem; font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 200ms ease, color 160ms ease;
}
.header-cta:hover, .header-cta:focus-visible {
  transform: translateY(-1px);
  background: rgba(2, 214, 157, 0.18);
  border-color: rgba(2, 214, 157, 0.6);
  color: #d8fff2;
  box-shadow: 0 10px 30px rgba(2, 214, 157, 0.22);
}

.nav-toggle {
  display: none; justify-self: end;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 200ms ease;
}
.nav-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero (centered) ---------- */
.hero {
  position: relative;
  padding: 154px clamp(20px, 4vw, 56px) 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-centered {
  display: grid; place-items: center; text-align: center;
  min-height: 92vh;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(2, 214, 157, 0.4);
  border-radius: 999px;
  background: rgba(2, 214, 157, 0.08);
  color: var(--green);
  font-size: 0.78rem; font-weight: 850;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(2, 214, 157, 0.6);
  animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(2, 214, 157, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(2, 214, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 214, 157, 0); }
}

.hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.98;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(110deg, var(--cyan) 0%, var(--violet) 45%, var(--pink) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease infinite;
}
.gradient-text.gradient-alt {
  background: linear-gradient(110deg, var(--green) 0%, var(--cyan) 45%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: gradientShift 5s ease 1s infinite;
}
.gradient-text.gradient-game {
  background: linear-gradient(110deg, var(--orange) 0%, var(--pink) 50%, var(--violet) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: gradientShift 5s ease 2s infinite;
}

.hero-lead {
  max-width: 720px;
  margin: 28px auto 0;
  color: #c2ccdc;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 36px;
}

.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin-top: 60px;
  padding: 20px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 25, 39, 0.5);
  backdrop-filter: blur(14px);
}
.hero-stats div {
  flex: 1; min-width: 130px;
  padding: 6px 18px;
  border-right: 1px solid var(--line);
}
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  background: linear-gradient(110deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.86rem; }

@media (max-width: 640px) {
  .hero-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats div:last-child { border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem; font-weight: 850;
  cursor: pointer; overflow: hidden;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 200ms ease, background 200ms ease, box-shadow 220ms ease;
  will-change: transform;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button svg { transition: transform 220ms ease; }
.button:hover svg { transform: translateX(4px); }

.button::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 700ms ease;
  pointer-events: none;
}
.button:hover::before { transform: translateX(130%); }

.button-primary {
  background: linear-gradient(135deg, var(--green), var(--cyan) 50%, var(--violet) 100%);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 16px 44px rgba(23, 196, 232, 0.32);
  animation: gradientShift 5s ease infinite;
}
.button-primary:hover { box-shadow: 0 22px 56px rgba(23, 196, 232, 0.45); }

.button-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.button-secondary:hover, .button-secondary:focus-visible {
  border-color: rgba(210, 170, 88, 0.6);
  background: rgba(210, 170, 88, 0.1);
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  width: 26px; height: 42px;
  place-items: start center;
  padding-top: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  z-index: 1;
}
.scroll-cue span {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--text);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 110px clamp(20px, 4vw, 0px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 570px);
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.section-heading.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  font-weight: 700;
}
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.05rem; line-height: 1.7;
  max-width: 620px;
}
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.74rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(23, 196, 232, 0.06);
}

/* ---------- Pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 25, 39, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.24);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 240ms ease;
  overflow: hidden;
  will-change: transform;
}
.pillar::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(23, 196, 232, 0.18), transparent 60%);
  opacity: 0; transition: opacity 320ms ease;
  pointer-events: none;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(23, 196, 232, 0.5); box-shadow: 0 28px 70px rgba(23, 196, 232, 0.16); }
.pillar:hover::before { opacity: 1; }

.pillar h3 {
  margin: 18px 0 10px;
  font-size: 1.55rem;
  display: flex; align-items: center; gap: 10px;
}
.pillar p { margin: 0; color: var(--muted); line-height: 1.65; }

.pillar-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  color: var(--cyan);
  font-size: 0.92rem; font-weight: 850;
  transition: gap 220ms ease, color 200ms ease;
}
.pillar-link:hover { gap: 12px; color: #8ee5f6; }

.pillar-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.icon-web   { color: var(--cyan); background: rgba(23, 196, 232, 0.1); border-color: rgba(23, 196, 232, 0.35); }
.icon-game  { color: var(--orange); background: rgba(255, 157, 69, 0.1); border-color: rgba(255, 157, 69, 0.4); }
.icon-ai    { color: var(--violet); background: rgba(102, 87, 242, 0.12); border-color: rgba(102, 87, 242, 0.4); }

.pillar-featured {
  border-color: rgba(255, 157, 69, 0.45);
  background:
    linear-gradient(160deg, rgba(255, 157, 69, 0.07), transparent 55%),
    rgba(17, 25, 39, 0.8);
}

.badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 0.65rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: Inter, sans-serif;
}

/* ---------- Games section ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 25, 39, 0.78);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.24);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease;
  will-change: transform;
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(255, 157, 69, 0.5); }

.game-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c1322;
}
.game-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.04em; text-transform: uppercase;
  z-index: 2;
}

.art-1 {
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 90, 95, 0.45), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 157, 69, 0.45), transparent 55%),
    linear-gradient(135deg, #1d0f1a, #0c1322);
}
.pixel { position: absolute; border-radius: 4px; }
.pixel-a { width: 22px; height: 22px; background: var(--orange); top: 30%; left: 22%; animation: hop 2s ease-in-out infinite; box-shadow: 0 0 16px rgba(255, 157, 69, 0.6); }
.pixel-b { width: 14px; height: 14px; background: var(--pink); top: 55%; left: 45%; animation: hop 2.4s ease-in-out -0.6s infinite; box-shadow: 0 0 14px rgba(255, 94, 168, 0.6); }
.pixel-c { width: 18px; height: 18px; background: var(--cyan); top: 70%; left: 75%; animation: hop 2.8s ease-in-out -1.2s infinite; box-shadow: 0 0 14px rgba(23, 196, 232, 0.6); }
@keyframes hop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(8deg); }
}

.art-2 {
  background:
    radial-gradient(circle at 50% 50%, rgba(2, 214, 157, 0.18), transparent 65%),
    linear-gradient(135deg, #0a1d18, #0c1322);
}
.orb-glow {
  position: absolute; top: 50%; left: 50%;
  width: 140px; height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green), transparent 65%);
  filter: blur(8px);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50%      { transform: scale(1.1); opacity: 1; }
}

.art-3 {
  background:
    radial-gradient(circle at 70% 30%, rgba(102, 87, 242, 0.35), transparent 55%),
    linear-gradient(135deg, #0e1124, #0c1322);
  position: relative;
}
.grid-lines {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(102, 87, 242, 0.32) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(102, 87, 242, 0.32) 1px, transparent 1px) 0 0 / 28px 28px;
  transform-origin: bottom center;
  transform: perspective(400px) rotateX(55deg);
  animation: slideGrid 5s linear infinite;
  mask: linear-gradient(180deg, transparent 0%, black 40%, black 100%);
  -webkit-mask: linear-gradient(180deg, transparent 0%, black 40%, black 100%);
}
@keyframes slideGrid {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 56px, 0 0; }
}

.game-body { padding: 22px; }
.game-body h3 { margin: 0 0 10px; font-size: 1.35rem; }
.game-body p { margin: 0; color: var(--muted); line-height: 1.6; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.03em;
}

.game-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px dashed rgba(255, 157, 69, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 157, 69, 0.05);
}
.game-cta p { margin: 0; color: #d6c0a8; font-size: 0.98rem; }

/* ---------- Filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem; font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.filter-button:hover { transform: translateY(-1px); color: var(--text); }
.filter-button.is-active {
  border-color: rgba(23, 196, 232, 0.58);
  background: rgba(23, 196, 232, 0.12);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(23, 196, 232, 0.18);
}

/* ---------- Project grid ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.project-card {
  position: relative;
  display: grid; min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 25, 39, 0.78);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.24);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 200ms ease, opacity 320ms ease, box-shadow 240ms ease;
  will-change: transform;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 196, 232, 0.5);
  box-shadow: 0 28px 70px rgba(23, 196, 232, 0.16);
}
.project-card.is-hidden { display: none; }

.project-card > a, .project-media {
  display: block; position: relative;
  overflow: hidden; margin: 0;
  aspect-ratio: 16 / 10;
  background: #0f1624;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover img { transform: scale(1.06); }

.card-shine {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 900ms ease;
  pointer-events: none;
}
.project-card:hover .card-shine { transform: translateX(130%); }

.project-content { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 22px; }
.project-type {
  display: block; margin-bottom: 12px;
  color: var(--green);
  font-size: 0.74rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.project-content h3 { margin: 0; font-size: 1.35rem; line-height: 1.1; }
.project-content p { margin: 12px 0 0; color: var(--muted); line-height: 1.62; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content;
  color: var(--text);
  font-size: 0.92rem; font-weight: 850;
  transition: color 180ms ease, gap 220ms ease;
}
.text-link:hover, .text-link:focus-visible { color: var(--cyan); gap: 12px; }
.private-link { color: var(--gold); }

.more-work { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.more-work a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem; font-weight: 800;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.more-work a:hover, .more-work a:focus-visible {
  color: var(--text);
  border-color: rgba(210, 170, 88, 0.55);
  background: rgba(210, 170, 88, 0.08);
  transform: translateY(-2px);
}

/* ---------- Process ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.process-track article {
  min-height: 240px;
  padding: 24px;
  background: rgba(17, 25, 39, 0.84);
  transition: background 240ms ease, transform 240ms ease;
}
.process-track article:hover { background: rgba(23, 196, 232, 0.07); transform: translateY(-3px); }
.process-track span {
  display: grid; width: 38px; height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 196, 232, 0.44);
  border-radius: 10px;
  color: var(--cyan);
  font-size: 0.9rem; font-weight: 900;
  background: rgba(23, 196, 232, 0.06);
}
.process-track h3 { margin: 36px 0 0; font-size: 1.2rem; }
.process-track p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding-bottom: 110px;
}
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 700;
}
.contact-copy p { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.fiverr-pill {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 26px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(2, 214, 157, 0.35);
  border-radius: 999px;
  background: rgba(2, 214, 157, 0.08);
  color: var(--text);
  font-size: 0.95rem;
  transition: transform 180ms ease, background 200ms ease, border-color 200ms ease, box-shadow 220ms ease;
}
.fiverr-pill:hover {
  transform: translateY(-2px);
  background: rgba(2, 214, 157, 0.15);
  border-color: rgba(2, 214, 157, 0.6);
  box-shadow: 0 14px 36px rgba(2, 214, 157, 0.2);
}
.fiverr-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #062018;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
}
.fiverr-pill strong { font-weight: 900; }

.contact-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.contact-points span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #c2ccdc;
  font-size: 0.84rem; font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}
.contact-points span:hover { transform: translateY(-2px); border-color: rgba(23, 196, 232, 0.45); color: var(--text); }

.lead-form {
  display: grid; gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 25, 39, 0.88);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.lead-form::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(2, 214, 157, 0.4), transparent 50%, rgba(102, 87, 242, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.6; pointer-events: none;
}

.lead-form label { display: grid; gap: 8px; }
.lead-form label span { color: #d5dcea; font-size: 0.83rem; font-weight: 850; }

.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  border: 1px solid rgba(154, 167, 188, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
  transition: border-color 200ms ease, box-shadow 220ms ease, background 200ms ease;
}
.lead-form input, .lead-form select { min-height: 48px; padding: 0 13px; }
.lead-form textarea { resize: vertical; min-height: 132px; padding: 13px; }
.lead-form select option { background: #111827; color: var(--text); }

.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: rgba(23, 196, 232, 0.72);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(23, 196, 232, 0.13);
}

.hidden-field { display: none; }
.form-button { width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 30px clamp(20px, 4vw, 0px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem; font-weight: 700;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { transition: color 180ms ease; }
.footer-links a:hover { color: var(--text); }

/* ---------- Thank-you page ---------- */
.thanks-page { min-height: 100vh; }

.thanks-shell {
  display: grid; min-height: 100vh;
  align-content: center;
  gap: 32px;
  width: min(100% - 40px, 720px);
  margin-inline: auto;
}

.thanks-card {
  padding: clamp(28px, 7vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 25, 39, 0.88);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  animation: cardIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.thanks-card h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 0.95; font-weight: 700; }
.thanks-card p { margin: 18px 0 28px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }

.checkmark {
  display: grid; width: 64px; height: 64px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #062018;
  box-shadow: 0 16px 44px rgba(2, 214, 157, 0.32);
  animation: pop 600ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes pop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed; inset: 73px 14px auto;
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 8, 17, 0.98);
    box-shadow: var(--shadow);
  }
  .nav-open .site-nav { display: grid; }
  .site-nav a { padding: 14px; }
  .site-nav a::after { display: none; }
  .header-cta { display: none; }

  .hero { padding-top: 132px; padding-bottom: 60px; }
  .hero-centered { min-height: auto; }
  .section-heading:not(.center), .contact-section { grid-template-columns: 1fr; }
  .pillar-grid, .game-grid, .project-grid, .process-track { grid-template-columns: 1fr; }

  .cursor-dot { display: none; }
}

@media (max-width: 640px) {
  .hero h1 br { display: none; }
  .hero-actions, .more-work, .filter-bar { flex-direction: column; }
  .button, .filter-button, .more-work a { width: 100%; }
  .section { padding-top: 82px; }
  .contact-section { padding-bottom: 82px; }
  .lead-form { padding: 18px; }
  .site-footer { flex-direction: column; }
  .game-cta { flex-direction: column; align-items: flex-start; }
  .game-cta .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bg-canvas, .bg-orb { display: none; }
}
