:root {
  --bg: #090b0f;
  --bg-soft: #10141b;
  --panel: #171c24;
  --panel-strong: #202733;
  --line: #2a3340;
  --line-strong: #3a4a5d;
  --text: #edf2f7;
  --muted: #a9b6c6;
  --quiet: #6f7d8d;
  --steel: #79a7c8;
  --blue: #345f86;
  --blue-dark: #142236;
  --ice: #dbeaff;
  --shadow: rgba(0, 0, 0, 0.45);
  --pixel-font: "Goldman", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a,
button,
input,
textarea {
  cursor: none;
}

.game-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 132px;
  height: 132px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.16s ease;
}

.game-cursor.visible {
  opacity: 1;
}

.game-cursor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(121, 167, 200, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(52, 95, 134, 0.2), transparent 24rem),
    var(--bg);
  background-size: 52px 52px, 52px 52px, auto, auto, auto;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  background: rgba(9, 11, 15, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.scrolled {
  background: rgba(7, 9, 13, 0.94);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--pixel-font);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(121, 167, 200, 0.18));
}

.logo-reactive {
  --logo-x: 0deg;
  --logo-y: 0deg;
  --logo-shift-x: 0px;
  --logo-shift-y: 0px;
  transform: translate3d(var(--logo-shift-x), var(--logo-shift-y), 0) rotateX(var(--logo-y)) rotateY(var(--logo-x));
  transform-style: preserve-3d;
  transition: transform 0.18s ease, filter 0.18s ease;
  will-change: transform;
}

.logo-reactive:hover,
.logo-reactive:focus-visible {
  filter: drop-shadow(0 0 16px rgba(219, 234, 255, 0.26));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2rem);
}

.site-nav a {
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .nav-button {
  color: var(--text);
  padding: 0.62rem 1rem;
  border: 1px solid var(--line-strong);
  background: rgba(121, 167, 200, 0.1);
  box-shadow: inset 0 -2px 0 rgba(121, 167, 200, 0.24);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 9rem clamp(1.2rem, 5vw, 5rem) 5rem;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 7.8rem;
  right: clamp(1.2rem, 5vw, 5rem);
  z-index: 1;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #05070b;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(0.86) contrast(1.08) brightness(0.82);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 7, 11, 0.58), rgba(5, 7, 11, 0.2) 55%, rgba(5, 7, 11, 0.48));
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 6px, rgba(255, 255, 255, 0.035) 7px);
  opacity: 0.08;
}

.hero-copy,
.hero-status,
.section-heading,
.studio-copy,
.contact-copy {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  justify-items: center;
  width: min(980px, 100%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--steel);
  font-family: var(--pixel-font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--pixel-font);
  line-height: 1.04;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo-title {
  line-height: 1;
}

.hero-logo-title img {
  width: min(900px, 92vw);
  height: auto;
  transform-origin: center;
  filter: drop-shadow(0 0 20px rgba(219, 234, 255, 0.18));
}

h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.3rem);
}

h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.hero-lede {
  max-width: 780px;
  margin: 1.5rem auto 2rem;
  color: var(--muted);
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
}

.hero-actions,
.link-row,
.socials,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.2rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--pixel-font);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}

.button.primary {
  border-color: rgba(121, 167, 200, 0.65);
  background: linear-gradient(180deg, #345f86, #1b3652);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: linear-gradient(180deg, #467aa8, #234663);
}

.button.secondary:hover,
.button.text-link:hover,
.button.secondary:focus-visible,
.button.text-link:focus-visible {
  border-color: var(--steel);
}

.button.text-link {
  background: rgba(255, 255, 255, 0.04);
}

.hero-status {
  position: absolute;
  right: clamp(1.2rem, 5vw, 5rem);
  bottom: 4rem;
  max-width: 360px;
  margin-bottom: 0.8rem;
  padding: 1.2rem;
  border-left: 3px solid var(--steel);
  background:
    linear-gradient(135deg, rgba(121, 167, 200, 0.13), transparent 42%),
    rgba(16, 20, 27, 0.78);
  box-shadow: 0 24px 80px var(--shadow);
}

.hero-status p,
.hero-status span {
  margin: 0;
  color: var(--muted);
}

.hero-status strong {
  display: block;
  margin: 0.25rem 0;
  font-family: var(--pixel-font);
  font-size: 1.85rem;
}

.intro-band {
  padding: 1.1rem clamp(1.2rem, 5vw, 5rem);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background:
    repeating-linear-gradient(90deg, rgba(121, 167, 200, 0.07) 0 1px, transparent 1px 46px),
    rgba(16, 20, 27, 0.75);
}

.intro-band p {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--pixel-font);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.2rem, 5vw, 5rem);
}

.section:nth-of-type(even) {
  background: rgba(10, 13, 18, 0.38);
}

.section-heading {
  margin-bottom: 2rem;
}

.featured-game {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: stretch;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(121, 167, 200, 0.1), transparent 34%),
    rgba(23, 28, 36, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.featured-copy p,
.game-card p,
.studio-copy p,
.devlog-item p,
.contact-copy p {
  color: var(--muted);
}

.game-kicker {
  margin: 0;
  color: var(--ice);
  font-family: var(--pixel-font);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.game-visual {
  min-height: 300px;
  position: relative;
  overflow: hidden;
  background: var(--panel-strong);
}

.game-visual.dead-journey {
  min-height: 430px;
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.08), rgba(9, 11, 15, 0.62)),
    url("assets/dead-journey-shot-1.png") center / cover no-repeat;
}

.game-visual.evacuation {
  background: #0a0e13;
}

.game-visual.archive {
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.18), rgba(9, 11, 15, 0.72)),
    url("assets/metablade-logo-wide-cropped.png") center / 72% no-repeat,
    linear-gradient(135deg, #181d24, #203042);
}

.game-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  filter: saturate(0.95) contrast(1.04) brightness(0.85);
}

.pixel {
  position: absolute;
  display: block;
}

.moon {
  top: 15%;
  right: 18%;
  width: 54px;
  height: 54px;
  background: var(--ice);
  box-shadow: 0 0 60px rgba(121, 167, 200, 0.38);
}

.cave {
  left: 18%;
  bottom: 0;
  width: 56%;
  height: 46%;
  background: #080a0d;
  clip-path: polygon(0 100%, 12% 42%, 31% 20%, 52% 8%, 73% 22%, 91% 52%, 100% 100%);
}

.ember {
  width: 8px;
  height: 8px;
  background: var(--steel);
  box-shadow: 0 0 18px var(--steel);
}

.ember.one {
  left: 24%;
  bottom: 22%;
}

.ember.two {
  right: 29%;
  bottom: 33%;
}

.blade {
  right: 18%;
  bottom: 15%;
  width: 10px;
  height: 110px;
  background: linear-gradient(var(--text), var(--steel));
  transform: rotate(18deg);
}

.meta-row span {
  padding: 0.35rem 0.55rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--pixel-font);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.game-card,
.devlog-item,
.roadmap-item,
.team-card {
  border: 1px solid var(--line);
  background: rgba(23, 28, 36, 0.72);
}

.game-card,
.devlog-item,
.roadmap-item,
.team-card,
.contact-form {
  position: relative;
}

.game-card::before,
.devlog-item::before,
.roadmap-item::before,
.team-card::before,
.contact-form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 72px;
  height: 2px;
  background: var(--steel);
}

.game-card {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1.4rem;
}

.game-card > :not(.game-visual) {
  margin-inline: 1.4rem;
}

.game-card a {
  width: fit-content;
  color: var(--steel);
  font-family: var(--pixel-font);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.evacuation-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.62), rgba(9, 11, 15, 0.88)),
    url("assets/evacuation-5-wide-background.png") center top / cover fixed no-repeat;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.evacuation-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 72% 30%, rgba(121, 167, 200, 0.16), transparent 28rem);
  pointer-events: none;
}

.evacuation-hero,
.evacuation-logo-lockup,
.evacuation-showcase-rows,
.evacuation-screenshots,
.evacuation-finale {
  position: relative;
  z-index: 1;
}

.evacuation-logo-lockup {
  display: grid;
  place-items: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.evacuation-logo-lockup img {
  width: min(520px, 84vw);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.52));
}

.evacuation-hero {
  display: grid;
  grid-template-columns: minmax(360px, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.evacuation-copy p {
  color: var(--muted);
  font-size: 1.14rem;
}

.evacuation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(5, 7, 11, 0.72);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.play-badge:hover,
.play-badge:focus-visible {
  border-color: var(--steel);
  transform: translateY(-2px);
}

.play-badge img {
  width: 100%;
  height: auto;
  display: block;
}

.web-soon {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  color: var(--ice);
  font-family: var(--pixel-font);
  font-size: 0.98rem;
  text-transform: uppercase;
  background: rgba(23, 28, 36, 0.78);
}

.evacuation-teaser-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 234, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(121, 167, 200, 0.12), transparent 40%),
    rgba(5, 7, 11, 0.82);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.3);
}

.evacuation-teaser-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.evacuation-teaser-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  opacity: 0.96;
  filter: saturate(0.96) contrast(1.05) brightness(0.88);
}

.itchio-badge {
  width: min(210px, 100%);
  background: rgba(255, 255, 255, 0.96);
}

.evacuation-showcase-rows {
  display: grid;
  gap: clamp(1.2rem, 4vw, 2rem);
}

.evacuation-feature {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid rgba(219, 234, 255, 0.14);
  background: rgba(5, 7, 11, 0.76);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.evacuation-feature.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.evacuation-feature.reverse video {
  order: 2;
}

.evacuation-feature h3 {
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.evacuation-feature p {
  color: var(--muted);
  font-size: 1.16rem;
  max-width: 34rem;
}

.evacuation-screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.2rem, 4vw, 2rem);
}

.evacuation-screenshots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #05070b;
}

.promo-video {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #05070b;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.evacuation-finale {
  display: grid;
  gap: clamp(1.2rem, 4vw, 2.5rem);
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border: 1px solid rgba(219, 234, 255, 0.16);
  background: linear-gradient(135deg, rgba(5, 7, 11, 0.92), rgba(20, 34, 54, 0.72));
  text-align: center;
}

.evacuation-video-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1.3fr);
  gap: clamp(1.2rem, 4vw, 2.4rem);
  align-items: center;
  margin-top: clamp(1.8rem, 5vw, 3rem);
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(219, 234, 255, 0.14);
  background: rgba(8, 12, 18, 0.82);
}

.video-feature-copy p {
  color: var(--muted);
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #05070b;
  overflow: hidden;
}

.video-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.evacuation-finale h2 {
  margin-bottom: 1rem;
}

.evacuation-finale p {
  color: var(--muted);
}

.finale-boss {
  width: min(760px, 100%);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.38));
}

.finale-character {
  display: grid;
  justify-items: center;
}

.finale-character img {
  width: min(720px, 100%);
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.38));
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: center;
  background: rgba(16, 20, 27, 0.72);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.upcoming-section {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(52, 95, 134, 0.18), transparent 38%),
    rgba(8, 10, 14, 0.72);
}

.roadmap {
  display: grid;
  gap: 1rem;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.3rem;
}

.roadmap-code {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  color: var(--ice);
  font-family: var(--pixel-font);
  font-size: 1.45rem;
  font-weight: 900;
  background: #0c1016;
}

.roadmap-item h3,
.team-card h3 {
  margin: 0.18rem 0 0.55rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.roadmap-item p,
.team-card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 1.04rem;
}

.team-card .team-real-name {
  margin: -0.25rem 0 0.85rem;
  color: var(--ice);
  font-family: var(--pixel-font);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.studio-copy p {
  max-width: 720px;
  font-size: 1.12rem;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.studio-stats div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(23, 28, 36, 0.78);
  border-right: 1px solid var(--line);
}

.studio-stats div:last-child {
  border-right: 0;
}

.studio-stats strong {
  font-family: var(--pixel-font);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.studio-stats span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
}

.devlog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.team-section {
  background:
    repeating-linear-gradient(135deg, rgba(121, 167, 200, 0.045) 0 1px, transparent 1px 34px),
    rgba(9, 11, 15, 0.8);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.team-banner {
  margin: 0 0 1.2rem;
  border: 1px solid var(--line);
  background: rgba(23, 28, 36, 0.72);
  overflow: hidden;
}

.team-banner img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08);
}

.team-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
}

.team-photo {
  width: 96px;
  height: 96px;
  margin-bottom: 1.2rem;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: #0d1219;
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 1.2rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--pixel-font);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(121, 167, 200, 0.2), transparent),
    #0d1219;
}

.team-avatar.ghost {
  color: var(--muted);
  background: #10141b;
}

.team-avatar img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.devlog-item {
  padding: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(121, 167, 200, 0.05), transparent 24%),
    rgba(17, 22, 30, 0.92);
}

.blog-card:hover {
  border-color: var(--steel);
  transform: translateY(-3px);
}

.blog-image,
.blog-inline-image {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #05070b;
}

.blog-image {
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  object-fit: contain;
}

.blog-inline-image {
  aspect-ratio: 4 / 5;
  width: min(240px, 100%);
  justify-self: center;
  object-fit: contain;
}

.blog-type {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.28rem 0.48rem;
  border: 1px solid var(--line);
  color: var(--ice);
  font-family: var(--pixel-font);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.devlog-item time {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--quiet);
  font-family: var(--pixel-font);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.devlog-item h3 {
  font-size: 1.48rem;
}

.devlog-item a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--steel);
  font-family: var(--pixel-font);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: auto;
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: 0.92rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-actions button {
  border: 1px solid var(--line);
  color: var(--ice);
  font: inherit;
  padding: 0.45rem 0.65rem;
  background: rgba(5, 7, 11, 0.72);
}

.blog-actions button.liked {
  border-color: var(--steel);
  background: rgba(121, 167, 200, 0.16);
}

.blog-read-link,
.blog-back {
  display: inline-flex;
  width: fit-content;
  color: var(--steel);
  font-family: var(--pixel-font);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-posts {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.blog-post {
  display: none;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(121, 167, 200, 0.08), transparent 34%),
    rgba(13, 18, 25, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.blog-post:target {
  display: grid;
  gap: 1.2rem;
}

.blog-post-hero {
  width: 100%;
  max-height: none;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #05070b;
}

.blog-post time {
  color: var(--quiet);
  font-family: var(--pixel-font);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-post h2 {
  max-width: 780px;
  margin: 0;
}

.blog-post-body {
  display: grid;
  gap: 1.15rem;
  max-width: 780px;
  justify-items: start;
  margin: 0 auto;
}

.blog-post-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.95;
  text-align: left;
  text-wrap: pretty;
}

.blog-post-body figure {
  margin: 0;
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  width: 100%;
}

.blog-post-body figure img {
  width: 100%;
  max-height: none;
  border: 1px solid var(--line);
  background: #05070b;
  object-fit: contain;
}

.blog-post-body figcaption {
  color: var(--quiet);
  font-size: 0.88rem;
  max-width: 680px;
  line-height: 1.5;
  text-align: left;
}

.blog-post-body h3 {
  margin: 0.5rem 0 0;
  max-width: 760px;
  text-align: left;
}

.blog-post > .blog-actions {
  width: fit-content;
}

.blog-comments {
  display: grid;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-comments > p:not(.game-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.comment-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  background: rgba(20, 26, 35, 0.8);
}

.comment-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: 0.96rem;
  font-weight: 700;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  background: #0c1016;
  color: var(--text);
  font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid rgba(121, 167, 200, 0.4);
  outline-offset: 2px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.8fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.socials {
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: rgba(15, 20, 27, 0.78);
  color: var(--steel);
  font-family: var(--pixel-font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--steel);
  transform: translateY(-2px);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon-itch {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  background: rgba(23, 28, 36, 0.8);
}

.contact-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: 0.96rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  background: #0c1016;
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(121, 167, 200, 0.4);
  outline-offset: 2px;
}

.hidden {
  display: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.2rem, 5vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--quiet);
}

.footer-brand {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .evacuation-section {
    background-attachment: scroll;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0.8rem clamp(1rem, 4vw, 2rem) 1.2rem;
    background: rgba(9, 11, 15, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.24s ease;
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.85rem 0;
  }

  .social-link {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav .nav-button {
    width: fit-content;
    padding: 0.62rem 1rem;
  }

  .hero,
  .featured-game,
  .evacuation-hero,
  .studio-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    display: grid;
    justify-items: center;
    min-height: 90vh;
    align-items: center;
    padding: 8rem 1.2rem 3.5rem;
    text-align: center;
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 430px;
    width: min(100%, 430px);
    margin: 1.2rem auto 0;
  }

  .hero-copy {
    width: min(100%, 720px);
  }

  .hero-actions {
    justify-content: center;
  }

  .evacuation-actions {
    justify-content: center;
  }

  .play-badge {
    width: min(190px, 100%);
  }

  .web-soon {
    justify-content: center;
    width: min(190px, 100%);
  }

  .devlog-list,
  .game-grid,
  .team-grid,
  .evacuation-feature,
  .evacuation-feature.reverse,
  .evacuation-screenshots,
  .evacuation-finale,
  .evacuation-video-feature {
    grid-template-columns: 1fr;
  }

  .evacuation-feature.reverse video {
    order: 0;
  }

  .team-card {
    align-items: center;
    text-align: center;
  }

  .team-card::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero::before {
    display: none;
  }
}

@media (pointer: coarse) {
  body,
  a,
  button,
  input,
  textarea {
    cursor: auto;
  }

  .game-cursor {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand span {
    font-size: 0.72rem;
  }

  .brand img {
    width: 34px;
  }

  .hero {
    display: grid;
    min-height: auto;
    padding: 7.4rem 1rem 2.8rem;
    gap: 1.25rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .hero-logo-title img {
    width: min(96vw, 520px);
  }

  .hero-lede {
    margin: 1.1rem auto 1.5rem;
    font-size: 1.05rem;
  }

  .hero-actions {
    width: 100%;
    gap: 0.7rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-status {
    max-width: 100%;
    padding: 1rem;
    border-left-width: 2px;
  }

  .hero-status strong {
    font-size: 1.55rem;
  }

  .evacuation-actions {
    gap: 0.75rem;
  }

  .play-badge,
  .web-soon {
    width: min(156px, calc(50vw - 1.3rem));
    min-height: 44px;
  }

  .team-photo,
  .team-avatar {
    margin-inline: auto;
  }

  .game-visual.dead-journey,
  .game-visual {
    min-height: 260px;
  }

  .studio-stats {
    grid-template-columns: 1fr;
  }

  .studio-stats div {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .studio-stats div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .roadmap-item {
    grid-template-columns: 1fr;
  }
}
