:root {
  --background: #08070a;
  --background-alt: #121016;
  --foreground: #f3f1ee;
  --muted: #a39aa3;
  --accent: #d43d2e;
  --accent-soft: rgba(212, 61, 46, 0.14);
  --border: rgba(243, 241, 238, 0.1);
  --font-display: "Anton", sans-serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
  background: var(--accent);
  color: var(--foreground);
}

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

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

.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  max-width: 32rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-accent {
  background: var(--accent);
  color: var(--foreground);
}

.btn-accent:hover {
  transform: scale(1.05);
}

.btn-outline {
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  height: 32px;
  width: 32px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.1);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--foreground);
}

.nav-contact {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.nav-contact:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--foreground);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 24px 1.5rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-mobile .nav-contact {
  color: var(--accent);
  border: none;
  padding: 0;
  width: fit-content;
}

.nav-mobile.open {
  display: flex;
}

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 96px;
}

.hero-blot {
  animation: blot-drift 14s ease-in-out infinite;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 110vh;
  width: 110vh;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0.07;
  filter: blur(1px);
}

.hero-fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, transparent 0%, var(--background) 75%);
}

.hero-inner {
  position: relative;
  width: 100%;
  animation: fade-in 1.2s ease-out both;
}

.kicker {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: 0.85;
  margin: 0;
  background: linear-gradient(180deg, var(--foreground) 0%, rgba(243, 241, 238, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 2rem 0 0;
  max-width: 36rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hint i {
  height: 32px;
  width: 1px;
  background: linear-gradient(var(--muted), transparent);
}

@keyframes blot-drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, calc(-50% - 14px)) scale(1.015); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Games */
.games-section {
  position: relative;
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.games-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.game-card {
  border: 1px solid var(--border);
  background: var(--background-alt);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.game-card:hover {
  border-color: rgba(212, 61, 46, 0.5);
}

.game-thumb {
  position: relative;
  height: 12rem;
  background: linear-gradient(135deg, rgba(212, 61, 46, 0.2), var(--background-alt) 70%);
}

.game-thumb--b {
  background: linear-gradient(135deg, rgba(243, 241, 238, 0.15), var(--background-alt) 70%);
}

.game-status {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: 1px solid var(--border);
  background: rgba(8, 7, 10, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.game-body {
  padding: 1.5rem;
}

.game-genre {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.game-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.game-blurb {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.game-link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(243, 241, 238, 0.8);
}

.game-card:hover .game-link {
  color: var(--accent);
}

/* Studio */
.studio-section {
  position: relative;
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.studio-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.studio-copy {
  margin-top: 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

.studio-copy p {
  margin: 0 0 1.25rem;
}

.stats-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--accent);
  margin: 0;
}

.stat-label {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.studio-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 26rem;
  justify-self: center;
}

.studio-art-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  filter: blur(60px);
}

.studio-art-img {
  position: relative;
  height: 100%;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(212, 61, 46, 0.25));
}

@media (min-width: 1024px) {
  .studio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Values */
.values-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.values-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.value-card {
  background: var(--background-alt);
  padding: 2.5rem;
}

.value-index {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
}

.value-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 1rem 0 0.75rem;
}

.value-body {
  margin: 0;
  max-width: 24rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Join */
.join-section {
  position: relative;
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.join-blot {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 70vh;
  width: 70vh;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0.1;
}

.join-inner {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.join-lead {
  margin: 0 auto 2.5rem;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.7;
}

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

/* Footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-col-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.footer-col a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
