:root {
  --ink: #070605;
  --coal: #101010;
  --smoke: #d8d2c9;
  --paper: #fff7e8;
  --blood: #d21d12;
  --ember: #ff6a1a;
  --gold: #f5b642;
  --mint: #8df3df;
  --blue: #65b7ff;
  --line: rgba(255, 255, 255, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.94);
}

.brand img {
  width: clamp(150px, 16vw, 230px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 247, 232, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.32);
  color: white;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 90svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px clamp(18px, 5vw, 72px) 64px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.72)),
    linear-gradient(0deg, var(--ink), rgba(0, 0, 0, 0) 34%);
}

.hero::after {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.08) contrast(1.1);
}

.hero-content {
  width: min(760px, 100%);
  padding-bottom: 2vh;
}

.hero-game-logo {
  width: min(320px, 72vw);
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.7));
}

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

h1,
h2 {
  margin: 0;
  line-height: 0.95;
  text-wrap: balance;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.75rem, 6.2vw, 5.2rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 247, 232, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions,
.button-row,
.social-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.social-row {
  margin-top: 14px;
}

.button,
.social-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 18px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible,
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid rgba(255, 106, 26, 0.78);
  background: linear-gradient(135deg, var(--blood), var(--ember));
  color: white;
  box-shadow: 0 14px 34px rgba(210, 29, 18, 0.28);
}

.button-ghost,
.social-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}

.button-dark {
  border: 1px solid rgba(0, 0, 0, 0.86);
  background: var(--ink);
  color: white;
}

.button-light {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: white;
  color: #1b1711;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 18px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: white;
  transform: translateX(-50%);
  animation: cue 1.35s infinite;
}

@keyframes cue {
  0%,
  100% {
    opacity: 0.25;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 8px);
  }
}

.games-section,
.studio-section,
.contact-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.games-section {
  padding: 76px 0 48px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.game-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: stretch;
  margin: 34px 0;
}

.game-media,
.game-info,
.gallery-item,
.phone-strip img,
.founders div {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.game-media {
  min-height: 420px;
  background: #150806;
}

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

.game-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(160deg, rgba(210, 29, 18, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.05);
}

.game-info p,
.studio-copy p {
  margin: 18px 0 0;
  color: rgba(255, 247, 232, 0.76);
  font-size: 1rem;
}

.game-logo {
  width: min(360px, 100%);
  max-height: 160px;
  object-fit: contain;
  object-position: left center;
}

.glowup-logo {
  width: min(280px, 100%);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(255, 106, 26, 0.36);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255, 247, 232, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-list.light li {
  border-color: rgba(0, 0, 0, 0.18);
  color: #2c2118;
}

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

.gallery-item {
  display: block;
  min-height: 180px;
  padding: 0;
  background: #140806;
  cursor: zoom-in;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 240ms ease, opacity 240ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  opacity: 0.82;
  transform: scale(1.03);
}

.glowup-feature {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  padding: clamp(16px, 3vw, 28px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 214, 123, 0.86)),
    linear-gradient(90deg, rgba(141, 243, 223, 0.32), rgba(101, 183, 255, 0.2));
  color: #19130e;
}

.glowup-feature .game-info {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.52);
}

.glowup-feature .game-info p {
  color: rgba(25, 19, 14, 0.78);
}

.phone-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.phone-strip img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: white;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.phone-strip img:nth-child(2) {
  transform: translateY(-26px);
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.studio-copy {
  max-width: 760px;
}

.founders {
  display: grid;
  gap: 12px;
}

.founders div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.founders span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founders strong {
  font-size: 1.25rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 70px 0 88px;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: rgba(255, 247, 232, 0.56);
  font-size: 0.85rem;
}

.site-footer img {
  width: 180px;
}

.lightbox {
  width: min(1120px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

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

.lightbox img {
  width: 100%;
  max-height: 84svh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    display: none;
    min-width: 190px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 5, 5, 0.94);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 86svh;
    padding-top: 116px;
  }

  .game-feature,
  .glowup-feature,
  .studio-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

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

  .phone-strip {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48)),
      linear-gradient(0deg, var(--ink), rgba(0, 0, 0, 0) 42%);
  }

  .hero-backdrop img {
    object-position: 58% center;
  }

  .button,
  .social-link {
    width: 100%;
  }

  .game-media {
    min-height: 270px;
  }

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

  .gallery-item,
  .gallery-item.wide {
    grid-column: auto;
  }

  .phone-strip img:nth-child(2) {
    transform: none;
  }
}
