:root {
  --ink: #f2eee4;
  --muted: #c6bbab;
  --coal: #10100e;
  --pitch: #070706;
  --iron: #24231f;
  --moss: #4f624a;
  --ember: #a9442e;
  --gold: #d2a85c;
  --bone: #eadac0;
  --line: rgba(242, 238, 228, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--pitch);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(7, 7, 6, 0.82), rgba(7, 7, 6, 0));
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 6, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.hero-stats,
.release,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: Cinzel, serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(210, 168, 92, 0.7);
  background: rgba(16, 16, 14, 0.78);
  color: var(--gold);
  font-size: 0.84rem;
}

.site-nav {
  gap: clamp(14px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  transition: color 160ms ease;
}

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

.nav-cta {
  min-width: 86px;
  padding: 10px 14px;
  border: 1px solid rgba(210, 168, 92, 0.55);
  color: var(--ink);
  text-align: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(16, 16, 14, 0.82);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
}

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

.hero-art {
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62) contrast(1.16) saturate(0.78);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.94) 0%, rgba(7, 7, 6, 0.78) 31%, rgba(7, 7, 6, 0.24) 67%, rgba(7, 7, 6, 0.48) 100%),
    linear-gradient(0deg, var(--pitch) 0%, rgba(7, 7, 6, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(660px, calc(100% - 36px));
  padding: clamp(120px, 21vh, 210px) 0 70px;
  margin-left: clamp(18px, 7vw, 96px);
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Cinzel, Georgia, serif;
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(4rem, 12vw, 9rem);
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.8rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 560px;
  color: var(--bone);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.py-0 {
  padding-top: 0px;
  padding-bottom: 0px;
}

.button:hover,
.trailer-frame:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ember);
  color: white;
  box-shadow: 0 14px 36px rgba(169, 68, 46, 0.26);
}

.button.secondary {
  border-color: rgba(234, 218, 192, 0.42);
  background: rgba(16, 16, 14, 0.64);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 42px;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.hero-stats div {
  min-width: 132px;
  padding-left: 14px;
  border-left: 2px solid rgba(210, 168, 92, 0.58);
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.band,
.section {
  padding: clamp(64px, 10vw, 128px) clamp(18px, 6vw, 86px);
}

.intro-band {
  background: var(--coal);
}

.section-grid,
.media-layout,
.world-section {
  display: grid;
  gap: clamp(28px, 5vw, 70px);
}

.section-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.intro-grid {
  align-items: end;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-grid p:last-child,
.world-copy p,
.release p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  /*max-width: 920px;*/
  margin-bottom: clamp(30px, 5vw, 58px);
}

.media-section {
  background:
    linear-gradient(180deg, rgba(79, 98, 74, 0.18), rgba(7, 7, 6, 0)),
    var(--pitch);
}

.media-layout {
  max-width: 1200px;
}

.trailer-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(234, 218, 192, 0.2);
  box-shadow: var(--shadow);
  background: var(--coal);
}

.feature-card,
.faction-panel {
  border: 1px solid var(--line);
  background: rgba(36, 35, 31, 0.74);
}

.trailer-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-icon {
  color: var(--gold);
  font-family: Cinzel, serif;
  font-weight: 800;
}

.feature-card p,
.faction-copy p {
  color: var(--muted);
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0), rgba(169, 68, 46, 0.08)),
    var(--pitch);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(234, 218, 192, 0.18);
  background: rgba(36, 35, 31, 0.74);
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0), rgba(7, 7, 6, 0.34)),
    radial-gradient(circle at center, rgba(210, 168, 92, 0.14), rgba(210, 168, 92, 0) 48%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: rgba(210, 168, 92, 0.72);
  transform: translateY(-2px);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
}

.gallery-item.feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.logo-item img {
  object-fit: contain;
  padding: 18px;
  background: var(--coal);
}

.systems-band {
  background:
    linear-gradient(90deg, rgba(169, 68, 46, 0.14), rgba(79, 98, 74, 0.1)),
    var(--coal);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 238px;
  padding: 28px;
}

.feature-icon {
  display: block;
  margin-bottom: 48px;
  font-size: 1.2rem;
}

.world-section {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: center;
}

.world-copy {
  max-width: 770px;
}

.faction-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-self: stretch;
}

.faction-tab {
  min-height: 54px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 14, 0.52);
  color: var(--muted);
  font: 800 0.78rem Inter, sans-serif;
  cursor: pointer;
}

.faction-tab:last-of-type {
  border-right: 0;
}

.faction-tab.active {
  background: var(--moss);
  color: white;
}

.faction-copy {
  grid-column: 1 / -1;
  min-height: 220px;
  padding: clamp(24px, 4vw, 38px);
}

.release {
  justify-content: space-between;
  gap: 24px;
  padding: clamp(48px, 8vw, 86px) clamp(18px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.92), rgba(7, 7, 6, 0.48)),
    url("assets/hero-bandb-gameplay.jpg") center 62% / cover;
}

.release-content {
  max-width: 680px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 6vw, 86px);
  border-top: 1px solid var(--line);
  background: var(--pitch);
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(7, 7, 6, 0.9);
}

.gallery-modal.open {
  display: grid;
}

.gallery-modal img {
  width: min(1200px, 100%);
  max-height: 84vh;
  object-fit: contain;
  border: 1px solid rgba(234, 218, 192, 0.24);
  background: var(--coal);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  min-width: 82px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(16, 16, 14, 0.88);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 18px;
    display: none;
    width: min(280px, calc(100vw - 36px));
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(7, 7, 6, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .section-grid,
  .media-layout,
  .world-section {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    right: 0;
    width: auto;
    padding: 14px 18px;
  }

  .nav-toggle {
    position: fixed;
    top: 14px;
    right: 18px;
  }

  .brand span:last-child {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 7, 6, 0.9), rgba(7, 7, 6, 0.64)),
      linear-gradient(0deg, var(--pitch) 0%, rgba(7, 7, 6, 0) 32%);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-top: 118px;
  }

  .hero-copy {
    max-width: 28ch;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.2rem);
  }

  .hero-actions,
  .release {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-stats div {
    min-width: 0;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .faction-panel {
    grid-template-columns: 1fr;
  }

  .faction-tab {
    border-right: 0;
  }

  .feature-card {
    min-height: 190px;
  }

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

  .gallery-item,
  .gallery-item.feature {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

  .feature-icon {
    margin-bottom: 26px;
  }

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