:root {
  --ink: #f8f5ec;
  --ink-dark: #11121a;
  --muted: #a7a8b2;
  --night: #0b0c14;
  --night-soft: #11131f;
  --teal: #ffc247;
  --orange: #ff5533;
  --violet: #c94b32;
  --cream: #f8f5ec;
  --line: rgba(255, 255, 255, .13);
  --display: "Space Grotesk", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink-dark);
  background: var(--teal);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
footer {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  border-bottom: 1px solid var(--line);
}

.studio-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.studio-logo { width: 116px; height: auto; }

nav { display: flex; gap: clamp(20px, 4vw, 52px); }

nav a,
.footer-links a {
  color: #d9d9df;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

nav a:hover,
.footer-links a:hover { color: var(--teal); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  min-height: min(920px, 100svh);
  padding: 160px max(32px, calc((100vw - 1320px) / 2)) 100px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 160px;
  content: "";
  background: linear-gradient(transparent, var(--night));
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--teal);
}

h1, h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -.055em;
}

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 8.2vw, 8.4rem);
  line-height: .88;
}

h1 em,
h2 em {
  color: var(--teal);
  font-style: normal;
}

.hero-intro {
  max-width: 540px;
  margin: 34px 0;
  color: #bebfc8;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-width: 210px;
  padding: 17px 21px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ink-dark); background: var(--teal); box-shadow: 0 12px 40px rgba(71,228,212,.18); }
.button span { font-size: 1.3rem; }

.hero-art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 580px;
  perspective: 900px;
}

.hero-card {
  width: min(65%, 420px);
  padding: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 27%;
  box-shadow: 0 42px 100px rgba(0,0,0,.55), 0 0 70px rgba(71,228,212,.14);
  transform: rotate(6deg) rotateY(-8deg);
  animation: hover 5s ease-in-out infinite;
}

.hero-card img { border-radius: 25%; }

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  transform: rotate(-15deg);
}

.orbit::before {
  position: absolute;
  top: 17%;
  left: 4%;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--orange);
}

.orbit-one { width: 88%; aspect-ratio: 1; }
.orbit-two { width: 68%; aspect-ratio: 1; transform: rotate(34deg); }
.orbit-two::before { background: var(--violet); box-shadow: 0 0 20px var(--violet); }

.floating-chip {
  position: absolute;
  padding: 8px 13px;
  color: var(--ink-dark);
  font: 700 .65rem/1 var(--display);
  letter-spacing: .15em;
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.chip-one { top: 19%; right: 7%; background: var(--teal); transform: rotate(5deg); }
.chip-two { bottom: 17%; left: 3%; background: var(--orange); transform: rotate(-6deg); }
.chip-three { right: 0; bottom: 28%; background: var(--violet); transform: rotate(8deg); }

.scroll-note {
  position: absolute;
  z-index: 2;
  bottom: 35px;
  left: max(32px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  color: #767884;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.scroll-note span { width: 42px; height: 1px; background: #555762; }

.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .18; }
.hero-glow-one { top: 8%; right: 7%; width: 430px; height: 430px; background: var(--teal); }
.hero-glow-two { right: 28%; bottom: 4%; width: 280px; height: 280px; background: var(--violet); }

.games-section {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 130px 0 150px;
}

.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 56px; }

.section-heading h2,
.studio-section h2,
.cta-section h2 {
  font-size: clamp(2.8rem, 5.4vw, 5.6rem);
  line-height: .98;
}

.game-feature {
  display: grid;
  grid-template-columns: 1.38fr .62fr;
  min-height: 500px;
  overflow: hidden;
  background: var(--cream);
  border-radius: 12px;
}

.game-visual { position: relative; min-height: 480px; overflow: hidden; }
.feature-image { width: 100%; height: 100%; object-fit: cover; }

.release-pill {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 9px 13px;
  color: var(--ink-dark);
  background: var(--teal);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 3px;
}

.game-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 5vw, 66px);
  color: var(--ink-dark);
}

.game-logo { width: min(100%, 330px); height: auto; margin: -55px 0 -32px; }
.game-details > p { margin: 0 0 26px; color: #53545c; font-size: 1.05rem; }

.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; }
.game-tags li { padding: 6px 11px; font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #c8c5bb; border-radius: 30px; }

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 17px;
  color: white;
  background: #111;
  text-decoration: none;
  border-radius: 8px;
  transition: transform .2s ease;
}

.store-button:hover { transform: translateY(-2px); }
.store-button svg { width: 25px; height: 29px; }
.store-button span { font-size: 1.12rem; font-weight: 500; line-height: 1.05; }
.store-button small { display: block; margin-bottom: 3px; font-size: .55rem; letter-spacing: .08em; }

.screens-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.18fr;
  gap: 18px;
  margin-top: 18px;
}

.screens-row figure { margin: 0; overflow: hidden; background: var(--night-soft); border-radius: 10px; }
.screens-row figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.screens-row figure:hover img { transform: scale(1.025); }

.next-game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 480px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(145deg, #171929, #11121b);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.loader-mark { display: grid; grid-template-columns: repeat(2, 18px); gap: 6px; margin: 0 0 auto; }
.loader-mark i { width: 18px; height: 18px; background: #282a3d; border-radius: 4px; }
.loader-mark i:nth-child(2) { background: var(--violet); animation: pulse 1.8s infinite; }
.next-game-card p { margin: 0 0 12px; color: var(--teal); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.next-game-card strong { max-width: 260px; font: 600 clamp(1.5rem, 2.4vw, 2.3rem)/1.08 var(--display); letter-spacing: -.035em; }
.next-game-card > span { margin-top: 20px; color: var(--muted); }

.studio-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 9vw;
  padding: 150px max(32px, calc((100vw - 1320px) / 2));
  color: var(--ink-dark);
  background: var(--cream);
}

.studio-copy { align-self: end; padding-bottom: 6px; }
.studio-section h2 em { color: #c2472f; }
.studio-copy p { margin: 0; color: #4e5057; font-size: clamp(1.08rem, 1.55vw, 1.3rem); }
.studio-copy p + p { margin-top: 24px; }

.cta-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 520px;
  padding: 90px max(32px, calc((100vw - 1320px) / 2));
  overflow: hidden;
  background: var(--violet);
}

.cta-section .eyebrow { color: rgba(11,12,20,.65); }
.cta-section .eyebrow span { background: var(--ink-dark); }
.cta-section h2 { position: relative; z-index: 2; color: var(--ink-dark); }
.cta-symbol { color: transparent; font: 700 clamp(12rem, 30vw, 31rem)/1 var(--display); letter-spacing: -.14em; -webkit-text-stroke: 2px rgba(11,12,20,.15); transform: rotate(-7deg); }

footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 190px;
  color: var(--muted);
}

footer p { text-align: center; }
.footer-links { display: flex; align-items: center; gap: 28px; font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hover { 0%, 100% { transform: rotate(6deg) rotateY(-8deg) translateY(0); } 50% { transform: rotate(4deg) rotateY(-5deg) translateY(-14px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 170px; }
  .hero-art { min-height: 520px; }
  .hero-card { width: min(52%, 380px); }
  .game-feature { grid-template-columns: 1fr; }
  .game-visual { min-height: 390px; }
  .screens-row { grid-template-columns: repeat(3, 1fr); }
  .next-game-card { grid-column: 1 / -1; min-height: 350px; }
  .studio-section { grid-template-columns: 1fr; gap: 60px; }
  footer { grid-template-columns: 1fr 1fr; padding: 40px 0; }
  footer p { display: none; }
}

@media (max-width: 640px) {
  .site-header, footer, .games-section { width: min(100% - 36px, 1320px); }
  .site-header { height: 82px; }
  nav { gap: 18px; }
  nav a { font-size: .68rem; }
  nav a:nth-child(2) { display: none; }
  .hero { min-height: 0; padding: 130px 18px 72px; }
  h1 { font-size: clamp(3.5rem, 18vw, 5.2rem); }
  .hero-art { min-height: 380px; margin-top: 18px; }
  .hero-card { width: 62%; }
  .floating-chip { font-size: .55rem; }
  .chip-three { right: 4%; }
  .scroll-note { display: none; }
  .games-section { padding: 95px 0; }
  .section-heading { margin-bottom: 34px; }
  .game-visual { min-height: 275px; }
  .game-details { padding: 28px; }
  .game-logo { width: 230px; margin: -40px 0 -23px; }
  .screens-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(76vw, 280px);
    gap: 12px;
    margin-right: -18px;
    padding: 0 18px 12px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .screens-row::-webkit-scrollbar { display: none; }
  .screens-row figure,
  .next-game-card { min-height: 0; aspect-ratio: 9 / 16; scroll-snap-align: start; }
  .next-game-card { grid-column: auto; margin-top: 0; }
  .studio-section { padding: 100px 18px; }
  .cta-section { min-height: 460px; padding: 70px 18px; }
  .cta-symbol { position: absolute; right: -50px; bottom: -20px; opacity: .5; }
  footer { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
