:root {
  --ink: #1a1a1a;
  --paper: #f4f4f4;
  --night: #1e1f21;
  --black: #111111;
  --red: #2a0707;
  --grey-1: #d2d2d2;
  --grey-2: #bdbdbd;
  --grey-3: #8f8f8f;
  --print: #f7f7f5;
  --stripe: #ec1d25;
  --gutter: clamp(20px, 4vw, 48px);
  --bar-h: 120px;
  --bar-h-scrolled: 90px;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Courgette", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: page-in 0.8s ease both;
}

html.drawer-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #8a8a8a;
  outline-offset: 3px;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: #fff;
  color: var(--black);
  font-size: 14px;
  text-decoration: none;
}

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

.dots-light {
  background-color: var(--paper);
  background-image: url(../images/site/dots-light.png);
  background-size: 8px 8px;
}

.dots-dark {
  background-color: var(--night);
  background-image: url(../images/site/dots-dark.png);
  background-size: 8px 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-light {
  background: #fff;
  color: var(--black);
}

.btn-light:hover {
  background: #e4e4e4;
}

.btn-outline {
  border: 1.5px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--red);
}

.section-head {
  text-align: center;
}

.kicker {
  margin: 0;
  font-family: var(--script);
  font-size: 32px;
  line-height: 1.2;
}

.title {
  margin: 4px 0 0;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-top: 5px solid var(--stripe);
  color: #fff;
  transition: color 0.4s ease, box-shadow 0.4s ease;
  animation: page-in 0.8s ease both;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  transition: opacity 0.4s ease;
}

.topbar.is-scrolled::after {
  opacity: 0;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.topbar.is-scrolled {
  color: #222;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.topbar.is-scrolled::before {
  opacity: 1;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  height: var(--bar-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  transition: height 0.4s ease;
}

.topbar.is-scrolled .topbar-inner {
  height: var(--bar-h-scrolled);
}

.logo {
  position: relative;
  justify-self: start;
  display: block;
  width: 72px;
  height: 40px;
}

.logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.4s ease;
}

.logo-dark,
.topbar.is-scrolled .logo-light {
  opacity: 0;
}

.topbar.is-scrolled .logo-dark {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a,
.social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav a:hover,
.social a:hover {
  opacity: 0.6;
}

.topbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social {
  display: flex;
  align-items: center;
  gap: 2px;
}

.social a {
  justify-content: center;
  width: 44px;
  height: 44px;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -9px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 26px;
  height: 15px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: opacity 0.2s ease;
}

.burger:hover span {
  opacity: 0.6;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(390px, 85vw);
  padding: 95px 24px 48px;
  overflow-y: auto;
  background: #fff;
  color: #222;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s ease, visibility 0.4s ease;
}

.drawer-open .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

.drawer-open .drawer {
  transform: none;
  visibility: visible;
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.drawer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.drawer-nav a:hover {
  opacity: 0.6;
}

.drawer-social {
  display: flex;
  gap: 4px;
  margin-top: 32px;
}

.drawer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #444;
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--night);
  color: #fff;
}

.hero-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--bar-h) + 10px) 20px 110px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 6px;
  font-family: var(--script);
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.1;
  animation: fade-in-down 1s ease 0.2s both;
}

.hero h1 {
  margin: 0;
  padding-left: 0.1em;
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 700;
  letter-spacing: 0.1em;
  word-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance;
  animation: fade-in-up 1s ease 1s both;
}

.hero .btn {
  margin-top: 48px;
  padding: 0 34px;
  animation: zoom-in 1s ease 1.8s both;
}

.unheil {
  overflow: hidden;
  background: var(--red);
  color: #fff;
}

.unheil-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.u-text {
  flex: 1 1 400px;
  min-width: 0;
  padding: 110px 0;
}

.unheil .kicker {
  color: #fff;
}

.unheil h2 {
  margin: 6px 0 0;
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.u-desc {
  max-width: 30em;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: #e6d2d2;
}

.u-meta {
  margin: 16px 0 0;
  font-size: 14px;
  color: #cdb3b3;
}

.u-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.u-actions .btn-light {
  color: var(--red);
  font-weight: 600;
}

.hand-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0 24px;
  font-family: var(--script);
  font-size: 21px;
  line-height: 1.2;
  color: #e6d2d2;
}

.hand-note svg {
  flex: none;
  margin-top: -4px;
}

.hand-note span {
  padding-top: 14px;
}

.u-portrait {
  flex: 1 1 420px;
  min-width: 0;
  align-self: flex-end;
  display: flex;
  justify-content: flex-end;
}

.u-portrait img {
  width: 100%;
  max-width: 576px;
}

.upcoming {
  padding: 110px var(--gutter) 130px;
  background: var(--black);
  color: #fff;
}

.upcoming-inner {
  max-width: 1104px;
  margin: 0 auto;
}

.upcoming .intro {
  color: var(--grey-2);
}

.row-note {
  margin: 80px 0 0;
  text-align: center;
  font-family: var(--script);
  font-size: 24px;
  line-height: 1.3;
  color: var(--grey-1);
}

.dev-grid,
.idea-grid {
  display: grid;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.dev-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px 56px;
}

.idea-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 64px 40px;
  margin-top: 80px;
}

.print {
  padding: 10px 10px 12px;
  border-radius: 3px;
  background: var(--print);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s ease;
}

.dev-grid .print {
  padding: 12px 12px 14px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}

.project:hover .print {
  transform: rotate(0deg) translateY(-4px);
}

.print img {
  width: 100%;
  object-fit: cover;
}

.dev-grid .print img {
  aspect-ratio: 920 / 430;
}

.idea-grid .print img {
  aspect-ratio: 3 / 2;
}

.dev-grid h3 {
  margin: 34px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.dev-grid p {
  max-width: 30em;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--grey-2);
}

.idea-grid h3 {
  margin: 30px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.idea-grid .sub {
  margin: 2px 0 0;
  font-family: var(--script);
  font-size: 19px;
  color: var(--grey-1);
}

.idea-grid .desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey-2);
}

.games {
  padding: 120px var(--gutter) 130px;
}

.games .title,
.games .kicker,
.about .title,
.about .kicker {
  color: var(--ink);
}

.games .intro {
  color: #4a4a4a;
}

.squiggle {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.squiggle svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  width: 100%;
  height: 9px;
  overflow: visible;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 315px);
  justify-content: center;
  align-items: start;
  gap: 44px 28px;
  max-width: 1001px;
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  width: 315px;
  color: var(--ink);
  text-decoration: none;
}

.card-media {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.card img {
  width: 315px;
  height: 250px;
  transition: transform 0.6s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card .pixel {
  image-rendering: pixelated;
}

.card-title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.card:hover .card-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-meta {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #5e5e5e;
}

.more-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 315px;
  aspect-ratio: 315 / 250;
  padding: 16px;
  border-radius: 6px;
  background: var(--night);
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.more-tile:hover {
  background: #2a2b2e;
}

.more-script {
  font-family: var(--script);
  font-size: 32px;
  line-height: 1.2;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-1);
}

.band {
  position: relative;
  height: 540px;
  overflow: hidden;
}

.band img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1840px;
  height: 480px;
  max-width: none;
  transform: translate(-50%, calc(-50% + var(--py, 0px)));
  image-rendering: pixelated;
  will-change: transform;
}

.about {
  padding: 80px var(--gutter) 130px;
  text-align: center;
}

.about-text {
  max-width: 720px;
  margin: 32px auto 0;
  font-size: 18px;
  line-height: 1.8;
  color: #2e2e2e;
}

.about-facts {
  margin: 28px 0 0;
  font-size: 15px;
  color: #5e5e5e;
}

.contact {
  padding: 120px var(--gutter);
  color: #fff;
  text-align: center;
}

.say-hi {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  padding-left: 40px;
}

.say-hi h2 {
  margin: 0;
  font-family: var(--script);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--grey-1);
}

.say-hi svg {
  margin-bottom: -18px;
}

.mail {
  margin: 18px 0 0;
}

.mail a {
  font-size: clamp(26px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: opacity 0.2s ease;
}

.mail a:hover {
  opacity: 0.85;
}

.contact-note {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-2);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 26px;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 500;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--grey-1);
  text-decoration: underline dashed;
  text-underline-offset: 6px;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #fff;
  text-decoration-style: solid;
}

.place {
  margin: 22px 0 0;
  font-size: 14px;
  color: #8a8a8a;
}

.site-footer {
  background: var(--black);
  color: #9a9a9a;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  height: 18px;
  width: auto;
  opacity: 0.8;
}

.footer-social {
  display: flex;
}

.footer-social a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #9a9a9a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social a {
  width: 40px;
}

.footer-social a:hover,
.footer-links a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.page-head {
  padding: calc(var(--bar-h) + 56px) var(--gutter) 72px;
  background: var(--night);
  color: #fff;
  text-align: center;
}

.page-head .title {
  margin-top: 6px;
}

.page-date {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--grey-3);
}

.legal {
  padding: 80px var(--gutter) 120px;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  color: #2e2e2e;
  font-size: 16px;
  line-height: 1.8;
}

.legal-inner p {
  margin: 14px 0 0;
}

.legal-lead {
  font-size: 18px;
  color: var(--ink);
}

.legal-inner h2 {
  margin: 52px 0 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.legal-inner a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 4px;
}

.rights {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rights li {
  position: relative;
  padding-left: 30px;
}

.rights li + li {
  margin-top: 8px;
}

.rights .mark {
  position: absolute;
  left: 0;
  color: var(--grey-3);
  font-weight: 500;
}

.to-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.to-top.is-visible {
  opacity: 0.5;
  visibility: visible;
}

.to-top.is-visible:hover,
.to-top:focus-visible {
  opacity: 1;
}

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

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal-on [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity 0.9s ease var(--d, 0s),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}

.reveal-on [data-reveal="zoom"] {
  transform: scale(0.9);
}

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

@media (max-width: 1200px) {
  :root {
    --bar-h: 100px;
    --bar-h-scrolled: 80px;
  }
}

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

  .js .burger {
    display: inline-flex;
  }

  .topbar-inner {
    grid-template-columns: auto 1fr;
  }

  .logo {
    width: 58px;
    height: 32px;
  }
}

@media (max-width: 767px) {
  .u-portrait {
    order: -1;
    flex-basis: 100%;
    justify-content: center;
    padding-top: 24px;
  }

  .u-portrait img {
    max-width: 420px;
    max-height: 380px;
    object-fit: cover;
    object-position: top;
  }

  .u-text {
    padding: 24px 0 72px;
  }

  .row-note {
    margin-top: 56px;
  }

  .idea-grid {
    margin-top: 64px;
  }
}

@media (max-width: 640px) {
  :root {
    --bar-h: 80px;
    --bar-h-scrolled: 64px;
  }

  .logo {
    width: 45px;
    height: 25px;
  }

  .band {
    height: 280px;
  }

  .band img {
    width: 920px;
    height: 240px;
    transform: translate(-320px, calc(-50% + var(--py, 0px)));
  }

  .to-top {
    right: 15px;
    bottom: 15px;
  }
}

@media (max-width: 560px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .card,
  .more-tile {
    width: auto;
  }

  .card img,
  .card .pixel {
    width: 100%;
    height: auto;
    aspect-ratio: 315 / 250;
    image-rendering: auto;
  }

  .card-meta {
    display: none;
  }

  .card-title {
    margin-top: 10px;
    font-size: 15px;
  }

  .more-script {
    font-size: 22px;
  }

  .more-link {
    font-size: 11px;
  }
}

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

  body,
  .topbar,
  .hero-kicker,
  .hero h1,
  .hero .btn {
    animation: none;
  }

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

  .project:hover .print {
    transform: rotate(var(--tilt, 0deg));
  }

  .card:hover img {
    transform: none;
  }
}
