:root {
  --paper: #f4f3f0;
  --ink: #0b0b0c;
  --muted: #626368;
  --line: rgba(11, 11, 12, 0.14);
  --dark: #0b0b0c;
  --light: #f4f3f0;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.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 {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(244, 243, 240, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11,11,12,.075);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  font-size: 14px;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
nav { display: flex; gap: 32px; }
nav a {
  position: relative;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4a4b4f;
  transition: color .2s ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right .2s ease;
}
nav a:hover { color: #000; }
nav a:hover::after { right: 0; }

.hero {
  min-height: 100svh;
  padding: 128px 24px 86px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(0,0,0,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.065) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  text-align: center;
}
.hero-logo {
  width: min(630px, 82vw);
  display: block;
  margin: 0 auto -4px;
}
.hero-copy {
  max-width: 660px;
  margin: 22px auto 32px;
  color: #4b4c50;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  letter-spacing: -.015em;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid #111;
  background: #111;
  color: white;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.primary-button:hover { transform: translateY(-2px); background: #292a2d; }

.section { max-width: var(--max); margin: 0 auto; padding: 126px 24px; }
.section-heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 62px;
}
.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .3em;
}
.section-heading h2,
.studio h2,
.links-heading h2 {
  margin: 0;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 720;
}

.game-list { border-top: 1px solid var(--line); }
.game-card {
  min-height: 390px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.game-card.inverted {
  background: var(--dark);
  color: var(--light);
  margin-inline: -24px;
  padding-inline: 24px;
  border-color: rgba(255,255,255,.18);
}
.game-number {
  padding-top: 46px;
  font-size: 10px;
  letter-spacing: .22em;
  color: #777;
  position: relative;
  z-index: 2;
}
.game-content {
  padding: 46px 0 58px;
  max-width: 760px;
  position: relative;
  z-index: 2;
}
.game-meta {
  display: flex;
  gap: 20px;
  font-size: 9px;
  letter-spacing: .2em;
  font-weight: 760;
  opacity: .62;
}
.game-content h3 {
  margin: 22px 0 18px;
  font-size: clamp(52px, 8vw, 100px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 780;
}
.game-content p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: #515257;
}
.inverted .game-content p { color: #b9babf; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.tags span {
  border: 1px solid currentColor;
  opacity: .68;
  padding: 7px 9px;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}
.game-shape {
  position: absolute;
  width: 310px;
  height: 310px;
  right: -105px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgba(0,0,0,.11);
  opacity: .9;
  transition: transform .5s ease, opacity .5s ease;
}
.game-shape::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(0,0,0,.07);
}
.game-card:hover .game-shape { transform: translateY(-50%) rotate(50deg) scale(1.06); opacity: 1; }
.inverted .game-shape { border-color: rgba(255,255,255,.12); }
.inverted .game-shape::after { border-color: rgba(255,255,255,.07); }

.studio {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) 1.18fr;
  gap: 76px;
  align-items: center;
}
.studio-mark {
  background: #111;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.studio-mark img { width: 88%; height: 88%; object-fit: contain; }
.studio-copy .eyebrow { margin-bottom: 22px; }
.studio-copy h2 { font-size: clamp(44px, 6vw, 78px); margin-bottom: 32px; }
.studio-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 0 18px;
  color: #55565a;
  font-size: 17px;
  line-height: 1.72;
}

.links { border-top: 1px solid var(--line); }
.links-heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 42px;
}
.links-heading h2 { font-size: clamp(40px, 5vw, 64px); }
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.link-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 4px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(24px, 3.3vw, 44px);
  letter-spacing: -.035em;
  transition: padding .2s ease, opacity .2s ease;
}
.link-grid a:nth-child(odd) { margin-right: 24px; }
.link-grid a:nth-child(even) { margin-left: 24px; }
.link-grid a:hover { padding-left: 12px; padding-right: 12px; }

footer {
  background: var(--dark);
  color: white;
  padding: 58px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: flex-end;
}
.footer-brand {
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 850;
  letter-spacing: -.055em;
}
.footer-meta { text-align: right; }
.footer-note,
.footer-copy {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #a5a5a8;
}

@media (max-width: 760px) {
  .site-header { height: 64px; }
  nav { gap: 16px; }
  nav a { font-size: 10px; }
  .brand span { display: none; }
  .brand img { width: 34px; height: 34px; }
  .hero { min-height: 92svh; padding-top: 96px; }
  .hero-logo { width: min(520px, 102vw); margin-left: -1vw; }
  .hero-copy { font-size: 17px; max-width: 520px; }
  .section { padding: 88px 20px; }
  .section-heading,
  .links-heading { grid-template-columns: 1fr; gap: 20px; }
  .game-card { grid-template-columns: 42px 1fr; }
  .game-card.inverted { margin-inline: -20px; padding-inline: 20px; }
  .game-number { padding-top: 36px; }
  .game-content { padding: 36px 0 46px; }
  .game-content h3 { font-size: clamp(48px, 16vw, 82px); }
  .game-shape { width: 220px; height: 220px; right: -105px; opacity: .55; }
  .studio { grid-template-columns: 1fr; gap: 44px; }
  .studio-mark { max-width: 430px; }
  .link-grid { grid-template-columns: 1fr; }
  .link-grid a:nth-child(n) { margin: 0; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-meta { text-align: left; }
}

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