:root {
  --ink: #071014;
  --night: #0c1117;
  --paper: #f4efe8;
  --cyan: #36c6d5;
  --pink: #ff4f8b;
  --lime: #c9ff4a;
  --amber: #ffc145;
  --muted: #9fb0b4;
  --line: rgba(244, 239, 232, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--night);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.cursor-light {
  position: fixed;
  inset: auto;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(54, 198, 213, 0.13), transparent 64%);
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(7, 16, 20, 0.82), rgba(7, 16, 20, 0));
}

.solid-header {
  background: rgba(7, 16, 20, 0.94);
  border-bottom: 1px solid rgba(244, 239, 232, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  font-weight: 1000;
  transform: skewX(-11deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  color: rgba(244, 239, 232, 0.84);
  font-size: 0.92rem;
}

.site-nav a {
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-color: var(--lime);
}

.hero {
  position: relative;
  --hero-tilt-x: 0deg;
  --hero-tilt-y: 0deg;
  --hero-pulse: 0;
  min-height: 96vh;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 72px) 92px;
}

.signal-canvas,
.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.signal-canvas {
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0.62;
  mix-blend-mode: screen;
}

.hero-media {
  z-index: -3;
  filter: saturate(1.18) contrast(1.08);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.58;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 16, 20, 0.94) 0%, rgba(7, 16, 20, 0.62) 46%, rgba(7, 16, 20, 0.76) 100%),
    linear-gradient(0deg, var(--night), rgba(12, 17, 23, 0.1) 42%, rgba(12, 17, 23, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero-3d-stage {
  position: absolute;
  z-index: 1;
  right: clamp(-34px, -2vw, -18px);
  bottom: clamp(108px, 14vh, 160px);
  width: min(29vw, 400px);
  min-width: 286px;
  aspect-ratio: 1;
  pointer-events: none;
  perspective: 900px;
  transform:
    translate3d(calc(var(--hero-pointer-x, 0) * 1px), calc(var(--hero-pointer-y, 0) * 1px), 0)
    rotateX(var(--hero-tilt-y))
    rotateY(var(--hero-tilt-x));
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.hero-3d-stage canvas {
  width: 100%;
  height: 100%;
  max-width: none;
}

.hero-3d-label {
  position: absolute;
  left: 50%;
  bottom: 6%;
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 10px 12px;
  color: var(--paper);
  background: rgba(7, 16, 20, 0.7);
  border: 1px solid rgba(244, 239, 232, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.34);
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.hero-3d-label span {
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-3d-label strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.hero-3d-stage.has-model .hero-3d-label {
  display: none;
}

.show-orbit {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(244, 239, 232, 0.18);
  border-radius: 50%;
  animation: orbitPulse 4.8s ease-in-out infinite;
}

.show-orbit::before,
.show-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  border: 1px solid rgba(54, 198, 213, 0.22);
}

.show-orbit::after {
  inset: 28%;
  border-color: rgba(255, 79, 139, 0.22);
}

.orbit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(244, 239, 232, 0.8);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  transform: translate(-50%, -50%);
  animation: chipFloat 3.4s ease-in-out infinite;
}

.chip-game {
  top: 6%;
  left: 50%;
  background: var(--lime);
}

.chip-booth {
  top: 50%;
  left: 96%;
  background: var(--cyan);
  animation-delay: 0.35s;
}

.chip-decor {
  top: 94%;
  left: 50%;
  color: var(--paper);
  background: var(--pink);
  animation-delay: 0.7s;
}

.chip-live {
  top: 50%;
  left: 4%;
  animation-delay: 1.05s;
}

.show-character {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 36%;
  aspect-ratio: 0.72;
  transform:
    translate(-50%, -50%)
    translateZ(84px)
    rotateZ(calc(var(--hero-tilt-x) * -0.25));
  transform-style: preserve-3d;
  animation: characterFloat 3.2s ease-in-out infinite;
}

.character-glow {
  position: absolute;
  inset: 4% -24% -10%;
  background:
    radial-gradient(circle, rgba(201, 255, 74, 0.32), transparent 36%),
    radial-gradient(circle at 60% 42%, rgba(54, 198, 213, 0.42), transparent 46%);
  filter: blur(12px);
  opacity: 0.9;
}

.character-head,
.character-body,
.character-arm,
.character-leg {
  position: absolute;
  display: block;
}

.character-head {
  left: 17%;
  top: 0;
  width: 66%;
  aspect-ratio: 1;
  color: var(--ink);
  background:
    radial-gradient(circle at 35% 30%, rgba(244, 239, 232, 0.95), transparent 0 6%, transparent 7%),
    linear-gradient(145deg, var(--cyan), #1b8997);
  border: 1px solid rgba(244, 239, 232, 0.38);
  border-radius: 44% 44% 38% 38%;
  box-shadow:
    inset -18px -22px 28px rgba(7, 16, 20, 0.26),
    0 0 58px rgba(54, 198, 213, 0.48);
}

.character-head::after {
  content: "";
  position: absolute;
  left: 26%;
  right: 26%;
  bottom: 18%;
  height: 7%;
  background: rgba(7, 16, 20, 0.82);
  border-radius: 999px;
  transform: scaleX(calc(0.55 + var(--hero-pulse) * 0.45));
  transform-origin: center;
}

.character-eye {
  position: absolute;
  top: 35%;
  width: 9%;
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 50%;
  transform: translateX(calc(var(--hero-pointer-x, 0) * 0.04px));
}

.eye-left {
  left: 31%;
}

.eye-right {
  right: 31%;
}

.character-mark {
  position: absolute;
  left: 50%;
  top: 49%;
  font-weight: 1000;
  transform: translate(-50%, -50%);
}

.character-body {
  left: 12%;
  top: 52%;
  width: 76%;
  height: 34%;
  background:
    linear-gradient(180deg, rgba(244, 239, 232, 0.16), transparent),
    #101c22;
  border: 1px solid rgba(244, 239, 232, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.body-screen {
  position: absolute;
  left: 12%;
  top: 18%;
  width: 76%;
  height: 22%;
  background:
    linear-gradient(90deg, var(--lime) 0 36%, transparent 36% 48%, var(--cyan) 48% 74%, transparent 74%);
  box-shadow: 0 0 18px rgba(201, 255, 74, 0.42);
}

.body-button {
  position: absolute;
  bottom: 18%;
  width: 13%;
  aspect-ratio: 1;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 79, 139, 0.55);
}

.body-button:nth-of-type(2) {
  left: 22%;
}

.body-button:nth-of-type(3) {
  left: 44%;
  background: var(--lime);
}

.body-button:nth-of-type(4) {
  left: 66%;
  background: var(--cyan);
}

.character-arm {
  top: 58%;
  width: 36%;
  height: 6%;
  background: var(--cyan);
  border-radius: 999px;
  transform-origin: center right;
  box-shadow: 0 0 18px rgba(54, 198, 213, 0.42);
}

.arm-left {
  left: -15%;
  transform: rotate(-26deg);
}

.arm-right {
  right: -15%;
  transform: rotate(26deg);
  transform-origin: center left;
}

.character-leg {
  top: 83%;
  width: 12%;
  height: 20%;
  background: #12252b;
  border-radius: 999px;
}

.leg-left {
  left: 30%;
}

.leg-right {
  right: 30%;
}

.show-console {
  position: absolute;
  left: 50%;
  bottom: 10%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 42%;
  min-height: 24px;
  padding: 8px;
  background: rgba(7, 16, 20, 0.72);
  border: 1px solid rgba(244, 239, 232, 0.18);
  border-radius: 8px;
  transform: translateX(-50%) rotateX(62deg);
  transform-origin: center bottom;
}

.show-console span {
  min-height: 8px;
  background: var(--lime);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(201, 255, 74, 0.48);
  animation: consoleBlink 1.8s ease-in-out infinite;
}

.show-console span:nth-child(2) {
  background: var(--cyan);
  animation-delay: 0.25s;
}

.show-console span:nth-child(3) {
  background: var(--pink);
  animation-delay: 0.5s;
}

.show-console span:nth-child(4) {
  animation-delay: 0.75s;
}

.hero-spark {
  position: absolute;
  z-index: 3;
  left: var(--spark-x);
  top: var(--spark-y);
  min-width: 84px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 34px rgba(201, 255, 74, 0.48);
  animation: sparkLaunch 900ms ease forwards;
}

.hero.is-fired .show-character {
  animation: characterFloat 3.2s ease-in-out infinite, characterKick 360ms ease;
}

.hero.is-fired .show-orbit {
  animation-duration: 2.4s;
}

@keyframes orbitPulse {
  50% {
    transform: scale(1.035);
    border-color: rgba(201, 255, 74, 0.34);
    box-shadow: 0 0 60px rgba(54, 198, 213, 0.16);
  }
}

@keyframes chipFloat {
  50% {
    translate: 0 -8px;
  }
}

@keyframes characterFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -14px;
  }
}

@keyframes characterKick {
  30% {
    transform:
      translate(-50%, -50%)
      translateZ(112px)
      rotateZ(calc(var(--hero-tilt-x) * -0.25))
      scale(1.08);
  }
}

@keyframes consoleBlink {
  50% {
    opacity: 0.35;
    transform: scaleX(0.42);
  }
}

@keyframes sparkLaunch {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(0.78);
  }

  16% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-dx)), calc(-180% + var(--spark-dy))) scale(1.08);
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4.1rem, 15vw, 12.5rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(244, 239, 232, 0.9);
  font-size: clamp(1.18rem, 2.6vw, 2rem);
  line-height: 1.22;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action,
.filter-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.primary-action,
.secondary-action {
  gap: 10px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-action {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.secondary-action {
  background: rgba(244, 239, 232, 0.08);
  backdrop-filter: blur(12px);
}

.collision-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(7, 16, 20, 0.72);
  backdrop-filter: blur(14px);
}

.collision-strip span {
  flex: 1 0 auto;
  min-width: 180px;
  padding: 16px 20px;
  color: rgba(244, 239, 232, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-right: 1px solid var(--line);
}

.section-pad {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

#play,
#work,
#services,
#contact {
  scroll-margin-top: 78px;
}

.bridge {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: end;
  color: var(--ink);
  background: var(--paper);
}

.bridge .section-kicker {
  color: #cd215f;
  grid-column: 1 / -1;
  margin-bottom: -24px;
}

.bridge h2,
.services h2,
.proof h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.bridge p {
  color: rgba(7, 16, 20, 0.76);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.55;
}

.play-lab {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(54, 198, 213, 0.16), transparent 44%),
    #101720;
}

.play-copy h2,
.work h2 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 8vw, 7rem);
  line-height: 0.9;
}

.play-copy p {
  color: rgba(244, 239, 232, 0.76);
  font-size: 1.05rem;
  line-height: 1.6;
}

.play-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 18px;
}

.play-stats span {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 232, 0.06);
  color: rgba(244, 239, 232, 0.76);
  text-align: center;
}

.play-stats strong {
  display: block;
  color: var(--paper);
  font-size: 1.6rem;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.game-controls input {
  min-height: 46px;
  width: min(180px, 100%);
  padding: 0 14px;
  color: var(--paper);
  background: rgba(244, 239, 232, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.game-controls input:focus {
  border-color: var(--lime);
}

.icon-button {
  width: 46px;
  color: var(--paper);
  background: transparent;
}

.play-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071014;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mole-cabinet {
  position: relative;
  padding: clamp(16px, 3vw, 28px);
  background:
    repeating-linear-gradient(90deg, rgba(244, 239, 232, 0.04) 0 1px, transparent 1px 28px),
    linear-gradient(145deg, rgba(255, 79, 139, 0.2), transparent 42%),
    linear-gradient(315deg, rgba(54, 198, 213, 0.18), transparent 48%),
    #071014;
  overflow: hidden;
}

.mole-cabinet::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(201, 255, 74, 0.22), transparent),
    radial-gradient(circle at 20% 0%, rgba(255, 79, 139, 0.2), transparent 32%);
  opacity: 0.5;
  transform: translateX(-115%);
  animation: cabinetScanner 2.8s linear infinite;
}

.mole-cabinet > * {
  position: relative;
  z-index: 1;
}

.cabinet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cabinet-top span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.cabinet-top strong {
  color: var(--paper);
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  line-height: 1;
}

.mole-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
}

.mole-hole {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 68%, rgba(0, 0, 0, 0.82) 0 34%, transparent 35%),
    linear-gradient(180deg, rgba(244, 239, 232, 0.08), rgba(244, 239, 232, 0.02));
  border: 1px solid rgba(244, 239, 232, 0.12);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transform: translateZ(0);
  transition: border-color 120ms ease, filter 120ms ease, transform 120ms ease;
}

.mole-hole::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 16%;
  height: 16%;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
}

.mole-hole::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(54, 198, 213, 0.28);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.45);
}

.mole {
  position: relative;
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 50% 50% 42% 42%;
  box-shadow: 0 0 26px rgba(54, 198, 213, 0.5);
  transform: translateY(115%);
  transition: transform 120ms ease;
  font-weight: 1000;
}

.mole::before,
.mole::after {
  content: "";
  position: absolute;
  top: 34%;
  width: 8%;
  height: 8%;
  background: var(--ink);
  border-radius: 50%;
}

.mole::before {
  left: 32%;
}

.mole::after {
  right: 32%;
}

.mole-hole.is-up .mole {
  transform: translateY(8%);
  animation: moleBob 420ms ease-in-out infinite alternate;
}

.mole-hole.is-up::after {
  opacity: 1;
  animation: targetRing 680ms ease-out infinite;
}

.mole-hole.is-bonus .mole {
  background: var(--lime);
  box-shadow: 0 0 30px rgba(201, 255, 74, 0.58), 0 0 70px rgba(201, 255, 74, 0.24);
}

.mole-hole.is-bonus {
  border-color: rgba(201, 255, 74, 0.86);
  animation: bonusCharge 520ms ease-in-out infinite alternate;
}

.mole-hole.is-decoy .mole {
  color: var(--paper);
  background: var(--pink);
  box-shadow: 0 0 32px rgba(255, 79, 139, 0.58), 0 0 78px rgba(255, 79, 139, 0.28);
}

.mole-hole.is-decoy {
  border-color: rgba(255, 79, 139, 0.9);
  animation: decoyFlicker 340ms steps(2, end) infinite;
}

.mole-hole.is-decoy .mole::before,
.mole-hole.is-decoy .mole::after {
  height: 4%;
  border-radius: 0;
  transform: rotate(35deg);
}

.mole-hole.is-decoy .mole::after {
  transform: rotate(-35deg);
}

.mole-hole.is-hit {
  border-color: var(--pink);
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 79, 139, 0.28), transparent 44%),
    linear-gradient(180deg, rgba(244, 239, 232, 0.08), rgba(244, 239, 232, 0.02));
  transform: scale(0.97);
}

.mole-hole.is-miss {
  border-color: rgba(255, 79, 139, 0.8);
  animation: missPulse 180ms ease;
}

.mole-cabinet.is-shaking {
  animation: cabinetShake 180ms ease;
}

.mole-burst {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  color: var(--lime);
  font-size: clamp(1rem, 1.8vw, 1.65rem);
  font-weight: 1000;
  text-shadow: 0 0 18px rgba(201, 255, 74, 0.7);
  transform: translate(-50%, -50%);
  animation: burstFloat 620ms ease forwards;
}

@keyframes cabinetScanner {
  to {
    transform: translateX(115%);
  }
}

@keyframes moleBob {
  from {
    transform: translateY(8%) scale(1);
  }

  to {
    transform: translateY(1%) scale(1.05);
  }
}

@keyframes targetRing {
  from {
    opacity: 0.95;
    transform: scale(0.45);
  }

  to {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes bonusCharge {
  from {
    filter: brightness(1);
  }

  to {
    filter: brightness(1.32);
  }
}

@keyframes decoyFlicker {
  0%,
  100% {
    filter: hue-rotate(0deg) brightness(1);
  }

  50% {
    filter: hue-rotate(18deg) brightness(1.3);
  }
}

.mole-burst.bad {
  color: var(--pink);
  text-shadow: 0 0 18px rgba(255, 79, 139, 0.75);
}

@keyframes burstFloat {
  from {
    opacity: 1;
    transform: translate(-50%, -25%) scale(0.82);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -115%) scale(1.2);
  }
}

@keyframes missPulse {
  from {
    filter: brightness(1.5);
  }

  to {
    filter: brightness(1);
  }
}

@keyframes cabinetShake {
  0%,
  100% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(-5px);
  }

  65% {
    transform: translateX(5px);
  }
}

.leaderboard-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.leaderboard-panel > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.leaderboard-panel span {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leaderboard-panel button {
  color: rgba(244, 239, 232, 0.72);
  background: transparent;
  border: 0;
  cursor: pointer;
}

#leaderboardList {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 24px;
}

#leaderboardList li {
  padding: 8px 10px;
  color: rgba(244, 239, 232, 0.82);
  background: rgba(244, 239, 232, 0.06);
  border-radius: 8px;
}

#leaderboardList strong {
  color: var(--paper);
}

.work {
  background: #f7f1e8;
  color: var(--ink);
}

.photo-archive {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(54, 198, 213, 0.12), transparent 35%),
    linear-gradient(225deg, rgba(255, 79, 139, 0.1), transparent 40%),
    #0c1117;
}

.archive-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.archive-intro h2 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.7rem);
  line-height: 0.95;
}

.archive-intro p {
  margin: 0;
  color: rgba(244, 239, 232, 0.72);
  font-size: 1rem;
  line-height: 1.6;
}

.archive-grid {
  display: grid;
  gap: 18px;
}

.archive-project {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.archive-project-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 14px;
}

.archive-project-head p {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-project-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2.4rem);
  line-height: 1;
}

.archive-project-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 0.95;
}

.archive-project-head span {
  color: rgba(244, 239, 232, 0.66);
  line-height: 1.5;
}

.archive-photos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}

.archive-photo {
  grid-column: span 2;
  position: relative;
  min-height: 150px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
  overflow: hidden;
  background: rgba(244, 239, 232, 0.08);
}

.archive-photo:nth-child(7n + 1),
.archive-photo:nth-child(11n + 5) {
  grid-column: span 4;
  min-height: 240px;
}

.archive-photo:nth-child(5n + 3) {
  grid-column: span 3;
}

.archive-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 420ms ease, filter 220ms ease;
}

.archive-photo:hover img {
  transform: scale(1.05);
  filter: saturate(1.15);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(7, 16, 20, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  color: var(--paper);
  background: rgba(244, 239, 232, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.work .section-kicker,
.services .section-kicker {
  color: #cd215f;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border-color: rgba(7, 16, 20, 0.18);
}

.filter-button.active {
  color: var(--paper);
  background: var(--ink);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.category-strip,
.category-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 34px;
}

.category-card {
  position: relative;
  display: block;
  min-height: 112px;
  padding: 0;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid rgba(7, 16, 20, 0.16);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.74;
  transition: transform 250ms ease, opacity 200ms ease;
}

.category-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.category-card:hover img,
.category-card.active img {
  transform: scale(1.05);
  opacity: 0.95;
}

.category-card.active {
  outline: 3px solid var(--lime);
  outline-offset: -3px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  grid-column: span 4;
  position: relative;
  min-height: 470px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(7, 16, 20, 0.16);
  transition: transform 180ms ease, opacity 180ms ease;
}

.case-card:nth-child(4n + 2),
.case-card:nth-child(6n + 4) {
  grid-column: span 5;
}

.case-card:nth-child(5n + 3) {
  grid-column: span 3;
}

.case-card:hover {
  transform: translateY(-6px);
}

.case-card.is-hidden {
  display: none;
}

.case-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 420ms ease, opacity 220ms ease;
}

.case-card:hover img {
  transform: scale(1.05);
  opacity: 0.96;
}

.case-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 80px 22px 22px;
  background: linear-gradient(0deg, rgba(7, 16, 20, 0.95), rgba(7, 16, 20, 0));
}

.case-card p {
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.32rem, 2.3vw, 2rem);
  line-height: 1;
}

.case-card span {
  color: rgba(244, 239, 232, 0.76);
  font-size: 0.93rem;
  line-height: 1.45;
}

.portfolio-page,
.project-page {
  background: var(--paper);
}

.portfolio-hero {
  min-height: 48vh;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.48fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: end;
  padding-top: 150px;
  padding-bottom: clamp(34px, 5vw, 64px);
  color: var(--ink);
  background: var(--paper);
}

.portfolio-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.8rem, 9vw, 8.7rem);
  line-height: 0.84;
}

.portfolio-hero p {
  margin: 0 0 12px;
  color: rgba(7, 16, 20, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.portfolio-browser {
  color: var(--ink);
  background: #f7f1e8;
}

.category-dock {
  position: sticky;
  top: 78px;
  z-index: 5;
  padding: 10px 0;
  background: rgba(247, 241, 232, 0.86);
  backdrop-filter: blur(14px);
}

.portfolio-browser-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.portfolio-browser-head h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.8rem);
  line-height: 0.9;
}

.portfolio-browser-head p {
  margin: 0 0 8px;
  color: rgba(7, 16, 20, 0.7);
  line-height: 1.55;
}

.project-index {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.project-tile {
  grid-column: span 4;
  display: grid;
  min-height: 380px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(7, 16, 20, 0.14);
}

.project-tile:nth-child(5n + 2) {
  grid-column: span 5;
}

.project-tile:nth-child(7n + 4) {
  grid-column: span 3;
}

.project-tile img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 420ms ease, opacity 220ms ease;
}

.project-tile:hover img {
  transform: scale(1.05);
  opacity: 0.96;
}

.project-tile-info {
  grid-area: 1 / 1;
  align-self: end;
  padding: 96px 20px 20px;
  background: linear-gradient(0deg, rgba(7, 16, 20, 0.94), rgba(7, 16, 20, 0));
}

.project-tile-info p {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-tile-info h3 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  line-height: 1;
}

.project-tile-info span {
  color: rgba(244, 239, 232, 0.78);
  line-height: 1.45;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.project-meta b {
  padding: 7px 10px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 8px;
  font-size: 0.72rem;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: 82vh;
  padding-top: 92px;
  color: var(--paper);
  background: var(--ink);
}

.project-detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.project-detail-copy {
  align-self: end;
  padding: clamp(34px, 6vw, 76px);
}

.project-detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 0.86;
}

.project-detail-copy p {
  max-width: 650px;
  color: rgba(244, 239, 232, 0.78);
  line-height: 1.6;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--lime);
  font-weight: 900;
}

.project-gallery {
  color: var(--paper);
  background: #0c1117;
}

.services {
  color: var(--ink);
  background: var(--paper);
}

.service-map {
  margin-top: clamp(34px, 5vw, 70px);
  border-top: 1px solid rgba(7, 16, 20, 0.18);
}

.service-row {
  display: grid;
  grid-template-columns: 80px minmax(200px, 0.68fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid rgba(7, 16, 20, 0.18);
}

.service-row span {
  color: #cd215f;
  font-weight: 900;
}

.service-row h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  line-height: 1;
}

.service-row p {
  margin: 0;
  color: rgba(7, 16, 20, 0.68);
  font-size: 1rem;
  line-height: 1.55;
}

.proof {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #101720;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.logo-cloud span {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(244, 239, 232, 0.78);
  font-weight: 900;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  color: var(--ink);
  background: var(--lime);
}

.contact-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-image img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.contact-copy .section-kicker {
  color: #cd215f;
}

.contact-copy p {
  margin-top: 28px;
  margin-bottom: 8px;
  font-weight: 800;
}

.contact-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 1000;
  line-height: 1;
}

address {
  max-width: 440px;
  color: rgba(7, 16, 20, 0.72);
  font-style: normal;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.82rem;
  }

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

  .hero-media img:nth-child(n + 2) {
    display: none;
  }

  .hero-3d-stage {
    right: -76px;
    bottom: clamp(178px, 25vh, 238px);
    width: min(38vw, 310px);
    min-width: 260px;
    opacity: 0.74;
  }

  .orbit-chip {
    min-width: 68px;
    min-height: 30px;
    font-size: 0.66rem;
  }

  .bridge,
  .play-lab,
  .proof,
  .contact,
  .archive-intro,
  .archive-project-head,
  .portfolio-hero,
  .portfolio-browser-head,
  .project-detail-hero,
  .service-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .case-card,
  .case-card:nth-child(4n + 2),
  .case-card:nth-child(6n + 4),
  .case-card:nth-child(5n + 3) {
    grid-column: span 6;
  }

  .category-strip,
  .category-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-tile,
  .project-tile:nth-child(5n + 2),
  .project-tile:nth-child(7n + 4) {
    grid-column: span 6;
  }

  .project-detail-hero img {
    min-height: 420px;
    order: -1;
  }

  .archive-photo,
  .archive-photo:nth-child(7n + 1),
  .archive-photo:nth-child(11n + 5),
  .archive-photo:nth-child(5n + 3) {
    grid-column: span 4;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    min-height: 92vh;
    padding-top: 150px;
  }

  .hero-3d-stage {
    top: 116px;
    right: -108px;
    bottom: auto;
    width: min(64vw, 266px);
    min-width: 0;
    opacity: 0.58;
  }

  .show-console {
    width: 50%;
  }

  .hero-3d-label {
    display: none;
  }

  .orbit-chip {
    min-width: 58px;
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.58rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .collision-strip {
    overflow-x: auto;
  }

  #play,
  #work,
  #services,
  #contact {
    scroll-margin-top: 0;
  }

  .play-stats,
  .logo-cloud {
    grid-template-columns: 1fr;
  }

  .game-controls,
  .game-controls input,
  .game-controls .primary-action {
    width: 100%;
  }

  .mole-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cabinet-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-card,
  .case-card:nth-child(4n + 2),
  .case-card:nth-child(6n + 4),
  .case-card:nth-child(5n + 3) {
    grid-column: 1 / -1;
    min-height: 390px;
  }

  .portfolio-hero {
    min-height: 64vh;
    padding-top: 160px;
  }

  .category-strip,
  .category-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-card {
    min-height: 92px;
  }

  .project-tile,
  .project-tile:nth-child(5n + 2),
  .project-tile:nth-child(7n + 4) {
    grid-column: 1 / -1;
    min-height: 340px;
  }

  .category-dock {
    position: static;
  }

  .project-detail-hero {
    padding-top: 136px;
  }

  .project-detail-hero img {
    min-height: 300px;
  }

  .archive-photos {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .archive-photo,
  .archive-photo:nth-child(7n + 1),
  .archive-photo:nth-child(11n + 5),
  .archive-photo:nth-child(5n + 3) {
    grid-column: span 3;
    min-height: 135px;
  }

  .archive-photo:nth-child(4n + 1) {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .contact-image img {
    min-height: 280px;
  }
}

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

  .cursor-light,
  .signal-canvas {
    display: none;
  }
}
