:root {
  --blue: #84b9ff;
  --sky: #bfe3f5;
  --pink: #e09cc5;
  --yellow: #ffd15c;
  --cream: #f6f0e0;
  --ink: #141414;
  --white: #fff;
  --radius: 20px;
  --hard: 0 3px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 48px);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sv: 0;
  --sa: 0;
  --wx: 0;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 Outfit, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h2 { font-size: clamp(24px, 2.5vw, 32px); font-weight: 600; line-height: 1.2; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1140px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: #fff; padding: 8px 14px; }

/* Header */
.site-head {
  position: fixed; z-index: 40; top: 12px; left: 50%; translate: -50% 0; width: min(1000px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 7px 8px 7px 20px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 0 2px 0 var(--ink);
}
.logo { font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.tab ul { display: flex; gap: clamp(16px, 2.6vw, 32px); }
.tab a { font-size: 16px; text-decoration: none; display: inline-block; transition: scale .25s var(--spring), translate .25s var(--spring); }
.tab a:hover { translate: 0 -2px; scale: 1.06; }
.tab a[aria-current] { font-weight: 600; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-block; border: 1.5px solid var(--ink); border-radius: 999px; padding: 11px 24px; background: #fff; color: var(--ink);
  font: 600 16px/1.2 Outfit, system-ui, sans-serif; text-decoration: none; cursor: pointer; box-shadow: var(--hard);
  transition: translate .25s var(--spring), scale .2s var(--spring), box-shadow .15s;
}
.btn:hover { translate: 0 -3px; box-shadow: 0 6px 0 var(--ink); }
.btn:active { translate: 0 2px; scale: 1.05 .93; box-shadow: 0 1px 0 var(--ink); }
.btn--pill { background: var(--yellow); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--sm { padding: 8px 18px; font-size: 15px; }

/* Hero */
.hero { position: relative; background: var(--bg); padding: clamp(120px, 13vw, 170px) var(--gutter) clamp(90px, 9vw, 130px); text-align: center; }
.hero h1 {
  font-weight: 600; line-height: 1.05; letter-spacing: -.01em; color: #fff; font-size: clamp(42px, 6.4vw, 88px);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}
.hero-sub { margin-top: 6px; font-size: clamp(17px, 1.7vw, 22px); font-weight: 500; }
.hero--video { min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #0c1320; padding-bottom: clamp(110px, 12vw, 150px); }
.hero-video, .hero-tint { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; scale: var(--hero-scale, 1.04); }
.hero-tint { background: linear-gradient(rgba(8, 12, 22, .62), rgba(8, 12, 22, .74)); }
.hero-content { position: relative; z-index: 2; color: #fff; translate: 0 var(--hero-y, 0); opacity: var(--hero-o, 1); }
.hero--video h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 700; -webkit-text-stroke: 0; text-shadow: 0 4px 0 rgba(0, 0, 0, .55); }
.hero--video h1 span { display: block; }
.hero-lede { max-width: 560px; margin: 16px auto 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: clamp(54px, 8vw, 96px); width: 44px; height: 44px; margin-left: -22px; opacity: var(--hero-o, 1); animation: bob 1.5s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 9px; } }

/* Sections and waves */
.sec { position: relative; background: var(--bg, #fff); padding-block: clamp(64px, 7vw, 96px); }
.wave { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(52px, 8vw, 116px); overflow: hidden; pointer-events: none; }
.wave svg {
  position: absolute; left: 0; bottom: 0; display: block; width: max(125%, 1100px); height: 62%;
  transform-origin: 50% 100%; transform: translateX(calc(var(--wx) * -1%)) scaleY(calc(1 + var(--sa) * .55));
}
.wave path { fill: var(--bg, #fff); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.head { text-align: center; margin-bottom: clamp(26px, 3.4vw, 40px); }
.head p { margin-top: 4px; }
.center { text-align: center; margin-top: clamp(28px, 3.4vw, 40px); }
.sticker { position: absolute; z-index: 4; width: clamp(70px, 8vw, 112px); transition: rotate .3s var(--spring), scale .3s var(--spring); }
.sticker:hover { rotate: 10deg; scale: 1.14; }

/* Jelly: cards lean with scroll speed and spring back */
.tile, .svc-card, .review, .step, .gallery img, .svc-row > img { transform: skewY(calc(var(--sv) * 1deg)); }

/* Cards */
.card { background: var(--cream); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card { display: block; overflow: hidden; text-decoration: none; transition: translate .3s var(--spring), rotate .3s var(--spring), box-shadow .15s; }
.svc-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 1.5px solid var(--ink); transition: scale .45s var(--spring); }
.svc-card > div { padding: 14px 16px 16px; }
.svc-card p { margin-top: 4px; font-size: 15px; line-height: 1.4; }
.svc-card:hover { translate: 0 -7px; rotate: -1deg; box-shadow: 0 7px 0 var(--ink); }
.svc-card:hover img { scale: 1.07; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: clamp(40px, 5vw, 64px); }
.stats b { display: block; font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 15px; }

/* Services */
.svc-rows { display: grid; gap: clamp(36px, 5vw, 64px); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 56px); align-items: center; scroll-margin-top: 90px; }
.svc-row:nth-child(even) > img { order: 2; }
.svc-row > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard); }
.svc-row p { margin: 8px 0 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px 18px 18px; counter-increment: s; }
.step::before { content: counter(s); position: absolute; top: -15px; left: 16px; width: 32px; height: 32px; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 50%; }
.step p { margin-top: 4px; font-size: 15px; line-height: 1.4; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.filters button { font: 500 15px Outfit, system-ui, sans-serif; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; cursor: pointer; transition: scale .25s var(--spring); }
.filters button:hover { scale: 1.08; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tile { display: block; overflow: hidden; border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: var(--hard); background: #fff; text-decoration: none; transition: translate .3s var(--spring), rotate .3s var(--spring), box-shadow .15s; }
.tile:hover { translate: 0 -6px; rotate: -.8deg; box-shadow: 0 7px 0 var(--ink); }
.tile[hidden] { display: none; }
.tile img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1.5px solid var(--ink); transition: scale .45s var(--spring); }
.tile:hover img { scale: 1.06; }
.tile span { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; background: #fff; font-weight: 500; font-size: 15px; line-height: 1.25; }
.tile span i { font-style: normal; font-weight: 400; font-size: 13px; white-space: nowrap; }
.tile-media { position: relative; display: block !important; padding: 0 !important; background: none !important; overflow: hidden; }
.tiles--play .tile img { aspect-ratio: 5/4; }
.tile--play p { padding: 0 12px 12px; font-size: 14px; line-height: 1.4; }
.play-badge {
  position: absolute; right: 10px; bottom: 10px; display: inline-block !important; padding: 6px 13px !important;
  background: var(--yellow) !important; border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 0 2px 0 var(--ink);
  font-weight: 600; font-size: 14px !important; line-height: 1.2 !important; transition: scale .25s var(--spring);
}
.tile--play:hover .play-badge { scale: 1.12; }
.review-from { width: 100%; font-size: 13px; opacity: .7; }
.sub-head { text-align: center; font-size: clamp(20px, 2vw, 26px); margin: clamp(40px, 5vw, 60px) 0 22px; }
.sub-head--first { margin-top: 0; }

/* Game category buttons on the home page. */
.sec[id] { scroll-margin-top: 64px; }
.game-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.game-tabs button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 20px; cursor: pointer;
  font: 600 16px Outfit, system-ui, sans-serif; color: var(--ink); background: #fff;
  border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: var(--hard);
  transition: translate .25s var(--spring), box-shadow .15s;
}
.game-tabs button:hover { translate: 0 -2px; box-shadow: 0 5px 0 var(--ink); }
.game-tabs button span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--yellow); border: 1.5px solid var(--ink); font-size: 13px; line-height: 1.4; text-align: center; }
.game-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.game-tabs button[aria-selected="true"] span { color: var(--ink); }
.game-panel-note { text-align: center; font-size: 14.5px; margin-bottom: 18px; opacity: .8; }
.game-panel:focus-visible { outline-offset: 8px; }

/* Tools and game-type tags under "What I do". */
.skill-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 clamp(22px, 3vw, 32px); }
.skill-tags li { padding: 5px 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 0 2px 0 var(--ink); font-weight: 600; font-size: 14px; }
.skill-tags li:nth-child(-n+2) { background: var(--ink); color: #fff; }

/* Store games: a button per store. */
.tile--store { display: flex; flex-direction: column; }
.tile--store p { padding: 0 12px; font-size: 14px; line-height: 1.4; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 12px 12px 14px; }
.store-btn {
  display: inline-block; padding: 6px 13px; border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 0 2px 0 var(--ink);
  background: var(--yellow); font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none;
  transition: translate .25s var(--spring), box-shadow .15s;
}
.store-btn:nth-child(2) { background: #fff; }
.store-btn:hover { translate: 0 -2px; box-shadow: 0 4px 0 var(--ink); }
.tiles--compact { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles--compact .tile span { font-size: 14px; }
.tiles--compact .play-badge { font-size: 12px !important; padding: 4px 10px !important; right: 8px; bottom: 8px; }
@media (max-width: 960px) { .tiles--compact { grid-template-columns: repeat(2, 1fr); } }
.hero-kicker { font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; margin-bottom: 10px; animation: rise .7s .05s var(--spring) both; }
.cs-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: center; padding: 16px; }
.cs-card + .cs-card { margin-top: 22px; }
.cs-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1.5px solid var(--ink); border-radius: 12px; }
.cs-card p { margin: 6px 0 14px; }

/* Case study */
.cover { width: 100%; aspect-ratio: 2/1; object-fit: cover; border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard); }
.cs { margin-top: clamp(30px, 3.6vw, 44px); }
.cs h2 { font-size: 22px; margin-bottom: 6px; }
.cs ul { list-style: disc; padding-left: 22px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: var(--hard); }

/* Reviews */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .review { flex: 0 0 min(360px, 86%); scroll-snap-align: center; }
.review { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.review footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.review footer b { font-weight: 600; }
.stars { color: #d98e00; font-size: 14px; letter-spacing: 1px; }
.review blockquote { margin: 0; font-size: 15.5px; line-height: 1.45; }
.badge { background: #2fb36d; color: #fff; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.rail-btns { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.rail-btns button { width: 42px; height: 42px; font-size: 19px; line-height: 1; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: var(--hard); cursor: pointer; color: var(--ink); transition: scale .25s var(--spring); }
.rail-btns button:hover { scale: 1.12; }
.rail-btns button:active { scale: .92; }
.masonry { columns: 3 290px; column-gap: 20px; }
.masonry .review { break-inside: avoid; margin-bottom: 20px; }

/* FAQ */
.faq { overflow: hidden; background: #fff; }
.faq details + details { border-top: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 15px 20px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); rotate: 45deg; transition: rotate .3s var(--spring); }
.faq details[open] summary::after { rotate: 225deg; }
.faq details p { padding: 0 20px 16px; }

/* Story */
.story p + p { margin-top: 14px; }
.lead { font-size: clamp(22px, 2.3vw, 28px); font-weight: 500; line-height: 1.3; }

/* CTA */
.cta-band { text-align: center; }
.cta-band p { margin: 4px 0 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info h2 { margin-bottom: 8px; }
.contact-info h3 { margin-top: 24px; }
.contact-info a { font-weight: 500; word-break: break-word; }
.socials { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(18px, 2.4vw, 28px); }
.contact-form label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; padding: 11px 14px; font: 400 16px Outfit, system-ui, sans-serif; color: var(--ink); transition: box-shadow .15s, translate .2s var(--spring); }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; box-shadow: 0 3px 0 var(--ink); translate: 0 -2px; }
.contact-form textarea { min-height: 170px; resize: vertical; }
.form-note { margin-top: 10px; font-weight: 500; }

/* Footer */
.site-foot { background: var(--ink); color: #fff; padding-block: 34px 22px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: center; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a { text-decoration: none; font-size: 15px; }
.foot-nav a:hover { text-decoration: underline; }
.fine { margin-top: 18px; font-size: 13px; opacity: .7; }

/* Scroll reveal: springy pop in. Only hidden when JavaScript is running. */
.reveal { transition: opacity .35s ease, translate .7s var(--spring), scale .7s var(--spring), rotate .3s var(--spring), box-shadow .15s; transition-delay: var(--d, 0ms); }
.js .reveal:not(.in) { opacity: 0; translate: 0 38px; scale: .94; }
.hero--video h1 span { animation: pop .8s var(--spring) both; }
.hero--video h1 span:nth-child(2) { animation-delay: .12s; }
.hero-lede { animation: rise .7s .25s var(--spring) both; }
.hero-actions { animation: rise .7s .35s var(--spring) both; }
@keyframes pop { from { opacity: 0; scale: .7; translate: 0 26px; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }

/* Cartoon cursor (mouse only, added by site.js) */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label { cursor: none; }
.toon-cursor { position: fixed; z-index: 100; left: 0; top: 0; width: 46px; height: 46px; pointer-events: none; will-change: transform; opacity: 0; transition: opacity .15s; }
.toon-cursor.on { opacity: 1; }
.toon-cursor svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; transition: scale .22s var(--spring), opacity .08s; transform-origin: 8% 6%; }
.toon-cursor .hand { opacity: 0; scale: .5; transform-origin: 40% 6%; }
.toon-cursor.point .arrow { opacity: 0; scale: .5; }
.toon-cursor.point .hand { opacity: 1; scale: 1; }
.toon-cursor.down svg { scale: 1.12 .82; }
.toon-cursor .eyes { animation: blink 3.6s infinite; transform-origin: 12px 21px; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.burst { position: fixed; z-index: 99; width: 16px; height: 16px; margin: -8px; pointer-events: none; }

/* The skater companion */
.pet {
  position: fixed; z-index: 35; left: 0; top: 0; width: 70px; height: 74px; pointer-events: none; will-change: transform;
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff);
}
.pet-tilt { width: 100%; height: 100%; transform-origin: 50% 100%; }
.pet svg { display: block; overflow: visible; }
.pet .rider { transition: transform .12s var(--spring); transform-origin: 40px 72px; }
.pet .arm { transition: transform .16s var(--spring); }
.pet .arm-l { transform-origin: 24px 42px; }
.pet .arm-r { transform-origin: 56px 42px; }
.pet .arm-hang, .pet .gasp { display: none; }
.pet .wheel { transform-box: fill-box; transform-origin: center; }
.pet .board { transform-origin: 40px 72px; }
.pet .eyes { transform-origin: 43px 37px; animation: blink 3.2s infinite; }
.pet.is-idle .rider { animation: pet-breathe 1.3s ease-in-out infinite; }
.pet.is-roll .wheel { animation: pet-spin .34s linear infinite; }
.pet.is-roll .rider { transform: translateY(2px) scale(1.02, .97); }
.pet.is-roll .arm-l { transform: rotate(24deg); }
.pet.is-roll .arm-r { transform: rotate(-16deg); }
.pet.is-crouch .rider { transform: translateY(5px) scale(1.09, .84); }
.pet.is-air .rider, .pet.is-flip .rider { transform: translateY(-5px) scale(.97, 1.04); }
.pet.is-air .arm-l, .pet.is-flip .arm-l { transform: rotate(48deg); }
.pet.is-air .arm-r, .pet.is-flip .arm-r { transform: rotate(-30deg); }
.pet.is-flip .board { animation: pet-kickflip .5s ease-in-out; }
.pet.is-land .rider { transform: translateY(5px) scale(1.14, .8); }
.pet.is-panic .arm-l { transform: rotate(108deg); }
.pet.is-panic .arm-r { transform: rotate(-42deg); }
.pet.is-panic .smile, .pet.is-hang .smile { display: none; }
.pet.is-panic .gasp, .pet.is-hang .gasp { display: block; }
.pet.is-hang .arm { display: none; }
.pet.is-hang .arm-hang { display: block; }
.pet.is-hang .pet-tilt { transform-origin: 50% 0; }
.pet-puff { position: fixed; z-index: 34; width: 11px; height: 11px; margin: -6px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); pointer-events: none; }
.foot-toggle { padding: 0; background: none; border: 0; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.foot-toggle[hidden] { display: none; }
.has-cursor .foot-toggle { cursor: none; }
@keyframes pet-spin { to { transform: rotate(360deg); } }
@keyframes pet-breathe { 50% { transform: translateY(1.5px) scale(1.02, .975); } }
@keyframes pet-kickflip { 0% { transform: none; } 50% { transform: translateY(-6px) scaleY(-1) rotate(-14deg); } 100% { transform: none; } }

@media (max-width: 960px) {
  .svc-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .tiles, .tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .cs-card, .svc-row { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) > img { order: 0; }
}

@media (max-width: 720px) {
  .menu-btn {
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0; font-size: 18px; line-height: 1; color: var(--ink);
    background: #fff; border: 1.5px solid var(--ink); border-radius: 50%; cursor: pointer;
  }
  .tab { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: var(--hard); padding: 6px; }
  .tab.open { display: block; }
  .tab ul { flex-direction: column; gap: 0; }
  .tab a { display: block; padding: 11px 14px; font-size: 17px; }
  .sticker { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tiles, .tiles--4, .gallery, .contact-form { grid-template-columns: 1fr; }
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .steps { row-gap: 24px; }
  .hero h1 { -webkit-text-stroke-width: 1.5px; }
}

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

/* Compact phone layout: two cards per row and tighter spacing, so more fits on screen. */
@media (max-width: 560px) {
  .sec { padding-block: 44px; }
  .head { margin-bottom: 18px; }
  .head h2 { font-size: 23px; }
  .head p { font-size: 14.5px; }
  .center { margin-top: 20px; }
  .hero { padding: 96px 16px 64px; }
  .sub-head { font-size: 19px; margin: 32px 0 14px; }

  .svc-grid, .tiles, .tiles--4, .tiles--play, .tiles--compact, .steps, .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  }
  .card, .tile { border-radius: 14px; }

  .svc-card > div { padding: 8px 10px 10px; }
  .svc-card h3 { font-size: 14px; line-height: 1.25; }
  .svc-card p { display: none; }

  .tile p { display: none; }
  .tile span { flex-direction: column; gap: 0; padding: 6px 9px; font-size: 13.5px; line-height: 1.25; }
  .tile span i { font-size: 11.5px; opacity: .75; white-space: normal; }
  .store-links { gap: 5px; padding: 2px 8px 9px; }
  .store-btn { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 8px; font-size: 11.5px; box-shadow: 0 1.5px 0 var(--ink); }
  .play-badge { font-size: 11px !important; padding: 3px 8px !important; right: 6px; bottom: 6px; }

  .game-tabs { gap: 6px; }
  .game-tabs button { min-height: 40px; padding: 7px 12px; font-size: 14px; gap: 6px; }
  .game-tabs button span { font-size: 12px; padding: 0 6px; }
  .game-panel-note { font-size: 13px; margin-bottom: 12px; }
  .filters { gap: 6px; margin-bottom: 16px; }
  .filters button { min-height: 30px; font-size: 13px; padding: 4px 11px; }

  .svc-row { grid-template-columns: 40% minmax(0, 1fr); gap: 14px; }
  .svc-row:nth-child(even) > img { order: 0; }
  .svc-row h2 { font-size: 18px; }
  .svc-row p { font-size: 14px; margin: 4px 0 10px; }
  .svc-rows { gap: 26px; }

  .steps { row-gap: 22px; }
  .step { padding: 22px 11px 11px; }
  .step h3 { font-size: 15px; }
  .step p { font-size: 13px; }

  .cs-card { grid-template-columns: 38% minmax(0, 1fr); gap: 12px; padding: 10px; }
  .cs-card h2 { font-size: 17px; }
  .cs-card p { font-size: 13px; margin: 2px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cs-card + .cs-card { margin-top: 12px; }

  .stats { margin-top: 28px; }
  .stats b { font-size: 28px; }
  .stats span { font-size: 12.5px; }

  .masonry .review { margin-bottom: 12px; }
  .review { padding: 14px 15px; gap: 6px; }
  .review blockquote { font-size: 14.5px; }
  .cs { margin-top: 24px; }
  .cs h2 { font-size: 19px; }
  .gallery { margin-top: 10px; }
}
