:root {
  color-scheme: dark;
  --bg: #06070a;
  --bg-2: #0c0f14;
  --panel: rgba(16, 18, 24, 0.9);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f4f1ea;
  --muted: #aba7a0;
  --accent: #e98460;
  --accent-2: #7ed4c3;
  --max: 1180px;
  --radius: 6px;
  --fs-h1: clamp(2.75rem, 7vw, 6rem);
  --fs-h2: clamp(1.9rem, 4vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 2.1vw, 1.8rem);
  --fs-h4: clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-h5: clamp(0.95rem, 1.3vw, 1.1rem);
  --fs-h6: clamp(0.85rem, 1.1vw, 1rem);
  font-family: Barlow, Exo, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: Barlow;
  src: url("../fonts/Barlow-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: Barlow;
  src: url("../fonts/Barlow-Bold.woff2") format("woff2");
  font-weight: 700;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, h5, h6 { margin-top: 0; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(6, 7, 10, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.card-link,
.contact-links a:hover,
.footer-nav a:hover { color: var(--accent); }

.nav-dropdown {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.nav-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: rgba(10, 12, 16, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.dropdown-menu a {
  padding: 9px 10px;
  border-radius: 4px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero {
  min-height: 94vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px 0 86px;
}

.hero.short { min-height: 62vh; }
.hero-media,
.hero::after { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(6, 7, 10, 0.96), rgba(6, 7, 10, 0.72) 48%, rgba(6, 7, 10, 0.24)), linear-gradient(0deg, var(--bg), rgba(6, 7, 10, 0) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 24px;
  font-size: var(--fs-h1);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: var(--fs-h3);
  line-height: 1.15;
}

h4 {
  margin-bottom: 12px;
  font-size: var(--fs-h4);
  line-height: 1.2;
}

h5 {
  margin-bottom: 10px;
  font-size: var(--fs-h5);
  line-height: 1.25;
}

h6 {
  margin-bottom: 10px;
  font-size: var(--fs-h6);
  line-height: 1.3;
}

.lead {
  max-width: 750px;
  color: #e0dcd4;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.button.primary { background: var(--text); color: #12100b; }
.button.secondary { background: rgba(255, 255, 255, 0.06); }

.section { padding: clamp(72px, 10vw, 132px) 0; }
.section.band { background: var(--bg-2); border-block: 1px solid var(--line); }


.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 96px);
}

.split > div:first-child:not(.image-panel) + div {
  padding-top: clamp(34px, 3vw, 48px);
}


.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  min-height: 250px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--panel);
}

.card p,
.split p,
.muted { color: var(--muted); }

.project {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.project img,
.image-panel img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.project img { aspect-ratio: 16 / 10; }
.image-panel img { min-height: 420px; }
.project-grid-offset { margin-top: 28px; }

.project-logo-media {
  aspect-ratio: 1 / 1;
  max-height: 340px;
  object-fit: contain;
  padding: clamp(12px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.04);
}

.project-home {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
}

.project-home img {
  aspect-ratio: 21 / 9;
  max-height: 360px;
  object-position: center;
}

.project-hero-logo {
  display: block;
  width: min(560px, 100%);
  height: auto;
  max-width: min(560px, 100%);
  margin-bottom: 22px;
  border: 0;
  object-fit: contain;
}

.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.feature-media {
  width: 100%;
  height: clamp(320px, 42vw, 520px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-media.intro-media {
  height: clamp(260px, 30vw, 380px);
  aspect-ratio: 5 / 4;
}

.feature-media.contain {
  padding: clamp(12px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.scenario-card {
  min-height: 520px;
  display: grid;
  align-content: end;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scenario-card img,
.scenario-card::after {
  position: absolute;
  inset: 0;
}

.scenario-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scenario-card::after {
  content: "";
  background: linear-gradient(0deg, rgba(6, 7, 10, 0.94), rgba(6, 7, 10, 0.34));
}

.scenario-card div {
  position: relative;
  z-index: 1;
}

.trailer-panel {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.trailer-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer-fallback {
  min-height: 280px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
}

.trailer-fallback p {
  margin: 0;
}

.steam-link img {
  width: 180px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-links {
  display: grid;
  align-content: center;
  gap: 12px;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  justify-items: center;
}

.footer-grid p { margin: 0; text-align: center; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .split > div:first-child:not(.image-panel) + div { padding-top: 0; }
  .site-header { position: static; align-items: center; flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { width: 100%; display: none; grid-template-columns: 1fr; justify-content: stretch; gap: 8px; }
  .site-header.nav-open .site-nav { display: grid; }
  .site-nav > a,
  .site-nav .nav-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-dropdown { width: 100%; padding-bottom: 0; margin-bottom: 0; }
  .hero { min-height: auto; padding-top: 86px; }
  .split, .grid, .project, .feature-row, .feature-row.reverse, .scenario-grid, .contact-panel, .footer-grid { grid-template-columns: 1fr; }
  .image-panel img { min-height: 300px; }
  .project-home img {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
  .feature-media { height: auto; aspect-ratio: 1 / 1; }
  .feature-media.intro-media { aspect-ratio: 4 / 3; }
  .feature-media.contain { aspect-ratio: 16 / 10; }
  .scenario-card { min-height: 380px; }
  .dropdown-menu { position: static; min-width: 100%; margin-top: 6px; opacity: 1; visibility: visible; transform: none; border-radius: var(--radius); }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .actions { display: grid; }
}
