:root {
  --bg: #141313;
  --bg-deep: #0e0e0e;
  --surface: #1c1b1b;
  --surface-2: #201f1f;
  --surface-3: #2b2a2a;
  --line: #444748;
  --line-soft: rgba(142, 145, 146, 0.28);
  --text: #e5e2e1;
  --muted: #c4c7c7;
  --quiet: #8e9192;
  --primary: #c8c6c5;
  --cyan: #06b6d4;
  --coral: #f43f5e;
  --yellow: #f5c542;
  --max: 1440px;
  --gutter: clamp(24px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 10%, rgba(6, 182, 212, 0.12), transparent 28rem),
    radial-gradient(circle at 10% 36%, rgba(244, 63, 94, 0.08), transparent 24rem),
    var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 14px var(--gutter);
  background: rgba(20, 19, 19, 0.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #101010;
  background: var(--primary);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 21px;
  letter-spacing: 0;
}

.brand small,
.section-kicker,
.card-index,
.live-label,
.tech-readout,
.top-nav a,
.header-action,
.button,
.contact-form label,
.legal-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand small {
  color: var(--quiet);
  font-size: 10px;
}

.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.top-nav a {
  color: var(--muted);
  transition: color 180ms ease, border-color 180ms ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
}

.header-action,
.button,
.contact-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-action,
.button.primary,
.contact-form button {
  color: #050505;
  background: var(--primary);
}

.header-action:hover,
.button.primary:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(200, 198, 197, 0.2);
}

.button.ghost {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}

.button.ghost:hover {
  color: var(--bg);
  background: var(--text);
}

.button.small {
  min-height: 42px;
  padding-inline: 18px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.section-frame {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) var(--gutter);
}

.hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 120px;
}

.hero-media,
.hero-media::after,
.hero-media img {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.1);
}

.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 19, 19, 0.95) 0%, rgba(20, 19, 19, 0.62) 45%, rgba(20, 19, 19, 0.18) 100%),
    linear-gradient(0deg, rgba(20, 19, 19, 0.92), rgba(20, 19, 19, 0.18));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--primary);
}

.pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    opacity: 0.75;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(3.5);
  }
}

h1,
h2,
h3,
.work-card span,
.site-footer strong {
  font-family: Montserrat, Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.98;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.15;
}

.hero-copy p,
.section-heading p,
.intro-copy p,
.contact-section p {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
}

.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.tech-readout {
  position: absolute;
  right: var(--gutter);
  bottom: 42px;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: var(--quiet);
  text-align: right;
}

.intro-section {
  border-bottom: 1px solid var(--line-soft);
}

.section-kicker {
  display: block;
  color: var(--cyan);
  margin-bottom: 18px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 96px);
}

.intro-copy {
  display: grid;
  gap: 20px;
}

.surface-band,
.process-section {
  max-width: none;
  background: rgba(14, 14, 14, 0.78);
  border-block: 1px solid var(--line-soft);
}

.section-heading {
  margin-bottom: clamp(36px, 6vw, 80px);
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.bento-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card,
.game-feature,
.game-stack article,
.work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(32, 31, 31, 0.78);
}

.bento-card {
  min-height: 320px;
  grid-column: span 4;
  padding: clamp(26px, 4vw, 48px);
}

.bento-card.wide {
  grid-column: span 8;
}

.bento-card::after,
.work-card::after,
.game-feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms ease;
}

.bento-card:hover::after,
.work-card:hover::after,
.game-feature:hover::after {
  transform: scaleX(1);
}

.card-index {
  display: block;
  margin-bottom: 28px;
  color: var(--quiet);
}

.bento-card p,
.game-layout p,
.work-card h3,
.process-list p,
.legal-document p {
  color: var(--muted);
}

.tag-row span {
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  color: var(--primary);
  font-size: 12px;
}

.games-section {
  width: 100%;
  max-width: none;
}

.game-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.game-feature {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(30px, 5vw, 64px);
  background:
    linear-gradient(0deg, rgba(14, 14, 14, 0.92), rgba(14, 14, 14, 0.15)),
    url("assets/hero-pop-media.png") center / cover;
}

.game-stack {
  display: grid;
  gap: 24px;
}

.game-stack article {
  padding: 30px;
}

.game-stack h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.work-card {
  min-height: 280px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  background:
    linear-gradient(0deg, rgba(20, 19, 19, 0.95), rgba(20, 19, 19, 0.25)),
    url("assets/hero-pop-media.png") center / cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.work-card.large {
  min-height: 460px;
  grid-column: span 8;
}

.work-card.wide {
  grid-column: span 8;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-card span {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  border-left: 1px solid var(--line-soft);
  padding-left: 28px;
}

.process-list span {
  display: block;
  color: var(--quiet);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 7vw, 100px);
  align-items: start;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 44px;
  color: var(--text);
  font-size: 22px;
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line-soft);
  background: rgba(28, 27, 27, 0.72);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--line);
  color: var(--text);
  background: var(--surface-2);
  padding: 15px 16px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}

.contact-form button {
  width: 100%;
  min-height: 58px;
  border: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-frame {
  max-width: 1120px;
  padding-top: 120px;
  border-top: 1px solid var(--line-soft);
}

.legal-nav {
  position: sticky;
  top: 80px;
  z-index: 5;
  display: flex;
  gap: 24px;
  padding: 16px 0;
  margin-bottom: 32px;
  background: rgba(20, 19, 19, 0.9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
}

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

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

.legal-document {
  display: grid;
  gap: 14px;
}

.legal-document h3 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
}

.legal-document h4 {
  margin: 30px 0 2px;
  color: var(--text);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 21px;
  text-transform: uppercase;
}

.legal-document p {
  margin: 0;
  font-size: 15px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: clamp(48px, 7vw, 90px) var(--gutter);
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
  font-size: 34px;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: var(--muted);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 28px;
}

.site-footer > span {
  grid-column: 1 / -1;
  color: var(--quiet);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .top-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter);
    background: rgba(14, 14, 14, 0.98);
    border-bottom: 1px solid var(--line-soft);
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .split-layout,
  .game-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card.wide,
  .work-card,
  .work-card.large,
  .work-card.wide {
    grid-column: 1 / -1;
  }

  .process-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-action {
    display: none;
  }

  .brand small,
  .tech-readout {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-actions,
  .row-heading,
  .site-footer {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .bento-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

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