.showcase-main {
  background: var(--studio-bg);
}

.games-catalog-main,
.projects-catalog-main {
  min-height: calc(100vh - 82px);
  background: #050608;
}

.games-catalog,
.projects-catalog {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.games-catalog-heading,
.projects-catalog-heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.games-catalog-heading h1,
.projects-catalog-heading h1 {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.games-card-grid,
.projects-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  justify-content: center;
  perspective: 1200px;
}

.projects-card-grid {
  grid-template-columns: repeat(3, minmax(0, 226.667px));
}

.games-card,
.project-card {
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #0d1014;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  isolation: isolate;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transform-origin: center;
  transform-style: preserve-3d;
  transition: box-shadow 180ms ease, transform 140ms ease-out;
  will-change: transform;
}

.games-card:hover,
.project-card:hover {
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.46);
  transform: perspective(900px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) scale(1.018);
}

.games-card:focus-visible,
.project-card:focus-visible {
  outline: 3px solid var(--studio-accent);
  outline-offset: 5px;
}

.games-card-art,
.project-card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.virucide-card .games-card-art {
  filter: brightness(0.8) saturate(1.12);
}

.virucide-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.78) 100%);
}

.virucide-card-logo {
  position: absolute;
  right: 4%;
  bottom: 5%;
  z-index: 3;
  width: 92%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65));
}

.project-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 34%, rgba(0, 0, 0, 0.82) 100%);
}

.d2jam-card .project-card-art {
  object-position: 54% center;
  filter: saturate(1.12) contrast(1.04);
}

.d2jam-card-logo {
  position: absolute;
  right: 18%;
  bottom: 5%;
  z-index: 3;
  width: 64%;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.72));
}

.wiki-card .project-card-art {
  object-position: center;
  filter: brightness(0.72) saturate(0.9);
}

.wiki-card-identity {
  position: absolute;
  right: 9%;
  bottom: 8%;
  left: 9%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.2vw, 0.85rem);
  color: #ffffff;
}

.wiki-card-identity img {
  flex: 0 0 auto;
  width: clamp(62px, 21%, 92px);
  height: auto;
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.55));
}

.wiki-card-identity strong {
  min-width: 0;
  font-size: clamp(1.3rem, 2.25vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.72);
}

.aelios-card .project-card-art {
  object-position: center;
  filter: brightness(0.76) saturate(0.92);
}

.aelios-card-logo {
  position: absolute;
  right: 7%;
  bottom: 7%;
  left: 7%;
  z-index: 3;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.72));
}

.showcase-intro {
  width: min(1180px, calc(100% - 2rem));
  min-height: 340px;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.showcase-intro .showcase-kicker,
.showcase-label {
  margin: 0;
  color: var(--studio-accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.showcase-intro .brand-case {
  letter-spacing: 0.04em;
  text-transform: none;
}

.showcase-intro h1 {
  max-width: 900px;
  margin: 0.45rem 0 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.showcase-intro > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--studio-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.game-showcase {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  background: #0b1110;
}

.game-showcase > img.game-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.game-showcase:hover > img.game-backdrop {
  transform: scale(1.02);
}

.game-showcase::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 6, 0.9), rgba(2, 6, 6, 0.46) 45%, transparent 76%);
  content: "";
}

.game-showcase-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(560px, calc(100% - 2rem));
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-left: max(1rem, calc((100vw - 1180px) / 2));
  padding-block: 4rem;
}

.game-logo {
  width: min(420px, 78vw);
  max-height: 240px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.game-showcase-copy > p:not(.showcase-label) {
  max-width: 500px;
  margin: 0.75rem 0 0;
  color: #e7eaed;
  font-size: 1rem;
  line-height: 1.6;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.virucide-showcase {
  display: grid;
  max-width: 1180px;
  min-height: 540px;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  margin: clamp(4rem, 7vw, 6rem) auto;
  background: var(--studio-surface);
}

.virucide-showcase::after {
  display: none;
}

.virucide-showcase .game-showcase-copy {
  grid-column: 1;
  width: auto;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem);
}

.virucide-logo-wrap {
  width: min(320px, 100%);
  padding: 0.75rem;
  background: #ffffff;
}

.virucide-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.virucide-gameplay {
  position: relative;
  grid-column: 2;
  min-height: 420px;
  overflow: hidden;
}

.virucide-gameplay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.virucide-showcase:hover .virucide-gameplay img {
  transform: scale(1.025);
}

.catalog-footer,
.project-footer {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(1rem, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--studio-line);
  background: var(--studio-bg);
}

.catalog-footer img,
.project-footer img {
  width: 200px;
  height: auto;
}

.catalog-footer a,
.project-footer a {
  border-bottom: 1px solid currentColor;
  color: var(--studio-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.project-list {
  border-top: 1px solid var(--studio-line);
}

.project-row {
  display: grid;
  max-width: 1180px;
  min-height: 500px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.project-row + .project-row {
  border-top: 1px solid var(--studio-line);
}

.project-row-media {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
  background: #0d1118;
}

.project-row-media img {
  transition: transform 500ms ease;
}

.project-row:hover .project-row-media img {
  transform: scale(1.03);
}

.d2jam-row .project-row-media {
  background:
    radial-gradient(circle at center, rgba(73, 198, 255, 0.12), transparent 40%),
    #090b11;
}

.d2jam-row .project-row-media img {
  width: min(260px, 48%);
  height: auto;
}

.wiki-row .project-row-media > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.75);
}

.wiki-row .project-row-media .wiki-mark {
  position: relative;
  z-index: 1;
  width: min(190px, 36%);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.project-row-copy h2 {
  margin: 0.45rem 0 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.project-row-copy > p:not(.showcase-label) {
  max-width: 500px;
  margin: 0;
  color: var(--studio-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.project-row-copy .studio-button {
  margin-top: 1.5rem;
}

@media (max-width: 820px) {
  .showcase-intro {
    min-height: 300px;
  }

  .game-showcase {
    min-height: 590px;
  }

  .game-showcase::after {
    background: linear-gradient(0deg, rgba(2, 6, 6, 0.94), rgba(2, 6, 6, 0.08) 78%);
  }

  .game-showcase-copy {
    align-self: end;
    margin: 1rem;
  }

  .virucide-showcase {
    grid-template-columns: 1fr;
    margin-inline: 1rem;
  }

  .virucide-showcase .game-showcase-copy,
  .virucide-gameplay {
    grid-column: 1;
  }

  .virucide-gameplay {
    grid-row: 1;
    min-height: 330px;
  }

  .project-row {
    width: min(100% - 2rem, 680px);
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-row-media {
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .games-catalog,
  .projects-catalog {
    width: min(100% - 1.5rem, 430px);
    padding-top: 2.5rem;
  }

  .games-catalog-heading,
  .projects-catalog-heading {
    margin-bottom: 1.75rem;
    text-align: left;
  }

  .games-card-grid,
  .projects-card-grid {
    grid-template-columns: minmax(0, min(100%, 260px));
  }

  .projects-card-grid {
    grid-template-columns: minmax(0, min(100%, 226.667px));
  }

  .showcase-intro {
    min-height: 270px;
  }

  .game-showcase {
    min-height: 560px;
  }

  .project-row-media {
    min-height: 250px;
  }

  .catalog-footer,
  .project-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-card,
  .project-card,
  .games-card:hover,
  .project-card:hover {
    transform: none;
    will-change: auto;
  }
}
