/* Latin and Cyrillic subsets; the browser fetches only the ones a page actually uses. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/oswald-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #0d0e0c;
  --bg-raised: #161713;
  --line: #2a2a24;
  --fg: #ebe7dc;
  --muted: #9a958a;
  --gold: #c9a46a;
  --gold-bright: #e0bd82;
  --on-gold: #17130c;
  --radius: 4px;
  --wrap: 1160px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-bright); }
a:hover { color: var(--fg); }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }

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

.section { padding: clamp(64px, 10vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 500 0.8rem/1 var(--font-head);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.lead {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font: 600 1rem/1 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }

.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--on-gold); }

.btn-ghost { background: rgba(13, 14, 12, 0.55); color: var(--fg); }
.btn-ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.btn.is-pending,
.btn.is-pending:hover {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

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

.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.8rem; }

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  transition: background-color 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}

.site-header.is-sticky { position: fixed; }

.site-header.is-stuck {
  background: rgba(13, 14, 12, 0.88);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

/* On wide screens the Steam/Discord buttons stay in the header at all times, so the nav never jumps
   when the header sticks. On phones there is no room: they replace the nav once the header sticks. */
.header-cta { display: flex; gap: 8px; }
.header-cta .is-pending { display: none; }

@media (max-width: 640px) {
  .header-cta { display: none; }
  .site-header.is-stuck .header-cta { display: flex; }
  .site-header.is-stuck .site-nav { display: none; }
}

@media (max-width: 480px) {
  .site-header.is-stuck .studio { display: none; }
  .site-header.is-stuck .header-cta { margin-left: auto; }
}

.site-header .studio {
  color: var(--fg);
  font: 500 0.85rem/1 var(--font-head);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-header .studio,
.site-nav a { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }

.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a {
  color: var(--fg);
  font: 500 0.85rem/1 var(--font-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.8;
}
.site-nav a:hover { opacity: 1; color: var(--gold-bright); }

@media (max-width: 960px) {
  .site-nav a:not(.nav-keep) { display: none; }
}

/* Anchored sections land below the fixed header instead of under it. */
section[id] { scroll-margin-top: 72px; }

/* Hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(100svh, 980px);
  padding: 112px 0 72px;
  overflow: hidden;
  text-align: center;
}

.hero video,
.hero .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero video { object-fit: cover; }

.hero .hero-shade {
  background:
    radial-gradient(ellipse 55% 50% at center, rgba(13, 14, 12, 0.7) 0%, rgba(13, 14, 12, 0.25) 100%),
    linear-gradient(to bottom, rgba(13, 14, 12, 0.55) 0%, transparent 22%, transparent 72%, var(--bg) 100%);
}

.hero .wrap { position: relative; }

.hero-logo {
  width: min(560px, 82vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.7));
}

.hero-tagline {
  max-width: 34ch;
  margin: 28px auto 0;
  font: 400 clamp(1.1rem, 2.6vw, 1.45rem)/1.4 var(--font-head);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-facts {
  margin: 14px 0 0;
  color: var(--gold-bright);
  font: 500 0.85rem/1.5 var(--font-head);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero .actions { justify-content: center; margin-top: 36px; }

.motion-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(235, 231, 220, 0.35);
  border-radius: 50%;
  background: rgba(13, 14, 12, 0.6);
  color: var(--fg);
  cursor: pointer;
}

.motion-toggle:hover { border-color: var(--gold); color: var(--gold-bright); }
.motion-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.motion-toggle .icon-play,
.motion-toggle.is-paused .icon-pause { display: none; }
.motion-toggle.is-paused .icon-play { display: block; }

/* Trailer */

.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.trailer img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.2s; }
.trailer:hover img { opacity: 0.9; }

.trailer .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
}

.trailer .play span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s;
}

.trailer:hover .play span { transform: scale(1.06); }
.trailer .play svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--on-gold); }

.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer.is-playing { cursor: default; }

/* Features */

.features {
  display: grid;
  gap: clamp(48px, 8vw, 88px);
  margin-top: 56px;
}

/* Media always takes the wide column; even rows mirror the columns so the video keeps its size. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.feature:nth-child(even) .feature-media { order: 2; }

.feature-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(201, 164, 106, 0.12);
  pointer-events: none;
}

.feature-media img,
.feature-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-raised); }

.feature-body { position: relative; padding-left: 24px; border-left: 2px solid var(--gold); }

.feature h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.feature p { margin: 16px 0 0; color: var(--fg); font-size: 1.1rem; line-height: 1.6; }

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-tags li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--muted);
  font: 500 0.78rem/1 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .feature,
  .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-body { padding-left: 18px; }
}

.more-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin: 72px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  list-style: none;
}

.more-features li { padding: 22px; background: var(--bg-raised); }
.more-features strong {
  display: block;
  margin-bottom: 6px;
  font: 600 1rem/1.2 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.more-features span { color: var(--muted); font-size: 0.95rem; }

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.gallery a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s, opacity 0.25s;
}

.gallery a:hover img { transform: scale(1.04); }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 5, 4, 0.94);
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }

.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); }

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 14, 12, 0.8);
  color: var(--fg);
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox button:hover { border-color: var(--gold); color: var(--gold-bright); }
.lightbox [data-close] { top: 16px; right: 16px; }
.lightbox [data-prev] { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox [data-next] { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox [data-prev], .lightbox [data-next] { top: auto; bottom: 16px; transform: none; }
}

/* FAQ */

.faq {
  max-width: 820px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font: 500 1.15rem/1.3 var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-bright); }
.faq details p { margin: 0 0 20px; max-width: 65ch; color: var(--muted); }

/* Community CTA */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.cta .wrap { position: relative; }
.cta .lead { margin-left: auto; margin-right: auto; color: var(--fg); }
.cta .actions { justify-content: center; margin-top: 32px; }

/* Footer */

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

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--fg); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-bright); }
.site-footer a.is-pending { color: var(--muted); }
.site-footer .footer-studio { color: var(--fg); text-decoration: none; }
.site-footer .footer-studio:hover { color: var(--gold-bright); }
.site-footer .legal { flex-basis: 100%; margin: 0; font-size: 0.78rem; }

/* Press kit */

.press-head { padding: 112px 0 48px; border-bottom: 1px solid var(--line); }
.press-head .press-logo { width: min(320px, 70vw); height: auto; margin-bottom: 28px; }
.press-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }

.press-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
}

@media (max-width: 860px) { .press-layout { grid-template-columns: 1fr; } }

.factsheet {
  position: sticky;
  top: 24px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

@media (max-width: 860px) { .factsheet { position: static; } }

.factsheet dt {
  margin-top: 16px;
  color: var(--gold);
  font: 500 0.75rem/1 var(--font-head);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.factsheet dt:first-child { margin-top: 0; }
.factsheet dd { margin: 6px 0 0; overflow-wrap: anywhere; }

.press-body > section + section { margin-top: 56px; }
.press-body h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 16px; }
.press-body p { margin: 0 0 14px; }
.press-body ul { margin: 0; padding-left: 20px; }
.press-body li + li { margin-top: 8px; }

.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.press-note {
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: var(--bg-raised);
  color: var(--muted);
}
