:root {
  --bg-0: #070b14;
  --bg-1: #0f1727;
  --bg-2: #111d33;
  --text: #e8efff;
  --muted: #91a0bf;
  --line: rgba(155, 191, 255, 0.18);
  --cyan: #46deff;
  --blue: #3d65ff;
  --gold: #b89a4f;
  --panel: rgba(12, 19, 35, 0.58);
  --panel-strong: rgba(13, 22, 39, 0.82);
  --radius: 18px;
  --scroll-progress: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% -10%, #182a55 0%, transparent 42%),
    radial-gradient(circle at 90% 8%, rgba(65, 31, 93, 0.52) 0%, transparent 33%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 42%, #050910 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

body.service-modal-open {
  overflow: hidden;
}

body.mobile-nav-open {
  overflow: hidden;
}

main {
  position: relative;
  z-index: 2;
  scroll-snap-type: y proximity;
}

.section {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) 0;
  position: relative;
  scroll-snap-align: start;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

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

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.55;
  transform: translate3d(0, calc(var(--scroll-progress) * -30px), 0);
  will-change: transform;
}

.orb-a {
  width: clamp(240px, 34vw, 500px);
  height: clamp(240px, 34vw, 500px);
  left: -8%;
  top: 6%;
  background: radial-gradient(circle at 30% 30%, #4ab4ff, transparent 62%);
}

.orb-b {
  width: clamp(260px, 36vw, 560px);
  height: clamp(260px, 36vw, 560px);
  right: -7%;
  top: 30%;
  background: radial-gradient(circle at 50% 50%, #4948ff, transparent 58%);
}

.orb-c {
  width: clamp(220px, 28vw, 420px);
  height: clamp(220px, 28vw, 420px);
  left: 30%;
  bottom: -12%;
  background: radial-gradient(circle at 50% 50%, #b89a4f, transparent 62%);
  opacity: 0.35;
}

.grid-noise {
  position: absolute;
  inset: 0;
  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);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 26%, transparent 75%);
}

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

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#game-ui {
  position: static;
  z-index: 10;
  pointer-events: none;
}

#game-hud {
  position: fixed;
  right: 1rem;
  top: 5.2rem;
  z-index: 10;
  border: 1px solid rgba(116, 188, 255, 0.35);
  border-radius: 999px;
  background: rgba(9, 18, 34, 0.58);
  box-shadow: inset 0 1px 0 rgba(193, 226, 255, 0.16), 0 10px 26px rgba(0, 0, 0, 0.32);
  color: #dbeaff;
  padding: 0.36rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: "Sora", sans-serif;
  pointer-events: auto;
}

#game-score {
  color: #74d8ff;
}

#game-best {
  color: #ffd36b;
}

.game-chip {
  border: 1px solid rgba(122, 180, 247, 0.34);
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  background: rgba(11, 21, 41, 0.74);
  white-space: nowrap;
}

#highscore-tab,
#highscore-close {
  border: 1px solid rgba(126, 188, 255, 0.45);
  border-radius: 999px;
  background: rgba(24, 44, 81, 0.85);
  color: #e5f0ff;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.31rem 0.66rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#highscore-tab:hover,
#highscore-tab:focus-visible,
#highscore-close:hover,
#highscore-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(113, 219, 255, 0.82);
  box-shadow: 0 8px 20px rgba(23, 115, 215, 0.33);
}

#highscore-panel {
  position: fixed;
  right: 1rem;
  top: 8.2rem;
  z-index: 10;
  width: min(260px, 82vw);
  border: 1px solid rgba(116, 188, 255, 0.35);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(14, 26, 49, 0.93), rgba(9, 16, 31, 0.95));
  box-shadow: inset 0 1px 0 rgba(189, 222, 255, 0.12), 0 16px 36px rgba(0, 0, 0, 0.46);
  padding: 0.75rem;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#highscore-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.highscore-title {
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  color: #9bc5ff;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family: "Sora", sans-serif;
}

#highscore-list {
  margin: 0 0 0.62rem 0;
  padding-left: 1.25rem;
  color: #dce9ff;
  font-size: 0.86rem;
  line-height: 1.45;
  min-height: 6.3rem;
}

#highscore-list li {
  margin-bottom: 0.2rem;
}

#intro {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: #02050e;
  transition: opacity 0.9s cubic-bezier(0.2, 0.65, 0.1, 1);
}

#intro-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.intro-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 25%, rgba(0, 0, 0, 0.72));
}

body.intro-finished #intro {
  opacity: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 7;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(8, 14, 26, 0.82), rgba(8, 14, 26, 0.35));
  border-bottom: 1px solid rgba(118, 148, 207, 0.2);
}

.nav-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand img {
  width: clamp(112px, 15vw, 148px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(69, 162, 255, 0.22));
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: #c8d6f5;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(120, 180, 255, 0.5);
  border-radius: 11px;
  background: rgba(17, 31, 58, 0.88);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #dceaff;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.mobile-menu {
  display: none;
}

.button-small,
.button-primary,
.button-ghost {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button-small {
  font-size: 0.88rem;
  padding: 0.54rem 1rem;
  border: 1px solid rgba(91, 182, 255, 0.45);
  background: rgba(66, 148, 255, 0.14);
}

.hero {
  min-height: 88vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hero-panel {
  width: 100%;
  max-width: 920px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(2rem, 6vw, 4.2rem);
  background: linear-gradient(
      170deg,
      rgba(49, 79, 140, 0.2),
      rgba(14, 22, 39, 0.38) 40%,
      rgba(11, 17, 30, 0.7)
    ),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(197, 223, 255, 0.14), 0 26px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.18) contrast(1.06);
  opacity: 0.5;
  transform: scale(1.03);
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 26%,
    rgba(0, 0, 0, 0.42) 46%,
    rgba(0, 0, 0, 0.08) 62%,
    rgba(0, 0, 0, 0) 74%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 26%,
    rgba(0, 0, 0, 0.42) 46%,
    rgba(0, 0, 0, 0.08) 62%,
    rgba(0, 0, 0, 0) 74%
  );
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(152, 217, 255, 0.34) 0%,
    rgba(88, 156, 233, 0.22) 20%,
    rgba(26, 45, 78, 0.2) 44%,
    rgba(26, 45, 78, 0.05) 70%,
    rgba(26, 45, 78, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(120, 214, 255, 0),
    rgba(120, 214, 255, 0.95) 50%,
    rgba(120, 214, 255, 0)
  );
  box-shadow: 0 0 22px rgba(120, 214, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}

.eyebrow {
  color: #9cc1ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5.8vw, 4.4rem);
  line-height: 1.07;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.hero-subtext {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-cta {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.hero-panel > :not(.hero-media) {
  position: relative;
  z-index: 2;
}

.button-primary,
.button-ghost {
  padding: 0.82rem 1.45rem;
}

.button-primary {
  background: linear-gradient(140deg, #3aa8ff, #3559ff);
  border: 1px solid rgba(191, 230, 255, 0.42);
  color: #eff6ff;
  box-shadow: 0 8px 28px rgba(33, 109, 255, 0.4);
}

.button-ghost {
  border: 1px solid rgba(131, 173, 247, 0.34);
  background: rgba(130, 156, 210, 0.1);
  color: #d8e4ff;
}

.button-primary:hover,
.button-primary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible,
.button-small:hover,
.button-small:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(55, 126, 248, 0.35);
}

.section-heading {
  margin-bottom: 1.7rem;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.13;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  perspective: 1200px;
  position: relative;
  z-index: 2;
}

.service-card {
  grid-column: span 4;
  min-height: 250px;
  border: 1px solid rgba(127, 158, 220, 0.28);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: linear-gradient(155deg, rgba(56, 99, 170, 0.18), rgba(14, 23, 39, 0.66));
  box-shadow: inset 0 1px 0 rgba(203, 221, 255, 0.08), 0 8px 35px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  transform: translateY(8px);
  transform-style: preserve-3d;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
  pointer-events: auto;
}

.service-card h3 {
  font-size: 1.16rem;
  margin-bottom: 0.8rem;
}

.services .section-heading p {
  max-width: 760px;
}

.services-hint {
  margin-top: 0.7rem;
  color: #9bc6ff;
  font-size: 0.84rem;
}

.service-proof {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8fbef3;
}

.service-card:hover {
  border-color: rgba(111, 213, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(203, 221, 255, 0.14), 0 12px 50px rgba(21, 130, 225, 0.3);
}

.service-card {
  cursor: pointer;
}

.service-card.is-active {
  border-color: rgba(103, 220, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(222, 236, 255, 0.15), 0 14px 48px rgba(18, 119, 221, 0.42);
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 23;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.service-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34, 64, 113, 0.42), rgba(3, 7, 15, 0.94));
  backdrop-filter: blur(6px);
}

.service-modal-card {
  position: relative;
  width: min(760px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(113, 172, 246, 0.46);
  background: linear-gradient(165deg, rgba(31, 56, 99, 0.84), rgba(8, 14, 25, 0.95));
  box-shadow: inset 0 1px 0 rgba(206, 227, 255, 0.16), 0 20px 54px rgba(0, 0, 0, 0.52);
  padding: clamp(1rem, 2.5vw, 1.6rem);
}

.service-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid rgba(122, 188, 255, 0.45);
  border-radius: 999px;
  background: rgba(19, 36, 64, 0.82);
  color: #e5f0ff;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: "Sora", sans-serif;
  padding: 0.34rem 0.65rem;
  cursor: pointer;
}

.service-modal-kicker {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #8ecfff;
  margin-bottom: 0.55rem;
}

.service-modal h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  margin-bottom: 0.72rem;
}

#service-modal-description {
  color: #d1dff8;
}

#service-modal-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: #e1ecff;
  display: grid;
  gap: 0.42rem;
}

.service-modal-cta {
  margin-top: 0.9rem;
  color: #bfd6ff;
  font-size: 0.9rem;
}

.service-modal-cta a {
  color: #75d7ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work .section-heading p {
  max-width: 680px;
}

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

.project-card {
  grid-column: span 4;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(121, 160, 239, 0.34);
  overflow: hidden;
  cursor: pointer;
  min-height: 240px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, rgba(14, 21, 37, 0.72), rgba(8, 13, 24, 0.92));
  box-shadow: inset 0 1px 0 rgba(197, 222, 255, 0.07), 0 14px 36px rgba(0, 0, 0, 0.42);
  transform: translateY(8px);
  transform-style: preserve-3d;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(122, 220, 255, 0.16) 0%,
    rgba(122, 220, 255, 0.03) 35%,
    rgba(122, 220, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-hero {
  grid-column: span 12;
  aspect-ratio: 21 / 8;
  min-height: 320px;
}

.project-half {
  grid-column: span 6;
  aspect-ratio: 16 / 10;
}

.project-app {
  background: linear-gradient(180deg, rgba(15, 24, 43, 0.82), rgba(7, 12, 22, 0.95));
}

.project-app img {
  object-fit: contain;
  object-position: center;
  padding: 0.6rem;
  filter: saturate(1.08) contrast(1.03);
}

.project-app .project-overlay {
  background: linear-gradient(
    to top,
    rgba(2, 6, 13, 0.84) 0%,
    rgba(2, 6, 13, 0.4) 42%,
    rgba(2, 6, 13, 0.04) 100%
  );
}

.project-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(2, 6, 13, 0.95) 2%,
    rgba(2, 6, 13, 0.72) 42%,
    rgba(2, 6, 13, 0.18) 100%
  );
}

.project-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #85ceff;
  margin-bottom: 0.5rem;
}

.project-overlay h3 {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  line-height: 1.2;
  color: #f0f6ff;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.project-card:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(91, 222, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(209, 228, 255, 0.13), 0 18px 54px rgba(16, 121, 230, 0.34);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.2) contrast(1.09);
}

.project-app:hover img {
  transform: scale(1.01);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(28, 58, 107, 0.4), rgba(3, 7, 15, 0.92));
  backdrop-filter: blur(8px);
}

.lightbox-frame {
  position: relative;
  width: min(1220px, 94vw);
  border-radius: 20px;
  border: 1px solid rgba(114, 177, 252, 0.45);
  background: linear-gradient(165deg, rgba(24, 40, 70, 0.74), rgba(7, 12, 23, 0.95));
  box-shadow: inset 0 1px 0 rgba(214, 230, 255, 0.18), 0 22px 80px rgba(6, 28, 58, 0.75);
  padding: clamp(0.7rem, 1.5vw, 1rem);
}

.lightbox-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(118, 204, 255, 0.28);
  pointer-events: none;
}

.lightbox-figure {
  margin: 0;
}

#lightbox-image {
  width: 100%;
  height: min(78vh, 920px);
  object-fit: contain;
  display: block;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.82), rgba(4, 8, 17, 0.98));
}

#lightbox-caption {
  margin-top: 0.72rem;
  padding-inline: 0.25rem;
  color: #d8e7ff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(122, 181, 255, 0.42);
  border-radius: 999px;
  background: rgba(18, 34, 63, 0.8);
  color: #eaf3ff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lightbox-close {
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.45rem 0.86rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 1.7rem;
  line-height: 1;
  z-index: 2;
}

.lightbox-prev {
  left: 0.8rem;
}

.lightbox-next {
  right: 0.8rem;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: rgba(108, 214, 255, 0.82);
  box-shadow: 0 8px 22px rgba(25, 115, 219, 0.38);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: translateY(-2px);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.clients-shell {
  border: 1px solid rgba(137, 172, 241, 0.26);
  border-radius: 24px;
  padding: 1.05rem;
  background: linear-gradient(165deg, rgba(52, 89, 161, 0.2), rgba(10, 16, 29, 0.84));
  box-shadow: inset 0 1px 0 rgba(201, 224, 255, 0.09), 0 18px 52px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.8rem;
}

.clients-marquee {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(123, 157, 229, 0.2);
  background: linear-gradient(180deg, rgba(12, 21, 38, 0.8), rgba(8, 14, 24, 0.52));
}

.clients-track {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  padding: 0.95rem;
  animation: client-marquee 36s linear infinite;
}

.clients-marquee-reverse .clients-track {
  animation-direction: reverse;
  animation-duration: 42s;
}

.clients-shell:hover .clients-track {
  animation-play-state: paused;
}

.client-badge {
  margin: 0;
  flex: 0 0 clamp(150px, 15.5vw, 185px);
  aspect-ratio: 1 / 1;
  height: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(123, 170, 255, 0.24);
  border-radius: 14px;
  padding: 0.62rem;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    rgba(48, 78, 136, 0.18),
    rgba(11, 20, 37, 0.86) 58%,
    rgba(10, 18, 34, 0.95)
  );
  box-shadow: inset 0 1px 0 rgba(196, 218, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.client-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) brightness(1.22) contrast(1.03);
  opacity: 0.88;
  transition: filter 0.28s ease, opacity 0.28s ease;
}

.client-badge:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(103, 216, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(215, 233, 255, 0.13), 0 10px 32px rgba(26, 122, 233, 0.28);
}

.client-badge:hover img {
  filter: grayscale(0.2) brightness(1.12);
  opacity: 1;
}

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

.why .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  border: 1px solid rgba(141, 180, 255, 0.26);
  border-radius: var(--radius);
  background: var(--panel-strong);
  padding: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.stat-value {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  color: #79d5ff;
  text-shadow: 0 0 22px rgba(88, 185, 255, 0.3);
}

.stat-label {
  color: #c4d2ef;
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-step {
  border: 1px solid rgba(138, 167, 230, 0.25);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: rgba(13, 20, 37, 0.76);
  opacity: 0.55;
  transform: scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.timeline-step.active {
  opacity: 1;
  transform: scale(1.02);
  border-color: rgba(108, 203, 255, 0.72);
}

.step-index {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

.timeline-step h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.contact-shell {
  border: 1px solid rgba(135, 170, 241, 0.3);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(45, 77, 141, 0.23), rgba(8, 13, 23, 0.88));
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.contact-shell h2 {
  margin-bottom: 1.4rem;
  max-width: 560px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  color: #c3d1f0;
  font-size: 0.88rem;
}

.contact-form label:nth-of-type(4),
.contact-form button {
  grid-column: 1 / -1;
}

.contact-status {
  grid-column: 1 / -1;
  min-height: 1.3rem;
  font-size: 0.86rem;
  color: #b8c9ea;
}

.contact-status.success {
  color: #7ce5b0;
}

.contact-status.error {
  color: #ffb5b5;
}

.contact-status a {
  color: #79d2ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

input,
textarea {
  border: 1px solid rgba(136, 171, 233, 0.3);
  border-radius: 12px;
  background: rgba(13, 24, 43, 0.77);
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(87, 212, 255, 0.83);
  box-shadow: 0 0 0 4px rgba(43, 136, 255, 0.15);
}

#cursor-glow {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9;
  background: radial-gradient(circle, rgba(85, 203, 255, 0.45), rgba(85, 203, 255, 0));
  filter: blur(2px);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s ease;
  mix-blend-mode: screen;
}

#cursor-glow.active {
  transform: translate(-50%, -50%) scale(2.15);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  display: grid;
  gap: 0.6rem;
  border: 1px solid rgba(126, 183, 252, 0.42);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(18, 35, 63, 0.92), rgba(8, 14, 27, 0.95));
  box-shadow: inset 0 1px 0 rgba(206, 225, 255, 0.13), 0 18px 44px rgba(0, 0, 0, 0.48);
  padding: 0.8rem 0.92rem;
  max-width: 760px;
  margin-inline: auto;
}

.cookie-banner p {
  color: #d3e2fb;
  font-size: 0.86rem;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-banner button {
  border: 1px solid rgba(130, 196, 255, 0.46);
  border-radius: 999px;
  background: rgba(23, 43, 78, 0.9);
  color: #e5f0ff;
  padding: 0.36rem 0.66rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Sora", sans-serif;
  cursor: pointer;
}

.cookie-banner button:hover,
.cookie-banner button:focus-visible {
  border-color: rgba(106, 220, 255, 0.84);
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .project-card {
    grid-column: span 3;
  }

  .project-hero {
    grid-column: span 6;
  }

  .project-half {
    grid-column: span 3;
  }

  .service-card {
    grid-column: span 1;
  }

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

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

  .client-badge {
    flex-basis: clamp(138px, 35vw, 170px);
  }
}

@media (max-width: 860px) {
  .site-header {
    z-index: 12;
  }

  .nav-shell {
    min-height: 64px;
    position: relative;
    justify-content: center;
  }

  .brand {
    justify-content: center;
    margin-inline: auto;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-menu {
    display: grid;
    gap: 0.44rem;
    position: fixed;
    top: 64px;
    left: 0.6rem;
    right: 0.6rem;
    z-index: 11;
    border: 1px solid rgba(126, 182, 255, 0.44);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(16, 31, 56, 0.95), rgba(7, 13, 24, 0.98));
    box-shadow: inset 0 1px 0 rgba(207, 227, 255, 0.13), 0 18px 44px rgba(0, 0, 0, 0.5);
    padding: 0.56rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .mobile-menu a {
    display: block;
    text-align: center;
    border: 1px solid rgba(122, 176, 246, 0.3);
    border-radius: 10px;
    background: rgba(18, 31, 54, 0.7);
    color: #d7e5ff;
    font-size: 0.93rem;
    padding: 0.64rem 0.75rem;
  }

  .mobile-menu .button-small {
    margin-top: 0.15rem;
    width: 100%;
    border-radius: 10px;
    padding: 0.66rem 0.85rem;
    font-size: 0.86rem;
  }

  body.mobile-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.mobile-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 680px) {
  .nav-shell {
    min-height: 64px;
    justify-content: center;
  }

  .brand {
    gap: 0.35rem;
    letter-spacing: 0.03em;
    font-size: 0.86rem;
    width: auto;
    justify-content: center;
  }

  .brand img {
    width: clamp(84px, 26vw, 108px);
  }

  .section {
    width: min(640px, 92vw);
    padding: 3.25rem 0;
    margin-inline: auto;
  }

  .hero-panel,
  .clients-shell,
  .contact-shell,
  .service-modal-card {
    margin-inline: auto;
  }

  .hero-panel {
    text-align: center;
    padding: 1.2rem 0.9rem 1.35rem;
  }

  .hero-media img {
    object-position: center center;
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.7) 42%,
      rgba(0, 0, 0, 0.25) 76%,
      rgba(0, 0, 0, 0.05) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.7) 42%,
      rgba(0, 0, 0, 0.25) 76%,
      rgba(0, 0, 0, 0.05) 100%
    );
  }

  .hero-subtext {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .section-heading,
  .service-card,
  .project-overlay,
  .stat-card,
  .timeline-step {
    text-align: center;
  }

  .section-heading {
    margin-bottom: 1.15rem;
  }

  .section-heading p {
    margin-inline: auto;
    max-width: 34ch;
  }

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

  .service-card {
    min-height: 184px;
    padding: 1.05rem;
    transform: none;
  }

  .service-card h3 {
    font-size: 1.02rem;
    margin-bottom: 0.6rem;
  }

  .service-proof {
    margin-top: 0.58rem;
    font-size: 0.72rem;
  }

  #game-hud {
    top: 4.7rem;
    right: 0.7rem;
    font-size: 0.7rem;
    padding: 0.28rem;
    gap: 0.25rem;
  }

  .game-chip {
    padding: 0.2rem 0.5rem;
  }

  #highscore-tab {
    padding: 0.25rem 0.52rem;
  }

  #highscore-panel {
    right: 0.7rem;
    top: 7.4rem;
    width: min(220px, 80vw);
    padding: 0.62rem;
  }

  #highscore-list {
    min-height: 5.8rem;
    font-size: 0.8rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .contact-shell {
    padding: 1rem 0.82rem 1.12rem;
    border-radius: 20px;
  }

  .contact-shell h2 {
    margin-bottom: 1rem;
    text-align: center;
  }

  .contact-form label {
    gap: 0.34rem;
    font-size: 0.82rem;
  }

  input,
  textarea {
    padding: 0.62rem 0.72rem;
    font-size: 0.95rem;
  }

  textarea {
    min-height: 112px;
  }

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

  .project-card,
  .project-hero,
  .project-half {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
  }

  .project-app {
    aspect-ratio: 4 / 3;
  }

  .lightbox-frame {
    width: min(97vw, 680px);
    padding: 0.6rem;
  }

  #lightbox-image {
    height: min(72vh, 560px);
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 0.42rem;
  }

  .lightbox-next {
    right: 0.42rem;
  }

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

  .clients-track {
    animation-duration: 26s;
  }

  .service-modal-card {
    width: min(96vw, 640px);
    padding: 0.95rem;
  }

  .service-modal-close {
    top: 0.55rem;
    right: 0.55rem;
  }

  .cookie-banner {
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    padding: 0.66rem;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .mobile-menu {
    top: 62px;
    left: 0.45rem;
    right: 0.45rem;
  }

  .brand span {
    display: none;
  }

  .nav-links .button-small {
    padding: 0.38rem 0.5rem;
    font-size: 0.68rem;
  }

  .hero-panel {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  #intro {
    display: none;
  }

  #cursor-glow {
    display: none;
  }

  #game-hud {
    display: none;
  }

  #highscore-panel {
    display: none;
  }
}
