/* =========================================================
   BuilDeame — homepage
   Hand-written CSS. No frameworks, no external assets.
   ========================================================= */

:root {
  --ink: #08090c;
  --ink-soft: #0d0f14;
  --ink-lift: #14171e;
  --paper: #f2eee4;
  --paper-dim: rgba(242, 238, 228, 0.62);
  --paper-faint: rgba(242, 238, 228, 0.46);
  --lime: #d7ff3f;
  --lime-dim: rgba(215, 255, 63, 0.55);
  --line: rgba(242, 238, 228, 0.14);
  --line-soft: rgba(242, 238, 228, 0.08);
  --sans: "Helvetica Neue", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --serif: "Songti SC", "STSong", "SimSun", "宋体", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4.4vw, 72px);
  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: #262a32;
  border: 2px solid var(--ink);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lime);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
}

em {
  font-style: normal;
}

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

.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10002;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   Texture / global layers
   --------------------------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* Custom cursor */
.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--lime);
}
.cursor-ring {
  z-index: 9999;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(215, 255, 63, 0.55);
  transition: width 0.32s var(--ease), height 0.32s var(--ease),
              background-color 0.32s var(--ease), border-color 0.32s var(--ease),
              opacity 0.3s ease;
}
.cursor-ring.is-active {
  width: 58px;
  height: 58px;
  background: rgba(215, 255, 63, 0.08);
  border-color: var(--lime);
}
.cursor-ring.is-down {
  transform: scale(0.82);
}

@media (hover: hover) and (pointer: fine) {
  html.has-dialog.has-cursor,
  html.has-dialog.has-cursor * {
    cursor: auto !important;
  }
  html.has-dialog .cursor-dot,
  html.has-dialog .cursor-ring {
    opacity: 0 !important;
  }
  html.has-cursor,
  html.has-cursor * {
    cursor: none !important;
  }
  html.has-cursor .cursor-dot,
  html.has-cursor .cursor-ring {
    display: block;
  }
  html.has-cursor .cursor-dot.is-visible,
  html.has-cursor .cursor-ring.is-visible {
    opacity: 1;
  }
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}
.btn .icon {
  transition: transform 0.35s var(--ease);
}
.btn:hover .icon {
  transform: translate(2px, -2px);
}
.btn-primary {
  background: var(--lime);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--paper);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.btn-dark {
  background: var(--ink);
  color: var(--lime);
}
.btn-dark:hover {
  background: #1a1d24;
}
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 12px;
  gap: 7px;
}
.btn-sm .icon {
  width: 13px;
  height: 13px;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  padding-bottom: 4px;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.text-link span {
  color: var(--lime);
  transition: transform 0.35s var(--ease);
}
.text-link:hover span {
  transform: translateX(4px);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s ease, border-color 0.45s ease,
              backdrop-filter 0.45s ease;
}
.site-header.is-scrolled {
  background: var(--ink);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--lime);
  flex: none;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}
.brand-word {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-sub {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 42px);
}
.nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--paper);
}
.nav a span {
  position: relative;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
}
.nav a span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}
.nav a em {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--paper-faint);
  transition: color 0.3s ease;
}
.nav a:hover span::after,
.nav a.is-active span::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav a:hover em,
.nav a.is-active em {
  color: var(--lime);
}
.nav a.is-active span {
  color: var(--lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--paper);
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), background-color 0.3s ease;
}
.menu-toggle span:first-child {
  top: 17px;
}
.menu-toggle span:last-child {
  top: 23px;
}
.menu-toggle:hover {
  border-color: var(--lime);
}
.menu-toggle:hover span {
  background: var(--lime);
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 24px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 73% 38%, rgba(215, 255, 63, 0.07), transparent 34%),
    radial-gradient(circle at 16% 78%, rgba(103, 92, 255, 0.12), transparent 42%),
    var(--ink);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 70%) var(--my, 40%), rgba(215, 255, 63, 0.08), transparent 26%);
  transition: background 0.4s linear;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 238, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 228, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(circle at 60% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 60% 45%, #000 0%, transparent 72%);
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.9) 0%, rgba(8, 9, 12, 0.55) 38%, rgba(8, 9, 12, 0) 66%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.55) 0%, transparent 24%, transparent 62%, rgba(8, 9, 12, 0.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(24px, 4vh, 40px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(24px, 4.5vh, 48px);
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.4;
}
.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(215, 255, 63, 0.45);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}
.eyebrow-sep {
  color: var(--paper-faint);
}

.hero-title {
  margin-bottom: clamp(38px, 6.5vh, 68px);
  font-size: clamp(54px, 8.9vw, 142px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.02em;
}
.hero-line-inner {
  display: block;
}
html.js .hero-line-inner {
  animation: line-in 1.15s var(--ease) both;
}
html.js .hero-line:nth-child(1) .hero-line-inner {
  animation-delay: 0.08s;
}
html.js .hero-line:nth-child(2) .hero-line-inner {
  animation-delay: 0.2s;
}

.mobile-prefix {
  display: none;
}

.stat-unit {
  margin-left: 1px;
  font-size: 0.58em;
  letter-spacing: 0.02em;
  vertical-align: 0.22em;
}

.accent-wrap {
  position: relative;
  display: inline-block;
  color: var(--lime);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.scribble {
  position: absolute;
  left: -1%;
  bottom: -0.08em;
  width: 102%;
  height: 0.17em;
  overflow: visible;
  pointer-events: none;
}
.scribble path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.85;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
}
html.js .scribble path {
  animation: draw 1.1s var(--ease) 1s forwards;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(40px, 6.5vh, 72px);
}
.hero-lede {
  max-width: 430px;
  color: var(--paper-dim);
  font-size: 14.5px;
  line-height: 1.95;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat > span {
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  align-self: center;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  writing-mode: horizontal-tb;
}
.scroll-hint i {
  position: relative;
  display: block;
  width: 52px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--lime);
  animation: scroll-line 2.4s ease-in-out infinite;
}

.hero-badge {
  position: absolute;
  top: clamp(116px, 17vh, 180px);
  right: clamp(32px, 6.5vw, 110px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  border: 1px solid rgba(215, 255, 63, 0.32);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--lime);
  animation: float 7s ease-in-out infinite;
}
.hero-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 26s linear infinite;
}
.hero-badge text {
  fill: var(--lime);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2.8px;
  word-spacing: 5px;
}
.badge-center {
  font-size: 22px;
  line-height: 1;
  animation: spin 18s linear infinite reverse;
}

/* ---------------------------------------------------------
   Ticker
   --------------------------------------------------------- */

.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 15px 0;
  background: var(--lime);
  color: var(--ink);
  border-block: 1px solid var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ticker-group b {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.55;
}

/* ---------------------------------------------------------
   Section basics
   --------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 158px);
}

section[id],
footer[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 36px);
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.4;
}
.eyebrow-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  margin-right: 2px;
  padding: 0 7px;
  border: 1px solid rgba(215, 255, 63, 0.35);
  border-radius: 999px;
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(40px, 6.2vw, 90px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.section-title em {
  color: var(--lime);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section-head {
  margin-bottom: clamp(52px, 7vw, 96px);
}
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 100px);
}
.section-intro {
  max-width: 370px;
  flex: none;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 13.5px;
  line-height: 1.9;
  text-wrap: pretty;
}

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

.games {
  background: var(--ink);
}

.game-list {
  display: grid;
  gap: clamp(84px, 11vw, 150px);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4.2vw, 68px);
  align-items: center;
}
.game-card--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}
.game-card--flip .game-visual {
  order: 2;
}
.game-card--flip .game-info {
  order: 1;
}

.game-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  background: #111;
  text-align: left;
  box-shadow: 0 44px 90px -44px rgba(0, 0, 0, 0.9);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.45s var(--ease);
}
.game-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 26%, transparent 66%, rgba(0, 0, 0, 0.52));
  transition: opacity 0.5s ease;
}
.game-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 3px;
}
.game-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.008);
  transition: transform 1.1s var(--ease), filter 0.8s ease;
}
.game-visual:hover img,
.game-visual:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.07) saturate(1.03);
}
.game-visual:hover::before {
  opacity: 0.7;
}

.game-state {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--paper);
}
.game-state i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(215, 255, 63, 0.8);
}
.game-no {
  position: absolute;
  top: 19px;
  right: 20px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
}
.visual-cta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.visual-cta .icon {
  width: 13px;
  height: 13px;
}
.game-visual:hover .visual-cta,
.game-visual:focus-visible .visual-cta {
  opacity: 1;
  transform: none;
}

.game-info {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding-block: 8px;
}
.game-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  margin-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.game-info h3 {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: clamp(27px, 2.7vw, 42px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.game-info h3 em {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
}
.game-desc {
  max-width: 36em;
  margin-bottom: 24px;
  color: var(--paper-dim);
  font-size: 13.5px;
  line-height: 1.95;
  text-wrap: pretty;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}
.tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}
.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
}
.arrow-mark {
  color: var(--lime);
  font-size: 15px;
  transition: transform 0.4s var(--ease);
}
.game-card:hover .arrow-mark {
  transform: translate(3px, -3px);
}

.more-projects {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: clamp(80px, 9vw, 130px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.more-index {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.more-projects p {
  margin-right: auto;
  font-size: 15px;
  color: var(--paper-dim);
}

/* ---------------------------------------------------------
   Studio
   --------------------------------------------------------- */

.studio {
  background: var(--ink-soft);
  border-block: 1px solid var(--line-soft);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.72fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.studio-title {
  margin-bottom: clamp(30px, 4.5vw, 48px);
}

.studio-text {
  display: grid;
  gap: 18px;
  max-width: 580px;
}
.studio-text p {
  color: var(--paper-dim);
  font-size: 13.5px;
  line-height: 1.98;
  text-wrap: pretty;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.studio-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.studio-stats > div > span {
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.studio-poster {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  border-radius: 3px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75);
  transform: rotate(-1.4deg);
  transition: transform 0.7s var(--ease);
}
.studio-poster:hover {
  transform: rotate(0deg);
}
.studio-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.poster-top,
.poster-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.poster-top {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(8, 9, 12, 0.28);
}
.poster-bottom {
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgba(8, 9, 12, 0.28);
}
.poster-star {
  position: absolute;
  top: 9%;
  right: 5%;
  z-index: 1;
  font-size: clamp(130px, 14vw, 230px);
  line-height: 0.7;
  color: var(--ink);
  animation: spin 30s linear infinite;
}
.poster-line {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.poster-line span {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}
.poster-barcode {
  width: 84px;
  height: 24px;
  opacity: 0.85;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 10px,
    var(--ink) 10px 11px,
    transparent 11px 14px
  );
}
.poster-vertical {
  position: absolute;
  right: 12px;
  bottom: 24%;
  z-index: 2;
  color: rgba(8, 9, 12, 0.5);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(70px, 9vw, 130px);
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 32px 40px 34px 0;
  border-bottom: 1px solid var(--line);
}
.principle:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 50px;
}
.principle:nth-child(even) {
  padding-left: 50px;
}
.principle-no {
  grid-column: 1;
  grid-row: 1;
  padding-top: 5px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.principle h3 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 9px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.principle p {
  grid-column: 2;
  grid-row: 2;
  max-width: 44ch;
  color: var(--paper-dim);
  font-size: 12.5px;
  line-height: 1.9;
}

/* ---------------------------------------------------------
   News
   --------------------------------------------------------- */

.news {
  background: var(--ink);
}
.news-list {
  border-top: 1px solid var(--line);
}
.news-row {
  display: grid;
  grid-template-columns: 118px 84px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 27px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  text-align: left;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              padding 0.4s var(--ease);
}
.news-row:hover,
.news-row:focus-visible {
  background: var(--lime);
  color: var(--ink);
  padding-left: 32px;
  padding-right: 32px;
}
.news-date {
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: color 0.35s ease;
}
.news-cat {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.news-title {
  font-size: clamp(16px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
}
.news-arrow {
  justify-self: end;
  font-size: 18px;
  transition: transform 0.4s var(--ease);
}
.news-row:hover .news-arrow,
.news-row:focus-visible .news-arrow {
  transform: translate(4px, -4px);
}
.news-row:hover .news-date,
.news-row:hover .news-cat,
.news-row:focus-visible .news-date,
.news-row:focus-visible .news-cat {
  color: rgba(8, 9, 12, 0.58);
  border-color: rgba(8, 9, 12, 0.25);
}

/* ---------------------------------------------------------
   Careers
   --------------------------------------------------------- */

.careers {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 10vw, 140px);
  background: var(--lime);
  color: var(--ink);
  isolation: isolate;
}
.careers .eyebrow {
  color: rgba(8, 9, 12, 0.58);
}
.careers .eyebrow-no {
  border-color: rgba(8, 9, 12, 0.28);
  color: var(--ink);
}
.careers-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 90px);
}
.careers-title {
  font-size: clamp(52px, 9.2vw, 136px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.careers-title em {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.05em;
}
.careers-intro {
  max-width: 360px;
  flex: none;
  padding-bottom: 8px;
}
.careers-intro p {
  margin-bottom: 24px;
  color: rgba(8, 9, 12, 0.72);
  font-size: 13px;
  line-height: 1.9;
}
.careers .btn-dark:hover {
  background: #000;
}
.roles {
  margin-top: clamp(46px, 6vw, 70px);
  border-top: 1.5px solid var(--ink);
}
.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 20px;
  padding: 24px 8px;
  border-bottom: 1px solid rgba(8, 9, 12, 0.28);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              padding 0.4s var(--ease);
}
.role:hover,
.role:focus-visible {
  padding-left: 24px;
  padding-right: 16px;
  background: var(--ink);
  color: var(--lime);
}
.role-name {
  font-size: clamp(22px, 2.5vw, 33px);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.role-name em {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.55;
}
.role-meta {
  color: rgba(8, 9, 12, 0.58);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  transition: color 0.35s ease;
}
.role:hover .role-meta,
.role:focus-visible .role-meta {
  color: rgba(215, 255, 63, 0.62);
}
.role-arrow {
  justify-self: end;
  font-size: 20px;
  transition: transform 0.4s var(--ease);
}
.role:hover .role-arrow,
.role:focus-visible .role-arrow {
  transform: translate(4px, -4px);
}
.careers-note {
  margin-top: 26px;
  color: rgba(8, 9, 12, 0.62);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.careers :focus-visible,
.role:focus-visible {
  outline-color: var(--ink);
}
.careers-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.careers-star {
  position: absolute;
  right: -3vw;
  bottom: -13vw;
  z-index: -1;
  color: rgba(8, 9, 12, 0.07);
  font-size: 34vw;
  line-height: 0.7;
  pointer-events: none;
  animation: spin 70s linear infinite;
}

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

.site-footer {
  padding-top: clamp(56px, 7vw, 90px);
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-brand .brand-word {
  font-size: 24px;
}
.footer-brand p {
  margin-top: 20px;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  line-height: 1.9;
}
.footer-nav {
  display: flex;
  gap: clamp(48px, 8vw, 110px);
}
.footer-label {
  display: block;
  margin-bottom: 16px;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}
.footer-nav a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--paper-dim);
  font-size: 12.5px;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--lime);
}
.footer-word {
  margin: clamp(56px, 8vw, 90px) 0 clamp(22px, 3vw, 34px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 228, 0.16);
  font-size: clamp(56px, 15vw, 230px);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.06em;
  text-align: center;
  user-select: none;
  white-space: nowrap;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}
.back-top {
  transition: color 0.3s ease;
}
.back-top:hover {
  color: var(--lime);
}

/* ---------------------------------------------------------
   Dialogs
   --------------------------------------------------------- */

dialog {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  max-width: none;
}
dialog::backdrop {
  background: rgba(4, 5, 7, 0.82);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.detail-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
}
.detail-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-soft);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9);
  animation: dialog-in 0.45s var(--ease) both;
}
.detail-media {
  position: relative;
  min-height: 100%;
  background: #000;
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 40%, rgba(0, 0, 0, 0.42));
}
.detail-media-no {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
}
.detail-body {
  max-height: calc(100vh - 48px);
  padding: clamp(34px, 3.6vw, 54px);
  overflow-y: auto;
}
.detail-close,
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 12px;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.detail-close:hover,
.dialog-close:hover {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(90deg);
}

.detail-kicker {
  margin-bottom: 18px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
}
.detail-title {
  margin-bottom: 6px;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.detail-sub {
  margin-bottom: 26px;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}
.detail-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.detail-meta strong {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}
.detail-text p {
  margin-bottom: 13px;
  color: var(--paper-dim);
  font-size: 13px;
  line-height: 1.95;
  text-wrap: pretty;
}
.detail-features {
  margin-top: 26px;
}
.detail-features li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.detail-features li span {
  padding-top: 2px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}
.detail-features li p {
  color: var(--paper-dim);
  font-size: 12.5px;
  line-height: 1.7;
}
.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}
.detail-footer a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-footer a:hover {
  color: var(--lime);
}

.news-dialog {
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
}
.news-shell {
  position: relative;
  max-height: calc(100vh - 48px);
  padding: clamp(36px, 5vw, 62px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-soft);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9);
  animation: dialog-in 0.45s var(--ease) both;
}
.news-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.news-kicker .news-cat {
  color: var(--lime);
  border-color: rgba(215, 255, 63, 0.3);
}
.news-content h2 {
  margin-bottom: 26px;
  padding-right: 30px;
  font-size: clamp(25px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.news-content p {
  margin-bottom: 16px;
  color: var(--paper-dim);
  font-size: 13.5px;
  line-height: 2;
  text-wrap: pretty;
}
.news-content .news-sign {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

/* Mobile menu */
.menu {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
}
.menu::backdrop {
  background: var(--ink);
}
.menu[open] {
  animation: menu-in 0.4s var(--ease) both;
}
.menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px var(--pad) 30px;
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.menu-label {
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.menu-close span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.menu-close:hover span {
  background: var(--lime);
  color: var(--ink);
}
.menu-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.menu-nav a {
  display: grid;
  grid-template-columns: 1fr auto 32px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  transition: padding-left 0.35s var(--ease), color 0.3s ease;
}
.menu-nav a span {
  font-size: clamp(30px, 7.5vw, 54px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.menu-nav a em {
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.menu-nav a b {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  text-align: right;
}
.menu-nav a:hover {
  padding-left: 12px;
  color: var(--lime);
}
.menu[open] .menu-nav a {
  animation: menu-item 0.55s var(--ease) both;
}
.menu[open] .menu-nav a:nth-child(1) { animation-delay: 0.06s; }
.menu[open] .menu-nav a:nth-child(2) { animation-delay: 0.12s; }
.menu[open] .menu-nav a:nth-child(3) { animation-delay: 0.18s; }
.menu[open] .menu-nav a:nth-child(4) { animation-delay: 0.24s; }
.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.menu-foot a {
  color: var(--paper);
}

/* ---------------------------------------------------------
   Reveal
   --------------------------------------------------------- */

html.has-observer [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
html.has-observer [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------
   Animations
   --------------------------------------------------------- */

@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
@keyframes line-in {
  from { transform: translateY(112%); }
  to { transform: translateY(0); }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes scroll-line {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(320%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes menu-item {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-badge {
    width: 132px;
    height: 132px;
    right: 4.5vw;
  }
  .game-card {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .game-card--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  }
}

@media (max-height: 780px) and (min-width: 981px) {
  .hero-badge {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 72px;
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-badge {
    display: none;
  }
  .hero {
    min-height: 92svh;
  }
  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }
  .hero-lede {
    max-width: 520px;
  }
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .scroll-hint {
    display: none;
  }
  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }
  .section-intro {
    max-width: 460px;
  }
  .game-card,
  .game-card--flip {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .game-card--flip .game-visual,
  .game-card--flip .game-info {
    order: initial;
  }
  .game-info {
    max-width: 620px;
  }
  .game-desc {
    font-size: 14px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .studio-poster {
    position: relative;
    top: 0;
    width: min(440px, 100%);
    aspect-ratio: 4 / 5;
  }
  .studio-text {
    max-width: 640px;
  }
  .careers-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 32px;
  }
  .careers-intro {
    max-width: 460px;
  }
  .news-row {
    grid-template-columns: 96px 76px minmax(0, 1fr) 28px;
    gap: 16px;
    padding-inline: 12px;
  }
  .news-row:hover,
  .news-row:focus-visible {
    padding-inline: 20px;
  }
  .detail-dialog {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
  }
  .detail-shell {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
  .detail-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .detail-body {
    max-height: none;
    overflow: visible;
    padding: 30px;
  }
  .detail-close {
    position: fixed;
    top: 24px;
    right: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 20px;
  }
  .brand-sub {
    display: none;
  }
  .header-actions .btn {
    display: none;
  }
  .hero {
    min-height: 94svh;
    padding-top: 96px;
  }
  .hero-canvas {
    opacity: 0.68;
  }
  .hero-eyebrow {
    font-size: 8.5px;
    letter-spacing: 0.13em;
    gap: 8px;
  }
  .hero-title {
    font-size: clamp(45px, 12.2vw, 66px);
    letter-spacing: -0.055em;
  }
  .mobile-prefix {
    display: inline;
  }
  .desktop-prefix {
    display: none;
  }
  .hero-lede {
    font-size: 13.5px;
    line-height: 1.9;
  }
  .hero-cta {
    width: 100%;
    flex-wrap: wrap;
  }
  .hero-cta .btn {
    height: 48px;
    font-size: 12.5px;
    padding: 0 20px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .stat strong {
    font-size: 22px;
  }
  .ticker {
    padding: 12px 0;
  }
  .ticker-group {
    gap: 22px;
    padding-right: 22px;
    font-size: 12.5px;
  }
  .section {
    padding-block: 76px;
  }
  .section-title {
    font-size: clamp(36px, 10.5vw, 52px);
    line-height: 1.06;
  }
  .section-intro {
    padding-left: 16px;
    font-size: 12.5px;
  }
  .game-list {
    gap: 76px;
  }
  .game-visual {
    aspect-ratio: 4 / 3;
  }
  .game-meta {
    font-size: 8px;
    gap: 12px;
  }
  .game-info h3 {
    font-size: 28px;
  }
  .game-desc {
    font-size: 13px;
    line-height: 1.9;
  }
  .tags li {
    font-size: 8px;
  }
  .more-projects {
    margin-top: 68px;
  }
  .more-projects p {
    width: 100%;
    font-size: 14px;
  }
  .studio-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .studio-poster {
    width: 100%;
  }
  .poster-line {
    font-size: clamp(38px, 12vw, 54px);
  }
  .principles {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }
  .principle,
  .principle:nth-child(odd),
  .principle:nth-child(even) {
    padding: 26px 0;
    border-right: 0;
  }
  .principle {
    grid-template-columns: 34px 1fr;
  }
  .principle h3 {
    font-size: 18px;
  }
  .news-row {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 7px 14px;
    padding: 20px 4px;
  }
  .news-date {
    grid-column: 1;
    grid-row: 1;
    font-size: 9px;
  }
  .news-cat {
    display: none;
  }
  .news-title {
    grid-column: 1;
    grid-row: 2;
    font-size: 16.5px;
  }
  .news-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .news-row:hover,
  .news-row:focus-visible {
    padding-left: 12px;
    padding-right: 12px;
  }
  .careers {
    padding-block: 74px;
  }
  .careers-title {
    font-size: clamp(50px, 16vw, 74px);
  }
  .careers-intro p {
    font-size: 12.5px;
  }
  .role {
    grid-template-columns: minmax(0, 1fr) 26px;
    gap: 4px 12px;
    padding: 18px 4px;
  }
  .role-name {
    grid-column: 1;
    grid-row: 1;
    font-size: 21px;
  }
  .role-meta {
    grid-column: 1;
    grid-row: 2;
    font-size: 8.5px;
  }
  .role-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .role:hover,
  .role:focus-visible {
    padding-left: 14px;
    padding-right: 8px;
  }
  .careers-note {
    font-size: 11px;
    line-height: 1.8;
  }
  .footer-top {
    gap: 38px;
  }
  .footer-nav {
    width: 100%;
    justify-content: space-between;
    gap: 30px;
  }
  .footer-word {
    font-size: 34vw;
    margin-top: 48px;
  }
  .footer-bottom {
    font-size: 7.5px;
    line-height: 1.7;
  }
  .footer-bottom span:nth-child(2) {
    display: none;
  }
  .detail-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }
  .detail-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    border: 0;
    border-radius: 0;
  }
  .detail-media {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .detail-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 26px 20px 40px;
  }
  .detail-meta {
    gap: 8px;
  }
  .detail-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .detail-close {
    top: 16px;
    right: 16px;
  }
  .news-dialog {
    width: calc(100vw - 24px);
  }
  .news-shell {
    padding: 34px 22px 40px;
  }
  .menu-nav a span {
    font-size: 34px;
  }
  .menu-nav a em {
    display: none;
  }
  .menu-foot {
    font-size: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .hero-line-inner {
    animation: none;
    transform: none;
  }
  html.js .scribble path {
    animation: none;
    stroke-dashoffset: 0;
  }
  html.has-observer [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .game-visual {
    transform: none;
  }
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* Print — just in case someone prints the studio page */
@media print {
  .site-header,
  .hero-canvas,
  .hero-glow,
  .hero-badge,
  .grain,
  .cursor-dot,
  .cursor-ring,
  .scroll-progress,
  .ticker,
  .careers-star,
  .studio-poster,
  dialog {
    display: none !important;
  }
  html.has-observer [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .hero,
  .section,
  .careers,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
    min-height: 0;
    padding-block: 32px;
  }
}
