:root {
  --pg-dark: #050706;
  --pg-bg: #090d12;
  --pg-bg-alt: #10141c;
  --pg-panel: rgba(13, 18, 25, 0.88);
  --pg-panel-strong: rgba(7, 10, 15, 0.96);
  --pg-gold: #d8a84f;
  --pg-gold-bright: #f2d27c;
  --pg-orange: #ff8a3d;
  --pg-red: #d94b2b;
  --pg-text: #f7f0df;
  --pg-muted: #bbb4a4;
  --pg-soft: #8f8a80;
  --pg-border: rgba(216, 168, 79, 0.38);
  --pg-border-soft: rgba(216, 168, 79, 0.18);
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cinzel", Georgia, serif;
  --radius: 1.15rem;
  --radius-lg: 1.75rem;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--pg-text);
  line-height: 1.65;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.13), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(216, 168, 79, 0.11), transparent 34rem),
    linear-gradient(180deg, var(--pg-dark), var(--pg-bg));
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1280px, calc(100% - 3rem)); margin: 0 auto; }
.no-scroll { overflow: hidden; }
.particles-canvas { position: fixed; inset: 0; z-index: -5; opacity: 0.22; }

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(5, 7, 6, 0.9);
  border-bottom: 1px solid var(--pg-border);
  backdrop-filter: blur(16px);
}

.nav-container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 900;
}

.nav-logo {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.55rem;
  object-fit: cover;
  box-shadow: 0 0 26px rgba(255, 138, 61, 0.22);
}

.logo-text {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--pg-orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  color: var(--pg-muted);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-links a:not(.btn):hover { color: var(--pg-gold-bright); }

.mobile-menu-btn {
  display: none;
  width: 2.15rem;
  height: 1.55rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.mobile-menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pg-text);
  transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }
.mobile-menu-btn.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { bottom: 42%; transform: rotate(-45deg); }
.mobile-menu { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--pg-border);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--pg-gold-bright);
  box-shadow: 0 0 30px rgba(216, 168, 79, 0.18);
}

.btn-primary {
  color: #090d12;
  background: linear-gradient(90deg, var(--pg-gold-bright), var(--pg-orange));
  box-shadow: 0 14px 38px rgba(255, 138, 61, 0.18);
}

.btn-secondary {
  color: var(--pg-text);
  background: rgba(255, 255, 255, 0.055);
}

.btn-small {
  min-height: 2.65rem;
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
}

.studio-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.studio-hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at center, rgba(255, 138, 61, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(5, 7, 6, 0.3), rgba(5, 7, 6, 0.94));
}

.studio-hero-inner {
  display: flex;
  justify-content: center;
}

.studio-hero-card {
  width: min(920px, 100%);
  text-align: center;
  padding: clamp(1.6rem, 5vw, 3.5rem);
  border: 1px solid var(--pg-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(5, 7, 6, 0.66), rgba(5, 7, 6, 0.9));
  box-shadow: var(--shadow);
}

.hero-logo {
  width: 210px;
  max-width: 48vw;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  filter: drop-shadow(0 0 34px rgba(255, 138, 61, 0.35));
}

.eyebrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  background: rgba(216, 168, 79, 0.1);
  color: var(--pg-gold-bright);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.studio-hero h1,
.section-header h2,
.section-copy h2,
.studio-direction-card h3,
.vision-card h3,
.game-banner-card h3,
.road-card h3,
.final-cta h2,
.footer h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.studio-hero h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  color: var(--pg-gold-bright);
  text-shadow: 0 2px 0 rgba(0,0,0,.72), 0 10px 35px rgba(0,0,0,.72);
}

.studio-hero p {
  max-width: 760px;
  margin: 1.2rem auto 2rem;
  color: var(--pg-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section:nth-of-type(even) {
  background: rgba(16, 20, 28, 0.48);
}

.section-header {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header h2,
.section-copy h2 {
  font-size: clamp(2.25rem, 4.6vw, 4.3rem);
  line-height: 1.05;
  color: var(--pg-gold-bright);
  text-shadow: 0 8px 30px rgba(0,0,0,.62);
}

.section-header p,
.section-copy p {
  color: var(--pg-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
}

.studio-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.section-copy,
.studio-direction-card,
.vision-card,
.road-card,
.final-cta {
  border: 1px solid var(--pg-border);
  border-radius: var(--radius-lg);
  background: var(--pg-panel);
  box-shadow: var(--shadow);
}

.section-copy {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.studio-direction-card {
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 22rem;
  background:
    linear-gradient(180deg, rgba(255, 138, 61, 0.1), rgba(5, 7, 6, 0.92)),
    var(--pg-panel);
}

.studio-direction-card span,
.vision-card span,
.road-card span {
  color: var(--pg-gold-bright);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.studio-direction-card h3,
.vision-card h3,
.road-card h3 {
  margin: 0.55rem 0 0.55rem;
  color: var(--pg-text);
}

.studio-direction-card p,
.vision-card p,
.road-card p,
.final-cta p {
  color: var(--pg-muted);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.vision-card {
  padding: 1.35rem;
  min-height: 13rem;
}

.projects-section {
  background:
    radial-gradient(circle at center, rgba(216, 168, 79, 0.12), transparent 38rem),
    rgba(5, 7, 6, 0.3);
}

.game-banner-card {
  position: relative;
  display: block;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--pg-border);
  background: #000;
  box-shadow: var(--shadow);
}

.game-banner-card picture,
.game-banner-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.game-banner-card img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-banner-card:hover img {
  transform: scale(1.035);
}

.game-banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.95), rgba(5, 7, 6, 0.58), rgba(5, 7, 6, 0.15)),
    linear-gradient(180deg, rgba(5, 7, 6, 0.08), rgba(5, 7, 6, 0.82));
}

.game-banner-overlay {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 3rem);
  max-width: 640px;
}

.game-banner-card h3 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  color: var(--pg-gold-bright);
  text-shadow: 0 2px 0 rgba(0,0,0,.72), 0 10px 35px rgba(0,0,0,.72);
}

.game-banner-card p {
  margin-top: 0.8rem;
  color: var(--pg-muted);
  font-size: 1.2rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 1.4rem;
}

.feature-tags span {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--pg-border-soft);
  background: rgba(0,0,0,.28);
  color: var(--pg-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.road-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.road-card {
  padding: 1.35rem;
}

.road-card.active {
  border-color: var(--pg-gold-bright);
  box-shadow: 0 0 38px rgba(216,168,79,.2);
}

.final-cta {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(216,168,79,.12), rgba(255,138,61,.06)),
    var(--pg-panel-strong);
}

.final-cta h2 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  color: var(--pg-gold-bright);
}

.final-cta p {
  max-width: 720px;
  margin: 1rem auto 1.8rem;
  font-size: 1.05rem;
}

.footer {
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--pg-border);
  background: var(--pg-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: var(--pg-muted);
  font-size: 0.92rem;
}

.footer h3 {
  color: var(--pg-text);
  margin-bottom: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--pg-border-soft);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--pg-muted);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .mobile-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 999;
    display: block;
    max-height: 0;
    overflow: hidden;
    background: rgba(5, 7, 6, 0.98);
    border-bottom: 1px solid var(--pg-border);
    transition: max-height var(--transition);
  }

  .mobile-menu.active {
    max-height: 520px;
  }

  .mobile-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .studio-intro-grid,
  .vision-grid,
  .road-grid {
    grid-template-columns: 1fr;
  }

  .game-banner-card,
  .game-banner-card picture,
  .game-banner-card img {
    min-height: 460px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 1.25rem, 1280px);
  }

  .nav-container {
    min-height: 66px;
  }

  .mobile-menu {
    top: 66px;
  }

  .nav-logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .studio-hero {
    min-height: auto;
    padding: 6.5rem 0 3rem;
  }

  .studio-hero-video {
    object-position: center;
  }

  .studio-hero-card {
    padding: 1.25rem;
  }

  .hero-logo {
    width: 145px;
  }

  .studio-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 18rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header h2,
  .section-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .game-banner-card,
  .game-banner-card picture,
  .game-banner-card img {
    min-height: 560px;
  }

  .game-banner-card::after {
    background:
      linear-gradient(180deg, rgba(5,7,6,.14), rgba(5,7,6,.94) 54%, rgba(5,7,6,.98)),
      linear-gradient(90deg, rgba(5,7,6,.2), rgba(5,7,6,.1));
  }

  .game-banner-overlay {
    left: 1rem;
    right: 1rem;
    bottom: 1.2rem;
    text-align: center;
  }

  .game-banner-card h3 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .feature-tags {
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
