/* =============================================
   Page-specific styles
   ============================================= */

/* ---------- HOME ---------- */

/* Hero — Marquee (default): one giant featured game */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d0d0c;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img,
.hero-bg .img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.95) saturate(0.95);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 35%, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 45%, transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(150px, 18vh, 200px);
}
.hero-eyebrow {
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}
.hero-eyebrow .dot { background: var(--accent); }
.hero-title {
  font-size: clamp(44px, 8vw, 128px);
  line-height: 1.02;
  margin: 0 0 24px;
  color: #fff;
  max-width: 14ch;
}
.hero-desc {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 460px;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ink { background: #fff; color: #111; }
.hero .btn-ink:hover { background: rgba(255,255,255,0.9); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* Marquee variant — original meta block */
.hero:not(.hero-cinematic) .hero-meta {
  position: absolute;
  bottom: clamp(72px, 12vh, 120px);
  right: var(--gutter);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
  color: rgba(255,255,255,0.7);
}
.hero:not(.hero-cinematic) .hero-meta .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.hero:not(.hero-cinematic) .hero-meta .featured-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero:not(.hero-cinematic) .hero-meta .featured-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  letter-spacing: var(--display-tracking, -0.01em);
}

/* Marquee variant — original indicators */
.hero:not(.hero-cinematic) .hero-indicators {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  z-index: 3;
  display: flex; gap: 8px;
}
.hero:not(.hero-cinematic) .hero-indicator {
  width: 40px; height: 2px;
  background: rgba(255,255,255,0.25);
  border: none; padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.hero:not(.hero-cinematic) .hero-indicator-fill {
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero:not(.hero-cinematic) .hero-indicator.is-active .hero-indicator-fill {
  animation: indicatorFill 5s linear forwards;
}
@keyframes indicatorFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* =============================================
   HERO — Cinematic Carousel
   ============================================= */
.hero-cinematic .hero-bg::after { display: none; }
.hero-cinematic .hero-bg { background: #0a0a09; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1100ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.92) contrast(1.05);
  transform-origin: center 60%;
}
.hero-slide.is-active img {
  animation: kenburns 8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes kenburns {
  0%   { transform: scale(1.02) translate3d(0,0,0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero-overlay-cinematic {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,9,0.6) 0%, rgba(10,10,9,0.0) 25%, rgba(10,10,9,0.0) 55%, rgba(10,10,9,0.92) 100%),
    linear-gradient(95deg, rgba(10,10,9,0.78) 0%, rgba(10,10,9,0.25) 35%, rgba(10,10,9,0.0) 65%, rgba(10,10,9,0.0) 100%);
}

.hero-cinematic .hero-inner { z-index: 4; }
.hero-cinematic .hero-eyebrow { margin-bottom: 36px; }

/* Per-slide content animation */
.hero-content-slide {
  animation: slideIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 880px;
}
@keyframes slideIn {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: none; }
}
.hero-content-slide > * {
  animation: slideInChild 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content-slide > *:nth-child(1) { animation-delay: 0ms; }
.hero-content-slide > *:nth-child(2) { animation-delay: 80ms; }
.hero-content-slide > *:nth-child(3) { animation-delay: 160ms; }
.hero-content-slide > *:nth-child(4) { animation-delay: 240ms; }
.hero-content-slide > *:nth-child(5) { animation-delay: 320ms; }
@keyframes slideInChild {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: none; }
}

.hero-cinematic .hero-context {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 24px;
}
.hero-cinematic .hero-title {
  font-size: clamp(44px, 8.5vw, 132px);
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 14ch;
}
.hero-cinematic .hero-genre {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
}
.hero-cinematic .hero-desc {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 0 40px;
  font-family: var(--font-ui);
  font-weight: 400;
}

/* Meta strip — bottom-right, horizontal */
.hero-cinematic .hero-meta {
  position: absolute;
  bottom: clamp(36px, 5vw, 56px);
  right: var(--gutter);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hero-cinematic .hero-status {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  padding: 6px 12px;
}
.hero-cinematic .hero-status .tag-dot { background: currentColor; }
.hero-cinematic .hero-status.tag-live { color: #5fc977; }
.hero-cinematic .hero-status.tag-dev { color: #e58263; }
.hero-cinematic .hero-status.tag-relaunch { color: #7e9bd9; }
.hero-cinematic .hero-status.tag-archived { color: rgba(255,255,255,0.55); }
.hero-cinematic .hero-year { color: rgba(255,255,255,0.85); }
.hero-cinematic .hero-platforms { color: rgba(255,255,255,0.55); }

/* Indicators — richer, with name labels */
.hero-cinematic .hero-indicators {
  position: absolute;
  bottom: clamp(36px, 5vw, 56px);
  left: var(--gutter);
  z-index: 5;
  display: flex;
  gap: 4px;
  /* Never enter the meta strip's zone (bottom-right) */
  max-width: min(60vw, calc(100vw - 720px - var(--gutter)));
  overflow-x: auto;
}
.hero-cinematic .hero-indicator {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding: 14px 16px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  min-width: 150px;
  text-align: left;
  color: rgba(255,255,255,0.55);
  transition: color 220ms;
  border-top: 1px solid rgba(255,255,255,0.16);
  width: auto; height: auto;
  overflow: visible;
}
.hero-cinematic .hero-indicator:hover { color: rgba(255,255,255,0.85); }
.hero-cinematic .hero-indicator.is-active { color: #fff; }
.hero-cinematic .hero-indicator.is-past { color: rgba(255,255,255,0.4); }
.hero-cinematic .hero-indicator-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: inherit;
  opacity: 0.55;
}
.hero-cinematic .hero-indicator.is-active .hero-indicator-num { opacity: 1; }
.hero-cinematic .hero-indicator-track {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: transparent;
  overflow: hidden;
}
.hero-cinematic .hero-indicator-fill {
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-cinematic .hero-indicator.is-past .hero-indicator-track { background: rgba(255,255,255,0.45); }
.hero-cinematic .hero-indicator.is-past .hero-indicator-fill { display: none; }
.hero-cinematic .hero-indicator.is-active .hero-indicator-fill {
  animation: indicatorFill 5s linear forwards;
}
.hero-cinematic .hero-indicator-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
/* Mid widths: meta strip and indicators can't share the bottom row — stack meta into the flow */
@media (max-width: 1280px) {
  .hero-cinematic { flex-wrap: wrap; align-content: center; }
  .hero-cinematic .hero-meta { position: static; width: 100%; padding: 24px var(--gutter) 96px; justify-content: flex-start; }
  .hero-cinematic .hero-indicators { left: 0; right: 0; padding: 0 var(--gutter); justify-content: flex-start; overflow-x: auto; max-width: none; bottom: 12px; }
  .hero-cinematic .hero-indicator { min-width: 120px; flex-shrink: 0; }
}

/* Hero — narrow-viewport tuning */
@media (max-width: 900px) {
  .hero { flex-wrap: wrap; align-content: center; }
  .hero-inner { padding-top: clamp(104px, 14vh, 128px); padding-bottom: 160px; }
  .hero-title { max-width: none; }
  .hero:not(.hero-cinematic) .hero-meta {
    position: static;
    width: 100%;
    align-items: flex-start;
    text-align: left;
    padding: 0 var(--gutter) 24px;
    margin-top: 24px;
  }
  .hero:not(.hero-cinematic) .hero-meta .featured-name { font-size: 22px; }
}
@media (max-width: 560px) {
  .hero-inner { padding-top: 104px; padding-bottom: 140px; }
  .hero-eyebrow { margin-bottom: 20px; font-size: 10px; }
  .hero-title { font-size: clamp(40px, 13vw, 64px); margin-bottom: 18px; }
  .hero-desc { margin-bottom: 28px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { padding: 12px 18px; }
  .hero-cinematic .hero-title { font-size: clamp(40px, 14vw, 72px); }
  .hero-cinematic .hero-genre { font-size: 11px; margin-bottom: 22px; }
  .hero-cinematic .hero-context { font-size: 10px; }
}

/* Hero — Split variant */
.hero-split {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.hero-split-copy {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 80px;
}
.hero-split-copy .hero-title {
  font-size: clamp(56px, 7.5vw, 120px);
  color: var(--ink);
  max-width: 11ch;
}
.hero-split-copy .hero-desc {
  color: var(--ink-2);
  max-width: 460px;
}
.hero-split .hero-eyebrow { color: var(--ink-3); }
.hero-split .btn-ink { background: var(--ink); color: var(--paper); }
.hero-split .btn-ink:hover { background: #2a2a28; }
.hero-split .btn-ghost { color: var(--ink); border-color: var(--rule-2); }

.hero-split-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  background: var(--ink);
}
.hero-split-gallery a { position: relative; overflow: hidden; }
.hero-split-gallery a img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.hero-split-gallery a:hover img { transform: scale(1.05); }
.hero-split-gallery .label {
  position: absolute;
  left: 18px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-split-gallery a::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-gallery { min-height: 60vh; }
  .hero-split-copy { padding-top: 100px; padding-bottom: 48px; }
}

/* Hero — Manifesto (text-only editorial) */
.hero-manifesto {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--paper);
  color: var(--ink);
  padding: 120px 0 80px;
}
.hero-manifesto .container {
  max-width: 1100px;
}
.hero-manifesto .statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: var(--display-tracking, -0.015em);
  margin: 32px 0 56px;
  max-width: 22ch;
}
.hero-manifesto .statement .em {
  font-style: italic;
  color: var(--accent);
}
html[data-display="oswald"] .hero-manifesto .statement .em,
html[data-display="sans"] .hero-manifesto .statement .em,
html[data-display="grotesk"] .hero-manifesto .statement .em {
  font-style: normal;
}
.hero-manifesto-meta {
  position: absolute;
  bottom: 56px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Stats row ---------- */
.stats {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: var(--display-tracking, -0.02em);
  font-weight: 400;
}
html[data-display="sans"] .stat-item .num,
html[data-display="grotesk"] .stat-item .num { font-weight: 500; }
html[data-display="oswald"] .stat-item .num { font-weight: 600; }

.stat-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .contact-form .row-2 { grid-template-columns: 1fr; gap: 0; }
  .contact-form .row-2 .field { margin-bottom: 18px; }
}

/* ---------- Section header ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: clamp(40px, 5vw, 64px);
  gap: 32px; flex-wrap: wrap;
}
.section-head .title {
  font-size: clamp(36px, 5vw, 64px);
  margin: 12px 0 0;
  max-width: 14ch;
}
.section-head .right {
  color: var(--ink-2);
  max-width: 380px;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Featured game (Home) ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.featured-art {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink);
  overflow: hidden;
  border-radius: var(--r-3);
}
.featured-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}
.featured:hover .featured-art img { transform: scale(1.03); }
.featured-art .badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
}
.featured-info .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.featured-info .title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  margin: 0 0 12px;
  line-height: 0.95;
  letter-spacing: var(--display-tracking, -0.02em);
  font-weight: 400;
}
html[data-display="sans"] .featured-info .title,
html[data-display="grotesk"] .featured-info .title { font-weight: 500; }
html[data-display="oswald"] .featured-info .title { font-weight: 600; text-transform: uppercase; }

.featured-info .genre {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
.featured-info p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 480px;
}

.featured-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  margin: 0 0 32px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.featured-meta dt { color: var(--ink-3); margin-bottom: 4px; }
.featured-meta dd { color: var(--ink); margin: 0; }

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured-art { aspect-ratio: 16/10; }
}

/* ---------- Games catalog grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.game-card {
  position: relative;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform var(--t-med) var(--ease);
}
.game-card:hover { transform: translateY(-6px); }
.game-card-art {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-bottom: 22px;
  isolation: isolate;
}
.game-card-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter var(--t-med);
}
.game-card:hover .game-card-art img { transform: scale(1.06); }
.game-card-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.game-card-art .tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.game-card-art .game-card-title-overlay {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  display: flex; justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.game-card-arrow {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.96);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity var(--t-med), transform var(--t-med);
}
.game-card:hover .game-card-arrow { opacity: 1; transform: none; }
.game-card-arrow svg { width: 15px; height: 15px; color: var(--ink); }

.game-card-body {
  padding: 0 4px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.game-card-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 32px);
  margin: 0;
  letter-spacing: var(--display-tracking, -0.005em);
  font-weight: 400;
  line-height: 1.05;
  transition: color var(--t-fast);
}
html[data-display="sans"] .game-card-title,
html[data-display="grotesk"] .game-card-title { font-weight: 500; }
html[data-display="oswald"] .game-card-title { font-weight: 600; text-transform: uppercase; }
.game-card:hover .game-card-title { color: var(--accent); }

.game-card-genre {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.game-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.game-card-meta .platforms { color: var(--ink-2); }

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

/* ---------- Studio block (about teaser on home) ---------- */
.studio-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: start;
}
.studio-block .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.studio-block .display {
  font-size: clamp(40px, 5vw, 72px);
  margin: 0 0 32px;
  max-width: 16ch;
}
.studio-block p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.studio-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  margin-top: 36px;
}
.pillar h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.pillar p {
  font-size: 15px;
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .studio-block { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Contact block ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
}
.contact-info h2 {
  font-size: clamp(40px, 5vw, 72px);
  margin: 12px 0 24px;
}
.contact-info p { color: var(--ink-2); font-size: 16px; margin: 0 0 32px; max-width: 38ch; }
.contact-emails { display: flex; flex-direction: column; gap: 16px; }
.contact-emails a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 18px;
  color: var(--ink);
  transition: color var(--t-fast);
}
.contact-emails a .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-emails a:hover { color: var(--accent); }
.contact-form { background: var(--surface); padding: 40px; border-radius: var(--r-3); border: 1px solid var(--rule); }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .row-2 .field { margin-bottom: 0; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 28px; }
}

/* =============================================
   GAME DETAIL
   ============================================= */
.gamehero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.gamehero-bg {
  position: absolute; inset: 0;
}
.gamehero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}
.gamehero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 35%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, transparent 50%);
}
.gamehero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(56px, 8vw, 80px);
  padding-top: clamp(140px, 14vh, 180px);
}
.gamehero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.gamehero .breadcrumb a:hover { color: #fff; }
.gamehero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 200px);
  line-height: 0.88;
  margin: 0 0 16px;
  letter-spacing: var(--display-tracking, -0.02em);
  color: #fff;
  font-weight: 400;
}
html[data-display="sans"] .gamehero h1,
html[data-display="grotesk"] .gamehero h1 { font-weight: 500; }
html[data-display="oswald"] .gamehero h1 { font-weight: 700; text-transform: uppercase; }
.gamehero .tagline {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 0 28px;
}
.gamehero .meta {
  display: flex; gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.gamehero .meta span strong { color: #fff; font-weight: 500; margin-left: 6px; }

/* Purchase bar */
.purchase-bar {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.purchase-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.purchase-bar .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.purchase-bar .platforms-row { display: flex; gap: 12px; flex-wrap: wrap; }
.platform-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-pill);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all var(--t-fast);
}
.platform-btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); }
.platform-btn svg { width: 16px; height: 16px; }

/* Game sections (light bg) */
.game-section {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 9vw, 128px) 0;
}
.game-section + .game-section { border-top: 1px solid var(--rule); }
.game-section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  margin: 0 0 56px;
  letter-spacing: var(--display-tracking, -0.01em);
  font-weight: 400;
}
html[data-display="sans"] .game-section h2,
html[data-display="grotesk"] .game-section h2 { font-weight: 500; }
html[data-display="oswald"] .game-section h2 { font-weight: 600; text-transform: uppercase; }

.game-section .lead-text {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 28ch;
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--display-tracking, -0.005em);
}
.game-section .body-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 60ch;
}
.game-section .desc-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .game-section .desc-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Details table */
.details-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.details-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.details-row + .details-row { /* nothing */ }
.details-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.details-value {
  font-size: 17px;
  color: var(--ink);
}
@media (max-width: 720px) {
  .details-table { grid-template-columns: 1fr; }
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.feature {
  padding: 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.feature .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin: 0 0 32px;
}
.feature h4 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 12px;
  letter-spacing: var(--display-tracking, -0.005em);
  font-weight: 400;
}
html[data-display="sans"] .feature h4,
html[data-display="grotesk"] .feature h4 { font-weight: 500; }
html[data-display="oswald"] .feature h4 { font-weight: 600; text-transform: uppercase; }
.feature p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.screenshots-grid > * {
  aspect-ratio: 16/10;
  background: var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.screenshots-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.screenshots-grid > *:hover img { transform: scale(1.05); }
.screenshots-grid .big {
  grid-column: span 3;
  grid-row: span 2;
}
.screenshots-grid .tall {
  grid-row: span 2;
}
/* Portrait (mobile) screenshots — three phone frames side by side */
.screenshots-grid.is-portrait { grid-template-columns: repeat(3, 1fr); max-width: 980px; }
.screenshots-grid.is-portrait > * { aspect-ratio: 9/16; border-radius: var(--r-2); }
@media (max-width: 900px) {
  .screenshots-grid { grid-template-columns: 1fr 1fr; }
  .screenshots-grid .big { grid-column: span 2; grid-row: span 1; }
  .screenshots-grid .tall { grid-row: span 1; }
  .screenshots-grid.is-portrait { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 200ms ease-out;
}
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-2);
}
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: #fff;
  font-size: 28px; opacity: 0.6;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { opacity: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Next game */
.next-game {
  background: var(--ink);
  color: #fff;
  padding: clamp(64px, 8vw, 96px) 0;
}
.next-game-link {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  color: #fff;
}
.next-game .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.next-game .title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  margin: 0;
  font-weight: 400;
  letter-spacing: var(--display-tracking, -0.01em);
}
.next-game .art {
  aspect-ratio: 16/10;
  border-radius: var(--r-3);
  overflow: hidden;
}
.next-game .art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.next-game-link:hover .art img { transform: scale(1.04); }
.next-game-link:hover .title { color: var(--accent); }
@media (max-width: 720px) { .next-game-link { grid-template-columns: 1fr; } }

/* =============================================
   ABOUT
   ============================================= */
.about-hero {
  padding: 200px 0 80px;
  position: relative;
}
.about-hero .display {
  font-size: clamp(56px, 8vw, 128px);
  max-width: 12ch;
  margin: 24px 0 40px;
}
.about-hero .display .accent { color: var(--accent); font-style: italic; }
html[data-display="sans"] .about-hero .display .accent,
html[data-display="grotesk"] .about-hero .display .accent,
html[data-display="oswald"] .about-hero .display .accent { font-style: normal; }
.about-hero .lead {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 56ch;
}

/* Principles cards */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.principle {
  padding: 40px 32px;
  background: var(--surface);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background var(--t-med);
}
.principle:hover { background: var(--paper-2); }
.principle .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 60px;
}
.principle h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 16px;
  letter-spacing: var(--display-tracking, -0.005em);
  font-weight: 400;
  max-width: 14ch;
}
html[data-display="sans"] .principle h3,
html[data-display="grotesk"] .principle h3 { font-weight: 500; }
html[data-display="oswald"] .principle h3 { font-weight: 600; text-transform: uppercase; }
.principle p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* Pipeline timeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.pipeline::before {
  content: '';
  position: absolute;
  top: 24px; left: 0; right: 0;
  height: 1px; background: var(--rule);
}
.pipeline-step { position: relative; padding-top: 56px; }
.pipeline-step::before {
  content: '';
  position: absolute;
  top: 18px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.pipeline-step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin: 0 0 8px;
  position: absolute;
  top: 0; left: 0;
}
.pipeline-step h4 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: var(--display-tracking, -0.005em);
  font-weight: 400;
}
html[data-display="sans"] .pipeline-step h4,
html[data-display="grotesk"] .pipeline-step h4 { font-weight: 500; }
html[data-display="oswald"] .pipeline-step h4 { font-weight: 600; text-transform: uppercase; }
.pipeline-step p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 24ch; }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; } .pipeline::before { display: none; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

/* Tech tags */
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tech-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  border-radius: var(--r-pill);
}

/* =============================================
   CAREERS
   ============================================= */
.careers-hero {
  padding: 200px 0 80px;
  position: relative;
}
.careers-hero .display {
  font-size: clamp(56px, 8vw, 128px);
  margin: 24px 0 32px;
  max-width: 14ch;
}
.careers-hero .lead { max-width: 56ch; font-size: clamp(18px, 1.6vw, 22px); }

/* Openings */
.openings {
  border-top: 1px solid var(--rule);
}
.opening-row {
  display: grid;
  grid-template-columns: 80px 2fr 1fr 1fr 110px;
  gap: 24px;
  padding: 28px 0;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left var(--t-med) var(--ease);
  position: relative;
}
.opening-row:hover { padding-left: 16px; }
.opening-row:hover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.opening-row .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.opening-row .role {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: var(--display-tracking, -0.005em);
  font-weight: 400;
}
html[data-display="sans"] .opening-row .role,
html[data-display="grotesk"] .opening-row .role { font-weight: 500; }
html[data-display="oswald"] .opening-row .role { font-weight: 600; text-transform: uppercase; }
.opening-row .team,
.opening-row .loc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.opening-row .apply {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.opening-row .apply svg { width: 12px; height: 12px; transition: transform var(--t-fast); }
.opening-row:hover .apply { color: var(--accent); }
.opening-row:hover .apply svg { transform: translateX(4px); }
@media (max-width: 900px) {
  .opening-row { grid-template-columns: 40px 1fr; gap: 12px; padding: 22px 0; }
  .opening-row .team, .opening-row .loc, .opening-row .apply { grid-column: 2; justify-self: start; }
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.value-item h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: var(--display-tracking, -0.005em);
  font-weight: 400;
}
html[data-display="sans"] .value-item h3,
html[data-display="grotesk"] .value-item h3 { font-weight: 500; }
html[data-display="oswald"] .value-item h3 { font-weight: 600; text-transform: uppercase; }
.value-item p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0; max-width: 50ch; }
.value-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 12px;
}
@media (max-width: 720px) { .values-grid { grid-template-columns: 1fr; } }

/* Perks */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.perk {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.perk h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.perk p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
@media (max-width: 720px) { .perks { grid-template-columns: 1fr; } }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
  padding: 200px 0 0;
}
.contact-hero .display {
  font-size: clamp(56px, 8vw, 128px);
  margin: 24px 0 32px;
  max-width: 14ch;
}
.contact-hero .lead { max-width: 56ch; font-size: clamp(18px, 1.6vw, 22px); }

.contact-section {
  padding: 80px 0 120px;
}
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.channel {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
  gap: 6px;
}
.channel + .channel { border-left: 1px solid var(--rule); padding-left: 32px; }
.channel .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.channel a {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: var(--display-tracking, -0.005em);
  color: var(--ink);
  font-weight: 400;
}
.channel a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .contact-channels { grid-template-columns: 1fr; }
  .channel + .channel { border-left: none; padding-left: 0; }
}

.contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.contact-meta .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.contact-meta .val { font-size: 16px; color: var(--ink); margin: 0; }
@media (max-width: 720px) { .contact-meta { grid-template-columns: 1fr; gap: 24px; } }
