/* Voidpath release site — warm gold / copper on near-black (game menu canon) */
:root {
  --void: #080704;
  --sky: #0f0d0a;
  --panel: rgba(13, 11, 8, 0.92);
  --copper: #e0913c;
  --gold: #ffdf57;
  --amber: #ffb454;
  --cream: #f5ead2;
  --dim: #a89c86;
  --muted: #706853;
  --ink: #0d0a08;
  --edge: rgba(224, 145, 60, 0.38);
  --plate-radius: 6px;
  --max: 1180px;
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-brand: "Syne", "Orbitron", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: var(--void);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--amber);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Atmosphere */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--void);
}

.site-bg__art {
  position: absolute;
  inset: -4%;
  background: url("assets/title_bg.png") center / cover no-repeat;
  opacity: 0.42;
  --px: 0px;
  --py: 0px;
  transform: translate3d(var(--px), var(--py), 0) scale(1.06);
  will-change: transform;
  animation: drift 56s ease-in-out infinite alternate;
}

.site-bg__tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(224, 145, 60, 0.08), transparent 55%),
    linear-gradient(90deg, rgba(4, 3, 2, 0.78) 0%, rgba(12, 7, 4, 0.45) 50%, rgba(8, 5, 3, 0.7) 100%);
}

.site-bg__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: soft-light;
}

@keyframes drift {
  from { transform: translate3d(calc(-1.2% + var(--px)), calc(-0.6% + var(--py)), 0) scale(1.05); }
  to { transform: translate3d(calc(1.4% + var(--px)), calc(0.8% + var(--py)), 0) scale(1.08); }
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(8, 7, 4, 0.82);
  border-bottom: 1px solid rgba(224, 145, 60, 0.18);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  min-width: 0;
}

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

.brand-mark__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-mark__studio {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.brand-mark__game {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  color: var(--dim);
}

.nav a:hover {
  color: var(--gold);
}

/* Type */
.overline {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.55rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  line-height: 1.08;
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
}

.display--sm {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}

.filament {
  width: 280px;
  max-width: 100%;
  height: 1px;
  margin: 0.85rem 0 0.9rem;
  background: linear-gradient(90deg, var(--gold), transparent 90%);
  opacity: 0.7;
}

.filament--center {
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.lede {
  color: var(--dim);
  margin: 0;
  max-width: 36rem;
}

.pitch {
  max-width: 42rem;
  color: var(--cream);
  font-size: 1.12rem;
  margin: 0;
}

.pitch--tight {
  font-size: 1.05rem;
}

.pitch strong {
  color: var(--gold);
  font-weight: 600;
}

.credit {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.credit strong {
  color: var(--gold);
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--plate-radius);
  border: 1.4px solid transparent;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn--compact {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
}

.btn--primary {
  background: linear-gradient(180deg, #f0c35a 0%, #e0913c 100%);
  color: var(--ink);
  border-color: rgba(255, 223, 87, 0.55);
}

.btn--primary:hover {
  color: var(--ink);
  box-shadow: 0 0 26px rgba(255, 223, 87, 0.35);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(13, 11, 8, 0.72);
  color: var(--cream);
  border-color: var(--edge);
}

.btn--ghost:hover {
  border-color: rgba(255, 223, 87, 0.55);
  color: var(--gold);
}

/* Hero — one composition, brand-first, full-bleed */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 7rem 0 5.5rem;
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 7, 4, 0.92) 0%, rgba(8, 7, 4, 0.55) 42%, rgba(8, 7, 4, 0.2) 68%, rgba(8, 7, 4, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 7, 4, 0.25) 0%, rgba(8, 7, 4, 0.1) 45%, rgba(8, 7, 4, 0.95) 100%),
    url("assets/steam/screenshots/16_real_combat_wave_1920x1080.jpg") center / cover no-repeat;
  animation: heroIn 1.4s ease-out both;
}

.hero__content {
  max-width: 38rem;
  animation: riseIn 1s ease-out 0.15s both;
}

.hero__studio {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  letter-spacing: 0.08em;
  line-height: 0.92;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(255, 223, 87, 0.18);
}

.hero__line {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--cream);
  letter-spacing: 0.02em;
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Countdown — below hero, not overlaid on art */
.countdown {
  border-block: 1px solid rgba(224, 145, 60, 0.22);
  background: linear-gradient(180deg, rgba(224, 145, 60, 0.12) 0%, rgba(8, 7, 4, 0.88) 100%);
}

.countdown__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
}

.countdown__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.countdown__status {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.countdown--live .countdown__status {
  color: var(--gold);
}

.countdown__units {
  display: flex;
  gap: 0.5rem;
}

.countdown__unit {
  min-width: 3.35rem;
  padding: 0.35rem 0.4rem;
  text-align: center;
  background: rgba(13, 11, 8, 0.72);
  border: 1px solid rgba(255, 223, 87, 0.28);
  border-radius: 5px;
}

.countdown__unit span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.countdown__unit small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--tight {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.section__head {
  margin-bottom: 2rem;
}

.section__head--center {
  text-align: center;
}

/* Trailer */
.trailer {
  padding: 4.5rem 0 2rem;
}

.trailer__stage {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1.4px solid rgba(224, 145, 60, 0.35);
  background: #050403;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  aspect-ratio: 16 / 9;
}

.trailer__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #050403;
}

.trailer__stage.is-playing .trailer__play {
  opacity: 0;
  pointer-events: none;
}

.trailer__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(8, 7, 4, 0.15), rgba(8, 7, 4, 0.55));
  cursor: pointer;
  color: var(--gold);
  transition: opacity 0.35s ease;
}

.trailer__play-ring {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid rgba(255, 223, 87, 0.75);
  box-shadow: 0 0 0 0 rgba(255, 223, 87, 0.35);
  animation: pulseRing 2.4s ease-out infinite;
}

.trailer__play-label {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(8, 7, 4, 0.72);
  border: 1px solid rgba(255, 223, 87, 0.45);
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
}

@keyframes pulseRing {
  0% { transform: scale(0.92); opacity: 0.9; box-shadow: 0 0 0 0 rgba(255, 223, 87, 0.4); }
  70% { transform: scale(1.12); opacity: 0; box-shadow: 0 0 0 28px rgba(255, 223, 87, 0); }
  100% { opacity: 0; }
}

/* Feature rails — real gameplay anchors, not card grids */
.features {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: min(72vh, 620px);
  border-top: 1px solid rgba(224, 145, 60, 0.16);
}

.feature--flip .feature__media {
  order: 2;
}

.feature--flip .feature__copy {
  order: 1;
}

.feature__media {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

.feature:hover .feature__media img {
  transform: scale(1.06);
}

.feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(180deg, rgba(12, 10, 7, 0.92), rgba(8, 7, 4, 0.96));
  border-left: 1px solid rgba(224, 145, 60, 0.14);
}

.feature--flip .feature__copy {
  border-left: 0;
  border-right: 1px solid rgba(224, 145, 60, 0.14);
}

.feature__copy p:last-child {
  margin: 0;
  color: var(--dim);
  max-width: 28rem;
}

/* Sector rail */
.sector-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1.4px solid var(--edge);
  border-radius: var(--plate-radius);
  overflow: hidden;
  background: rgba(14, 11, 8, 0.88);
}

.sector-rail__item {
  padding: 1.35rem 1.25rem 1.5rem;
  border-right: 1px solid rgba(224, 145, 60, 0.2);
  min-height: 11rem;
  transition: background 0.25s ease;
}

.sector-rail__item:last-child {
  border-right: 0;
}

.sector-rail__item:hover {
  background: rgba(255, 223, 87, 0.05);
}

.sector-rail__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 0.65rem;
}

.sector-rail__item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.25;
}

.sector-rail__item p {
  margin: 0;
  color: var(--dim);
  font-size: 0.92rem;
}

/* Modes */
.mode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
}

.mode-list li {
  padding: 0.95rem 1.15rem;
  border-left: 3px solid var(--copper);
  background: rgba(14, 11, 8, 0.72);
  color: var(--dim);
}

.mode-list strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.45rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery a {
  display: block;
  border-radius: var(--plate-radius);
  overflow: hidden;
  border: 1.4px solid rgba(224, 145, 60, 0.28);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.gallery a:hover {
  border-color: rgba(255, 223, 87, 0.55);
  transform: translateY(-2px);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Press */
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.press-tile {
  display: block;
  border: 1.4px solid rgba(224, 145, 60, 0.28);
  border-radius: var(--plate-radius);
  overflow: hidden;
  background: rgba(14, 11, 8, 0.9);
  color: var(--dim);
  transition: border-color 0.25s ease;
}

.press-tile:hover {
  border-color: rgba(255, 223, 87, 0.55);
  color: var(--gold);
}

.press-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a0806;
}

.press-tile span {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.press-facts {
  border: 1.4px solid var(--edge);
  border-radius: var(--plate-radius);
  padding: 1.4rem 1.5rem;
  background: rgba(14, 11, 8, 0.88);
}

.press-facts dl {
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
}

.press-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.2rem;
}

.press-facts dd {
  margin: 0;
  color: var(--cream);
}

.boilerplate {
  margin: 0;
  color: var(--dim);
  max-width: 48rem;
  font-size: 0.98rem;
}

/* Studio / support */
.studio-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.75rem;
  align-items: center;
}

.studio-block__logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.12));
}

.support-block .cta-row {
  margin-top: 1.25rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(224, 145, 60, 0.18);
  padding: 2rem 0 2.5rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: end;
}

.footer__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__meta p {
  margin: 0.2rem 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 2, 0.92);
  padding: 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__img {
  max-width: min(96vw, 1400px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(224, 145, 60, 0.35);
  border-radius: 4px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1px solid rgba(255, 223, 87, 0.35);
  background: rgba(8, 7, 4, 0.8);
  color: var(--gold);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox__nav--prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 980px) {
  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feature--flip .feature__media,
  .feature--flip .feature__copy {
    order: initial;
  }

  .feature__copy,
  .feature--flip .feature__copy {
    border: 0;
    border-top: 1px solid rgba(224, 145, 60, 0.14);
  }

  .feature__media {
    aspect-ratio: 16 / 9;
  }

  .sector-rail {
    grid-template-columns: 1fr 1fr;
  }

  .sector-rail__item:nth-child(2) {
    border-right: 0;
  }

  .sector-rail__item:nth-child(1),
  .sector-rail__item:nth-child(2) {
    border-bottom: 1px solid rgba(224, 145, 60, 0.2);
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .press-facts dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 1.4rem, var(--max));
  }

  .nav {
    display: none;
  }

  .brand-mark__studio {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 5.5rem 0 3.5rem;
    align-items: end;
  }

  .hero__brand {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }

  .sector-rail,
  .gallery,
  .press-grid {
    grid-template-columns: 1fr;
  }

  .sector-rail__item {
    border-right: 0;
    border-bottom: 1px solid rgba(224, 145, 60, 0.2);
  }

  .sector-rail__item:last-child {
    border-bottom: 0;
  }

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

  .countdown__inner {
    justify-content: center;
    text-align: center;
  }

  .lightbox__nav {
    display: none;
  }
}

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

  .site-bg__art,
  .hero__plane,
  .hero__content,
  .trailer__play-ring {
    animation: none !important;
  }

  .gallery a:hover,
  .btn--primary:hover,
  .feature:hover .feature__media img {
    transform: none;
  }
}
