:root {
  --bg: #0b0f0e;
  --bg-2: #111816;
  --panel: #151d1b;
  --line: #24312d;
  --text: #ece7df;
  --muted: #a3ada9;
  --teal: #2f7d69;
  --teal-2: #5fcaa9;
  --brain: #f2b2a3;
  --brain-2: #e7897a;
  --radius: 14px;
  --wrap: 1160px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-2); }
a:hover { color: var(--brain); }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1.05rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  color: #06110e; background: var(--teal-2);
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--teal-2);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { color: #06110e; background: var(--brain); border-color: var(--brain); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--brain); border-color: var(--brain); }
.btn--small { padding: 10px 18px; font-size: .95rem; }
.btn--steam { width: 100%; padding: 18px; font-size: 1.2rem; }
.btn--steam svg { width: 24px; height: 24px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 15, 14, .88); backdrop-filter: blur(10px); border-color: var(--line); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: url("assets/logo.webp") 50% 38% / 250px auto no-repeat, #000;
  box-shadow: 0 0 0 2px var(--teal);
}
.brand__name { font: 800 1.35rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.brand__name small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .35em; color: var(--muted); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  color: var(--text); text-decoration: none; font: 600 1.05rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
}
.nav__links a:not(.btn):hover { color: var(--teal-2); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--text); margin: 7px 0; transition: transform .25s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 20px 80px; text-align: center; background: #000; overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 45%, rgba(95, 202, 169, .12), transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
.hero__logo { position: relative; width: min(1100px, 100%); height: auto; animation: rise 1.1s ease-out both; }
.hero__tag { position: relative; margin: -2vw 0 28px; font: 600 clamp(1.1rem, 2.2vw, 1.5rem)/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); animation: rise 1.1s .2s ease-out both; }
.hero__cta { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; animation: rise 1.1s .35s ease-out both; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal-2); animation: scrolly 1.8s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { opacity: .55; } }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Sections */
.section { position: relative; padding: 110px 0; }
.eyebrow { margin: 0 0 8px; font: 700 .95rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--teal-2); }
.title { margin: 0 0 18px; font: 800 clamp(2.4rem, 6vw, 4.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.lede { max-width: 680px; margin: 0 0 44px; font-size: 1.12rem; color: var(--muted); }
.small { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }

/* Game */
.game { background: var(--bg-2); overflow: hidden; }
.game__bg {
  position: absolute; inset: 0;
  background: url("https://store.akamai.steamstatic.com/images/storepagebackground/app/3753680?t=1751636176") center top / cover no-repeat;
  opacity: .22; mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.game .wrap { position: relative; }
.game__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px; align-items: start; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  border: 0; background: rgba(95, 202, 169, .92); cursor: pointer; transition: transform .2s ease, background .2s ease;
  box-shadow: 0 0 0 10px rgba(95, 202, 169, .2);
}
.video__play:hover { transform: scale(1.07); background: var(--brain); }
.video__play span { display: block; margin-left: 32px; width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #06110e; }
.video.is-playing .video__play { display: none; }

.shots { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.shots button { display: block; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #000; width: 100%; }
.shots img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; transition: transform .3s ease, opacity .3s ease; opacity: .85; }
.shots button:hover img { transform: scale(1.06); opacity: 1; }

.game__info { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.game__capsule { border-radius: 10px; width: 100%; height: auto; }
.features { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 22px; color: var(--muted); font-size: .95rem; }
.features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 10px var(--teal-2); }
.features strong { color: var(--text); font-weight: 600; }
.facts { margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { background: var(--panel); padding: 10px 12px; }
.facts dt { font: 700 .78rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-2); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: .9rem; }

/* Studio */
.studio__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: center; }
.studio__emblem {
  aspect-ratio: 1; border-radius: 50%;
  background: url("assets/logo.webp") 50% 30% / 270% auto no-repeat, #000;
  box-shadow: 0 0 0 1px var(--line), 0 0 80px rgba(95, 202, 169, .18);
}
.studio p { color: var(--muted); font-size: 1.06rem; }
.pillars { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pillars li { border: 1px solid var(--line); border-radius: 10px; padding: 16px; font: 700 1.15rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.pillars span { display: block; color: var(--brain); font-size: .9rem; margin-bottom: 8px; letter-spacing: .2em; }

/* Contact */
.contact { background: radial-gradient(70% 90% at 50% 100%, rgba(47, 125, 105, .25), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.contact__inner { text-align: center; }
.contact .lede { margin-left: auto; margin-right: auto; margin-bottom: 30px; }
.contact .btn { text-transform: none; letter-spacing: .03em; font-size: 1.2rem; max-width: 100%; overflow-wrap: anywhere; }
.contact__links { margin-top: 26px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--teal-2); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--teal); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 14px; top: 50%; translate: 0 -50%; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .game__grid, .studio__grid { grid-template-columns: 1fr; }
  .studio__emblem { max-width: 320px; margin: 0 auto; width: 100%; }
  .section { padding: 80px 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav__inner { padding: 10px 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 15, 14, .97); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; }
  .brand__name { font-size: 1.15rem; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; translate: none; }
  .hero__tag { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
