:root {
  --cb-cream: #fff9eb;
  --cb-purple: #3d0058;
  --cb-pink: #d6196c;
  --cb-cyan: #20d3f7;
  --cb-green: #54f348;

  --ink: #031416;
  --ink-2: #062226;
  --panel: #0a2f34;
  --foam: #e8fff6;
  --foam-dim: rgba(232, 255, 246, 0.68);
  --foam-mute: rgba(232, 255, 246, 0.42);
  --line: rgba(32, 211, 247, 0.22);
  --signal: var(--cb-green);
  --signal-2: var(--cb-cyan);
  --grad-verdant: linear-gradient(135deg, var(--cb-green), var(--cb-cyan));
  --grad-depth: linear-gradient(160deg, #041a1e 0%, #0b3a42 48%, #063028 100%);
  --font-display: "Google Sans Flex", system-ui, sans-serif;
  --font-body: "Google Sans Flex", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(32, 211, 247, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(84, 243, 72, 0.1), transparent 55%),
    var(--grad-depth);
  background-attachment: fixed;
}

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

a {
  color: var(--signal-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(3, 20, 22, 0.88), rgba(3, 20, 22, 0));
  pointer-events: none;
}

.site-nav a {
  pointer-events: auto;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--foam);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav__brand em {
  font-style: normal;
  color: var(--signal);
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.15rem;
  font-size: 0.92rem;
}

.site-nav__links a {
  color: var(--foam-dim);
  text-decoration: none;
}

.site-nav__links a:hover {
  color: var(--signal);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1,
h2 {
  margin: 0 0 1rem;
  line-height: 1.05;
  color: var(--foam);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  max-width: 18ch;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--foam);
}

.lead,
.hero-support {
  margin: 0;
  max-width: 38rem;
  color: var(--foam-dim);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.btn--primary {
  background: var(--grad-verdant);
  color: var(--ink);
}

.btn--primary:hover {
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--foam);
  background: rgba(8, 40, 44, 0.45);
}

.btn--ghost:hover {
  border-color: var(--signal-2);
  color: var(--signal-2);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  background: #031416;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 20, 22, 0.82) 0%, rgba(3, 20, 22, 0.35) 42%, rgba(3, 20, 22, 0.15) 100%),
    linear-gradient(180deg, rgba(3, 20, 22, 0.25) 0%, rgba(3, 20, 22, 0.05) 40%, rgba(3, 20, 22, 0.72) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.2rem, 5vw, 3rem) 6.5rem;
  max-width: 44rem;
  pointer-events: none;
  animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy .btn {
  pointer-events: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.game-hud {
  position: absolute;
  z-index: 3;
  left: clamp(1.2rem, 5vw, 3rem);
  right: clamp(1.2rem, 5vw, 3rem);
  bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  pointer-events: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foam-mute);
  animation: rise-in 1100ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.game-hud__controls,
.game-hud__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.game-hud__controls[hidden],
.game-hud [data-hud-desktop][hidden],
.game-hud [data-hud-mobile][hidden] {
  display: none !important;
}

body.is-touch-game .game-hud [data-hud-desktop] {
  display: none !important;
}

body:not(.is-touch-game) .game-hud [data-hud-mobile] {
  display: none !important;
}

.game-hud kbd {
  display: inline-block;
  margin-right: 0.15rem;
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--line);
  background: rgba(10, 47, 52, 0.8);
  color: var(--signal-2);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.game-hud strong {
  color: var(--signal);
  font-family: var(--font-body);
  font-weight: 700;
}

body.is-touch-game .hero-copy {
  padding-bottom: 7.5rem;
}

body.is-touch-game .game-hud {
  bottom: 1.5rem;
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .hero-copy {
    padding-bottom: 7.25rem;
  }

  .game-hud {
    bottom: 1.4rem;
  }
}

.section {
  position: relative;
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.section--about {
  background:
    linear-gradient(180deg, rgba(3, 20, 22, 0.2), transparent 30%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 22px,
      rgba(32, 211, 247, 0.03) 22px,
      rgba(32, 211, 247, 0.03) 23px
    );
}

.section--services {
  background: linear-gradient(180deg, rgba(6, 40, 44, 0.55), rgba(3, 20, 22, 0.2));
}

.service-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list li:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.service-list p {
  margin: 0;
  color: var(--foam-dim);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.work-piece {
  display: grid;
  grid-template-rows: 160px auto;
  color: inherit;
  text-decoration: none;
  background: rgba(6, 34, 38, 0.55);
  border: 1px solid transparent;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.work-piece:hover {
  border-color: rgba(84, 243, 72, 0.45);
  background: rgba(8, 48, 52, 0.85);
  transform: translateY(-3px);
  color: inherit;
}

.work-piece__media {
  background-color: #0a2f34;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.work-piece__meta {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.15rem;
}

.work-piece__meta strong {
  font-size: 1.2rem;
}

.work-piece__meta span:last-child {
  color: var(--foam-dim);
  font-size: 0.92rem;
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.founder {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.15rem;
  align-items: start;
}

.founder img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.founder__role {
  margin: 0 0 0.75rem;
  color: var(--signal-2);
  font-size: 0.92rem;
}

.founder p {
  color: var(--foam-dim);
}

.section--contact {
  text-align: left;
}

.section--contact .btn {
  margin-top: 1.5rem;
}

.site-footer {
  padding: 2rem clamp(1.2rem, 5vw, 3rem) 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--foam-mute);
  font-size: 0.88rem;
}

.site-footer__rule {
  width: min(16rem, 40%);
  height: 3px;
  margin-bottom: 1rem;
  background: var(--grad-verdant);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: end;
  justify-content: space-between;
}

.site-footer__row > :last-child {
  justify-self: end;
}

.seo-note {
  margin: 0;
  max-width: 24rem;
  color: var(--foam-mute);
  font-size: 0.78rem;
  line-height: 1.45;
}

.site-footer strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--foam);
  font-weight: 700;
}

.site-footer__cross {
  color: var(--signal);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer__cross:hover {
  color: var(--signal-2);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .service-list,
  .work-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .service-list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .founder {
    grid-template-columns: 112px 1fr;
  }

  .founder img {
    width: 112px;
    height: 112px;
  }

  .site-footer__row {
    grid-template-columns: 1fr;
  }

  .site-footer__row > :last-child {
    justify-self: start;
  }

  .site-nav__links {
    display: none;
  }

  h1 {
    max-width: 14ch;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
