﻿/* TheKekeClub
   Palette: black, neutral greys, bone white and one soap pink.
   Type: Archivo variable. The width axis does the expressive work:
   62% for display type, 85% for interface labels, 100% for reading. */

@font-face {
  font-family: "Archivo Variable";
  src: url("/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --carbon: #151515;
  --graphite: #262626;
  --steel: #444444;
  --ash: #a3a3a3;
  --bone: #f2f2f2;
  --soap: #ff2d87;
  --soap-light: #ffb3d4;
  --soap-deep: #8f0f4a;

  --font: "Archivo Variable", "Arial Narrow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --nav-h: 68px;
  --radius: 6px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --ease-spring: cubic-bezier(.25, 1.5, .45, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.55;
  font-stretch: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film grain over everything. Pointer-events off, transform-only animation. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .065;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--soap);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: .7em 1.1em;
  background: var(--soap);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.inline-link {
  text-decoration: underline;
  text-decoration-color: var(--soap);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  transition: color .2s;
}
.inline-link:hover { color: var(--soap); }

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }

.btn--solid { background: var(--soap); color: var(--black); }
.btn--solid:hover { background: var(--bone); box-shadow: 0 10px 30px -12px rgba(255, 45, 135, .7); }

.btn--ghost { background: transparent; color: var(--bone); border-color: var(--steel); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(255, 255, 255, .06); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease-out);
}
.nav.is-solid {
  background: rgba(0, 0, 0, .86);
  border-bottom-color: var(--graphite);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* Slides away while scrolling down, returns on the way up. */
.nav.is-hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.2rem;
  letter-spacing: .01em;
}
.logo-mark { width: 32px; height: 32px; flex: none; transition: transform .4s var(--ease-spring); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.nav-links {
  display: flex;
  gap: clamp(16px, 2.6vw, 36px);
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-weight: 600;
  font-stretch: 85%;
  text-decoration: none;
  color: var(--ash);
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--soap);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="true"] { color: var(--bone); }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--steel);
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-weight: 700;
  font-stretch: 85%;
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--nav-h) + 24px) var(--gutter) max(40px, env(safe-area-inset-bottom));
    background: var(--black);
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s, visibility 0s .25s;
  }
  .nav.is-open .nav-menu {
    visibility: visible;
    opacity: 1;
    transition: opacity .25s;
  }
  .nav.is-open { background: var(--black); transform: none; }

  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a {
    display: block;
    padding-block: 0;
    color: var(--bone);
    font-size: clamp(2.8rem, 14vw, 4.6rem);
    font-weight: 900;
    font-stretch: 62%;
    line-height: 1.02;
    text-transform: uppercase;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover,
  .nav-links a[aria-current="true"] { color: var(--soap); }

  /* Menu items cut in one after another, like the hero title. */
  .nav.is-open .nav-links li { animation: cut-in .01s steps(1) both; }
  .nav.is-open .nav-links li:nth-child(1) { animation-delay: .06s; }
  .nav.is-open .nav-links li:nth-child(2) { animation-delay: .12s; }
  .nav.is-open .nav-links li:nth-child(3) { animation-delay: .18s; }
  .nav.is-open .nav-links li:nth-child(4) { animation-delay: .24s; }

  .brand { position: relative; z-index: 2; }
}

html.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) clamp(32px, 6vh, 64px);
  overflow: hidden;
  isolation: isolate;
}

.hero-title {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  font-size: min(25vw, 27svh);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .8;
  letter-spacing: -.01em;
  text-transform: uppercase;
  pointer-events: none;
}
.hero-word { display: block; }
.hero-word:nth-child(2) { padding-left: .32em; }
.hero-word:nth-child(3) { color: transparent; -webkit-text-stroke: max(2px, .012em) var(--bone); }

.hero-soap {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  position: relative;
  z-index: 1;
  width: min(46vw, 640px);
  perspective: 900px;
}
.soap {
  width: 100%;
  height: auto;
  transform: rotate(-12deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .6s var(--ease-out);
  filter: drop-shadow(0 30px 60px rgba(255, 45, 135, .25));
}
.soap-text {
  font-family: var(--font);
  font-size: 150px;
  font-weight: 900;
  font-stretch: 62%;
}

.hero-foot {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  position: relative;
  z-index: 2;
}
.hero-lede {
  max-width: 36ch;
  font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem);
  line-height: 1.4;
  color: var(--bone);
}

/* Reel-change cue: the dot projectionists watch for. Blinks twice after the intro. */
.reel-cue {
  position: absolute;
  top: calc(var(--nav-h) + 6vh);
  right: 7vw;
  z-index: 3;
  width: clamp(18px, 2.4vw, 30px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 38%, rgba(255, 255, 255, .55) 55%, transparent 72%);
  opacity: 0;
}

.hero-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: var(--soap);
  opacity: 0;
  pointer-events: none;
}
.hero-flash .logo-mark { width: 30vmin; height: 30vmin; }
.hero-flash .logo-mark rect { fill: var(--black); }
.hero-flash .logo-mark path { fill: var(--soap); }

/* Intro: the words cut in like frames, one pink frame splices through,
   then the soap drops. Runs once on load, CSS only. */
@media (prefers-reduced-motion: no-preference) {
  .hero-word { animation: cut-in .01s steps(1) both; }
  .hero-word:nth-child(1) { animation-delay: .18s; }
  .hero-word:nth-child(2) { animation-delay: .34s; }
  .hero-word:nth-child(3) { animation-delay: .5s; }

  /* No fill mode: both elements rest at opacity 0 outside their moment. */
  .hero-flash { animation: splice .09s .72s; }

  .hero-soap { animation: soap-drop 1s var(--ease-spring) .82s both; }
  .soap { animation: soap-idle 6s ease-in-out 2s infinite; }

  .hero-foot { animation: rise-in .7s var(--ease-out) 1.15s both; }

  .reel-cue { animation: reel-cue 1s steps(1) 1.9s; }
}

@keyframes cut-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes splice { from, to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes soap-drop {
  from { opacity: 0; transform: translateY(-40%) rotate(-24deg); }
  30% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
/* A slow float once it has landed; the pointer tilt rides on top of it. */
@keyframes soap-idle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes reel-cue {
  0% { opacity: 1; }
  12% { opacity: 0; }
  36% { opacity: 1; }
  48%, 100% { opacity: 0; }
}

/* Tablet: keep the title and the soap side by side without overlapping. */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-title { font-size: min(19vw, 27svh); }
  .hero-soap { width: 40vw; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .hero-title { grid-row: 1; align-self: end; font-size: min(33vw, 17svh); }
  .hero-soap {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    width: min(74vw, 25svh * 1.47, 400px);
  }
  .hero-foot { grid-row: 3; gap: 20px; }
  .hero-foot .actions { width: 100%; }
  .hero-foot .btn { flex: 1 1 0; padding-inline: 1em; }
  .reel-cue { top: calc(var(--nav-h) + 3vh); }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 11vw, 168px);
  border-top: 1px solid var(--graphite);
}

/* Title and intro share a line when there's room; the intro wraps below otherwise. */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: clamp(28px, 5vw, 72px);
}

/* Sized so the longest single word ("Development", ~5.6em wide) never breaks. */
.section-title {
  word-spacing: .1em;
  font-size: min(11.5rem, 15.5vw);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .82;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.section-intro {
  flex: 0 1 32ch;
  color: var(--ash);
  font-size: 1.05em;
  line-height: 1.5;
  padding-bottom: .4em;
}

/* Section titles wipe in like a projector gate opening. Only when JS can reveal them. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    clip-path: inset(0 100% 0 0);
    transition: clip-path .8s var(--ease-in-out);
  }
  .reveal-ready [data-reveal].is-revealed { clip-path: inset(0 -2% 0 0); }
}

/* ---------- Games ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter {
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--steel);
  border-radius: 999px;
  background: transparent;
  color: var(--ash);
  font: inherit;
  font-weight: 600;
  font-stretch: 85%;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.filter:hover { color: var(--bone); border-color: var(--bone); }
.filter[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--black); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
}
.game[hidden] { display: none; }

/* The title link stretches over the whole card, so the card is one click target. */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}
.card-link { text-decoration: none; transition: color .2s; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 8px; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--soap); outline-offset: 6px; }
.game-card:hover .card-link { color: var(--soap); }

.poster-frame { border-radius: var(--radius); }

/* Each game is a one-sheet. Without cover art, the poster is set in type. */
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--carbon);
  container-type: inline-size;
  isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
/* Soap sheen: a highlight that slides across the poster on hover. */
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
}
.game-card:hover .poster {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px var(--soap), 0 0 0 1px rgba(255, 45, 135, .35);
}
.game-card:hover .poster img { transform: scale(1.04); }
.game-card:hover .poster::after { transform: translateX(110%); transition: transform .9s var(--ease-out); }

.poster-art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 7cqi;
}
.poster-presents {
  font-size: 4.2cqi;
  font-weight: 600;
  font-stretch: 85%;
  letter-spacing: .02em;
  opacity: .8;
}
.poster-title {
  margin-top: auto;
  margin-bottom: 6cqi;
  font-size: 17cqi;
  font-weight: 900;
  font-stretch: 62%;
  line-height: .86;
  word-spacing: .12em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
/* The build picks these from the longest word in the title. */
.poster-title--long { font-size: 13.5cqi; }
.poster-title--xlong { font-size: 10.5cqi; }
.poster-billing {
  font-size: 3.4cqi;
  font-weight: 600;
  font-stretch: 62%;
  line-height: 1.15;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  opacity: .7;
}

/* Variant 1: black sheet, a pink slab cut across the top. */
.poster--1 { background: #050505; color: var(--bone); }
.poster--1::before {
  content: "";
  position: absolute;
  inset: -30% -25% 62% -25%;
  z-index: -1;
  background: var(--soap);
  transform: rotate(-14deg);
}
.poster--1 .poster-presents { color: var(--black); opacity: 1; }

/* Variant 2: full soap pink, black type. */
.poster--2 { background: var(--soap); color: var(--black); }

/* Variant 3: a spotlight in the dark. */
.poster--3 {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 45, 135, .9) 0 22%, rgba(255, 45, 135, .25) 34%, transparent 56%),
    linear-gradient(180deg, #1c1c1c, #050505);
  color: var(--bone);
}
.poster--3 .poster-title { text-align: center; }

/* Rubber stamp for drafts (only visible in local previews). */
.stamp {
  position: absolute;
  top: 34%;
  left: 50%;
  z-index: 2;
  padding: .2em .55em;
  border: .12em solid currentColor;
  border-radius: 4px;
  color: var(--soap-light);
  font-size: 9cqi;
  font-weight: 900;
  font-stretch: 75%;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-12deg);
  mix-blend-mode: screen;
  opacity: .92;
}
.poster--2 .stamp { color: var(--black); mix-blend-mode: normal; }

.game-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-title {
  font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.1;
}
.game-status { color: var(--soap); font-size: .9rem; font-weight: 700; font-stretch: 85%; }
.game-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: .15em .7em;
  border: 1px solid var(--steel);
  border-radius: 999px;
  color: var(--bone);
  font-size: .82rem;
  font-weight: 600;
  font-stretch: 85%;
  white-space: nowrap;
}
.tag--muted { color: var(--ash); }
.tag--draft { border-style: dashed; border-color: var(--soap); color: var(--soap); }
.game-desc { color: var(--ash); max-width: 46ch; }

.empty-note {
  padding: 48px 0;
  color: var(--ash);
  font-size: 1.15rem;
}
.empty-note[hidden] { display: none; }

/* Phones: the card turns sideways, poster on the left, so one card isn't a full screen tall. */
@media (max-width: 560px) {
  .game-grid { gap: 28px; }
  .game-card {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .game-body { gap: 6px; }
  .game-title { font-size: 1.3rem; }
  .game-desc { font-size: .95rem; line-height: 1.45; }
  .game-card:hover .poster { transform: none; }
}

/* Empty catalog: a reserved seat for the first release. */
.premiere {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.premiere-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  border: 2px dashed var(--steel);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .025) 14px 28px),
    var(--carbon);
}
/* A film reel drawn with gradients: five holes and a hub. */
.premiere-reel {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--carbon) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 22%, var(--carbon) 0 11%, transparent 12%),
    radial-gradient(circle at 77% 41%, var(--carbon) 0 11%, transparent 12%),
    radial-gradient(circle at 67% 73%, var(--carbon) 0 11%, transparent 12%),
    radial-gradient(circle at 33% 73%, var(--carbon) 0 11%, transparent 12%),
    radial-gradient(circle at 23% 41%, var(--carbon) 0 11%, transparent 12%),
    var(--soap);
  box-shadow: 0 0 60px -10px rgba(255, 45, 135, .5);
  transition: transform 1.2s var(--ease-out);
}
.premiere:hover .premiere-reel { transform: rotate(72deg); }
.premiere-copy { display: flex; flex-direction: column; gap: 16px; max-width: 52ch; }
.premiere-title {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .92;
  text-transform: uppercase;
}
.premiere-text { color: var(--ash); }

@media (max-width: 560px) {
  .premiere { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
  .premiere-title { font-size: 1.8rem; }
  .premiere-text { font-size: .95rem; }
}

/* ---------- In development (production slate) ---------- */

.slate { border-bottom: 1px solid var(--graphite); }

.slate-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .55fr) minmax(0, 1.4fr);
  gap: 24px clamp(24px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--graphite);
}

.slate-name { display: flex; flex-direction: column; gap: 10px; }
.slate-title {
  word-spacing: .1em;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .9;
  text-transform: uppercase;
}
.slate-link {
  text-decoration: none;
  background: linear-gradient(var(--soap), var(--soap)) 0 100% / 0 3px no-repeat;
  transition: color .25s, background-size .45s var(--ease-out);
}
.slate-link:hover { color: var(--soap); background-size: 100% 3px; }
.slate-desc { color: var(--ash); max-width: 48ch; }

.slate-facts { display: grid; gap: 14px; }
.slate-facts dt { color: var(--ash); font-size: .85rem; }
.slate-facts dd { font-weight: 700; font-stretch: 85%; }

/* Stage track: a real sequence, so it gets an ordered list. */
.stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 6px;
}
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ash);
  font-size: .82rem;
  font-weight: 600;
  font-stretch: 85%;
}
.stage::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid var(--steel);
  border-radius: 50%;
  background: var(--black);
}
.stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 14px;
  right: 0;
  height: 2px;
  background: var(--graphite);
}
.stage.is-done::before { background: var(--soap); border-color: var(--soap); }
.stage.is-done::after { background: var(--soap); }
.stage.is-current { color: var(--bone); }
.stage.is-current::before {
  border-color: var(--soap);
  background: var(--black);
  box-shadow: 0 0 0 5px rgba(255, 45, 135, .22);
}

@media (max-width: 960px) {
  .slate-row { grid-template-columns: minmax(0, 1fr) auto; }
  .stages { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .slate-row { grid-template-columns: 1fr; gap: 18px; }
  .slate-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { font-size: .72rem; }
}

/* Empty slate: explains the stages a project moves through. */
.pipeline { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.pipeline-intro { max-width: 52ch; color: var(--ash); font-size: 1.1em; }
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.pipeline-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
  color: var(--ash);
  font-size: .95rem;
  line-height: 1.45;
}
.pipeline-steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--soap);
  border-radius: 50%;
  background: var(--black);
  z-index: 1;
}
.pipeline-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 16px;
  right: -24px;
  height: 2px;
  background: linear-gradient(90deg, var(--soap), var(--graphite));
}
.pipeline-steps strong {
  color: var(--bone);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .pipeline-steps { grid-template-columns: 1fr; gap: 0; }
  .pipeline-steps li { padding: 0 0 24px 36px; }
  .pipeline-steps li::before { top: 4px; }
  .pipeline-steps li:not(:last-child)::after { top: 20px; left: 7px; right: auto; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--soap), var(--graphite)); }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 7vw, 120px);
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 34ch;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 2rem);
  line-height: 1.32;
  font-weight: 500;
}
.about-copy p + p { color: var(--ash); }

.rules-title {
  margin-bottom: 20px;
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 85%;
  color: var(--soap);
}
.rules-list { counter-reset: rule; border-top: 1px solid var(--graphite); }
.rules-list li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 2.2em 1fr;
  gap: 0 18px;
  padding-block: 20px;
  border-bottom: 1px solid var(--graphite);
  color: var(--ash);
  transition: color .3s;
}
.rules-list li::before {
  content: counter(rule);
  grid-row: span 2;
  font-size: 2.6em;
  font-weight: 900;
  font-stretch: 62%;
  line-height: .85;
  color: var(--bone);
  transition: color .3s, transform .4s var(--ease-spring);
}
.rules-list li:hover::before { color: var(--soap); transform: translateX(4px); }
.rules-list strong {
  display: block;
  color: var(--bone);
  font-size: 1.15em;
  font-weight: 800;
  font-stretch: 85%;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .rules-list li { padding-block: 16px; }
}

/* ---------- Contact ---------- */

.section--contact { padding-bottom: clamp(72px, 13vw, 200px); }

.contact-email {
  display: inline-block;
  margin-bottom: clamp(28px, 4vw, 40px);
  font-size: clamp(2.3rem, 8.6vw, 8.4rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .95;
  letter-spacing: -.005em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--soap), var(--soap)) 0 100% / 0 .08em no-repeat;
  transition: color .25s, background-size .5s var(--ease-out);
}
.contact-email:hover,
.contact-email:focus-visible {
  color: var(--soap);
  background-size: 100% .08em;
}

@media (max-width: 560px) {
  .section--contact .actions .btn { flex: 1 1 0; padding-inline: 1em; }
}

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--graphite); padding-block: 32px max(32px, env(safe-area-inset-bottom)); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a,
.footer-mail {
  color: var(--ash);
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover,
.footer-mail:hover { color: var(--soap); }
.footer-note { color: var(--ash); font-size: .92rem; }

@media (max-width: 760px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ---------- Game page ---------- */

.game-page { padding-top: var(--nav-h); }

.gp-hero {
  position: relative;
  padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 112px);
  overflow: hidden;
  isolation: isolate;
}
.gp-hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% 10% -20%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 45, 135, .22), transparent 65%);
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: clamp(16px, 3vw, 32px);
  color: var(--ash);
  font-weight: 600;
  font-stretch: 85%;
  text-decoration: none;
  transition: color .2s;
}
.back-link::before {
  content: "";
  width: 18px;
  height: 2px;
  margin-right: 10px;
  background: currentColor;
  transition: width .3s var(--ease-out);
}
.back-link:hover { color: var(--bone); }
.back-link:hover::before { width: 28px; background: var(--soap); }

.gp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
}
.gp-poster { border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(255, 45, 135, .55); }
.gp-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 8px; }
.gp-title {
  font-size: clamp(3.2rem, 1.4rem + 7vw, 9rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .84;
  letter-spacing: -.01em;
  word-spacing: .1em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.gp-summary { max-width: 42ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.4; }
.gp-note { color: var(--ash); }

.badge {
  display: inline-flex;
  padding: .3em .9em;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  font-stretch: 85%;
}
.badge--released { background: var(--soap); color: var(--black); }
.badge--dev { border: 1.5px solid var(--soap); color: var(--soap); }

@media (max-width: 860px) {
  .gp-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .gp-poster { width: min(68vw, 320px); }
  .gp-hero::before { inset: -10% -20% 40% -40%; }
}

.gp-section {
  padding-block: clamp(48px, 7vw, 104px);
  border-top: 1px solid var(--graphite);
}
.gp-heading {
  margin-bottom: clamp(20px, 3vw, 36px);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4.6rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .9;
  text-transform: uppercase;
}
.gp-subheading {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  font-stretch: 85%;
  color: var(--soap);
}

/* Trailer */
.trailer {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--carbon);
}
.trailer img,
.trailer iframe,
.trailer-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.trailer-video { object-fit: contain; background: var(--black); }
.trailer-facade { text-decoration: none; color: var(--bone); }
.trailer-facade img { opacity: .55; transition: opacity .4s, transform .8s var(--ease-out); }
.trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--soap);
  color: var(--black);
  transform: translate(-50%, -60%);
  transition: transform .35s var(--ease-spring), background-color .25s;
}
.trailer-label {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(32px, 4.5vw, 52px));
  transform: translateX(-50%);
  font-weight: 800;
  font-stretch: 85%;
}
.trailer-facade:hover img { opacity: .75; transform: scale(1.03); }
.trailer-facade:hover .trailer-play { transform: translate(-50%, -60%) scale(1.1); background: var(--bone); }
/* Without a trailer the frame shrinks to a slim strip instead of an empty 16:9 box. */
.trailer--soon {
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  min-height: clamp(140px, 16vw, 240px);
  border: 2px dashed var(--steel);
}
.trailer--soon img { opacity: .25; filter: grayscale(1); }
.trailer-soon-text {
  position: relative;
  color: var(--ash);
  font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
}

/* About + details */
.gp-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.gp-prose { display: flex; flex-direction: column; gap: 1em; max-width: 62ch; font-size: 1.08em; }
.gp-prose p:first-child { font-size: 1.15em; line-height: 1.45; }
.gp-prose p + p { color: var(--ash); }
.feature-list { display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; color: var(--ash); }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--soap);
  transform: rotate(-12deg);
}

.gp-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--graphite);
  border-radius: 10px;
  background: var(--carbon);
}
.gp-details dl > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--graphite);
}
.gp-details dl > div:first-child { padding-top: 0; }
.gp-details dt { color: var(--ash); font-size: .92rem; }
.gp-details dd { font-weight: 700; font-stretch: 85%; }
.detail-links { display: grid; gap: 6px; }

@media (max-width: 960px) {
  .gp-about-grid { grid-template-columns: 1fr; }
}

/* Screenshots */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.gallery li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.shot {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--carbon);
  outline-offset: 4px;
}
.shot img { width: 100%; height: auto; transition: transform .7s var(--ease-out), opacity .3s; }
.shot:hover img { transform: scale(1.035); }

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Lightbox (built by main.js) */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .94);
  color: var(--bone);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .3s var(--ease-out); }
.lightbox-img {
  max-width: min(92vw, 1920px);
  max-height: 82dvh;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -40px rgba(255, 45, 135, .5);
}
.lightbox[open] .lightbox-img { animation: lightbox-img-in .4s var(--ease-out); }
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--steel);
  border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  color: var(--bone);
  font: inherit;
  font-weight: 700;
  font-stretch: 85%;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lightbox-btn:hover { border-color: var(--bone); background: rgba(255, 255, 255, .08); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--ash); font-size: .9rem; }
@keyframes lightbox-in { from { opacity: 0; } }
@keyframes lightbox-img-in { from { opacity: 0; transform: scale(.96); } }

@media (max-width: 560px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; }
  .lightbox-count { bottom: 26px; }
}

/* Press + pager */
.gp-contact-text { max-width: 60ch; color: var(--ash); font-size: 1.1em; }
.gp-contact-text .inline-link { color: var(--bone); }

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--graphite);
}
.pager-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.pager-link--next { grid-column: 2; text-align: right; align-items: flex-end; }
.pager-label { color: var(--ash); font-size: .9rem; font-weight: 600; font-stretch: 85%; }
.pager-title {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 3rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .95;
  text-transform: uppercase;
  transition: color .25s;
}
.pager-link:hover .pager-title { color: var(--soap); }

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--nav-h) + 24px) 48px;
}
.not-found .container { display: flex; flex-direction: column; gap: 24px; }
.not-found-code {
  font-size: min(40vw, 36svh);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .8;
  color: var(--soap);
}
.not-found-title {
  font-size: clamp(2rem, 1.4rem + 3vw, 4rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .95;
  text-transform: uppercase;
}
.not-found-text { color: var(--ash); }

/* ---------- Page transitions ---------- */

/* Same-site navigations cross-fade, and a game's poster flies between
   the catalog and its page (view-transition names are generated per game). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in .32s var(--ease-out) .08s both; }
  ::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Generated: shared poster transitions */

