@font-face {
  font-family: Syne;
  src: url("/games/assets/fonts/syne-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: Syne;
  src: url("/games/assets/fonts/syne-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/games/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  size-adjust: 108%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}
:root {
  --void: #070910;
  --ink: #f4f7ff;
  --muted: #c5d0e4;
  --ice: #d5e4ff;
  --warm: #e7b08a;
  --line: rgba(213, 228, 255, 0.22);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Syne, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --header: 4.5rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
}
::selection { background: #d5e4ff; color: #10131c; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--ice);
  color: #10131c;
  padding: 0.7rem 1rem;
  text-decoration: none;
}
.skip:focus { top: 1rem; }
h1, h2, p { margin: 0; }
h1, h2, .games-brand, .footer-brand {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
.stage-visual {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--void);
}
.poster, .gl-canvas, .vignette { position: absolute; inset: 0; }
.poster {
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 72% 16%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.2px 1.2px at 84% 28%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 30% 12%, rgba(255,255,255,.45), transparent),
    radial-gradient(ellipse 42% 36% at 68% 42%, rgba(190, 214, 255, 0.28), transparent 62%),
    radial-gradient(ellipse 18% 14% at 68% 42%, rgba(231, 176, 138, 0.45), transparent 70%),
    linear-gradient(#070910, #101624 42%, #1a140f 100%);
}
.poster-floor {
  position: absolute;
  left: -30%;
  right: -10%;
  top: 48%;
  height: 90%;
  background-image:
    linear-gradient(rgba(168, 198, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 198, 255, 0.38) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(480px) rotateX(68deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(#000, transparent 72%);
  mask-image: linear-gradient(#000, transparent 72%);
}
.poster-ring {
  position: absolute;
  left: 68%;
  top: 40%;
  width: min(42vh, 34vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(220, 232, 255, 0.7);
  box-shadow: 0 0 80px rgba(140, 170, 255, 0.28), inset 0 0 30px rgba(140, 170, 255, 0.18);
}
.poster-ring::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #f0d0b4 28%, rgba(231, 176, 138, 0.2) 58%, transparent 72%);
}
.gl-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.gl-canvas.is-live { opacity: 1; }
.vignette {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(5, 6, 12, 0.45) 100%);
}
.arrive-wash {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: radial-gradient(circle at 62% 42%, #f7fbff 0%, #d5e4ff 38%, #9eb6de 70%, #070910 100%);
  opacity: 0;
}
html.is-arriving .arrive-wash { animation: wash 1.7s ease forwards; }
@keyframes wash {
  0% { opacity: 1; }
  22% { opacity: 1; }
  100% { opacity: 0; }
}
main { position: relative; z-index: 1; }
.story { position: relative; }
.beat {
  min-height: 118svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 1.5rem) var(--gutter) 4.5rem;
  position: relative;
}
.beat-hero {
  min-height: 100svh;
  align-items: flex-end;
  padding-bottom: 11vh;
}
.beat-hero::before,
.beat-project::before,
.beat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 9, 16, 0.72) 0%, rgba(7, 9, 16, 0.28) 38%, transparent 62%);
}
.beat-hero::before {
  background:
    linear-gradient(90deg, rgba(7, 9, 16, 0.78), rgba(7, 9, 16, 0.4) 36%, transparent 58%),
    linear-gradient(to top, rgba(7, 9, 16, 0.72), transparent 48%);
}
.beat-copy { position: relative; max-width: 40rem; }
.beat-hero .beat-copy { max-width: 46rem; }
.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 10px var(--warm);
}
h1 { font-size: clamp(3.1rem, 7.6vw, 8.6rem); }
h1 em, h2 em, .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ice);
}
h2 { font-size: clamp(2.6rem, 5.4vw, 5.6rem); margin-bottom: 1rem; }
.dek {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
}
.lede, .beat-copy p { color: var(--muted); }
.beat-copy p + p { margin-top: 0.9rem; }
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 46rem;
}
.principles article {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.principles h3 {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.principles p { margin: 0; font-size: 0.98rem; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.meta-row span { display: grid; gap: 0.2rem; min-width: 8rem; }
.meta-row small {
  color: var(--ice);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.platforms { display: grid; gap: 0.75rem; margin-top: 1.5rem; max-width: 36rem; }
.platform {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.platform strong {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}
.platform span { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
}
.button-ice { background: var(--ice); color: #12151e; }
.button-ice:hover { background: #fff; }
.button-ghost { border-color: var(--line); color: var(--ink); }
.button-ghost:hover { border-color: var(--ice); }
.scroll-cue {
  margin-top: 2rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.motion-toggle {
  position: fixed;
  right: var(--gutter);
  bottom: 1.1rem;
  z-index: 16;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 16, 0.72);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.motion-toggle[hidden] { display: none; }
.beat-close {
  min-height: 100svh;
  background: linear-gradient(to bottom, transparent, #070910 62%);
}
.page-contact .mast {
  position: relative;
  min-height: 48svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header) + 2rem) var(--gutter) 2.5rem;
  overflow: hidden;
}
.page-contact .mast .poster { position: absolute; inset: 0; }
.page-contact .mast .poster-ring { left: 78%; top: 46%; width: min(34vh, 24vw); }
.page-contact .mast-copy { position: relative; z-index: 1; max-width: 40rem; }
.enquiry {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 3rem;
  padding: 2.5rem var(--gutter) 4rem;
  background: #070910;
}
.enquiry h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
label { display: block; margin: 0 0 0.4rem; font-size: 0.92rem; }
.field { margin-bottom: 1rem; }
input, select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: #10131c;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
textarea { min-height: 9rem; resize: vertical; }
.form-note, #form-status { color: var(--muted); font-size: 0.95rem; }
.direct { display: grid; gap: 0.35rem; margin-top: 1.25rem; }
.direct a { color: var(--ice); min-height: 2.75rem; display: inline-flex; align-items: center; }
@media (max-width: 800px) {
  .principles, .enquiry { grid-template-columns: 1fr; }
  .beat { min-height: 108svh; }
  .poster-ring { left: 74%; top: 28%; width: 42vw; }
  .beat-hero::before {
    background: linear-gradient(to top, rgba(7, 9, 16, 0.92) 0%, rgba(7, 9, 16, 0.72) 38%, rgba(7, 9, 16, 0.2) 68%, transparent 100%);
  }
  h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .motion-toggle { right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gl-canvas, .arrive-wash { display: none !important; }
  .stage-visual { position: absolute; height: 100svh; }
  .beat { opacity: 1 !important; min-height: auto; padding-block: 3.5rem; }
  .beat:not(.beat-hero) { background: #0c1018; }
  .beat-hero { min-height: 100svh; }
  .beat-close { background: #070910; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (forced-colors: active) {
  .stage-visual, .poster, .vignette { display: none; }
  .beat { min-height: auto; background: Canvas; color: CanvasText; }
  .button-ice { border: 1px solid ButtonText; }
}
@media print {
  .stage-visual, .arrive-wash, .motion-toggle, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
  .beat { min-height: auto; opacity: 1 !important; }
}
