:root {
  --night: #170a2b;
  --night-2: #23103f;
  --violet: #6d28d9;
  --yellow: #ffd60a;
  --orange: #ff8a00;
  --red: #ff1e56;
  --white: #fff8ef;
  --ink: #120720;
  --font: "Rubik", system-ui, sans-serif;
  --wrap: min(1240px, 100% - 32px);
  --skew: -8deg;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--white); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: var(--wrap); margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 28px;
  padding: 12px clamp(16px, 3vw, 40px); background: rgba(23,10,43,0.82); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--yellow);
}
.studio { display: flex; align-items: center; gap: 10px; color: var(--yellow); }
.studio span { font: 900 italic 17px/0.9 var(--font); text-transform: uppercase; color: var(--white); }
.studio small { display: block; font: 500 10px/1.2 var(--font); letter-spacing: 0.24em; color: var(--yellow); font-style: normal; }
.links { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: 15px; }
.links a { position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--red); transform: scaleX(0) skewX(var(--skew)); transition: transform 0.2s; }
.links a:hover::after { transform: scaleX(1) skewX(var(--skew)); }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px;
  font: 900 italic 18px/1 var(--font); text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--ink); background: linear-gradient(180deg, var(--yellow), var(--orange));
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 6px 0 #a33a00; transition: transform 0.15s, filter 0.15s;
}
.cta:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); }
.cta.small { padding: 10px 18px; font-size: 14px; }
.cta.alt { background: var(--white); }
.tri { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 120px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.05) translateX(-1.5%); } to { transform: scale(1.12) translateX(1.5%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(23,10,43,0.25), rgba(23,10,43,0.85) 70%),
    linear-gradient(to top, var(--night) 2%, transparent 40%);
}
.hero-in { text-align: center; max-width: 980px; }
.kicker { margin: 0 0 6px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; font-size: 13px; color: var(--yellow); text-shadow: 0 2px 0 var(--ink); }
.hero h1 img { width: min(920px, 100%); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 0 rgba(18,7,32,0.6)); animation: pop 0.9s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(0.6) rotate(-4deg); opacity: 0; } }
.tag { font: 800 italic clamp(20px, 2.5vw, 30px)/1.2 var(--font); margin: 8px auto 30px; max-width: 760px; text-shadow: 0 3px 0 var(--ink); }
.count { display: inline-block; margin-bottom: 30px; padding: 14px 22px 16px; background: rgba(18,7,32,0.72); border: 2px solid rgba(255,214,10,0.5); transform: skewX(var(--skew)); }
.count > * { transform: skewX(calc(var(--skew) * -1)); }
.count-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--yellow); margin-bottom: 6px; }
.count-grid { display: flex; gap: 22px; justify-content: center; }
.count-grid div { min-width: 64px; }
.count-grid b { display: block; font: 900 italic 44px/1 var(--font); font-variant-numeric: tabular-nums; }
.count-grid span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.75; }
.count.live .count-grid { display: none; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.chev { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: repeating-linear-gradient(-60deg, var(--yellow) 0 18px, var(--ink) 18px 36px); }

/* ---------- marquee ---------- */
.marquee { background: var(--red); overflow: hidden; border-block: 4px solid var(--ink); transform: rotate(-1.2deg); margin: 30px -10px; }
.marquee-in { display: flex; width: max-content; animation: run 28s linear infinite; }
.marquee-in span { padding: 14px 26px; font: 900 italic 26px/1 var(--font); text-transform: uppercase; color: var(--white); white-space: nowrap; }
.marquee-in span:nth-child(odd) { color: var(--yellow); }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(70px, 9vw, 130px) 0; }
.h { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 44px; }
.num { font: 900 italic 18px/1 var(--font); color: var(--ink); background: var(--yellow); padding: 8px 12px; transform: skewX(var(--skew)); display: inline-block; margin-top: 10px; }
.h h2, .press h2 { font: 900 italic clamp(40px, 6vw, 84px)/0.92 var(--font); text-transform: uppercase; letter-spacing: -0.01em; }
.h h2 span, .press h2 span { color: var(--red); -webkit-text-stroke: 0; }

.pitch { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1000px; margin: 0 0 56px 72px; font-size: 19px; color: #e9ddff; }
.pitch p { margin: 0; }
.stats { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 3px solid var(--ink); background: var(--ink); gap: 3px; }
.stats li { background: var(--night-2); padding: 18px 16px 16px; text-align: center; }
.stats b { display: block; font: 900 italic clamp(40px, 5vw, 64px)/1 var(--font); color: var(--yellow); font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #d9c9f5; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat { position: relative; overflow: hidden; background: var(--night-2); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--violet); transition: transform 0.2s, box-shadow 0.2s; cursor: zoom-in; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; }
.feat:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--red); }
.feat img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.feat div { padding: 16px 18px 20px; }
.feat h3 { font: 900 italic 22px/1.05 var(--font); text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.feat p, .feat ul { margin: 0; font-size: 15px; color: #d9c9f5; }
.feat ul { padding-left: 1.1em; display: grid; gap: 4px; }
.feat li::marker { color: var(--yellow); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.modes div { padding: 16px 20px; border-left: 6px solid var(--yellow); background: rgba(255,255,255,0.04); }
.modes h3 { font: 900 italic 18px/1 var(--font); text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.modes p { margin: 0; color: #e9ddff; }

.trailer { background: linear-gradient(180deg, var(--night) 0%, #2a0f4d 100%); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 4px solid var(--ink); box-shadow: 0 0 0 4px var(--yellow), 0 30px 80px rgba(0,0,0,0.5); overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.yt:hover img { transform: scale(1.04); }
.yt .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 110px; height: 110px; background: var(--red); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); transition: transform 0.2s; }
.yt:hover .play { transform: scale(1.1); }
.yt .play .tri { border-left-width: 26px; border-top-width: 16px; border-bottom-width: 16px; margin-left: 8px; color: var(--white); }
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 22px; }
.shots button { aspect-ratio: 16 / 9; overflow: hidden; border: 3px solid var(--ink); cursor: zoom-in; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.shots button:hover img { transform: scale(1.1); }
.steam { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; margin-top: 50px; }
.steam iframe { width: min(646px, 100%); height: 190px; border: 0; }
.steam blockquote { margin: 0; font: 900 italic clamp(36px, 4vw, 56px)/1 var(--font); color: var(--yellow); transform: rotate(-3deg); }
.steam cite { display: block; margin-top: 8px; font: 500 16px/1 var(--font); color: var(--white); letter-spacing: 0.1em; }

/* ---------- projects ---------- */
.projects { background: #0d0716; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj { position: relative; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 3px solid #2c1a45; isolation: isolate; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.8); transition: transform 0.8s, filter 0.4s; }
.proj:hover img { transform: scale(1.06); filter: saturate(1); }
.proj::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,4,14,0.96) 15%, rgba(8,4,14,0.2) 70%); }
.proj.redacted { background: repeating-linear-gradient(135deg, #140c1f 0 14px, #1a1028 14px 28px); }
.proj.redacted::after { content: "CLASSIFIED"; position: absolute; top: 38%; left: 50%; translate: -50% -50%; rotate: -12deg; padding: 6px 16px; border: 4px solid var(--red); color: var(--red); font: 900 34px/1 var(--font); letter-spacing: 0.1em; opacity: 0.85; }
.proj div { padding: 24px; }
.status { display: inline-block; padding: 5px 10px; margin-bottom: 12px; font: 700 11px/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; background: var(--white); color: var(--ink); transform: skewX(var(--skew)); }
.status.dev { background: var(--yellow); }
.status.proto { background: #a78bfa; }
.status.secret { background: var(--red); color: var(--white); }
.proj h3 { font: 900 italic 32px/1 var(--font); text-transform: uppercase; }
.proj p { margin: 8px 0 0; color: #cdbfe3; font-size: 15px; }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }
.big { font: 700 clamp(22px, 2.2vw, 30px)/1.3 var(--font); margin: 0 0 36px; }
.disc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.disc li { padding: 18px 20px; background: var(--night-2); border-left: 6px solid var(--yellow); color: #cdbfe3; font-size: 15px; }
.disc li:nth-child(2) { border-color: var(--orange); }
.disc li:nth-child(3) { border-color: var(--red); }
.disc li:nth-child(4) { border-color: #a78bfa; }
.disc b { display: block; font: 900 italic 22px/1.1 var(--font); color: var(--white); text-transform: uppercase; }
.team { display: grid; gap: 14px; align-content: start; }
.member { display: flex; align-items: center; gap: 18px; padding: 16px; background: var(--white); color: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: transform 0.2s; }
.member:hover { transform: translateX(6px); }
.avatar { flex: none; display: grid; place-items: center; width: 58px; height: 58px; font: 900 italic 22px/1 var(--font); color: var(--white); background: linear-gradient(135deg, var(--red), var(--violet)); clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.member b { display: block; font: 900 italic 20px/1.1 var(--font); text-transform: uppercase; }
.member span { font-size: 14px; color: #4a3b5e; }
.member em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--violet); white-space: nowrap; }

/* ---------- press ---------- */
.press { background: var(--yellow); color: var(--ink); }
.press-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: end; }
.press .num { background: var(--ink); color: var(--yellow); margin-bottom: 18px; }
.press h2 span { color: var(--red); }
.press p { font-size: 19px; max-width: 520px; }
.mail { display: inline-block; margin-top: 10px; font: 900 italic clamp(20px, 2.4vw, 32px)/1.1 var(--font); border-bottom: 4px solid var(--red); word-break: break-word; }
.press-links { display: grid; gap: 8px; }
.press-links a { display: flex; justify-content: space-between; padding: 16px 20px; background: var(--ink); color: var(--white); font: 800 italic 18px/1 var(--font); text-transform: uppercase; transition: background 0.2s, transform 0.2s; }
.press-links a:hover { background: var(--red); transform: translateX(-6px); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px clamp(16px, 3vw, 40px); font-size: 13px; color: #9d8bb8; background: #0d0716; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; background: rgba(10,4,18,0.95); padding: 50px 10px; }
.lightbox[hidden] { display: none; }
.lb-body { display: grid; place-items: center; height: 100%; min-width: 0; }
.lb-body img { max-height: calc(100svh - 100px); object-fit: contain; border: 3px solid var(--yellow); }
.lb-body .vid { width: min(100%, calc((100svh - 100px) * 16 / 9)); aspect-ratio: 16 / 9; }
.lb-body iframe { width: 100%; height: 100%; border: 0; }
.lb-x { position: absolute; top: 10px; right: 18px; font-size: 40px; line-height: 1; color: var(--yellow); }
.lb-arrow { font: 900 54px/1 var(--font); color: var(--yellow); }
.lightbox.single .lb-arrow { visibility: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .cta.small { margin-left: auto; }
  .pitch { grid-template-columns: 1fr; margin-left: 0; }
  .features, .proj-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .studio-grid, .press-in { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .features, .proj-grid, .disc, .modes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:last-child { grid-column: 1 / -1; }
  .proj { min-height: 340px; }
  .count-grid { gap: 12px; }
  .count-grid div { min-width: 48px; }
  .count-grid b { font-size: 32px; }
  .h { flex-direction: column; gap: 10px; }
  .member em { display: none; }
  .lightbox { grid-template-columns: 36px 1fr 36px; padding: 50px 0; }
  .lb-arrow { font-size: 38px; }
  .studio span { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
