/* ============ Bluestone Games — design system ============ */
:root {
  --bg: #06070d;
  --bg-2: #0a0c15;
  --surface: #10121f;
  --card: #12141f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f4fa;
  --muted: #98a0b6;
  --accent: #4d8dff;
  --accent-2: #00e0ff;
  --grad: linear-gradient(100deg, #4d8dff, #00e0ff);
  --radius: 18px;
  --font-display: "Unbounded", sans-serif;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap,
.container { width: min(1240px, 92vw); margin: 0 auto; }
section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; letter-spacing: -0.02em; }
.display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.4rem;
}
.section-tag::before { content: ""; width: 34px; height: 1px; background: var(--grad); }
.section-title {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-sub { color: var(--muted); max-width: 56ch; font-size: 1.05rem; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 7, 13, 0.5);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(6, 7, 13, 0.85);
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0 1.15rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #eef1f8;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--accent-2); border-color: var(--accent-2); }
.nav-cta {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: var(--grad);
  color: #04101c;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(77, 141, 255, 0.4); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 102;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.burger span { width: 22px; height: 2px; background: var(--text); transition: 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/boundary-hero.png") center/cover no-repeat;
  transform: scale(1.05);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
.hero-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero-layer.visible { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(6, 7, 13, 0.55) 42%, rgba(6, 7, 13, 0.4) 100%),
    linear-gradient(to bottom, rgba(6, 7, 13, 0.6), transparent 32%);
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-yt { overflow: hidden; }
.hero-yt iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100vh; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: none;
}
.hero-now {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 5.6rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  background: rgba(6, 7, 13, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}
.hero-now:hover { border-color: var(--accent-2); }
.hero-now .now-lbl {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.hero-now .now-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
@keyframes heroDrift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(6, 7, 13, 0.62) 42%, rgba(6, 7, 13, 0.45) 100%),
    linear-gradient(to bottom, rgba(6, 7, 13, 0.55), transparent 30%);
}
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.16;
  background: var(--accent);
  top: -20vw; right: -15vw;
}
.hero-inner { position: relative; z-index: 2; }
.hero .eyebrow {
  font-family: var(--font-head);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 1.2rem;
}
.hero .display { max-width: 14ch; margin-bottom: 1.6rem; }
.hero p.lead { max-width: 52ch; color: #cfd4e4; font-size: 1.12rem; margin-bottom: 2.4rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-primary { background: var(--grad); color: #04101c; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(0, 224, 255, 0.3); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.25); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.hero-stats {
  position: relative;
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 4rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
  overflow: hidden;
  background: var(--bg-2);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3.5rem;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee-track span::after { content: "◆"; color: var(--accent); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- spotlight ---------- */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.spotlight-art { position: relative; }
.spotlight-art .art-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  aspect-ratio: 16 / 10;
}
/* auto-scrolling screenshot reel inside the headliner frame */
.spot-strip {
  display: flex;
  height: 100%;
  transition: transform 1s cubic-bezier(.7, 0, .25, 1);
  will-change: transform;
}
.spot-strip.no-anim { transition: none; }
.spot-strip img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spotlight-art .packshot {
  position: absolute;
  width: 34%;
  right: -3%;
  bottom: -6%;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.65));
}
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.badge-soon { background: rgba(0, 224, 255, 0.12); color: var(--accent-2); border: 1px solid rgba(0, 224, 255, 0.35); }
.badge-out { background: rgba(88, 255, 150, 0.1); color: #58ff96; border: 1px solid rgba(88, 255, 150, 0.35); }
.spotlight-copy h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 1rem 0 1rem; }
.spotlight-copy p { color: var(--muted); margin-bottom: 1.6rem; }
.chip-row { display: flex; gap: 0.55rem; flex-wrap: wrap; margin: 1.2rem 0 1.8rem; }
.chip {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #c8cede;
}

/* ---------- games grid ---------- */
.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 2.4rem 0 2.6rem; }
.filter-btn {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--grad); color: #04101c; border-color: transparent; font-weight: 700; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.6rem;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.35s;
}
.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 141, 255, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(77, 141, 255, 0.25);
}
.card-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0b14;
}
.card-art img.bg, .card-art img.fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card-art img.bg { object-fit: cover; filter: blur(26px) saturate(1.3); transform: scale(1.3); opacity: 0.55; }
.card-art img.fg { object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card-art.contain img.fg { object-fit: contain; padding: 6%; }
.game-card:hover .card-art img.fg { transform: scale(1.06); }
.card-art .badge { position: absolute; top: 14px; left: 14px; z-index: 2; backdrop-filter: blur(8px); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.card-body .tagline { color: var(--muted); font-size: 0.92rem; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.card-platforms { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card-link { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.game-card:hover .card-link { text-shadow: 0 0 18px rgba(0, 224, 255, 0.6); }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 10, 0.82); backdrop-filter: blur(12px); }
.modal-panel {
  position: relative;
  width: min(1020px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
.modal-close {
  position: sticky;
  top: 16px;
  margin-left: calc(100% - 60px);
  z-index: 5;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(6, 7, 13, 0.7);
  border: 1px solid var(--line);
  font-size: 1.2rem;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.modal-close:hover { border-color: var(--accent-2); color: var(--accent-2); }
.modal-hero { aspect-ratio: 21 / 9; overflow: hidden; margin-top: -42px; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 2rem clamp(1.4rem, 4vw, 3rem) 3rem; }
.modal-body h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0.9rem 0 0.3rem; }
.modal-body .tagline { color: var(--accent-2); font-family: var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.modal-body p.desc { color: #c8cede; margin: 1.3rem 0; max-width: 68ch; }
.modal-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; margin-top: 1.6rem; }
.modal-cols h4 { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.modal-cols ul { list-style: none; }
.modal-cols ul li { padding: 0.45rem 0 0.45rem 1.4rem; position: relative; color: #c8cede; font-size: 0.95rem; }
.modal-cols ul li::before { content: "▸"; position: absolute; left: 0; color: var(--accent-2); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; margin-top: 2.2rem; }
.shots img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16/9; object-fit: cover; cursor: zoom-in; transition: transform 0.25s; }
.shots img:hover { transform: scale(1.03); border-color: var(--accent); }
.trailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: rgba(0, 224, 255, 0.1);
  border: 1px solid rgba(0, 224, 255, 0.4);
  color: var(--accent-2);
  transition: all 0.2s;
}
.trailer-btn:hover { background: rgba(0, 224, 255, 0.2); box-shadow: 0 0 24px rgba(0, 224, 255, 0.25); }
.lightbox video, .lightbox iframe {
  width: min(1100px, 94vw);
  aspect-ratio: 16/9;
  border: none;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
  background: #000;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.avatar { overflow: hidden; }

/* ---------- for developers ---------- */
.dev-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.perks { display: grid; gap: 0.9rem; margin-top: 2.2rem; }
.perk {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s, transform 0.25s;
}
.perk:hover { border-color: rgba(77, 141, 255, 0.4); transform: translateX(6px); }
.perk .ico {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(77, 141, 255, 0.12);
  color: var(--accent-2);
  font-size: 1.15rem;
}
.perk h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 0.15rem; }
.perk p { color: var(--muted); font-size: 0.88rem; }

/* ---------- forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: sticky;
  top: 100px;
}
.form-card h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.form-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(77, 141, 255, 0.07);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; }
.form-success {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: rgba(88, 255, 150, 0.1);
  border: 1px solid rgba(88, 255, 150, 0.35);
  color: #58ff96;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-copy p { color: var(--muted); margin-bottom: 1.2rem; }
.about-copy p strong { color: var(--text); }
.legacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.legacy-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  transition: border-color 0.25s;
}
.legacy-item:hover { border-color: rgba(0, 224, 255, 0.4); }
.legacy-item .yr { font-family: var(--font-display); font-size: 0.7rem; color: var(--accent-2); letter-spacing: 0.14em; }
.legacy-item h4 { font-family: var(--font-head); font-size: 1.05rem; margin: 0.35rem 0 0.2rem; }
.legacy-item p { color: var(--muted); font-size: 0.82rem; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.3s, border-color 0.3s;
}
.team-card:hover { transform: translateY(-6px); border-color: rgba(77, 141, 255, 0.45); }
.avatar {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(77, 141, 255, 0.25), rgba(0, 224, 255, 0.12));
  border: 1px solid rgba(77, 141, 255, 0.35);
  margin-bottom: 1.2rem;
}
.team-card h4 { font-family: var(--font-head); font-size: 1.15rem; }
.team-card .role { color: var(--accent-2); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0.25rem 0 0.7rem; font-family: var(--font-head); }
.team-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- careers ---------- */
.roles { display: grid; gap: 1rem; margin-top: 2rem; }
.role-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  transition: border-color 0.25s, transform 0.25s;
}
.role-card:hover { border-color: rgba(0, 224, 255, 0.4); transform: translateX(6px); }
.role-card h4 { font-family: var(--font-head); font-size: 1.2rem; }
.role-card .type { color: var(--accent-2); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-head); margin: 0.3rem 0 0.5rem; }
.role-card p { color: var(--muted); font-size: 0.92rem; max-width: 62ch; }
.role-card .btn { flex-shrink: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.info-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
}
.info-block .lbl { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.4rem; }
.info-block p, .info-block a { color: #d5daea; font-size: 0.98rem; }
.info-block a:hover { color: var(--accent-2); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 3.5rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo {
  display: inline-flex;
  margin-bottom: 1.1rem;
}
.footer-logo img { height: 34px; width: auto; }
.footer-grid p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.footer-grid h5 { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-grid ul a { color: #c8cede; font-size: 0.92rem; transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}
.socials { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.socials a img { width: 17px; height: 17px; display: block; transition: transform .2s; }
.socials a:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3, 4, 8, 0.92); display: none; align-items: center; justify-content: center; padding: 4vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 40px 120px rgba(0,0,0,0.7); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .spotlight-grid, .dev-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .modal-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-card { position: static; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 13, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.3rem; }
  .burger { display: flex; }
  .nav-cta-wrap { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .role-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .spotlight-art .packshot { width: 38%; right: 2%; }
}

/* ===== game product page (game.html) ===== */
.gp-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 7.5rem 0 3rem;
  overflow: hidden;
}
.gp-hero-media { position: absolute; inset: 0; z-index: 0; }
.gp-hero-media video,
.gp-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.gp-hero-media iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}
.gp-hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 3%, rgba(6,7,13,.62) 45%, rgba(6,7,13,.45) 100%),
    linear-gradient(105deg, rgba(6,7,13,.82) 22%, transparent 62%),
    linear-gradient(to bottom, rgba(6,7,13,.65), transparent 30%);
}
.gp-hero-inner { position: relative; z-index: 2; }
.gp-back {
  display: inline-block;
  font-family: var(--font-head); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem;
  transition: color .2s;
}
.gp-back:hover { color: #fff; }
.gp-hero-copy { max-width: 660px; }
.gp-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .95; letter-spacing: -0.02em;
  margin: 1rem 0 .4rem;
  text-shadow: 0 6px 40px rgba(0,0,0,.5);
}
.gp-tagline {
  font-family: var(--font-head); font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent); letter-spacing: .04em; margin-bottom: 1.2rem;
}
.gp-lead { color: #cdd3e4; font-size: 1.02rem; max-width: 58ch; margin: 1.2rem 0 1.8rem; }
.gp-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.gp-packshot {
  position: absolute; right: clamp(0rem, 4vw, 4rem); bottom: -2.5rem;
  width: clamp(150px, 19vw, 270px);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.65));
}
.gp-packshot img { width: 100%; }
.chip-dim { border-style: dashed; opacity: .85; }

.gp-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  background: #000;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.gp-screen #gpScreen,
.gp-screen video { width: 100%; height: 100%; border: none; display: block; }
.gp-screen video { object-fit: cover; }
.gp-screen iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(1.12);
  border: none;
  pointer-events: none;
}
.gp-gallery-section { padding: .75rem 0; background: rgba(255,255,255,.015); }
.gp-gallery { overflow: hidden; }
.gp-gallery-track {
  display: flex;
  gap: .75rem;
  width: max-content;
  animation: gp-strip 28s linear infinite;
}
.gp-gallery:hover .gp-gallery-track { animation-play-state: paused; }
@keyframes gp-strip { to { transform: translateX(calc(-50% - .375rem)); } }
.gp-shot { flex: 0 0 auto; }
.gp-shot img {
  height: 190px;
  aspect-ratio: 16 / 9;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform .35s;
}
.gp-shot:hover img { transform: scale(1.03); }
.gp-specs { border-block: 1px solid var(--line); background: rgba(255,255,255,.02); }
.gp-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem; padding-block: 1.6rem;
}
.gp-spec {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.gp-spec span {
  display: block; font-family: var(--font-head); font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .4rem;
}
.gp-spec strong { font-weight: 600; font-size: .95rem; color: #e8ecf6; line-height: 1.45; display: block; }

.gp-about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3.5rem; }
.gp-desc { font-size: 1.15rem; line-height: 1.75; color: #d4d9e8; }
.gp-features h3 {
  font-family: var(--font-head); font-size: .85rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem;
}
.gp-features ul { list-style: none; display: grid; gap: .85rem; }
.gp-features li {
  padding: .9rem 1.1rem .9rem 2.6rem; position: relative;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 10px; font-size: .95rem; color: #dde2f0;
}
.gp-features li::before {
  content: ""; position: absolute; left: 1rem; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); transform: translateY(-50%);
  box-shadow: 0 0 12px var(--accent);
}

.gp-shot {
  padding: 0; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; cursor: zoom-in; background: none; position: relative;
}

.gp-next-card {
  display: flex; align-items: center; gap: 1.6rem;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line); border-radius: 18px;
  background-size: cover; background-position: center;
  transition: border-color .25s, transform .25s;
}
.gp-next-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.gp-next-card h3 { font-size: clamp(1.6rem, 4vw, 2.6rem); flex: 1; }
.gp-next-arrow { font-size: 2rem; color: var(--accent); }

@media (max-width: 900px) {
  .gp-about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gp-packshot { width: 130px; right: 1rem; bottom: -1.5rem; }
}
@media (max-width: 640px) {
  .gp-shot img { height: 120px; }
  .gp-packshot { display: none; }
  .gp-hero { min-height: 78vh; }
  .nav-logo img { height: 20px; }
}
