/* Navoj Studios homepage, v9: v8 after an unslop pass (no blue glows, one lit
   tile, nothing floating on a loop, tighter section rhythm).
   v8: a black page, one ice-blue accent, real Roblox
   art, laid out like the big Roblox studios' sites. Archivo throughout: the
   expanded width for headings and every number, the normal width for reading.
   Motion rules: only transform and opacity move, and nothing waits for a
   script to become visible. Scroll effects use CSS scroll timelines, so
   browsers without them just show the page as it is. All of it stops under
   prefers-reduced-motion. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #000;
  --surface: #0e1014;
  --surface-2: #15181e;
  --white: #f3f5f9;
  --muted: #9ba4b6;
  --faint: #737c90;
  --rule: #17191f;
  --line: #272a32;
  --ice: #9ccfff;
  --ice-hot: #c2e2ff;
  --blue: #4d7dff;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --out: cubic-bezier(.16, 1, .3, 1);
  --soft: cubic-bezier(.33, 0, .2, 1);
  --display: 800 expanded 1em/1 "Archivo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
/* Lenis (home.js) does the smoothing when it runs; these are its base rules */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 16px/1.6 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
::selection { background: var(--ice); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 12px 18px; background: var(--white); color: var(--ink); border-radius: 8px; font-weight: 700; transform: translateY(-180%); }
.skip:focus { transform: none; }

h1, h2, h3 { font: var(--display); letter-spacing: -.035em; text-wrap: balance; }
h1, h2 { text-transform: uppercase; letter-spacing: -.02em; }
h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); line-height: .96; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1; }
.ice { color: var(--ice); }
.nowrap { white-space: nowrap; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 30px; border: 1px solid transparent; border-radius: 6px; font-size: .9rem; font-weight: 800; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; transition: background-color .2s, color .2s, transform .35s var(--out); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-ice { background: #fff; color: #000; }
.btn-ice:hover { background: #dfe5ee; }
.btn-dark { border-color: rgb(255 255 255 / .85); background: transparent; color: #fff; }
.btn-dark:hover { background: rgb(255 255 255 / .1); }

/* ---------- nav ---------- */

/* Sits on the hero, then gains a solid bar once the hero scrolls away. */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.nav.is-stuck { background: rgb(5 7 12 / .94); border-bottom-color: var(--rule); }
.nav-inner { position: relative; display: flex; align-items: center; gap: 24px; height: 76px; transition: height .3s var(--out); }
.nav.is-stuck .nav-inner { height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: var(--display); font-size: 1.12rem; letter-spacing: -.03em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: #fff; font-size: .86rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--ice); }
.menu-btn { display: none; }

/* ---------- hero ---------- */

/* A wall of our game icons, tilted and drifting, fills the screen. In the
   middle, a dark panel with the headline, the two live numbers and the two
   ways on. */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden; }
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .7), rgb(0 0 0 / .25) 30%, rgb(0 0 0 / .25) 70%, #000); content: ""; pointer-events: none; } /* kit-ok: scrim so the nav and panel read over the art */
.hero-inner { display: grid; justify-items: center; }
.panel { display: grid; justify-items: center; width: min(620px, 100%); padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 52px); border: 1px solid rgb(255 255 255 / .08); border-radius: 14px; background: rgb(12 13 17 / .9); text-align: center; box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.panel h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; }
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; }
.pstat { display: grid; justify-items: center; gap: 4px; padding-inline: clamp(18px, 3vw, 34px); }
.pstat + .pstat { border-left: 1px solid rgb(255 255 255 / .2); }
.pstat b { font: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.03em; text-decoration: underline dotted rgb(255 255 255 / .45); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pstat > span { color: #c9ced8; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; display: grid; place-items: center; width: 40px; height: 40px; color: #fff; }
.scroll-hint svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

.mosaic { position: absolute; z-index: -2; inset: 0; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.mosaic-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tile-gap); width: 150%; transform: rotate(-14deg); --tile: clamp(96px, 9.6vw, 164px); --tile-gap: clamp(12px, 1.3vw, 20px); }
/* min-width 0: the drifting track inside is many screens wide */
.mosaic-row { display: flex; min-width: 0; }
.mosaic-row:nth-child(even) { margin-left: calc(var(--tile) * -.5); }
.mosaic-track { display: flex; gap: var(--tile-gap); width: max-content; animation: drift 140s linear infinite; will-change: transform; }
.mosaic-row:nth-child(even) .mosaic-track { animation-direction: reverse; animation-duration: 160s; }
.mosaic img { flex: none; width: var(--tile); aspect-ratio: 1; border-radius: 22%; background: var(--surface); box-shadow: 0 12px 30px rgb(0 0 0 / .45); }
/* home.js measures one copy of the list as --period; without it, half the track */
@keyframes drift { to { transform: translateX(calc(var(--period, 50%) * -1)); } }
.hero.is-off .mosaic-track { animation-play-state: paused; }

/* ---------- section heads ---------- */

.head { display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(32px, 4vw, 52px); text-align: center; }
.head-copy { max-width: 46ch; color: var(--muted); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.stamp { color: var(--faint); font-size: .86rem; }

/* ---------- biggest games ---------- */

.featured { padding: clamp(56px, 7vw, 96px) 0; }
/* The biggest games as a carousel: the one in front full size, its
   neighbours smaller and dimmed either side, arrows, dots, a swipe. home.js
   sets each slide's place. Without it, a row that scrolls sideways. */
.flow { position: relative; overflow-x: clip; --w: min(600px, 84vw); }
.flow-track { display: flex; gap: 16px; overflow-x: auto; padding: 4px var(--gutter) 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.flow-track::-webkit-scrollbar { display: none; }
.slide { position: relative; isolation: isolate; flex: none; display: block; width: var(--w); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--surface); scroll-snap-align: center; }
.slide-shot img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / .55) 66%, rgb(0 0 0 / .9)); content: ""; } /* kit-ok: scrim so the name reads over the art */
.slide-tag { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 8px; background: rgb(5 7 12 / .86); color: #e3e9f4; font-size: .76rem; font-weight: 600; }
.slide-info { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 8px; }
.slide-name { font: var(--display); font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -.02em; line-height: 1.1; text-transform: uppercase; }
.slide-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; color: #d4d9e2; font-size: .9rem; }
.slide-stats b { margin-left: 4px; color: #fff; font-weight: 800; }
.slide-stats [data-f="playing"] { color: var(--ice); }
.flow.is-flow .flow-track { position: relative; display: block; height: calc(var(--w) * 9 / 16 + 8px); overflow: visible; padding: 0; }
.flow.is-flow .slide { position: absolute; top: 0; left: 50%; margin-left: calc(var(--w) / -2); transition: transform .7s var(--out), opacity .5s, filter .5s; will-change: transform; }
.flow.is-flow .slide:not(.is-current) .slide-info, .flow.is-flow .slide:not(.is-current) .slide-tag { opacity: .7; }
.flow-arrow { position: absolute; z-index: 20; top: calc(var(--w) * 9 / 32); translate: 0 -50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: #000; color: #fff; transition: border-color .2s, background-color .2s; }
.flow-arrow:hover { border-color: #fff; background: #111; }
.flow-arrow svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.flow-arrow.is-prev { left: max(var(--gutter), calc(50% - var(--w) / 2 - 330px)); }
.flow-arrow.is-next { right: max(var(--gutter), calc(50% - var(--w) / 2 - 330px)); }
.flow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.flow-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #4a4e57; transition: width .3s var(--out), background-color .3s; }
.flow-dots button[aria-current="true"] { width: 24px; background: #fff; }
.flow-all { display: flex; width: max-content; margin: 34px auto 0; }
.sold-tag { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 11px; border-radius: 7px; background: rgb(5 7 12 / .86); color: #e3e9f4; font-size: .76rem; font-weight: 600; }
img.is-placeholder { object-fit: contain !important; padding: 26px; }

/* ---------- all games ---------- */

.all { padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 7vw, 96px); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px); }
/* Same-size cards: the art, a dark foot with the name and counts on it, and
   the game's own icon beside the name. Flat, on a hairline that turns ice
   blue under the pointer. */
.card { position: relative; display: block; border-radius: 14px; }
.card-shot { position: relative; isolation: isolate; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgb(255 255 255 / .1); border-radius: 14px; background: var(--surface); transition: border-color .2s; }
.card-shot > img:first-child { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-shot::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 42%, rgb(5 7 12 / .6) 68%, rgb(5 7 12 / .94)); content: ""; } /* kit-ok: scrim so the name reads over the art */
.card:hover .card-shot { border-color: rgb(156 207 255 / .7); }
.card-info { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 12px; }
.card-icon { flex: none; width: 48px; aspect-ratio: 1; border-radius: 22%; }
.card-text { display: grid; gap: 2px; min-width: 0; }
.card-name { overflow: hidden; font-size: 1.06rem; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; color: #e2e7f0; font-size: .9rem; font-weight: 600; }
.stat { display: inline-flex; align-items: center; gap: 6px; }
.stat + .stat { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgb(255 255 255 / .28); }
.stat-icon { width: 14px; height: 14px; fill: currentColor; }
.stat-icon.is-line { fill: none; stroke: currentColor; stroke-width: 1.4; }
.card-meta [data-f="playing"] { color: var(--ice); font-weight: 700; }
/* the folded-away games: their icons tilted like the hero wall, and a count */
.card-more { position: relative; isolation: isolate; display: grid; align-content: end; aspect-ratio: 16 / 9; overflow: hidden; padding: 0 18px 16px; border: 1px solid rgb(255 255 255 / .1); border-radius: 14px; background: var(--surface); color: var(--white); font: inherit; text-align: left; transition: border-color .2s; }
.card-more:hover { border-color: rgb(156 207 255 / .7); }
.more-wall { position: absolute; z-index: -2; inset: -30% -20%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-content: center; rotate: -14deg; opacity: .55; transition: transform .8s var(--out); }
.more-wall img { width: 100%; aspect-ratio: 1; border-radius: 22%; }
.card-more:hover .more-wall { transform: translateX(-6%); }
.card-more::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(5 7 12 / .2), rgb(5 7 12 / .92) 78%); content: ""; } /* kit-ok: scrim so the count reads over the icons */
.more-text { display: grid; gap: 2px; }
.more-count { font: var(--display); font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.035em; }
.more-sub { color: var(--muted); font-size: .88rem; }
.grid.is-folded .card:nth-child(n + 6):not(.card-more) { display: none; }
.more-btn { display: flex; margin: 40px auto 0; }

/* ---------- what we do ---------- */

/* Four plain cards, two by two, each a heading and a sentence on the left
   and a piece of our own art on the right: the +1 and cube renders, or a
   game icon tilted in an ice outline like the About squares. */
.what { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.do-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.do-card { display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 13vw, 170px); align-items: center; gap: 24px; min-height: 230px; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); transition: border-color .3s; }
.do-card:hover { border-color: var(--line); }
.do-card h3 { font: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -.03em; line-height: 1.1; }
.do-card p { max-width: 38ch; margin-top: 12px; color: #c9ced8; font-size: .98rem; line-height: 1.6; text-wrap: pretty; }
.do-card a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(156 207 255 / .4); }
.do-render { justify-self: center; width: 100%; filter: drop-shadow(0 20px 30px rgb(0 0 0 / .6)); }
.do-frame { position: relative; justify-self: center; width: 82%; aspect-ratio: 1; rotate: -8deg; }
.do-frame::before { position: absolute; inset: -9%; border: 1.5px solid var(--ice); border-radius: 22%; content: ""; rotate: 14deg; }
.do-frame.is-alt { rotate: 7deg; }
.do-frame.is-alt::before { border-color: var(--blue); rotate: -13deg; }
.do-frame img { position: relative; width: 100%; height: 100%; border-radius: 22%; box-shadow: 0 18px 34px rgb(0 0 0 / .6); }

/* ---------- numbers ---------- */

/* A bento of five tiles, each one real figure in big rolling digits with
   something from our own work under it: the cube render, live bars, a column
   per game's peak, our game icons. Only the visits tile, with the cube, is lit. */
.numbers { padding: clamp(64px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "now visits members" "peak visits members" "peak visits favs"; gap: 18px; }
.tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--rule); border-radius: 20px; background: var(--surface); }
.tile-num { font: var(--display); font-size: clamp(2.1rem, 3.2vw, 3rem); letter-spacing: -.04em; }
.tile-label { margin-top: 10px; max-width: 30ch; color: var(--muted); font-size: .98rem; line-height: 1.45; text-wrap: pretty; }

.tile-visits { grid-area: visits; align-items: center; justify-content: flex-start; min-height: 640px; padding-top: clamp(36px, 4vw, 52px); text-align: center; }
.tile-visits::before { position: absolute; z-index: -1; inset: 0; content: ""; background: radial-gradient(70% 55% at 50% 72%, rgb(156 207 255 / .5), rgb(43 98 240 / .28) 45%, transparent 78%); }
/* a shaft of light the cube rises into, under the number */
.tile-visits::after { position: absolute; z-index: -1; left: 50%; bottom: 34%; width: 46%; height: 72%; translate: -50% 0; background: radial-gradient(50% 100% at 50% 100%, rgb(190 225 255 / .5), rgb(110 170 255 / .16) 55%, transparent 80%); filter: blur(18px); content: ""; }
.tile-visits .tile-num { font-size: clamp(2.3rem, 4vw, 3.9rem); }
.tile-visits .tile-label { margin-inline: auto; }
.tile-cube { position: absolute; z-index: -1; bottom: 14%; left: 50%; width: min(96%, 470px); translate: -50% 0; filter: drop-shadow(0 30px 50px rgb(0 10 40 / .7)); }

.tile-now { grid-area: now; }
.bars { display: grid; gap: 11px; margin-top: 18px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .86rem; font-weight: 500; }
.bar-name { overflow: hidden; color: #c9cfdb; text-overflow: ellipsis; white-space: nowrap; }
.bar-count { color: var(--ice); font-weight: 700; }
.bar-svg { grid-column: 1 / -1; width: 100%; height: 6px; border-radius: 3px; }
.bar-bg { fill: #182133; }
.bar-fill { fill: var(--ice); transform-box: fill-box; transform-origin: left center; }

.tile-peak { grid-area: peak; min-height: 400px; }
.peaks { position: relative; margin-top: auto; padding-top: 28px; }
.peaks-note { margin-top: 12px; color: var(--faint); font-size: .82rem; }
.peak-svg { display: block; width: 100%; height: auto; overflow: visible; }
.peak { fill: #23324f; transform-box: fill-box; transform-origin: bottom center; transition: fill .2s; }
.peak-top { fill: var(--ice); transform-box: fill-box; transform-origin: bottom center; transition: fill .2s; }
.col { cursor: default; outline: none; }
.col-hit { fill: transparent; }
.col.is-on .peak { fill: #4a6aa6; }
.col.is-on .peak-top { fill: var(--ice-hot); }
.col:focus-visible .col-hit { stroke: var(--ice); stroke-width: 2; rx: 6; }
/* the game under the pointer, over its column */
.peak-tip { position: absolute; z-index: 2; left: 0; top: 0; display: grid; gap: 1px; max-width: 220px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0f1828; box-shadow: 0 12px 28px rgb(0 0 0 / .5); pointer-events: none; white-space: nowrap; translate: var(--x, 0) var(--y, 0); transform: translate(-50%, calc(-100% - 10px)); }
.peak-tip b { overflow: hidden; font-size: .92rem; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; }
.peak-tip span { color: var(--ice); font-size: .82rem; font-weight: 600; }

.tile-members { grid-area: members; min-height: 460px; }
.icons { position: relative; height: 320px; margin: auto -6px -8px; }
.icons img { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 16px 30px rgb(0 0 0 / .5); }
.icons img:nth-child(1) { left: 4%; top: 30%; rotate: -10deg; }
.icons img:nth-child(2) { left: 30%; top: 2%; z-index: 1; width: 44%; rotate: 4deg; }
.icons img:nth-child(3) { right: 3%; top: 28%; rotate: 12deg; }
.icons img:nth-child(4) { left: 14%; bottom: -16%; rotate: 8deg; }
.icons img:nth-child(5) { right: 16%; bottom: -12%; z-index: 1; rotate: -6deg; }
.icons img:nth-child(6) { display: none; }

.tile-favs { grid-area: favs; justify-content: flex-end; }

.roll { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* the window is the hidden digit's own line box; clip-path crops the strip to
   it without touching the baseline the way overflow: hidden would */
.d { position: relative; display: inline-block; clip-path: inset(0 -.08em); }
.d-ghost { visibility: hidden; }
.d-strip { position: absolute; top: 0; left: 0; right: 0; }
.d-strip > span { display: block; height: 1lh; text-align: center; }
.d[data-d="1"] .d-strip { transform: translateY(-10%); }
.d[data-d="2"] .d-strip { transform: translateY(-20%); }
.d[data-d="3"] .d-strip { transform: translateY(-30%); }
.d[data-d="4"] .d-strip { transform: translateY(-40%); }
.d[data-d="5"] .d-strip { transform: translateY(-50%); }
.d[data-d="6"] .d-strip { transform: translateY(-60%); }
.d[data-d="7"] .d-strip { transform: translateY(-70%); }
.d[data-d="8"] .d-strip { transform: translateY(-80%); }
.d[data-d="9"] .d-strip { transform: translateY(-90%); }
/* the roll in: every strip starts at 0 and spins up to its digit */
.roll.is-rolling .d-strip { animation: roll-in 1.9s cubic-bezier(.2, .75, .15, 1) both; animation-delay: var(--delay, 0s); }
@keyframes roll-in { from { transform: translateY(0); } }
/* after that, a changed count turns over to its new digit */
.roll.is-rolled .d-strip { transition: transform 1.1s var(--out); }

/* ---------- about us ---------- */

/* Three of our games as tilted squares, each with a thin outline square set
   off at its own angle, beside the copy. */
.about { padding: clamp(64px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(40px, 7vw, 110px); }
.frames { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.frame { position: absolute; display: block; aspect-ratio: 1; }
.frame::before { position: absolute; z-index: -1; inset: -5%; border: 1.5px solid var(--ice); border-radius: 8px; content: ""; rotate: 9deg; }
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 30px 60px rgb(0 0 0 / .6); }
.frame:nth-child(1) { z-index: 2; left: 18%; top: 22%; width: 60%; rotate: -12deg; }
.frame:nth-child(2) { z-index: 1; left: 2%; top: 0; width: 38%; rotate: 8deg; }
.frame:nth-child(2)::before { border-color: var(--blue); rotate: -10deg; }
.frame:nth-child(3) { z-index: 3; right: 0; bottom: 2%; width: 34%; rotate: 10deg; }
.frame:nth-child(3)::before { border-color: #7d8ba6; rotate: -8deg; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy > p { max-width: 52ch; color: #c3cad8; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.7; text-wrap: pretty; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.member { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.member-art { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: #16264a; }
.member-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transform: scale(1.35) translateY(9%); }
.member-art img.is-placeholder { padding: 10px; transform: none; }
.member-info { display: grid; justify-items: start; min-width: 0; }
.member-name { display: flex; align-items: center; gap: 5px; font-size: 1.02rem; font-weight: 700; line-height: 1.2; }
.verified { width: 17px; height: 17px; flex-shrink: 0; }
.member-role { color: var(--muted); font-size: .82rem; }
.member-link { margin-top: 3px; color: var(--ice); font-size: .84rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgb(156 207 255 / .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.member-link:hover { text-decoration-color: var(--ice); }

/* ---------- call to action ---------- */

.contact { padding: 0 0 clamp(64px, 7vw, 96px); }
.cta { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 24px; padding: clamp(36px, 5.5vw, 76px); border: 1px solid var(--rule); border-radius: 24px; background: var(--surface); }
.cta h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.cta-copy p { max-width: 34ch; margin-top: 16px; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cta-cube { justify-self: center; width: clamp(200px, 28vw, 380px); height: auto; margin-block: -30px; filter: drop-shadow(0 30px 44px rgb(0 0 0 / .6)); }

/* ---------- footer ---------- */

.foot { padding: 72px 0 28px; border-top: 1px solid var(--line); background: var(--ink); }
.foot-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .6fr) minmax(0, 1.2fr) minmax(0, .6fr); gap: 40px; }
.foot-motto { margin-top: 16px; color: #c9cfdb; font-size: 1.15rem; }
.foot-btn { margin-top: 26px; min-height: 46px; }
.foot-col { display: grid; align-content: start; gap: 12px; color: var(--muted); font-size: .9rem; }
.foot-title { margin-bottom: 6px; color: var(--white); font-size: 1rem; font-weight: 600; }
.foot-games { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.foot-games .foot-title { grid-column: 1 / -1; }
.foot a { transition: color .2s; }
.foot-col a:hover { color: var(--white); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--faint); font-size: .78rem; }

/* ---------- scroll motion ---------- */

/* Tied to scroll position and run by the browser, only where scroll
   timelines exist: elsewhere everything sits in place. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .frame { animation: frame-in auto var(--soft) both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .bar-fill { animation: grow-x auto var(--soft) both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    .peak, .peak-top { animation: grow-y auto var(--soft) both; animation-timeline: view(); animation-range: entry 30% cover 50%; }
  }
}
/* each square swings in from a little further round than where it rests */
@keyframes frame-in { from { opacity: 0; transform: translateY(60px) rotate(-10deg) scale(.9); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }

/* ---------- smaller screens ---------- */


@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "visits visits" "now peak" "members favs"; }
  .tile-visits { min-height: 560px; }
  .about-inner { grid-template-columns: minmax(0, 1fr); }
  .frames { max-width: 480px; }
  .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .nav-inner, .nav.is-stuck .nav-inner { display: flex; gap: 12px; height: 64px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #1d222d; color: var(--white); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
  .is-menu-open .menu-btn { background: var(--ice); color: var(--ink); }
  /* a full-screen sheet under the bar: big links, the live count, one button */
  .nav.is-menu-open { background: var(--ink); border-bottom-color: var(--rule); }
  .mobile-menu { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--ink); overflow-y: auto; animation: sheet-in .3s var(--out) both; }
  .mm-link { padding: 18px 2px; border-bottom: 1px solid var(--rule); font: var(--display); font-size: 1.9rem; letter-spacing: -.035em; }
  .mm-link:active { color: var(--ice); }
  .mm-now { margin-top: 28px; color: var(--muted); font-size: 1rem; }
  .mm-now b { color: var(--white); font-size: 1.3rem; }
  .mm-cta { margin-top: auto; width: 100%; min-height: 54px; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .hero { min-height: 600px; }
  .mosaic-rows { width: 230%; --tile: 25vw; --tile-gap: 10px; }
  .panel-stats { width: 100%; }
  .pstat { padding-inline: 10px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 0; padding-inline: 12px; }
  .flow-arrow { display: none; }
  .slide-stats { gap: 2px 12px; font-size: .8rem; }
  .grid, .do-grid { grid-template-columns: minmax(0, 1fr); }
  .do-card { grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; min-height: 0; }
  .card-icon { width: 44px; }
  .grid.is-folded .card:nth-child(n + 4):not(.card-more) { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visits" "now" "peak" "members" "favs"; }
  .tile-visits { min-height: 500px; }
  .tile-peak, .tile-members { min-height: 0; }
  .icons { height: 260px; margin-top: 24px; }
  .frames { width: 92%; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; border-radius: 20px; }
  .cta-buttons .btn { flex: 1 1 100%; }
  .cta-cube { justify-self: end; width: 180px; margin: -20px -6px -22px 0; }
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .foot-games { grid-column: 1 / -1; order: 3; }
  .foot-bottom { display: grid; gap: 8px; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
