:root {
  --dusk: #1B1736;
  --dusk-2: #241F47;
  --dusk-3: #332C5E;
  --parchment: #F2EADF;
  --muted: #B3AED1;
  --marigold: #F2A541;
  --marigold-deep: #D9862A;
  --teal: #5CC8C0;

  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --radius-lg: 20px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--dusk);
  color: var(--parchment);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--marigold);
  color: var(--dusk);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; color: var(--parchment); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  font-weight: 500;
}
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
}
.site-header nav a:hover { color: var(--parchment); }
.site-header nav .nav-cta {
  color: var(--dusk);
  background: var(--parchment);
  padding: 8px 16px;
  border-radius: 999px;
}
.site-header nav .nav-cta:hover { color: var(--dusk); background: var(--marigold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--marigold); color: var(--dusk); }
.btn-primary:hover { background: var(--parchment); }
.btn-ghost { border-color: var(--dusk-3); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--parchment); }
.btn-large { font-size: 1.15rem; padding: 18px 32px; }

.text-link {
  font-weight: 700;
  color: var(--marigold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--parchment); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(64px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  max-width: 10ch;
}

.lede {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 1.2rem;
  color: var(--muted);
}

.actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wheel { width: 100%; max-width: 520px; justify-self: end; }
.wheel svg { width: 100%; height: auto; overflow: visible; }

.wheel-text text {
  fill: var(--parchment);
  font-family: var(--font);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.02em;
}
.wheel-track { fill: none; stroke: var(--dusk-3); stroke-width: 2; stroke-dasharray: 4 10; }
.wheel-core { fill: var(--dusk-2); stroke: var(--dusk-3); stroke-width: 2; }

.wheel-text, .wheel-orbit { transform-origin: 200px 200px; }
.wheel-text  { animation: spin 60s linear infinite; }
.wheel-orbit { animation: spin 24s linear infinite reverse; }
.wheel:hover .wheel-text,
.wheel:hover .wheel-orbit { animation-play-state: paused; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .wheel-text, .wheel-orbit { animation: none; }
}

/* Section heads */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2,
.studio h2,
.contact h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.section-head p { color: var(--muted); max-width: 44ch; font-size: 1.1rem; }

/* Games */
.games {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}

.game {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}
.game + .game { margin-top: clamp(64px, 8vw, 112px); }

.game-flip { grid-template-columns: 1fr 1.5fr; }
.game-flip .game-cover { order: 2; }

.game-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--dusk-2);
}

.game-info { display: grid; gap: 14px; justify-items: start; }
.game-info h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.game-info > p:not(.game-meta):not(.status) { max-width: 46ch; }

.game-meta { color: var(--muted); font-weight: 500; }
.game-meta span { color: var(--dusk-3); margin: 0 4px; }

.game-facts {
  list-style: none;
  padding: 0;
  margin: 2px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--muted);
}
.game-facts strong { color: var(--teal); font-weight: 700; }

.status {
  font-weight: 700;
  color: var(--dusk);
  background: var(--teal);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Services */
.services {
  background: var(--parchment);
  color: var(--dusk);
  border-radius: clamp(24px, 4vw, 48px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.services .section-head { max-width: var(--max); margin-left: auto; margin-right: auto; }
.services .section-head p { color: #4A4470; }

.service-list {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(32px, 5vw, 72px);
}
.service-list > div {
  padding: 28px 0;
  border-top: 2px solid var(--dusk);
}
.service-list dt {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.service-list dd {
  margin: 10px 0 0;
  color: #4A4470;
  max-width: 42ch;
}

/* Studio */
.studio {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.studio-copy { display: grid; gap: 20px; }
.studio-copy h2 { margin-bottom: 8px; }
.studio-copy p { max-width: 52ch; color: var(--muted); font-size: 1.1rem; }

.studio-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  padding-top: 12px;
}
.studio-facts dt { color: var(--muted); font-weight: 500; }
.studio-facts dd {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Contact */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  border-top: 2px solid var(--dusk-3);
  display: grid;
  justify-items: start;
  gap: 20px;
}
.contact p { color: var(--muted); max-width: 48ch; font-size: 1.15rem; margin-bottom: 12px; }

.socials {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.socials a { color: var(--muted); font-weight: 500; text-underline-offset: 4px; }
.socials a:hover { color: var(--parchment); }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer a { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .wheel { justify-self: center; max-width: 380px; }
  .section-head { grid-template-columns: 1fr; }
  .game, .game-flip { grid-template-columns: 1fr; }
  .game-flip .game-cover { order: 0; }
  .studio { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 8px; }
  .site-header nav a:not(.nav-cta) { font-size: 0.95rem; }
  .service-list { grid-template-columns: 1fr; }
  .services { border-radius: 24px; }
  .btn-large { font-size: 1rem; padding: 16px 24px; }
}
