/* Toko mainan anak: ceria, tebal, dan banyak gerak. Warna dan huruf ada di :root. */
:root {
  --ink: #2b1d52;
  --body: #463b66;
  --muted: #6f6590;
  --paper: #fff8ec;
  --card: #ffffff;
  --line: #2b1d52;
  --pink: #ff5c8a;
  --pink-soft: #ffd3e0;
  --yellow: #ffc93c;
  --yellow-soft: #ffeaa6;
  --blue: #3ec5ff;
  --blue-soft: #cdeeff;
  --green: #4cd389;
  --purple: #8b5cf6;
  --orange: #ff8a3d;
  --sky: #bfeaff;
  --wa: #25d366;
  --radius: 26px;
  --display: 'Fredoka', 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  background-image: radial-gradient(rgb(43 29 82 / 0.08) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
  color: var(--body);
  font: 17px/1.65 var(--font);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}
h3 {
  font-size: 1.45rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Bar warna-warni di atas, mengikuti scroll */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  height: 6px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(
    90deg,
    var(--pink),
    var(--orange),
    var(--yellow),
    var(--green),
    var(--blue),
    var(--purple)
  );
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 1.3rem/1 var(--display);
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.brand:hover img {
  transform: rotate(-12deg) scale(1.12);
}
.nav nav {
  display: flex;
  gap: 6px;
}
.nav nav a {
  color: var(--ink);
  text-decoration: none;
  font: 600 1rem/1 var(--display);
  padding: 10px 14px;
  border-radius: 999px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.nav nav a:hover {
  background: var(--yellow-soft);
  transform: rotate(-3deg);
}

/* Tombol tebal yang bisa "ditekan" */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  font: 600 1.08rem/1 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}
.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}
.button.primary {
  background: var(--yellow);
}
.button.wa {
  background: var(--wa);
}
.button.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.98rem;
  box-shadow: 0 4px 0 var(--ink);
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 90px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.pill {
  display: inline-block;
  padding: 5px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: 600 0.9rem/1.3 var(--display);
  color: var(--ink);
  background: var(--pink-soft);
  rotate: -3deg;
}
.pill:nth-child(2) {
  background: var(--yellow-soft);
  rotate: 2deg;
}
.pill:nth-child(3) {
  background: var(--blue-soft);
  rotate: -1deg;
}
.wiggle {
  display: inline-block;
}
.wiggle .word {
  display: inline-block;
  white-space: nowrap;
}
.wiggle .ch {
  display: inline-block;
  color: var(--pink);
  text-shadow: 3px 3px 0 var(--ink);
  animation: hop 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}
.wiggle .ch:nth-of-type(5n + 2) {
  color: var(--orange);
}
.wiggle .ch:nth-of-type(5n + 3) {
  color: var(--yellow);
}
.wiggle .ch:nth-of-type(5n + 4) {
  color: var(--green);
}
.wiggle .ch:nth-of-type(5n + 5) {
  color: var(--blue);
}
.wiggle:not(.ready) {
  color: var(--pink);
}
.lead {
  font-size: 1.2rem;
  max-width: 36rem;
}
.lead strong {
  color: var(--ink);
  background: linear-gradient(transparent 60%, var(--yellow-soft) 60%);
}

/* Panggung 3D di hero */
.stage {
  position: relative;
  min-height: 460px;
}
.float {
  position: absolute;
  translate: calc(var(--mx, 0) * var(--d, 0) * 1px) calc(var(--my, 0) * var(--d, 0) * 1px);
  transition: translate 0.3s ease-out;
}
.cube-wrap {
  --s: 128px;
  width: var(--s);
  height: var(--s);
  perspective: 700px;
  animation: bob 5s ease-in-out infinite;
}
.cube-wrap.big {
  top: 4%;
  left: 6%;
}
.cube-wrap.tiny {
  --s: 66px;
  bottom: 34%;
  right: 4%;
  animation-delay: -2s;
}
.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: roll 14s linear infinite;
}
.tiny .cube {
  animation-duration: 9s;
  animation-direction: reverse;
}
.cube span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 20px;
  font: 700 calc(var(--s) * 0.52) / 1 var(--display);
  color: #fff;
  text-shadow: 3px 3px 0 var(--ink);
  box-shadow: inset 0 -10px 0 rgb(0 0 0 / 0.12);
}
.cube .f1 {
  background: var(--pink);
  transform: translateZ(calc(var(--s) / 2));
}
.cube .f2 {
  background: var(--blue);
  transform: rotateY(180deg) translateZ(calc(var(--s) / 2));
}
.cube .f3 {
  background: var(--green);
  transform: rotateY(90deg) translateZ(calc(var(--s) / 2));
}
.cube .f4 {
  background: var(--yellow);
  transform: rotateY(-90deg) translateZ(calc(var(--s) / 2));
}
.cube .f5 {
  background: var(--orange);
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
}
.cube .f6 {
  background: var(--purple);
  transform: rotateX(-90deg) translateZ(calc(var(--s) / 2));
}
.tiny .f1,
.tiny .f2 {
  background: var(--purple);
}
.tiny .f3,
.tiny .f4 {
  background: var(--pink);
}
.tiny .f5,
.tiny .f6 {
  background: var(--yellow);
}
.tiny .cube span {
  border-width: 3px;
  border-radius: 12px;
}

.ball {
  top: 2%;
  right: 10%;
  width: 92px;
  height: 160px;
}
.ball-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background:
    radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.85) 0 9%, transparent 10%),
    radial-gradient(circle, #fff 0 15%, transparent 16%),
    conic-gradient(var(--pink) 0 25%, var(--yellow) 0 50%, var(--blue) 0 75%, var(--green) 0);
  transform-origin: 50% 100%;
  animation: bounce 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.ball-shadow {
  position: absolute;
  bottom: 0;
  left: 14px;
  width: 64px;
  height: 12px;
  border-radius: 50%;
  background: rgb(43 29 82 / 0.18);
  animation: shadow 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.spark {
  position: absolute;
  width: 34px;
  height: 34px;
  background: var(--c);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: twinkle 3s ease-in-out infinite;
}
.spark.small {
  width: 22px;
  height: 22px;
}
.dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid var(--ink);
  animation: bob 4s ease-in-out infinite;
}

.dumpling-spot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dumpling {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dumpling::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 2px;
  height: 18px;
  border-radius: 50%;
  background: rgb(43 29 82 / 0.16);
  z-index: -1;
}
.dumpling svg {
  display: block;
  width: clamp(180px, 22vw, 240px);
  height: auto;
  transform-origin: 50% 94%;
  animation: breathe 2.4s ease-in-out infinite;
}
.dumpling.squish svg {
  animation: squish 0.7s ease-out;
}
.dumpling:hover svg {
  animation-duration: 1.2s;
}
.dumpling:focus-visible {
  outline: 4px dashed var(--purple);
  outline-offset: 6px;
  border-radius: 30px;
}
.dumpling .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.5s infinite;
}
.dumpling .eyes-happy {
  display: none;
}
.dumpling.squish .eyes-happy {
  display: inline;
}
.dumpling.squish .eyes-open {
  display: none;
}
.squish-hint {
  margin: 8px 0 0;
  padding: 6px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font: 600 0.98rem/1.3 var(--display);
  color: var(--ink);
  rotate: -2deg;
  box-shadow: 3px 3px 0 var(--ink);
}
.pop {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  font: 700 1.6rem/1 var(--display);
  color: var(--c);
  text-shadow: 2px 2px 0 var(--ink);
  animation: pop 0.9s ease-out forwards;
}

/* Pita berjalan */
.marquee {
  overflow: hidden;
  margin: 24px -20px 8px;
  background: var(--purple);
  border-block: 3px solid var(--ink);
  rotate: -2deg;
  color: #fff;
}
.track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: slide 26s linear infinite;
}
.track span {
  padding: 14px 18px;
  font: 600 clamp(1.15rem, 2.4vw, 1.6rem) / 1 var(--display);
  white-space: nowrap;
}
.track i {
  font-style: normal;
  color: var(--yellow);
  font-size: 1.4rem;
}

.section {
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 48px);
}
.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 44px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font: 600 1rem/1 var(--display);
  color: var(--pink);
  letter-spacing: 0.02em;
}

/* Kartu yang miring mengikuti kursor */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px 26px;
  box-shadow: 8px 8px 0 var(--ink);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.card:hover {
  box-shadow: 12px 12px 0 var(--ink);
}
.card-art {
  display: grid;
  place-items: center;
  height: 170px;
  margin-bottom: 18px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  transform-style: preserve-3d;
  background-image: radial-gradient(rgb(255 255 255 / 0.7) 2px, transparent 2px);
  background-size: 18px 18px;
}
.card-art svg {
  width: 62%;
  height: 80%;
  transform: translateZ(50px);
  animation: bob 4s ease-in-out infinite;
}
.tone-pink .card-art {
  background-color: var(--pink-soft);
}
.tone-yellow .card-art {
  background-color: var(--yellow-soft);
}
.tone-blue .card-art {
  background-color: var(--blue-soft);
}
.tone-yellow .card-art svg {
  animation-delay: -1.3s;
}
.tone-blue .card-art svg {
  animation-delay: -2.6s;
}
.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: 600 0.85rem/1.4 var(--display);
  color: var(--ink);
}
.tone-pink .tag {
  background: var(--pink);
  color: #fff;
}
.tone-yellow .tag {
  background: var(--yellow);
}
.tone-blue .tag {
  background: var(--blue);
}
.card-link {
  font: 600 1.08rem/1 var(--display);
  text-decoration: underline wavy var(--pink);
  text-underline-offset: 6px;
}
.card-link span {
  display: inline-block;
  transition: transform 0.2s;
}
.card-link:hover span {
  transform: translateX(6px);
}

/* Langit dan jalan untuk sepeda */
.sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--sky), #e6f7ff);
  border-block: 3px solid var(--ink);
}
.cloud {
  position: absolute;
  left: -200px;
  width: 150px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--ink);
  animation: drift var(--t, 40s) linear infinite;
}
.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: #fff;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
.cloud::before {
  left: 22px;
  bottom: 30px;
  width: 54px;
  height: 34px;
}
.cloud::after {
  left: 66px;
  bottom: 30px;
  width: 44px;
  height: 26px;
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 44px;
  align-items: center;
}
.sky .section {
  position: relative;
}
.hl {
  color: var(--pink);
  text-shadow: 3px 3px 0 var(--ink);
}
.ride {
  position: relative;
  height: 320px;
}
.bike {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: min(380px, 92%);
  height: auto;
  translate: -50% 0;
  animation: ride 0.5s ease-in-out infinite alternate;
}
.bike .wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 0.9s linear infinite;
}
.bike .wheel.small {
  animation-duration: 0.45s;
}
.bike .flag {
  transform-box: fill-box;
  transform-origin: left center;
  animation: wave 0.4s ease-in-out infinite alternate;
}
.road {
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: 0;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #5b4f80;
  overflow: hidden;
}
.road::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  background: repeating-linear-gradient(90deg, #fff 0 36px, transparent 36px 72px);
  animation: road 0.5s linear infinite;
}

/* Langkah pesan */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.steps li {
  position: relative;
  padding: 44px 24px 24px;
  margin-top: 28px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  rotate: -1.5deg;
}
.steps li:nth-child(2) {
  rotate: 1.2deg;
}
.steps li:nth-child(3) {
  rotate: -0.6deg;
}
.steps p {
  margin: 0;
}
.num {
  position: absolute;
  top: -32px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--c);
  box-shadow: 4px 4px 0 var(--ink);
  font: 700 1.9rem/1 var(--display);
  color: var(--ink);
  animation: wobble 3s ease-in-out infinite;
}
.steps li:nth-child(2) .num {
  animation-delay: -1s;
}
.steps li:nth-child(3) .num {
  animation-delay: -2s;
}

/* Kontak */
.contact {
  background-color: var(--yellow);
  background-image: radial-gradient(rgb(255 255 255 / 0.45) 3px, transparent 3px);
  background-size: 30px 30px;
  border-top: 3px solid var(--ink);
}
.contact .eyebrow {
  color: var(--ink);
}
.contact p {
  color: var(--ink);
}
.form {
  display: grid;
  gap: 14px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 10px 10px 0 var(--ink);
}
.form label {
  display: grid;
  gap: 6px;
  font: 600 1rem/1.3 var(--display);
  color: var(--ink);
}
.form input,
.form textarea {
  font: inherit;
  font-family: var(--font);
  font-weight: 400;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.form input:focus,
.form textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
.form .hp {
  position: absolute;
  left: -9999px;
}
.status {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  min-height: 1.4em;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  padding: 40px 16px 104px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
}
.footer p {
  margin: 0;
}
.footer .small {
  font-size: 14px;
  opacity: 0.75;
}
.footer img {
  margin-bottom: 8px;
  animation: wobble 3s ease-in-out infinite;
}

.wa-float {
  position: fixed;
  z-index: 25;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--wa);
  color: #fff;
  box-shadow: 0 5px 0 var(--ink);
  animation: nudge 5s ease-in-out infinite;
}
.missing {
  text-align: center;
}
.missing svg {
  margin: 0 auto 12px;
  animation: breathe 2.4s ease-in-out infinite;
  transform-origin: 50% 94%;
}

/* Muncul saat discroll (pakai translate supaya tidak bentrok dengan efek miring) */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.7s ease,
    translate 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.reveal.in {
  opacity: 1;
  translate: none;
}
.card,
.card.reveal {
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    opacity 0.7s ease,
    translate 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.steps .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.steps .reveal:nth-child(3) {
  transition-delay: 0.24s;
}
/* kartu: jeda hanya untuk munculnya, bukan untuk miringnya */
.cards .reveal:nth-child(2) {
  transition-delay: 0s, 0s, 0.12s, 0.12s;
}
.cards .reveal:nth-child(3) {
  transition-delay: 0s, 0s, 0.24s, 0.24s;
}

@keyframes hop {
  0%,
  60%,
  100% {
    transform: translateY(0) rotate(0);
  }
  30% {
    transform: translateY(-0.18em) rotate(-6deg);
  }
}
@keyframes roll {
  from {
    transform: rotateX(-18deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) scale(1.12, 0.86) rotate(0deg);
  }
  12% {
    transform: translateY(-20px) scale(0.95, 1.06) rotate(40deg);
  }
  50% {
    transform: translateY(-60px) scale(1) rotate(160deg);
  }
  88% {
    transform: translateY(-14px) scale(0.97, 1.04) rotate(300deg);
  }
}
.ball-body {
  translate: 0 60px;
}
@keyframes shadow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.55);
    opacity: 0.5;
  }
}
@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(0.6) rotate(45deg);
  }
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.03, 0.96);
  }
}
@keyframes squish {
  0% {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(1.3, 0.62);
  }
  50% {
    transform: scale(0.86, 1.16);
  }
  70% {
    transform: scale(1.08, 0.94);
  }
  85% {
    transform: scale(0.98, 1.02);
  }
  100% {
    transform: scale(1, 1);
  }
}
@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}
@keyframes pop {
  from {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2) rotate(var(--r));
    opacity: 0;
  }
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
@keyframes drift {
  to {
    transform: translateX(calc(100vw + 400px));
  }
}
@keyframes ride {
  to {
    transform: translateY(-5px) rotate(-1deg);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes wave {
  to {
    transform: skewY(-12deg) scaleX(0.85);
  }
}
@keyframes road {
  to {
    background-position-x: -72px;
  }
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg);
  }
}
@keyframes nudge {
  0%,
  86%,
  100% {
    transform: rotate(0) scale(1);
  }
  89% {
    transform: rotate(-14deg) scale(1.1);
  }
  92% {
    transform: rotate(12deg) scale(1.1);
  }
  95% {
    transform: rotate(-6deg) scale(1.05);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .stage {
    min-height: 400px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 760px) {
  .nav nav {
    display: none;
  }
}
@media (max-width: 480px) {
  .brand {
    font-size: 1.1rem;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .stage {
    min-height: 360px;
  }
  .cube-wrap.big {
    --s: 96px;
    left: 2%;
  }
  .cube-wrap.tiny {
    --s: 52px;
  }
  .ball {
    right: 4%;
    transform: scale(0.8);
  }
  .ride {
    height: 250px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal {
    opacity: 1;
    translate: none;
  }
}
