:root {
  color-scheme: dark;
  --bg: #030304;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --ink: #f8f8f3;
  --muted: rgba(248, 248, 243, 0.66);
  --quiet: rgba(248, 248, 243, 0.42);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.34);
  --acid: #91ff5b;
  --acid-soft: rgba(145, 255, 91, 0.22);
  --electric: #1f58ff;
  --dark-line: rgba(0, 0, 0, 0.18);
  --max: 1180px;
  --header-h: 72px;
  --font-body: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", "Bahnschrift", system-ui, sans-serif;
  --font-tech: "Bahnschrift", "Segoe UI Semibold", system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  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),
    linear-gradient(rgba(31, 88, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 88, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 224px 224px, 224px 224px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.46) 64%, rgba(0, 0, 0, 0.16));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.11) 31px 33px, transparent 33px 64px),
    linear-gradient(transparent 0 31px, rgba(255, 255, 255, 0.11) 31px 33px, transparent 33px 64px);
  background-size: 192px 192px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.4) 70%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
textarea,
select {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
canvas {
  display: block;
}

main {
  position: relative;
  z-index: 2;
  overflow-x: clip;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.42;
}

.backdrop-type {
  position: fixed;
  right: -8vw;
  top: 18vh;
  z-index: 1;
  color: rgba(255, 255, 255, 0.012);
  font-size: 22rem;
  font-weight: 950;
  font-family: var(--font-display);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

.bg-objects {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bg-object {
  position: absolute;
  display: block;
  border: 2px solid rgba(31, 88, 255, 0.32);
  opacity: 0.18;
  filter: drop-shadow(0 0 12px rgba(31, 88, 255, 0.14));
  animation: objectFloat 14s ease-in-out infinite;
}

.bg-pill {
  width: 430px;
  height: 94px;
  left: 7%;
  top: 24%;
  border-radius: 999px;
}

.bg-block {
  width: 310px;
  height: 120px;
  right: 7%;
  top: 39%;
  border-radius: 8px;
  animation-delay: -3s;
}

.bg-ring {
  width: 84px;
  height: 84px;
  left: 23%;
  bottom: 19%;
  border-radius: 999px;
  animation-delay: -6s;
}

.bg-triangle {
  width: 120px;
  height: 120px;
  right: 24%;
  bottom: 20%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation-delay: -9s;
}

.bg-capsule {
  width: 250px;
  height: 84px;
  left: 43%;
  top: 13%;
  border-radius: 999px;
  transform: rotate(-16deg);
  animation-delay: -11s;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.section-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.glass,
.site-header,
.hero-console,
.service-panel,
.contact-form {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045) 34%, rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 28px 90px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(36px) saturate(190%) contrast(1.08);
  -webkit-backdrop-filter: blur(36px) saturate(190%) contrast(1.08);
}

.glass::before,
.site-header::before,
.hero-console::before,
.service-panel::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(285deg, rgba(145, 255, 91, 0.11), transparent 33%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  opacity: 0.95;
}

.glass::after,
.site-header::after,
.hero-console::after,
.service-panel::after,
.contact-form::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.72), transparent 14%, transparent 78%, rgba(145, 255, 91, 0.5)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0.76;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 40;
  width: min(var(--max), calc(100% - 32px));
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.024) 42%, rgba(255, 255, 255, 0.052)),
    rgba(3, 3, 4, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045),
    0 20px 72px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px) saturate(150%) contrast(1.04);
  -webkit-backdrop-filter: blur(24px) saturate(150%) contrast(1.04);
  transform: translateX(-50%);
}

.site-header::before {
  opacity: 0.44;
}

.site-header::after {
  opacity: 0.48;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.066);
  border-color: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.menu-button {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.menu-button span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 200ms ease;
}

.menu-button span:first-child {
  transform: translateY(-4px);
}

.menu-button span:last-child {
  transform: translateY(4px);
}

.menu-open .menu-button span:first-child {
  transform: rotate(45deg);
}

.menu-open .menu-button span:last-child {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  align-items: center;
  gap: 54px;
  padding: 138px 0 78px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 110px 0 48px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.034), transparent 32%, rgba(255, 255, 255, 0.026)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 18px 19px, transparent 19px 42px);
  opacity: 0.72;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 6.75rem;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(248, 248, 243, 0.76);
  font-size: 1.28rem;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-70%);
  transition: opacity 180ms ease, transform 460ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  opacity: 1;
  transform: translateX(70%);
}

.button-primary {
  border: 1px solid rgba(145, 255, 91, 0.58);
  background: #f8f8f3;
  color: #030304;
  box-shadow: 0 18px 54px rgba(145, 255, 91, 0.18);
}

.button-dark {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  max-width: 610px;
}

.proof-pill {
  position: relative;
  min-height: 104px;
  display: grid;
  align-content: space-between;
  gap: 7px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.22);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 50px rgba(0, 0, 0, 0.24);
}

.proof-pill::before {
  content: "";
  position: absolute;
  right: -22px;
  top: -32px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(145, 255, 91, 0.3);
  border-radius: 999px;
  opacity: 0.8;
}

.proof-pill span {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.proof-pill strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-tech);
  font-size: 1.38rem;
  line-height: 1;
}

.proof-pill small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.hero-console {
  min-height: 544px;
  padding: 28px;
  border-radius: 8px;
}

.console-top {
  display: grid;
  place-items: center;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.console-top h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.04;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.metric {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.metric .icon {
  margin-bottom: 18px;
  color: var(--acid);
}

.metric strong {
  display: block;
  min-height: 40px;
  font-family: var(--font-tech);
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.console-note {
  margin: 24px 0 0;
  color: var(--quiet);
  font-size: 0.85rem;
}

.section-title {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.15rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-title p:not(.eyebrow),
.contact-copy p {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 650;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font-weight: 900;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.section-link:hover {
  transform: translateY(-2px);
  border-color: rgba(145, 255, 91, 0.42);
  background: rgba(145, 255, 91, 0.12);
}

.stack-section {
  padding: 92px 0 80px;
}

.stack-scroll {
  position: relative;
  min-height: 178vh;
}

.stack-pin {
  position: sticky;
  top: 100px;
  display: grid;
  min-height: calc(100vh - 120px);
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 52px;
}

.stack-copy {
  max-width: 410px;
}

.stack-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.85rem;
  line-height: 1;
}

.stack-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 650;
}

.stack-cards {
  position: relative;
  height: 680px;
  perspective: 1200px;
}

.flow-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 330px;
  min-height: 458px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: 50% 60%;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
  transition: box-shadow 180ms ease;
  will-change: transform, opacity;
}

.flow-card:hover {
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58);
}

.flow-card.is-light {
  background: #d8d8d4;
  color: #030304;
}

.flow-card.is-white {
  background: #f3f3ee;
  color: #030304;
}

.flow-card.is-ink {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 38%),
    #050506;
  color: #ffffff;
}

.flow-card.is-acid {
  background: #91ff5b;
  color: #030304;
}

.flow-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.flow-index::after {
  content: "";
  flex: 1;
  height: 1px;
  opacity: 0.28;
  background: currentColor;
}

.flow-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.18rem;
  line-height: 0.96;
}

.flow-card.is-white h4 {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-weight: 900;
}

.flow-card.is-acid h4 {
  font-family: var(--font-tech);
  text-transform: uppercase;
}

.flow-card p {
  margin: 18px 0 0;
  color: currentColor;
  font-size: 1.05rem;
  font-weight: 650;
  opacity: 0.72;
}

.flow-switch {
  width: 104px;
  height: 58px;
  padding: 7px;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 0.8;
}

.flow-switch i {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(0);
  transition: transform 520ms cubic-bezier(0.2, 1.15, 0.32, 1), box-shadow 260ms ease, opacity 260ms ease;
}

.flow-switch.is-on i {
  transform: translateX(46px);
  opacity: 1;
  box-shadow: 0 0 28px rgba(145, 255, 91, 0.72);
}

.service-section {
  padding: 98px 0;
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 0 28px;
  color: var(--ink);
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 920;
  text-transform: uppercase;
}

.marquee .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--acid);
}

.service-panel {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 42px;
  margin-top: 42px;
  padding: 42px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.042)),
    rgba(255, 255, 255, 0.022);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 24px 82px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(26px) saturate(158%) contrast(1.04);
  -webkit-backdrop-filter: blur(26px) saturate(158%) contrast(1.04);
}

.service-panel::before {
  opacity: 0.42;
}

.service-panel::after {
  opacity: 0.46;
}

.service-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
}

.service-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 650;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.115);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translateY(34px) rotateX(5deg);
  transition: opacity 520ms ease, transform 720ms cubic-bezier(0.18, 1, 0.22, 1), border-color 180ms ease, background 180ms ease;
}

.service-panel.is-visible .service-card {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.service-panel.is-visible .service-card:nth-child(2) {
  transition-delay: 90ms;
}

.service-panel.is-visible .service-card:nth-child(3) {
  transition-delay: 180ms;
}

.service-panel.is-visible .service-card:nth-child(4) {
  transition-delay: 270ms;
}

.service-card .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 42px;
  color: var(--acid);
}

.service-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.service-card p {
  margin-top: 12px;
  font-size: 0.95rem;
}

.projects {
  padding: 100px 0 112px;
}

.subpage-hero {
  min-height: 48vh;
  display: grid;
  align-content: end;
  padding-top: 132px;
  padding-bottom: 56px;
}

.subpage-hero h1,
.legal-page h1,
.not-found h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.subpage-hero p:not(.eyebrow),
.legal-lead,
.not-found p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.16rem;
  font-weight: 680;
}

.games-page {
  padding: 36px 0 112px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.games-grid .game-tile.featured {
  grid-column: span 2;
}

.loading-line {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-weight: 900;
}

.legal-page {
  min-height: 100vh;
  padding-top: 156px;
  padding-bottom: 96px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.legal-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-grid section {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018) 52%),
    rgba(255, 255, 255, 0.028);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 72px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  animation: legalCardIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.legal-grid section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(145, 255, 91, 0.55), transparent);
  opacity: 0.72;
}

.legal-grid section:nth-child(2n) {
  animation-delay: 80ms;
}

.legal-grid section:nth-child(3n) {
  animation-delay: 140ms;
}

.legal-grid h2 {
  margin: 0;
  font-size: 1.2rem;
}

.legal-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 680;
}

.legal-grid a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(145, 255, 91, 0.6);
}

.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding-top: 100px;
  padding-bottom: 80px;
}

.not-found img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-bottom: 24px;
}

.not-found-vibe {
  grid-template-columns: 0.56fr 1fr;
  align-items: center;
  gap: 34px;
}

.not-found-copy {
  position: relative;
  z-index: 2;
  animation: legalCardIn 680ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.error-orbit {
  --orbit-radius: min(14vw, 145px);
  position: relative;
  width: min(34vw, 330px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(145, 255, 91, 0.13), transparent 42%),
    rgba(255, 255, 255, 0.022);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 28px 92px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  animation: orbitFloat 5.5s ease-in-out infinite;
}

.error-orbit img {
  width: 35%;
  height: 35%;
  margin: 0;
  filter: drop-shadow(0 16px 34px rgba(145, 255, 91, 0.22));
}

.error-orbit span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(145, 255, 91, 0.85);
  border-radius: 50%;
  background: rgba(145, 255, 91, 0.24);
  box-shadow: 0 0 24px rgba(145, 255, 91, 0.22);
  animation: orbitDot 6s linear infinite;
}

.error-orbit span:nth-child(3) {
  width: 11px;
  height: 11px;
  animation-duration: 8s;
  animation-direction: reverse;
}

.error-orbit span:nth-child(4) {
  width: 14px;
  height: 14px;
  animation-duration: 10s;
  animation-delay: -2.4s;
}

.error-console {
  grid-column: 2;
  width: min(100%, 520px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.026);
  color: var(--muted);
  font-weight: 760;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  animation: legalCardIn 680ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.error-console span {
  display: block;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.error-console strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-tech);
  font-size: 1.1rem;
}

.error-console p {
  margin: 8px 0 0;
}

.developers {
  padding: 96px 0 88px;
}

.developer-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  perspective: 1100px;
}

.developer-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.028);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transform: translateX(-24px) rotateY(-10deg);
  transition-delay: var(--developer-delay, 0ms);
}

.developer-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -42% 18%;
  height: 170px;
  border-radius: 50%;
  background: rgba(145, 255, 91, 0.11);
  filter: blur(28px);
}

.developer-card.is-visible {
  transform: translateX(0) rotateY(0);
}

.developer-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-family: var(--font-tech);
  font-size: 1.45rem;
  font-weight: 950;
}

.developer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer-card p {
  margin: 0 0 10px;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.developer-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}

.developer-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
}

.developer-more {
  justify-content: center;
  color: var(--ink);
}

.developer-more strong {
  position: relative;
  font-family: var(--font-tech);
  font-size: 2.5rem;
  line-height: 1;
}

.game-showcase {
  display: grid;
  grid-template-columns: 0.86fr 1.12fr 0.86fr;
  gap: 16px;
  align-items: center;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.game-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  --tile-offset: 0px;
  animation: gameFloat 5.4s ease-in-out infinite;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.game-tile:hover {
  animation-play-state: paused;
  transform: translateY(calc(var(--tile-offset) - 8px));
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.075);
}

.game-media {
  position: relative;
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
  background: #111;
}

.game-tile.featured .game-media {
  aspect-ratio: 1 / 0.86;
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
  transition: transform 420ms ease, filter 180ms ease;
}

.game-tile:hover .game-media img {
  transform: scale(1.035);
  filter: saturate(1.02) contrast(1.12);
}

.game-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.featured .game-info {
  padding: 24px;
}

.game-info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.12;
}

.featured .game-info h3 {
  font-size: 1.75rem;
}

.game-info p {
  grid-column: 1 / -1;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.visit-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.play-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(145, 255, 91, 0.46);
  border-radius: 999px;
  background: #f8f8f3;
  color: #030304;
  font-size: 0.85rem;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 12px 34px rgba(145, 255, 91, 0.16);
}

.featured {
  --tile-offset: -28px;
}

.featured:hover {
  transform: translateY(-36px);
}

.side-stack .game-tile:nth-child(2) {
  animation-delay: -2.1s;
}

.side-stack:nth-child(3) .game-tile:first-child {
  animation-delay: -3.4s;
}

.side-stack:nth-child(3) .game-tile:nth-child(2) {
  animation-delay: -1.2s;
}

.contact {
  padding: 94px 0 112px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 36px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 120px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 42%),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 72px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.contact-copy h2 {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 3rem;
  line-height: 0.98;
}

.contact-copy p {
  max-width: 540px;
  margin-left: 0;
  margin-right: 0;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-points div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--muted);
  font-weight: 750;
}

.contact-points .icon {
  margin-top: 2px;
  color: var(--acid);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.022) 38%, rgba(255, 255, 255, 0.052)),
    rgba(255, 255, 255, 0.028);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 24px 82px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(28px) saturate(162%) contrast(1.04);
  -webkit-backdrop-filter: blur(28px) saturate(162%) contrast(1.04);
}

.contact-form::before {
  opacity: 0.5;
}

.contact-form::after {
  opacity: 0.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  outline: none;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 760;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 142px;
  resize: vertical;
  padding-top: 14px;
}

.field select {
  appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(145, 255, 91, 0.62);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(145, 255, 91, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.form-status {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 22, 0.56);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 48px;
  padding: 48px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 950;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-weight: 720;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: rgba(165, 200, 235, 0.82);
  font-weight: 720;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a + a {
  position: relative;
}

.footer-links a + a::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 1px;
  height: 16px;
  background: var(--line);
  transform: translateY(-50%);
}

@keyframes legalCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes orbitFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes orbitDot {
  from {
    transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 780ms ease, transform 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  will-change: transform;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes objectFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(18px, -24px, 0) rotate(4deg);
  }
}

@keyframes gameFloat {
  0%, 100% {
    transform: translateY(var(--tile-offset));
  }
  50% {
    transform: translateY(calc(var(--tile-offset) - 10px));
  }
}

@media (max-width: 1100px) {
  .hero,
  .stack-pin,
  .service-panel,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-console {
    min-height: auto;
  }

  .stack-copy,
  .contact-copy {
    position: static;
    max-width: 760px;
  }

  .stack-scroll {
    min-height: 150vh;
  }

  .game-showcase {
    grid-template-columns: 1fr;
  }

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

  .games-grid .game-tile.featured {
    grid-column: span 2;
  }

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

  .not-found-vibe {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .error-orbit {
    --orbit-radius: min(30vw, 130px);
    width: min(64vw, 300px);
  }

  .error-console {
    grid-column: auto;
  }

  .developer-rail {
    grid-template-columns: 1fr 1fr;
  }

  .featured,
  .featured:hover {
    --tile-offset: 0px;
    transform: none;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 66px;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .menu-button {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 3, 4, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    justify-content: flex-start;
    border-radius: 8px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 112px;
  }

  .backdrop-type {
    font-size: 14rem;
  }

  .hero h1 {
    font-size: 4.4rem;
  }

  .section-title h2,
  .contact-copy h2,
  .service-panel h2,
  .stack-copy h3 {
    font-size: 2.35rem;
  }

  .stack-section,
  .service-section,
  .projects,
  .contact {
    padding: 74px 0;
  }

  .stack-scroll {
    min-height: 0;
  }

  .stack-pin {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .stack-cards {
    height: auto;
    display: grid;
    gap: 14px;
  }

  .flow-card {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 330px;
    transform: none !important;
  }

  .service-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand span {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .backdrop-type {
    font-size: 9rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-actions,
  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .hero-console,
  .service-panel,
  .contact-form {
    padding: 22px;
  }

  .console-top {
    display: grid;
  }

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

  .metric strong {
    font-size: 1.9rem;
  }

  .section-title h2,
  .contact-copy h2,
  .service-panel h2,
  .stack-copy h3 {
    font-size: 2rem;
  }

  .game-info {
    grid-template-columns: 1fr;
  }

  .games-grid,
  .games-grid .game-tile.featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .subpage-hero h1,
  .legal-page h1,
  .not-found h1 {
    font-size: 3.2rem;
  }

  .game-stats {
    justify-content: flex-start;
  }

  .visit-pill {
    width: fit-content;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .developer-rail {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
