* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --text: #ffffff;
  --muted: rgba(255,255,255,.68);
  --soft: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.12);
  --red: #ff1f1f;
  --side: 6vw;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: 108px;
  padding: 26px var(--side) 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: background .25s ease, min-height .25s ease, padding .25s ease, border-color .25s ease;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  min-height: 78px;
  padding-top: 15px;
  padding-bottom: 12px;
  background: rgba(5,5,5,.88);
  border-bottom-color: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.brand-word {
  width: 320px;
  max-width: 44vw;
  height: auto;
  display: block;
  transition: width .25s ease;
}

.brand span {
  margin-top: 2px;
  color: rgba(255,255,255,.82);
  font-size: 10px;
  letter-spacing: 8px;
  transition: font-size .25s ease, letter-spacing .25s ease;
}

.site-header.scrolled .brand-word {
  width: 230px;
}

.site-header.scrolled .brand span {
  font-size: 8px;
  letter-spacing: 6px;
}

.nav {
  display: flex;
  gap: 42px;
  font-size: 12px;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  padding-top: 6px;
}

.nav a {
  position: relative;
  padding-bottom: 9px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width .25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.section-bg {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
}

.hero-bg {
  background-image: url("images/hero.jpg");
  transform: scale(1.03);
}

.about-bg {
  background-image: url("images/about-bg.jpg");
  background-position: center;
}

.project-bg {
  background-image: url("images/project-bg.jpg");
  background-position: center;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.44) 38%, rgba(0,0,0,.07) 70%, rgba(0,0,0,.30) 100%),
    linear-gradient(0deg, #050505 0%, rgba(5,5,5,.04) 44%, rgba(5,5,5,.06) 100%);
}

.left-shade {
  background:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.66) 34%, rgba(0,0,0,.24) 66%, rgba(0,0,0,.40) 100%),
    linear-gradient(0deg, #050505 0%, rgba(5,5,5,.04) 18%, rgba(5,5,5,.04) 82%, #050505 100%);
}

.right-shade {
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.62) 42%, rgba(0,0,0,.20) 78%, rgba(0,0,0,.34) 100%),
    linear-gradient(0deg, #050505 0%, rgba(5,5,5,.04) 18%, rgba(5,5,5,.04) 82%, #050505 100%);
}

.hero {
  display: flex;
  align-items: center;
}

.hero-content,
.section-content {
  margin-left: var(--side);
  width: calc(100% - (var(--side) * 2));
  max-width: none;
}

.hero-content {
  padding-top: 90px;
}

.eyebrow,
.section-label {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow {
  color: rgba(255,255,255,.56);
}

h1,
h2 {
  font-family: "Barlow Condensed", Inter, sans-serif;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(78px, 10vw, 150px);
  line-height: .82;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 25px 70px rgba(0,0,0,.85);
}

h1 small {
  display: block;
  margin-top: 8px;
  font-size: .58em;
  letter-spacing: 16px;
  font-weight: 600;
}

.red-line {
  width: 94px;
  height: 3px;
  background: var(--red);
  margin: 34px 0 28px;
  box-shadow: 0 0 22px rgba(255,31,31,.36);
}

.hero-subtitle {
  max-width: 560px;
  color: rgba(255,255,255,.88);
  letter-spacing: 7px;
  text-transform: uppercase;
  line-height: 1.8;
  font-size: clamp(15px, 1.6vw, 20px);
}

.main-button {
  margin-top: 42px;
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding: 18px 34px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  transition: .25s ease;
}

.main-button span {
  color: var(--red);
  font-size: 22px;
}

.main-button:hover {
  border-color: rgba(255,31,31,.75);
  transform: translateY(-2px);
}

.scroll {
  position: absolute;
  left: var(--side);
  bottom: 48px;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.42);
}

.scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 55px;
  margin: 18px auto 0;
  background: linear-gradient(to bottom, var(--red), rgba(255,255,255,.22));
}

.content-section {
  display: flex;
  align-items: center;
  padding: 130px 0;
}

.content-card,
.project-card {
  max-width: 720px;
  padding: 46px 0;
  margin-left: 0;
  text-align: left;
}

.content-card h2,
.contact h2 {
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1;
  letter-spacing: 1.5px;
  margin-bottom: 32px;
}

.content-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  max-width: 560px;
}

.game-logo {
  width: min(430px, 100%);
  display: block;
  margin-bottom: 34px;
}

.project-subtitle {
  max-width: 440px;
  color: rgba(255,255,255,.86);
  letter-spacing: 5px;
  line-height: 1.65;
  text-transform: uppercase;
  font-size: 18px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.store-button {
  min-width: 180px;
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(0,0,0,.24);
  color: white;
  text-align: left;
  cursor: default;
  font: inherit;
  font-weight: 700;
  transition: .25s ease;
  backdrop-filter: blur(8px);
}

.store-button span {
  display: block;
  color: var(--soft);
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 4px;
}

.store-button:hover {
  border-color: rgba(255,31,31,.65);
}

.gallery-section {
  padding: 86px 0 106px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: 25vw;
  min-height: 240px;
  max-height: 390px;
  object-fit: cover;
  display: block;
  background: #080808;
  transition: transform .35s ease;
}

.gallery img:hover {
  transform: translateY(-4px);
}

.contact {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 70px;
  align-items: end;
}

.email {
  font-size: clamp(26px, 3.2vw, 42px);
  color: rgba(255,255,255,.82);
  justify-self: end;
  border-bottom: 1px solid rgba(255,255,255,.25);
  transition: .25s ease;
}

.email:hover {
  color: white;
  border-color: var(--red);
}

.footer {
  padding: 42px var(--side);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
  color: rgba(255,255,255,.35);
  font-size: 12px;
  letter-spacing: 1.4px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-word {
  width: 190px;
  object-fit: contain;
}

.footer-brand span {
  margin-top: 2px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  letter-spacing: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile compact layout */
@media (max-width: 900px) {
  :root {
    --side: 18px;
  }

  .site-header {
    min-height: 70px;
    padding: 13px var(--side) 10px;
  }

  .brand-word {
    width: 185px;
    max-width: 70vw;
  }

  .brand span {
    font-size: 8px;
    letter-spacing: 4px;
  }

  .site-header.scrolled {
    min-height: 64px;
    padding: 10px var(--side) 8px;
  }

  .site-header.scrolled .brand-word {
    width: 150px;
  }

  .nav {
    display: none;
  }

  .section-bg {
    min-height: auto;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content,
  .section-content {
    margin-left: var(--side);
    width: calc(100% - (var(--side) * 2));
  }

  .hero-content {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 74px);
  }

  h1 small {
    letter-spacing: 6px;
  }

  .eyebrow,
  .section-label {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 14px;
  }

  .red-line {
    margin: 22px 0 18px;
  }

  .hero-subtitle {
    letter-spacing: 3px;
    line-height: 1.55;
    font-size: 14px;
  }

  .main-button {
    margin-top: 26px;
    padding: 14px 24px;
  }

  .scroll {
    display: none;
  }

  .content-section {
    min-height: auto;
    padding: 66px 0 54px;
  }

  .content-card,
  .project-card {
    padding: 0;
    max-width: 100%;
  }

  .content-card h2,
  .contact h2 {
    font-size: clamp(34px, 12vw, 48px);
    margin-bottom: 18px;
  }

  .content-card p {
    font-size: 15px;
    line-height: 1.65;
  }

  .left-shade,
  .right-shade {
    background:
      linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.60) 58%, rgba(0,0,0,.32) 100%),
      linear-gradient(0deg, #050505 0%, rgba(5,5,5,.02) 20%, rgba(5,5,5,.02) 80%, #050505 100%);
  }

  .game-logo {
    width: min(310px, 94%);
    margin-bottom: 22px;
  }

  .project-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    line-height: 1.55;
  }

  .store-buttons {
    margin-top: 24px;
    gap: 10px;
  }

  .store-button {
    min-width: 0;
    flex: 1 1 145px;
    padding: 13px 15px;
    font-size: 13px;
  }

  .gallery-section {
    padding: 46px 0 52px;
  }

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

  .gallery img {
    height: auto;
    min-height: 0;
  }

  .contact {
    padding: 38px 0 34px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .email {
    justify-self: start;
    font-size: 20px;
  }

  .footer {
    padding: 24px var(--side) 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-word {
    width: 155px;
  }

  .footer p {
    line-height: 1.5;
  }
}


/* Legal footer and legal pages */
.legal-footer {
  align-items: flex-start;
}

.footer-info {
  text-align: right;
  line-height: 1.65;
}

.footer-info a {
  color: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.footer-info a:hover {
  color: white;
  border-color: var(--red);
}

.footer-info span {
  color: rgba(255,255,255,.24);
  margin: 0 8px;
}

.legal-page {
  min-height: 100vh;
  padding: 150px var(--side) 80px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.05), transparent 30%),
    var(--bg);
}

.legal-content {
  max-width: 900px;
}

.legal-content h1 {
  font-size: clamp(54px, 8vw, 105px);
  margin-bottom: 16px;
}

.legal-date {
  color: var(--soft);
  margin-bottom: 42px;
  letter-spacing: 1px;
}

.legal-content h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin-top: 44px;
  margin-bottom: 16px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 22px;
  margin-top: 12px;
}

.legal-content a {
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.28);
}

.legal-company {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}

@media (max-width: 900px) {
  .footer-info {
    text-align: left;
  }

  .legal-page {
    padding-top: 105px;
    padding-bottom: 54px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
  }
}
