:root {
  --bg: #050508;
  --bg-2: #0a0a10;
  --ink: #e8e4dc;
  --muted: #7a756d;
  --dim: #3a3530;
  --line: rgba(232, 228, 220, 0.08);
  --line-bright: rgba(232, 228, 220, 0.18);
  --blood: #8b1a1a;
  --blood-bright: #c0392b;
  --ember: #d4550a;
  --fog: rgba(232, 228, 220, 0.04);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --max: 1100px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Noise overlay ── */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ── Vignette on hero ── */
.vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  /* Softer at the top so the transparent header still shows the art */
  background: radial-gradient(ellipse at 40% 70%, transparent 30%, rgba(0,0,0,0.75) 100%);
  z-index: 2;
}

/* ── Skip link ── */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.5rem 0.9rem;
  background: var(--blood-bright);
  color: #fff;
  border-radius: var(--r);
}
.skip:focus { top: 1rem; }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 64px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(5, 5, 8, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 36px;
  width: auto;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--blood);
  color: var(--ink) !important;
  letter-spacing: 0.08em;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover {
  background: var(--blood);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--line-bright);
  background: transparent;
  cursor: pointer;
  padding: 0 10px;
}
.menu-toggle span {
  display: block;
  width: 100%; height: 1px;
  background: var(--ink);
  transition: transform 0.2s;
}

.mobile-nav {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 49;
  background: rgba(5,5,8,0.97);
  border-bottom: 1px solid var(--line-bright);
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--ink); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias upward so key art fills the area behind the transparent header */
  object-position: center top;
  filter: brightness(0.55) saturate(0.7);
}

/* dramatic gradient from bottom — leave the top relatively open so the header reads as transparent */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5,5,8,1) 0%, rgba(5,5,8,0.55) 35%, rgba(5,5,8,0) 70%),
    linear-gradient(to right, rgba(5,5,8,0.55) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Top padding keeps copy below the fixed header without shifting the background */
  padding: 80px clamp(1.25rem, 5vw, 3rem) clamp(1.5rem, 4vh, 3.2rem);
  max-width: 700px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blood-bright);
}
.eyebrow::before {
  content: '— ';
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}

.lede {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: rgba(232,228,220,0.75);
  max-width: 34rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  border-top: 1px solid var(--line-bright);
  padding-top: 1.25rem;
}
.stat-row div { }
.stat-row dt {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.stat-row dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blood);
  border-color: var(--blood);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blood-bright);
  border-color: var(--blood-bright);
}
.btn-ghost {
  border-color: var(--line-bright);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-block { width: 100%; justify-content: center; }

.btn-discord {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
}
.btn-discord:hover {
  background: #4752c4;
  border-color: #4752c4;
}

.nav-discord {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-discord:hover { color: #fff; }

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
}
.footer-links a:hover { color: var(--ink); }

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
.section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  max-width: calc(var(--max) + 6rem);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 3rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: #fff;
}
.section-head p {
  color: var(--muted);
  max-width: 40rem;
  margin: 0;
}

/* rule accent */
.section-head::before {
  content: '';
  display: block;
  width: 2px;
  height: 2.5rem;
  background: var(--blood);
  margin-bottom: 1.25rem;
}

/* ─────────────────────────────────────────
   GAME SECTION
───────────────────────────────────────── */
.game-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.game-card-img {
  overflow: hidden;
  aspect-ratio: 616/353;
  background: #000;
}
.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
  filter: saturate(0.6) brightness(0.9);
}
.game-card-img:hover img { transform: scale(1.04); }

.game-card-body {
  padding: 2rem;
  background: var(--bg-2);
}
.game-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: #fff;
}
.game-card-body ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.game-card-body li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.game-card-body li::before {
  content: '/ ';
  color: var(--blood-bright);
}
.game-card-body li:last-child { border-bottom: none; }

.pillars {
  display: grid;
  gap: 1px;
  background: var(--line);
}
.pillar {
  padding: 1.5rem 2rem;
  background: var(--bg-2);
}
.pillar h3 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blood-bright);
  margin: 0 0 0.6rem;
}
.pillar p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.steam-widget-wrap {
  margin-top: 1px;
  background: #1b2838;
  overflow: hidden;
}
.steam-widget-wrap iframe {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
}

/* ─────────────────────────────────────────
   MEDIA SECTION
───────────────────────────────────────── */
.trailer-card {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 1px;
  background: #000;
  aspect-ratio: 16/7;
  border: 1px solid var(--line);
}
.trailer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.5);
  transition: filter 0.4s;
}
.trailer-card:hover img { filter: brightness(0.65) saturate(0.7); }

.trailer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 2;
}
.play-ring {
  width: 68px; height: 68px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.trailer-card:hover .play-ring {
  border-color: var(--blood-bright);
  background: rgba(139,26,26,0.3);
}
.play-ring svg { fill: #fff; margin-left: 4px; }

.trailer-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.7);
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.shots button {
  margin: 0; padding: 0;
  border: none;
  background: #000;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 16/9;
}
.shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.85);
  transition: filter 0.35s, transform 0.5s;
}
.shots button:hover img {
  filter: saturate(0.85) brightness(1);
  transform: scale(1.03);
}

/* ─────────────────────────────────────────
   STUDIO SECTION
───────────────────────────────────────── */
.studio-inner {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.studio-text {
  padding: 2.5rem 2rem;
  background: var(--bg-2);
}
.studio-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin: 0 0 1rem;
  color: #fff;
  line-height: 1.05;
}
.studio-text p {
  color: var(--muted);
  margin: 0 0 0.85rem;
  max-width: 36rem;
}
.studio-text p:last-of-type { margin-bottom: 0; }

.studio-links {
  list-style: none;
  margin: 0; padding: 0;
  background: var(--bg);
}
.studio-links li {
  border-bottom: 1px solid var(--line);
}
.studio-links li:last-child { border-bottom: none; }
.studio-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.studio-links a:hover {
  color: var(--ink);
  background: var(--fog);
}
.studio-links a::after { content: '→'; }

/* ─────────────────────────────────────────
   COMMUNITY / CTA
───────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.2) saturate(0.3);
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,5,8,0.92) 40%, rgba(5,5,8,0.6));
}
.cta-content {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  max-width: calc(var(--max) + 6rem);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: #fff;
  line-height: 1.05;
}
.cta-content p { color: var(--muted); margin: 0; max-width: 36rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.75rem 2rem;
  align-items: center;
  max-width: calc(var(--max) + 6rem);
  margin: 0 auto;
}
.footer-note {
  grid-column: 1;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand img {
  height: 28px;
  width: auto;
  opacity: 0.8;
}
.footer-brand p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-note {
  font-size: 0.75rem;
  color: var(--dim);
  margin: 0;
}

/* ─────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0.75rem 0.5rem;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }

.lightbox-stage {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1100px, calc(100vw - 7rem));
  width: 100%;
  padding: 3.5rem 0 0.5rem;
}
.lightbox-stage img {
  width: 100%;
  max-height: min(80vh, calc(100vh - 6rem));
  object-fit: contain;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  background: #080810;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--blood);
  border-radius: var(--r);
  background: var(--blood);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-close:hover {
  background: var(--blood-bright);
  border-color: var(--blood-bright);
}

.lightbox-nav {
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-bright);
  border-radius: var(--r);
  background: rgba(8, 8, 16, 0.9);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lightbox-nav:hover {
  border-color: var(--blood-bright);
  color: #fff;
  background: var(--blood);
}
.lightbox-prev { grid-column: 1; margin-left: clamp(0.5rem, 2vw, 1.25rem); }
.lightbox-next { grid-column: 3; margin-right: clamp(0.5rem, 2vw, 1.25rem); }

.lightbox-count {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 640px) {
  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
  }
  .lightbox-stage {
    grid-column: 1;
    max-width: calc(100vw - 1.5rem);
    padding-top: 4rem;
  }
  .lightbox-nav {
    grid-column: 1;
    grid-row: 2;
    position: relative;
  }
  .lightbox-prev { justify-self: start; margin: 0 0 0 1rem; }
  .lightbox-next { justify-self: end; margin: 0 1rem 0 0; grid-row: 2; }
  .lightbox-count { grid-row: 3; }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (min-width: 820px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }

  .game-grid {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto auto auto;
  }
  .game-card-img { grid-row: span 1; }
  .game-card-body { grid-column: 2; grid-row: 1 / 3; }
  .pillars { grid-column: 1; grid-row: 2; }
  .steam-widget-wrap { grid-column: 1 / -1; }

  .studio-inner { grid-template-columns: 1.4fr 0.9fr; }

  .cta-content { grid-template-columns: 1.2fr 0.8fr; align-items: center; }

  .shots { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after, .hero-bg img { animation: none; transition: none; }
}

/* Short viewport: keep hero copy from needing too much vertical space */
@media (max-height: 640px) {
  .hero-copy {
    padding-bottom: 1.25rem;
  }
  .lede {
    margin-bottom: 1.25rem;
  }
  .hero-actions {
    margin-bottom: 1.5rem;
  }
}
