:root {
  --yellow: #f5c400;
  --black: #050505;
  --white: #f6f6f2;
  --paper: #ecece6;
  --line: #1b1b1b;
  --header-h: 82px;
  --shell: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

::selection {
  color: var(--black);
  background: var(--yellow);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: -60px;
  left: 12px;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-h);
  color: var(--white);
  background: var(--black);
  border-bottom: 1px solid #252525;
}

.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.logo-box {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--yellow);
  font-size: 1.35rem;
  font-weight: 1000;
}

.logo-word {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 3px;
  background: var(--yellow);
  transition: right 0.2s ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language {
  position: relative;
}

.lang-trigger {
  height: 44px;
  min-width: 72px;
  padding: 0 13px;
  color: var(--white);
  background: #111;
  border: 1px solid #353535;
  cursor: pointer;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lang-trigger:hover {
  border-color: var(--yellow);
}

.lang-arrow {
  color: var(--yellow);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 175px;
  padding: 7px;
  background: var(--black);
  border: 1px solid #3b3b3b;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .18s ease;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu button {
  width: 100%;
  padding: 10px 11px;
  color: #cfcfcf;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.lang-menu button:hover,
.lang-menu button[aria-selected="true"] {
  color: var(--black);
  background: var(--yellow);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: #111;
  border: 1px solid #353535;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: .2s ease;
}

.menu-button.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-button.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero {
  color: var(--white);
  background: var(--black);
  overflow: hidden;
}

.hero-layout {
  min-height: calc(100svh - var(--header-h) - 56px);
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 62px;
  align-items: center;
  padding-block: 64px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: #bdbdbd;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.square-dot {
  width: 9px;
  height: 9px;
  background: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.6rem, 9.4vw, 9.8rem);
  line-height: .78;
  letter-spacing: -0.075em;
  font-weight: 1000;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.yellow-line {
  color: var(--yellow);
}

.hero-text {
  max-width: 590px;
  margin: 34px 0 0;
  color: #c6c6c6;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.5;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 2px solid;
  font-size: .82rem;
  font-weight: 1000;
  letter-spacing: .06em;
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover {
  transform: translate(-3px, -3px);
}

.button-yellow {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 5px 5px 0 #fff;
}

.button-outline {
  color: var(--white);
  background: transparent;
  border-color: #5a5a5a;
}

.button-outline:hover {
  border-color: var(--white);
}

.hero-art {
  min-width: 0;
}

.art-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--yellow);
  border: 10px solid var(--white);
  overflow: hidden;
  box-shadow: 16px 16px 0 #1c1c1c;
}

.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.12) 1px, transparent 1px);
  background-size: 38px 38px;
}

.art-word {
  position: absolute;
  left: -2%;
  bottom: 2%;
  color: var(--black);
  font-size: clamp(8rem, 20vw, 18rem);
  line-height: .7;
  letter-spacing: -.12em;
  font-weight: 1000;
  transform: rotate(-7deg);
}

.art-slash {
  position: absolute;
  top: -5%;
  right: 6%;
  color: var(--white);
  font-size: clamp(12rem, 25vw, 22rem);
  line-height: 1;
  font-weight: 1000;
  transform: rotate(10deg);
  text-shadow: 10px 10px 0 var(--black);
}

.art-badge {
  position: absolute;
  top: 9%;
  left: 8%;
  padding: 12px 14px;
  color: var(--white);
  background: var(--black);
  font-size: .72rem;
  font-weight: 1000;
  line-height: 1.35;
  letter-spacing: .09em;
}

.art-corner {
  position: absolute;
  width: 65px;
  height: 65px;
}

.art-corner.top-left {
  left: 0;
  top: 0;
  border-left: 7px solid var(--black);
  border-top: 7px solid var(--black);
}

.art-corner.bottom-right {
  right: 0;
  bottom: 0;
  border-right: 7px solid var(--black);
  border-bottom: 7px solid var(--black);
}

.art-caption {
  margin-top: 18px;
  color: #777;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-align: right;
}

.ticker {
  height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--black);
  background: var(--yellow);
  border-block: 3px solid var(--black);
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 25px;
  white-space: nowrap;
  font-size: .92rem;
  font-weight: 1000;
  letter-spacing: .08em;
  animation: ticker 25s linear infinite;
}

.ticker-track b {
  font-size: .65rem;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.game-section,
.work-section,
.about-section {
  padding: 110px 0;
}

.section-tag {
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-tag.light {
  color: #7f7f7f;
}

.game-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 78px;
  align-items: center;
  margin-top: 36px;
}

.game-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 30px;
  color: var(--white);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(245,196,0,.95) 48% 58%, transparent 58%),
    linear-gradient(45deg, #111 0 50%, #1a1a1a 50%);
  border: 8px solid var(--black);
  box-shadow: 13px 13px 0 var(--yellow);
  overflow: hidden;
}

.poster-top,
.poster-bottom {
  position: absolute;
  left: 30px;
  right: 30px;
  font-size: .74rem;
  font-weight: 1000;
  letter-spacing: .12em;
}

.poster-top {
  top: 28px;
}

.poster-bottom {
  bottom: 28px;
}

.poster-title {
  position: absolute;
  left: 25px;
  bottom: 90px;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: .72;
  letter-spacing: -.08em;
  font-weight: 1000;
}

.poster-title span {
  color: var(--yellow);
}

.poster-icons {
  position: absolute;
  top: 80px;
  right: 26px;
  display: grid;
  gap: 8px;
}

.poster-icons span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--yellow);
  font-weight: 1000;
}

.kicker {
  margin: 0 0 14px;
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .12em;
}

.game-copy h2,
.section-head h2,
.about-section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: .8;
  letter-spacing: -.07em;
  font-weight: 1000;
}

.game-copy h2 {
  color: var(--black);
}

.game-lead {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.35;
  font-weight: 850;
}

.game-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
}

.game-facts div {
  padding: 20px 16px 20px 0;
}

.game-facts div + div {
  padding-left: 18px;
  border-left: 1px solid #aaa;
}

.game-facts span {
  display: block;
  margin-bottom: 6px;
  color: #777;
  font-size: .67rem;
  font-weight: 1000;
  letter-spacing: .1em;
}

.game-facts strong {
  font-size: .98rem;
}

.game-description {
  max-width: 730px;
  margin: 28px 0 0;
  color: #454545;
  line-height: 1.7;
  font-weight: 600;
}

.stack-section {
  padding: 110px 0;
  color: var(--white);
  background: var(--black);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-head h2 {
  max-width: 830px;
  color: var(--white);
  text-align: right;
}

.section-head.black h2 {
  color: var(--black);
}

.stack-list {
  margin-top: 62px;
  border-top: 2px solid #383838;
}

.stack-row {
  display: grid;
  grid-template-columns: 70px 1.1fr 1.35fr 40px;
  gap: 24px;
  align-items: center;
  min-height: 145px;
  border-bottom: 2px solid #383838;
  transition: color .18s ease, background .18s ease, padding .18s ease;
}

.stack-row:hover {
  color: var(--black);
  background: var(--yellow);
  padding-inline: 18px;
}

.stack-index {
  color: #666;
  font-size: .72rem;
  font-weight: 1000;
}

.stack-row:hover .stack-index {
  color: var(--black);
}

.stack-row h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.3rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 1000;
}

.stack-row p {
  margin: 0;
  color: #aaa;
  line-height: 1.55;
  font-weight: 650;
}

.stack-row:hover p {
  color: var(--black);
}

.stack-mark {
  font-size: 2rem;
  font-weight: 1000;
}

.work-section {
  background: var(--paper);
}

.section-head.black {
  align-items: start;
  flex-direction: column;
}

.section-head.black h2 {
  text-align: left;
}

.section-head.black p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #4f4f4f;
  line-height: 1.6;
  font-weight: 700;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 14px;
  margin-top: 52px;
}

.work-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 4px solid var(--black);
  box-shadow: 8px 8px 0 var(--black);
}

.work-card.yellow {
  background: var(--yellow);
}

.work-card.white {
  background: var(--white);
}

.work-card.black-card {
  color: var(--white);
  background: var(--black);
  box-shadow: 8px 8px 0 var(--yellow);
}

.work-meta {
  font-size: .68rem;
  font-weight: 1000;
  letter-spacing: .12em;
}

.work-card h3 {
  margin: 45px 0 24px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: .82;
  letter-spacing: -.055em;
  font-weight: 1000;
}

.work-card p {
  margin: 0;
  line-height: 1.55;
  font-weight: 700;
}

.work-tech {
  margin-top: auto;
  padding-top: 28px;
  border-top: 2px solid currentColor;
  font-size: .69rem;
  font-weight: 1000;
  letter-spacing: .06em;
}

.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
}

.about-section h2 {
  margin-top: 26px;
}

.about-lead {
  margin: 48px 0 26px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.3;
  font-weight: 900;
}

.about-copy > p:not(.about-lead) {
  color: #505050;
  line-height: 1.75;
  font-weight: 650;
}

.about-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 35px;
}

.about-labels span {
  padding: 10px 12px;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--black);
  font-size: .7rem;
  font-weight: 1000;
  letter-spacing: .08em;
}

.contact-section {
  padding: 100px 0 110px;
  color: var(--black);
  background: var(--yellow);
  border-top: 5px solid var(--black);
}

.contact-small {
  margin: 0 0 25px;
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .1em;
}

.contact-section h2 {
  max-width: 1000px;
}

.contact-section h2 span {
  color: var(--white);
  -webkit-text-stroke: 3px var(--black);
  text-shadow: 7px 7px 0 var(--black);
}

.contact-mail {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--black);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 1000;
}

.contact-mail span {
  font-size: 1.5em;
}

footer {
  padding: 26px 0;
  color: #bdbdbd;
  background: var(--black);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: var(--white);
  font-size: .9rem;
}

footer a:hover {
  color: var(--yellow);
}

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

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 999;
    padding: 22px 24px 28px;
    color: var(--white);
    background: var(--black);
    border-bottom: 4px solid var(--yellow);
  }

  .mobile-nav.open {
    display: grid;
    gap: 0;
  }

  .mobile-nav a {
    padding: 18px 0;
    border-bottom: 1px solid #282828;
    font-size: 1.4rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 74px;
  }

  .hero-copy {
    max-width: 840px;
  }

  .hero-art {
    width: min(620px, 86%);
    margin-left: auto;
  }

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

  .game-poster {
    width: min(600px, 88%);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-head h2 {
    text-align: left;
  }

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

  .work-card:first-child {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 70px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .logo-word {
    display: none;
  }

  .logo-box {
    width: 40px;
    height: 40px;
  }

  .hero-layout {
    min-height: auto;
    gap: 52px;
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6.7rem);
    line-height: .79;
  }

  .hero-eyebrow {
    max-width: 300px;
    line-height: 1.4;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    width: 93%;
  }

  .art-frame {
    border-width: 7px;
    box-shadow: 9px 9px 0 #1c1c1c;
  }

  .ticker {
    height: 50px;
  }

  .game-section,
  .stack-section,
  .work-section,
  .about-section {
    padding: 76px 0;
  }

  .game-grid {
    gap: 54px;
  }

  .game-poster {
    width: 94%;
    padding: 22px;
    border-width: 6px;
    box-shadow: 9px 9px 0 var(--yellow);
  }

  .poster-title {
    left: 18px;
    bottom: 82px;
  }

  .poster-top,
  .poster-bottom {
    left: 22px;
    right: 22px;
  }

  .game-copy h2,
  .section-head h2,
  .about-section h2,
  .contact-section h2 {
    font-size: clamp(3.4rem, 16vw, 5.8rem);
  }

  .game-facts {
    grid-template-columns: 1fr;
  }

  .game-facts div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #aaa;
  }

  .stack-list {
    margin-top: 40px;
  }

  .stack-row {
    grid-template-columns: 42px 1fr 28px;
    gap: 12px;
    padding: 22px 0;
  }

  .stack-row p {
    grid-column: 2 / -1;
  }

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

  .work-card:first-child {
    grid-column: auto;
  }

  .work-card {
    min-height: 370px;
    padding: 24px;
  }

  .contact-section {
    padding: 78px 0 85px;
  }

  .contact-section h2 span {
    -webkit-text-stroke: 2px var(--black);
    text-shadow: 4px 4px 0 var(--black);
  }

  .contact-mail {
    font-size: .95rem;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
