@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #121212;
  --paper: #f4f0e6;
  --red: #e94545;
  --blue: #5363e8;
  --acid: #d7f448;
  --muted: #77756e;
  --line: rgba(18, 18, 18, .18);
  --display: "Archivo Black", Impact, sans-serif;
  --body: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--acid);
  padding: .75rem 1rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 88px;
  padding: 1.1rem clamp(1.25rem, 5vw, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand { width: clamp(190px, 22vw, 290px); }
.brand img, .footer-brand img { width: 100%; height: auto; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 3vw, 3rem);
}
.language-switcher {
  display: flex;
  align-items: center;
  gap: .35rem;
  font: 500 .68rem/1 var(--mono);
}
.language-switcher button {
  border: 0;
  padding: .25rem .1rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.language-switcher button.active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.site-header nav a {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.site-header nav a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta {
  background: var(--ink);
  color: white;
  padding: .8rem 1.1rem;
  box-shadow: 4px 4px 0 var(--red);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }
.menu-toggle { display: none; }

.hero {
  min-height: calc(100svh - 88px);
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7.5rem) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
  align-items: center;
  gap: 4vw;
  position: relative;
  overflow: hidden;
}
.hero-copy { min-width: 0; position: relative; z-index: 5; }
.hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -150px;
  top: 12%;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}
.eyebrow {
  margin: 0 0 1.6rem;
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow span { width: 9px; height: 9px; background: var(--red); display: inline-block; }
.eyebrow.light { color: rgba(255,255,255,.66); }
.eyebrow.light span { background: var(--acid); }
h1, h2, h3 { margin: 0; line-height: .98; }
h1, h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: -.055em; }
h1 {
  font-size: clamp(2.65rem, 4.7vw, 5.4rem);
  max-width: 820px;
  overflow-wrap: normal;
}
h1 em, .studio h2 em {
  color: var(--blue);
  font-style: normal;
  -webkit-text-stroke: 1px var(--blue);
}
.hero-text {
  max-width: 650px;
  margin: 2rem 0 2.2rem;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  color: #45443f;
}
.hero-actions { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.button {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.35rem;
  font: 500 .76rem/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.button-primary {
  color: white;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--red);
  transition: transform .2s, box-shadow .2s;
}
.button-primary:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--red); }
.text-link {
  font: 500 .78rem/1 var(--mono);
  text-transform: uppercase;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.hero-art {
  min-height: 600px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 22px 22px 0 rgba(18,18,18,.92);
}
.hero-art::after {
  content: "";
  position: absolute;
  width: 52%;
  height: 14px;
  left: 22%;
  bottom: 10%;
  background: rgba(18,18,18,.2);
  filter: blur(8px);
  border-radius: 50%;
}
.hero-art img {
  width: min(34vw, 500px);
  height: auto;
  max-height: 560px;
  object-fit: contain;
  position: relative;
  z-index: 3;
  image-rendering: pixelated;
  transform: rotate(-4deg);
  filter: drop-shadow(18px 22px 0 rgba(0,0,0,.18));
}
.hero-stamp {
  position: absolute;
  z-index: 4;
  top: 4%;
  right: -2%;
  width: 102px;
  aspect-ratio: 1;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--acid);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font: 500 .74rem/1.3 var(--mono);
  transform: rotate(10deg);
}
.pixel-orbit { position: absolute; z-index: 2; width: 22px; height: 22px; background: var(--red); }
.orbit-one { left: 2%; top: 30%; box-shadow: 22px 0 var(--red), 44px 22px var(--red); }
.orbit-two { right: 4%; bottom: 24%; background: var(--acid); box-shadow: -22px 0 var(--acid), -44px -22px var(--acid); }
.scroll-note {
  position: absolute;
  bottom: 1.5rem;
  left: clamp(1.25rem, 3vw, 3rem);
  margin: 0;
  font: .62rem/1 var(--mono);
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 7.5rem); }
.games { color: white; background: var(--ink); }
.section-heading {
  max-width: 1400px;
  margin: 0 auto clamp(3.5rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 4rem;
}
.section-heading h2, .studio h2, .cta h2 {
  font-size: clamp(2.3rem, 5.2vw, 5.2rem);
  overflow-wrap: break-word;
}
.section-heading > p {
  color: rgba(255,255,255,.62);
  margin: 0 0 .5rem;
  max-width: 520px;
  font-size: 1.05rem;
}
.game-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem) 2rem;
}
.game-card { min-width: 0; }
.game-image {
  min-height: clamp(300px, 37vw, 520px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #252525;
  border: 1px solid rgba(255,255,255,.12);
}
.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform .45s ease;
}
.game-image:hover img { transform: scale(1.04); }
.play-badge {
  position: absolute;
  width: 58px;
  height: 58px;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
  font-size: 1rem;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  transition: transform .2s;
}
.game-image:hover .play-badge { transform: translate(-3px, -3px); }
.game-info { padding: 1.3rem .1rem 0; }
.game-number { margin: 0 0 .5rem; color: var(--acid); font: .66rem/1 var(--mono); letter-spacing: .1em; }
.game-info h3 { font: clamp(1.55rem, 2.5vw, 2.5rem)/1.1 var(--display); text-transform: uppercase; }
.game-info p:not(.game-number) { margin: .8rem 0 0; color: rgba(255,255,255,.55); }
.game-info a {
  display: inline-block;
  margin-top: 1rem;
  font: .72rem/1 var(--mono);
  text-transform: uppercase;
  text-underline-offset: 5px;
}
.game-title-art {
  position: relative;
  z-index: 2;
  color: white;
  font: clamp(2.4rem, 6vw, 6rem)/.82 var(--display);
  letter-spacing: -.08em;
  text-align: center;
  text-shadow: 7px 7px 0 var(--ink);
}
.graphic-space { margin-top: 5rem; }
.graphic-space .game-image {
  background: radial-gradient(circle at 55% 45%, #4654bd 0 2px, transparent 3px),
              radial-gradient(circle at 20% 22%, white 0 2px, transparent 3px),
              radial-gradient(circle at 80% 20%, var(--acid) 0 3px, transparent 4px),
              linear-gradient(145deg, #10101d, #27367e);
  background-size: 44px 44px, 72px 72px, 90px 90px, auto;
}
.pixel-invader {
  position: absolute;
  font-size: 11rem;
  color: rgba(215,244,72,.16);
  transform: rotate(-12deg);
}
.graphic-capy .game-image { background: var(--red); }
.graphic-capy .game-title-art { color: var(--acid); transform: rotate(-5deg); }
.graphic-capy .game-title-art strong { color: white; font-size: 1.45em; }
.speed-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(165deg, transparent 0 26px, rgba(18,18,18,.12) 27px 31px);
}
.all-games {
  width: fit-content;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  font: 500 .78rem/1 var(--mono);
  text-transform: uppercase;
  text-underline-offset: 7px;
}

.studio {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}
.studio-art {
  min-height: 620px;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--acid);
  border: 2px solid var(--ink);
  box-shadow: 14px 14px 0 var(--blue);
  overflow: hidden;
}
.studio-art::before, .studio-art::after {
  content: "";
  position: absolute;
  border: 2px solid var(--ink);
  width: 140px;
  height: 140px;
  transform: rotate(45deg);
}
.studio-art::before { top: -74px; left: -74px; }
.studio-art::after { bottom: -74px; right: -74px; }
.studio-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.studio-art::after {
  z-index: 2;
}
.studio-art .studio-pixel { z-index: 3; }
.studio-pixel { position: absolute; width: 18px; height: 18px; background: var(--red); }
.pixel-a { top: 12%; left: 10%; box-shadow: 18px 18px var(--red); }
.pixel-b { right: 12%; top: 22%; background: var(--blue); box-shadow: -18px 18px var(--blue); }
.pixel-c { left: 20%; bottom: 10%; background: var(--ink); }
.studio h2 { margin-bottom: 2rem; }
.studio-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: #504e48;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}
.studio-signature {
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font: .72rem/1 var(--mono);
  text-transform: uppercase;
}
.studio-signature a { font-weight: 700; text-underline-offset: 4px; }

.cta {
  padding: clamp(5rem, 10vw, 10rem) 1.5rem;
  background: var(--blue);
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.cta h2 { max-width: 1050px; }
.cta > p:not(.eyebrow) { color: rgba(255,255,255,.72); margin: 1.6rem 0 2rem; }
.button-light { background: var(--acid); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }

footer {
  padding: 3rem clamp(1.25rem, 5vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem 4rem;
  border-top: 1px solid var(--line);
  font: .7rem/1.4 var(--mono);
  text-transform: uppercase;
}
.footer-brand { width: 220px; }
footer p { margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a, footer p a { text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 920px) {
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }
  .site-header nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-header nav a { padding: .8rem; }
  .language-switcher { padding: .8rem; }
  .menu-toggle { display: grid; gap: 4px; padding: .7rem; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 24px; height: 2px; background: var(--ink); transition: .2s; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-copy { position: relative; z-index: 4; }
  .hero-art { min-height: 480px; }
  .hero-art::before { width: min(80vw, 500px); }
  .hero-art img {
    width: min(68vw, 430px);
    max-height: 440px;
    object-fit: contain;
  }
  .scroll-note { display: none; }
  .studio { grid-template-columns: 1fr; }
  .studio-art { min-height: 500px; order: 2; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-self: end; }
}

@media (max-width: 660px) {
  .site-header { min-height: 74px; }
  h1 {
    font-size: clamp(2.25rem, 10.3vw, 3.4rem);
    letter-spacing: -.06em;
  }
  .section-heading h2, .studio h2, .cta h2 {
    font-size: clamp(2.05rem, 9.4vw, 3.15rem);
    letter-spacing: -.06em;
  }
  .game-info h3 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }
  .game-title-art {
    font-size: clamp(2rem, 12vw, 3.8rem);
  }
  .hero { min-height: auto; padding-bottom: 5rem; }
  .hero-art { min-height: 390px; }
  .hero-art img {
    width: min(64vw, 360px);
    max-height: 360px;
  }
  .hero-stamp { width: 82px; right: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .game-grid { grid-template-columns: 1fr; }
  .game-image { min-height: 330px; }
  .graphic-space { margin-top: 0; }
  .studio-art { min-height: 390px; }
  .studio-signature { gap: 1rem; }
  footer { grid-template-columns: 1fr; text-align: left; }
  .footer-links { justify-self: start; flex-wrap: wrap; }
}

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