@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700;800&display=swap');

:root {
  --color-sunbeam-yellow: #ffc500;
  --color-electric-violet: #7700ff;
  --color-carbon: #312f27;
  --color-paper-white: #ffffff;
  --color-slate-gray: #788086;
  --color-fog: #efefef;
  --color-sand: #e9e4d9;
  --color-ash: #b1afa7;
  --font-roobert: 'Manrope', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page-max-width: 1200px;
  --radius-card: 2.85px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--color-carbon); background: var(--color-paper-white); font-family: var(--font-roobert); letter-spacing: -.007em; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.hero { min-height: 100svh; position: relative; overflow: hidden; background: var(--color-slate-gray); color: var(--color-paper-white); }
.site-header { width: min(calc(100% - 48px), var(--page-max-width)); height: 92px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; z-index: 3; }
.wordmark { justify-self: start; display: inline-flex; align-items: baseline; font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.wordmark span { margin-left: .28rem; font-size: .78rem; font-weight: 700; letter-spacing: -.02em; }
.main-nav { display: flex; gap: 10px; }
.main-nav a { padding: 9px 16px; border-radius: 22px; color: var(--color-paper-white); background: var(--color-electric-violet); font-size: .9rem; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .18s ease, box-shadow .18s ease; }
.main-nav a:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.year { justify-self: end; font-size: .875rem; font-weight: 700; }
.hero-inner { width: min(calc(100% - 48px), var(--page-max-width)); min-height: calc(100svh - 92px); margin: 0 auto; padding: 10px 0 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero h1 { margin: 0; color: var(--color-sunbeam-yellow); font-size: clamp(5rem, 11.5vw, 9.25rem); font-weight: 800; line-height: .82; letter-spacing: -.085em; text-align: center; }
/* Reserve space for the rotated image; its intrinsic size must not expand the stage. */
.product-stage { width: min(780px, 78vw); max-width: 100%; height: clamp(250px, 37vw, 470px); flex-shrink: 0; margin: 28px auto 32px; position: relative; }
.hero-product { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(49,47,39,.24)); transform: rotate(-3deg); }
.violet-spark { width: 58px; height: 58px; display: grid; place-items: center; position: absolute; top: 8%; right: 7%; z-index: 2; border-radius: 50%; color: var(--color-paper-white); background: var(--color-electric-violet); font-size: 1.75rem; transform: rotate(10deg); }
.hero-subhead { margin: 0; font-size: clamp(2rem, 3.35vw, 2.75rem); font-weight: 800; line-height: 1.05; text-align: center; }
.hero-copy { max-width: 650px; margin: 18px auto 0; font-size: 1.15rem; line-height: 1.45; text-align: center; }

.section-shell { width: min(calc(100% - 48px), var(--page-max-width)); margin: 0 auto; }
.games-section { position: relative; background: var(--color-sunbeam-yellow); padding: 100px 0; overflow: hidden; }
.legacy-anchor { position: absolute; top: 0; }
.games-shell { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 52px; min-height: 580px; }
.games-copy { position: relative; z-index: 2; }
.games-copy h2 { margin: 0 0 28px; font-size: clamp(2.75rem, 4.6vw, 4.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.games-intro { max-width: 510px; margin: 0; font-size: 1.375rem; line-height: 1.5; }
.games-total { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 40px; padding: 16px 28px; border-radius: 50px; background: var(--color-paper-white); }
.games-total strong { font-size: 2.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.games-total span { font-size: 1.1rem; font-weight: 700; }
.games-collage { position: relative; width: 100%; aspect-ratio: 1 / 1.05; }
.game-cover { position: absolute; margin: 0; width: 52%; border: 6px solid var(--color-paper-white); border-radius: 28px; overflow: hidden; background: var(--color-paper-white); }
.game-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.game-cover figcaption { padding: 12px 10px; text-align: center; color: var(--color-carbon); font-size: 1rem; font-weight: 800; line-height: 1.3; }
.game-cover:nth-child(1) { top: 12%; left: 0; transform: rotate(-7deg); z-index: 1; }
.game-cover:nth-child(2) { top: 0; right: 0; transform: rotate(5deg); z-index: 2; }
.game-cover:nth-child(3) { bottom: 0; left: 5%; transform: rotate(4deg); z-index: 3; }
.game-cover:nth-child(4) { bottom: 8%; right: -2%; transform: rotate(-5deg); z-index: 4; }
@media (max-width: 960px) {
  .games-shell { grid-template-columns: 1fr; gap: 52px; }
  .games-copy { max-width: 650px; }
  .games-copy h2 { font-size: clamp(2.75rem, 7vw, 4.25rem); }
  .games-collage { max-width: 600px; margin: 0 auto; }
  .games-section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .games-section { padding: 64px 0; }
  .games-intro { font-size: 1.125rem; }
  .games-total { padding: 16px 22px; gap: 8px 14px; margin-top: 28px; }
  .games-total strong { font-size: 2.35rem; }
  .games-total span { font-size: 1rem; }
  .games-collage { width: 94%; aspect-ratio: 1 / 1.17; }
  .game-cover { border-width: 4px; border-radius: 18px; }
  .game-cover figcaption { padding: 9px 3px; font-size: .875rem; min-height: 3.7em; display: grid; place-items: center; }
}
.capabilities { min-height: 760px; padding: 112px 0 118px; background: var(--color-sunbeam-yellow); }
.section-kicker { margin-bottom: 28px; font-size: .95rem; font-weight: 800; text-transform: uppercase; }
.capabilities h2, .studio h2 { margin-bottom: 38px; font-size: clamp(3.5rem, 7vw, 6.6rem); font-weight: 800; line-height: .93; letter-spacing: -.065em; }
.section-intro { max-width: 690px; margin-bottom: 70px; font-size: 1.375rem; line-height: 1.38; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--color-paper-white); border-radius: var(--radius-card); overflow: hidden; }
.capability-grid article { min-height: 270px; padding: 26px 28px 30px; display: flex; flex-direction: column; }
.capability-grid article + article { border-left: 1px solid var(--color-fog); }
.capability-grid article > span { margin-bottom: auto; color: var(--color-ash); font-size: .9rem; font-weight: 700; }
.capability-grid h3 { margin-bottom: 14px; font-size: 1.75rem; font-weight: 800; line-height: 1.05; }
.capability-grid p { margin-bottom: 0; font-size: 1.05rem; line-height: 1.45; }

.studio { min-height: 720px; padding: 120px 0; background: var(--color-paper-white); }
.studio-shell { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 90px; row-gap: 90px; }
.studio h2 { margin-bottom: 0; }
.studio h2 span { color: var(--color-sunbeam-yellow); }
.studio-copy { align-self: end; }
.studio-lead { margin-bottom: 34px; font-size: 1.375rem; line-height: 1.43; }
.speech-bubble { max-width: 460px; padding: 22px 26px; position: relative; border-radius: 8px; background: var(--color-sand); font-size: 1.12rem; line-height: 1.45; }
.speech-bubble:after { content: ''; width: 0; height: 0; position: absolute; left: 28px; bottom: -15px; border-left: 16px solid transparent; border-top: 18px solid var(--color-sand); }
.principle-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; padding-top: 32px; border-top: 1px solid var(--color-ash); }
.principle-grid h3 { margin-bottom: 12px; font-size: 1.45rem; font-weight: 800; }
.principle-grid p { max-width: 290px; margin-bottom: 0; font-size: 1.05rem; line-height: 1.45; }

footer { min-height: 150px; padding: 34px max(24px, calc((100% - var(--page-max-width))/2)); display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; color: var(--color-paper-white); background: var(--color-carbon); }
.footer-wordmark { font-size: 1.8rem; font-weight: 800; letter-spacing: -.065em; }
.footer-wordmark small { margin-left: .3rem; font-size: .72rem; letter-spacing: -.01em; }
footer p { margin-bottom: 0; font-size: .9rem; }
footer p:last-child { justify-self: end; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; width: min(calc(100% - 36px), var(--page-max-width)); }
  .main-nav { justify-self: end; }
  .main-nav a { padding: 8px 12px; font-size: .8rem; }
  .year { display: none; }
  .hero-inner, .section-shell { width: min(calc(100% - 36px), var(--page-max-width)); }
  .hero-inner { min-height: calc(100svh - 92px); padding-bottom: 48px; }
  .product-stage { width: 88vw; height: clamp(240px, 50vw, 410px); }
  .capabilities, .studio { padding: 88px 0; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 220px; }
  .capability-grid article + article { border-left: 0; border-top: 1px solid var(--color-fog); }
  .studio-shell { grid-template-columns: 1fr; row-gap: 54px; }
  .studio-copy { max-width: 650px; }
  .principle-grid { grid-column: 1; gap: 24px; }
}

@media (max-width: 560px) {
  .site-header { height: 76px; }
  .wordmark { font-size: 1.45rem; }
  .main-nav { gap: 6px; }
  .main-nav a { padding: 7px 10px; font-size: .72rem; }
  .hero-inner { min-height: calc(100svh - 76px); padding: 20px 0 44px; }
  .hero h1 { font-size: clamp(4.3rem, 23vw, 6.3rem); }
  .product-stage { width: 100%; height: clamp(200px, 66vw, 300px); }
  .violet-spark { width: 45px; height: 45px; right: 15%; font-size: 1.3rem; }
  .hero-subhead { font-size: 2rem; }
  .hero-copy { font-size: 1rem; }
  .capabilities h2, .studio h2 { font-size: 3.65rem; }
  .section-intro, .studio-lead { font-size: 1.15rem; }
  .capability-grid article { min-height: 205px; }
  .principle-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 12px; }
  footer p:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav a { transition: none; }
}
