:root {
  --red-deep: #8e0b22;
  --red: #e11d38;
  --red-hot: #ff5a36;
  --grad: linear-gradient(100deg, var(--red-deep) 0%, var(--red) 55%, var(--red-hot) 100%);
  --yellow: #ffc83d;
  --ink: #151419;
  --ink-2: #1f1d26;
  --white: #ffffff;
  --mist: #fbf3f1;
  --muted: #6b6a75;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  overflow-x: clip; /* not hidden: hidden would make body a scroll container and break position: sticky */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 24px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(80px, 11vw, 140px) 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 36px; height: 4px; background: var(--yellow); }

/* yellow accent words wipe in left to right */
.y { color: var(--yellow); display: inline-block; clip-path: inset(-10% -4% -10% -4%); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1) var(--delay, .25s); }
.reveal:not(.in) .y, body:not(.loaded) .hero .y { clip-path: inset(-10% 100% -10% -4%); }
.on-light .y { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border: 2px solid transparent;
  font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  background: var(--ink); color: var(--white); transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 0 -4px var(--yellow); }
.btn.light { background: var(--white); color: var(--ink); }
.btn.ghost { background: transparent; border-color: currentColor; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* dot-grid decoration */
.dots { position: absolute; width: 130px; height: 130px; pointer-events: none; background-image: radial-gradient(#ffffffb3 1.6px, transparent 1.8px); background-size: 16px 16px; }
.dots.dark { background-image: radial-gradient(#e11d3840 1.6px, transparent 1.8px); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--white); transition: background .3s, padding .3s; padding: 18px 0; }
.nav.scrolled { background: var(--ink); padding: 10px 0; box-shadow: 0 4px 0 var(--yellow); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.logo img { width: 44px; height: 44px; }
.nav ul { display: flex; gap: 34px; list-style: none; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.nav ul a { position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav ul a:hover::after { transform: scaleX(1); }
.nav .btn { padding: 12px 22px; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; background: var(--grad); color: var(--white); }
.hero .stripe { position: absolute; width: 110vw; height: 24vh; right: -48vw; bottom: 22vh; background: var(--yellow); transform: rotate(-34deg); }
.hero .dots:nth-of-type(1) { top: 90px; left: 2%; }
.hero .dots:nth-of-type(2) { bottom: 40px; right: 26%; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 5rem); margin-bottom: 28px; }
.hero .lead { color: #ffffffe0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin-bottom: 40px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* game covers in the hero: grab and toss them, they spring back home (JS writes transform); float uses the separate translate property */
.burst { position: relative; height: min(70vh, 600px); }
.burst .shot {
  position: absolute; width: 42%; aspect-ratio: 3 / 4; border: 4px solid var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -20px #0008; transform: rotate(var(--r)); cursor: grab; user-select: none;
  animation: hover-float 6s ease-in-out infinite; animation-delay: var(--delay, 0s); transition: scale .2s, box-shadow .2s;
}
.burst .shot:hover { scale: 1.04; }
.burst .shot.grab { cursor: grabbing; scale: 1.08; animation-play-state: paused; box-shadow: 0 50px 80px -20px #000a; }
.burst .shot img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.burst .shot:nth-child(1) { --r: -10deg; left: 2%; top: 14%; z-index: 2; }
.burst .shot:nth-child(2) { --r: 7deg; left: 32%; top: 0; z-index: 3; width: 46%; --delay: -2s; }
.burst .shot:nth-child(3) { --r: -4deg; left: 54%; top: 34%; z-index: 4; --delay: -4s; }
.burst .shot:nth-child(4) { --r: 13deg; left: 20%; top: 52%; z-index: 1; width: 36%; --delay: -1s; }
@keyframes hover-float { 50% { translate: 0 -14px; } }
.shot .tag {
  position: absolute; right: 10px; bottom: 10px; padding: 7px 12px; background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.shot:hover .tag, .shot.front .tag, .shot:focus-within .tag { opacity: 1; transform: none; }
@media (pointer: fine) { .burst .shot { touch-action: none; } } /* on touch screens let swipes scroll the page; taps still hop */
.toss-hint {
  position: absolute; left: 50%; bottom: -6px; translate: -50% 0; z-index: 5; padding: 8px 16px; white-space: nowrap;
  background: var(--ink); color: var(--white); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  animation: nudge 2s ease-in-out infinite; transition: opacity .5s;
}
.burst.used .toss-hint { opacity: 0; }
@keyframes nudge { 50% { transform: translateY(-6px); } }

/* marquee band */
.band { background: var(--yellow); color: var(--ink); overflow: hidden; transform: skewY(-2deg); margin: -28px 0 0; position: relative; z-index: 3; border-block: 4px solid var(--ink); }
.band-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.band span { font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, 2.4vw, 1.7rem); letter-spacing: .04em; padding: 14px 26px; white-space: nowrap; }
.band span::after { content: "✦"; margin-left: 52px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about p { color: var(--muted); margin-bottom: 16px; }
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--grad); border-radius: var(--radius); }
.framed img { position: relative; width: 100%; border-radius: var(--radius); }
.framed .dots { top: -40px; left: -40px; z-index: -1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.stat { border-left: 4px solid var(--yellow); padding-left: 16px; }
.stat b { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* "what we do": expanding panels with game art; the active one (hover/tap) grows, the rest shrink */
#what { background: var(--ink); color: var(--white); position: relative; }
#what .dots { right: 4%; top: 60px; }
.panels { display: flex; gap: 16px; height: min(68vh, 560px); margin-top: 48px; }
.panel {
  position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: var(--radius); cursor: pointer;
  transition: flex .7s cubic-bezier(.7, 0, .2, 1);
}
.panel.on { flex: 3.2; cursor: default; }
/* panel toys: 1 look-around scene (JS sets --mx/--my), 2 click-to-create shapes, 3 a crowd whose eyes follow you (JS sets --px/--py) */
.toy { position: absolute; inset: 0; overflow: hidden; transform: scale(1.12); filter: grayscale(.7) brightness(.5); transition: transform 1s, filter .7s; }
.panel.on .toy { transform: scale(1); filter: none; }
.panel::after, .panel::before, .panel .body, .panel .num { pointer-events: none; }
.toy-hint { position: absolute; z-index: 2; top: 22px; right: 22px; padding: 5px 10px; background: #0007; color: var(--white); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .4s .3s; pointer-events: none; }
.panel.on .toy-hint { opacity: 1; }

.toy-look { background: linear-gradient(180deg, #2a0a3a 0%, #8e0b22 42%, #ff5a36 72%, #ffc83d 100%); }
.toy-look i { position: absolute; inset: -14%; transform: translate(calc(var(--mx, 0) * -90px * var(--z, 1)), calc(var(--my, 0) * -50px * var(--z, 1))); transition: transform .3s ease-out; }
.l-stars { background-image: radial-gradient(#fff 1.2px, transparent 1.6px), radial-gradient(#fff9 1px, transparent 1.4px); background-size: 64px 64px, 37px 37px; background-position: 0 0, 18px 22px; mask-image: linear-gradient(#000, transparent 50%); }
.l-sun { background: radial-gradient(circle at 64% 50%, #fff3c4 0 7%, #ffc83d 7.5% 10%, #ffc83d44 10.5% 16%, transparent 16.5%); }
.l-far { background: #5e0718; clip-path: polygon(0 68%, 12% 52%, 24% 63%, 38% 46%, 52% 62%, 66% 49%, 80% 63%, 92% 51%, 100% 58%, 100% 100%, 0 100%); }
.l-island { background: linear-gradient(180deg, transparent 38%, var(--yellow) 38% 39.6%, #2a0d12 39.6%); clip-path: polygon(24% 38%, 42% 38%, 38% 43%, 33% 52%, 28% 43%); }
.l-near { background: var(--ink); clip-path: polygon(0 80%, 18% 72%, 35% 79%, 55% 69%, 75% 78%, 100% 70%, 100% 100%, 0 100%); }

.toy-make { background-color: var(--ink-2); background-image: radial-gradient(#ffffff22 1.4px, transparent 1.6px); background-size: 22px 22px; cursor: crosshair; }
.shape { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); background: var(--c); rotate: var(--rot); pointer-events: none;
  animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both, spin var(--spin) linear infinite var(--dir); }
.shape.dot { border-radius: 50%; }
.shape.sq { border-radius: 6px; }
.shape.tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shape.ring { background: none; border: 8px solid var(--c); border-radius: 50%; }
.shape.star { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@keyframes pop { from { transform: scale(0); } }
@keyframes spin { to { rotate: calc(var(--rot) + 360deg); } }

.toy-crowd { background: linear-gradient(160deg, var(--red-hot), var(--red) 50%, var(--red-deep)); }
.crowd { position: absolute; left: 6%; right: 6%; top: 14%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px 16px; }
.blob { position: relative; flex-shrink: 0; width: var(--b); height: var(--b); display: flex; justify-content: center; align-items: flex-start; gap: 16%; padding-top: calc(var(--b) * .3); /* % padding would be of the crowd's width */ border-radius: 50% 50% 44% 44%; background: var(--c); box-shadow: inset -6px -8px 0 #0002; cursor: pointer; transition: translate .2s; }
.blob:hover { translate: 0 -6px; }
.eye { position: relative; flex-shrink: 0; width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--white); }
.blob[style*="--white"] .eye { background: var(--ink); }
.eye::after { content: ""; position: absolute; inset: 26%; border-radius: 50%; background: var(--ink); transform: translate(var(--px, 0), var(--py, 0)); transition: transform .1s; }
.blob[style*="--white"] .eye::after { background: var(--white); }
.blob.jump { animation: jump .55s cubic-bezier(.3, 0, .3, 1); }
@keyframes jump { 40% { transform: translateY(-40px) scaleY(1.08); } 70% { transform: translateY(0) scale(1.14, .86); } }
.heart { position: absolute; z-index: 1; color: var(--yellow); font-size: 1.5rem; line-height: 1; pointer-events: none; animation: float-up 1.1s ease-out forwards; }
@keyframes float-up { to { transform: translateY(-80px) scale(1.5); opacity: 0; } }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #151419f2 8%, #15141966 45%, transparent 75%); }
.panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 2; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .6s .2s; }
.panel.on::before { transform: scaleX(1); }
.panels.auto .panel.on::before { transition: transform 4.5s linear; } /* bar doubles as the auto-cycle timer; matches CYCLE_MS */
.panel .num { position: absolute; z-index: 1; top: 22px; left: 22px; padding: 4px 10px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .85rem; letter-spacing: .08em; }
.panel .body { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 30px; }
.panel h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); transition: font-size .5s; }
.panel.on h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.panel p { max-width: 460px; max-height: 0; opacity: 0; transform: translateY(14px); color: #ffffffdd; font-size: 1.05rem; transition: opacity .4s, transform .4s, max-height .4s; }
.panel.on p { max-height: 200px; margin-top: 12px; opacity: 1; transform: none; transition-delay: .3s; }

/* games */
#games { background: var(--mist); position: relative; }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.game { position: relative; display: block; background: var(--ink); color: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -28px #0009; transition: transform .3s; }
.game:hover { transform: translateY(-8px); }
.game .cover { aspect-ratio: 4 / 5; overflow: hidden; }
.game .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.game:hover .cover img { transform: scale(1.08); }
.game::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.game:hover::after { transform: scaleX(1); }
.game .info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 20px; }
.game h3 { font-size: 1.15rem; }
.game small { color: #c4b6b6; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.game .play { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-weight: 800; transition: transform .3s; }
.game:hover .play { transform: rotate(-45deg); }
.game.soon { display: grid; place-items: center; text-align: center; padding: 36px; background: var(--grad); }
.game.soon .big { font-size: 3.6rem; }
.game.soon h3 { font-size: 1.6rem; margin: 10px 0; }

#games.h-scroll { padding: 0; }
#games.h-scroll .games-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
#games.h-scroll .games { display: flex; gap: 28px; width: max-content; margin-top: 28px; padding: 10px 0 28px; transform: translateX(calc(var(--gx, 0) * -1px)); }
#games.h-scroll .game { flex-shrink: 0; width: clamp(190px, calc((100vh - 420px) * .72), 300px); }
.games-progress { display: none; height: 6px; background: #efd9d4; }
.games-progress i { display: block; height: 100%; width: calc(var(--gp, 0) * 100%); background: var(--grad); }
#games.h-scroll .games-progress { display: block; }

/* team */
.team { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 22px; }
.member { text-align: left; }
/* crew marquee (JS builds .crew-row/.crew-track and sets --set px / --dur); full-bleed past the .wrap */
.team.marquee { display: block; width: 100vw; margin-left: calc(50% - 50vw); }
.crew-row { overflow: hidden; padding: 6px 0 10px; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.crew-row + .crew-row { margin-top: 22px; }
.crew-track { display: flex; width: max-content; animation: crew-slide var(--dur, 40s) linear infinite; }
.crew-row.rev .crew-track { animation-direction: reverse; }
.crew-row:hover .crew-track { animation-play-state: paused; }
.team.marquee .member { flex-shrink: 0; width: 210px; margin-right: 24px; }
@keyframes crew-slide { to { transform: translateX(calc(var(--set) * -1px)); } }
.member .ph { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 14px; background: var(--grad); }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); mix-blend-mode: luminosity; transition: filter .4s, transform .5s, mix-blend-mode .4s; }
.member:hover img { filter: none; mix-blend-mode: normal; transform: scale(1.06); }
.member b { display: block; font-weight: 800; text-transform: uppercase; font-size: .95rem; line-height: 1.25; }
.member span { display: block; margin-top: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* contact */
.cta { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grad); color: var(--white); padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 80px); }
.cta .stripe { position: absolute; width: 70%; height: 90px; right: -18%; top: 30%; background: var(--yellow); transform: rotate(-30deg); }
.cta .dots { right: 8%; bottom: 20px; }
.cta > *:not(.stripe):not(.dots) { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.cta .lead { color: #ffffffe0; margin-bottom: 36px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.socials a { padding: 9px 16px; border: 2px solid #ffffff80; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* footer sits pinned under main; main slides up off it (curtain reveal) */
main { position: relative; z-index: 1; background: var(--white); border-bottom: 6px solid var(--yellow); }
.footer { position: sticky; bottom: 0; z-index: 0; padding: 120px 0 40px; background: var(--ink); color: var(--white); }
.footer-big { font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 11vw, 9.5rem); line-height: .92; letter-spacing: -.02em; margin-bottom: 56px; }
.footer-big span { color: var(--yellow); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 600; font-size: .85rem; color: #b5a7a7; }
.footer-row a:hover { color: var(--yellow); }

/* fade-up on scroll */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .nav ul { display: none; }
  .hero-grid, .about { grid-template-columns: 1fr; }
  .burst { height: 380px; max-width: 520px; }
  .games { grid-template-columns: 1fr 1fr; }
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.on { flex: none; height: 300px; }
  .toy { transform: none; filter: none; }
  .panel h3, .panel.on h3 { font-size: 1.6rem; }
  .panel p { max-height: none; margin-top: 10px; opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .games { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .team.marquee .member { width: 150px; margin-right: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav .btn { display: none; }
  .burst { height: 300px; }
}