/* ==========================================================================
   Nhím & Cam: kawaii pink, bows, polka dots, lots of bounce
   ========================================================================== */

:root {
  --bg: #fff5f9;
  --dot: #ffdfeb;
  --rose-50: #fff0f6;
  --rose-100: #ffe1ee;
  --rose-200: #ffc8dd;
  --rose-300: #ffa6c9;
  --rose-400: #ff7eb3;
  --rose-500: #ff4f9a;
  --rose-600: #e0337a;
  --rose-700: #b8215f;
  --red: #ef3b5c;
  --orange: #ff8c42;
  --ink: #4b2638;
  --ink-2: #77475e;
  --yellow: #ffd23f;
  --white: #fff;

  --r-xl: 40px;
  --r-lg: 30px;
  --r-md: 22px;
  --pop: 0 8px 0 var(--rose-200), 0 22px 40px -16px rgba(224, 51, 122, .4);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --soft: cubic-bezier(.22, 1, .36, 1);

  --font-display: "Baloo 2", "Quicksand", system-ui, sans-serif;
  --font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Mali", "Quicksand", system-ui, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}
@supports (overflow: clip) { html { overflow-x: clip; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(var(--dot) 3px, transparent 3.6px),
    radial-gradient(var(--dot) 3px, transparent 3.6px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--rose-300); color: #fff; }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px dashed var(--rose-500);
  outline-offset: 4px;
  border-radius: 12px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  text-decoration: none; transition: top .3s var(--bounce);
}
.skip:focus { top: 16px; }

main, .footer { position: relative; z-index: 2; }

/* ---------- canvases + sky ---------- */

.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-bg { z-index: 0; opacity: .75; }
.fx-fg { z-index: 70; }

.sky {
  position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.cloud {
  position: absolute; left: 0; top: var(--top);
  width: var(--w); aspect-ratio: 2.6;
  background: #fff; border-radius: 999px;
  filter: drop-shadow(0 7px 0 rgba(255, 200, 221, .55));
  animation: drift var(--t) linear infinite;
  animation-delay: var(--dl);
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 48%; aspect-ratio: 1; left: 14%; top: -42%; }
.cloud::after { width: 34%; aspect-ratio: 1; right: 16%; top: -24%; }
@keyframes drift { from { translate: -40vw 0; } to { translate: 130vw 0; } }

/* ---------- progress ---------- */

.progress { position: fixed; inset: 0 0 auto 0; height: 5px; z-index: 90; }
.progress-bar {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--rose-300), var(--rose-500), var(--orange), var(--yellow));
  border-radius: 0 999px 999px 0;
}

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

.nav {
  position: fixed; top: 14px; left: 50%; z-index: 60;
  translate: -50% 0;
  width: min(1000px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 3px solid var(--rose-200);
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--rose-200), 0 18px 30px -18px rgba(224, 51, 122, .5);
  transition: padding .4s var(--soft), top .4s var(--soft), box-shadow .4s;
  animation: drop-in .9s var(--bounce) both;
}
.nav.scrolled { top: 10px; padding-block: 5px; }
@keyframes drop-in { from { translate: -50% -140%; } }

.brand {
  display: flex; align-items: center; gap: 8px;
  font: 800 22px/1 var(--font-display); text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.brand em { font-style: normal; color: var(--rose-500); }
.brand-bow { width: 36px; transition: rotate .5s var(--bounce); }
.brand:hover .brand-bow { rotate: -18deg; }

.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--ink-2);
  transition: background .25s, color .25s, scale .3s var(--bounce);
}
.nav nav a:hover, .nav nav a.active { background: var(--rose-100); color: var(--rose-700); }
.nav nav a:active { scale: .94; }
.nav .nav-cta { background: var(--rose-500); color: #fff; box-shadow: 0 4px 0 var(--rose-600); }
.nav .nav-cta:hover { background: var(--rose-500); color: #fff; translate: 0 -2px; box-shadow: 0 6px 0 var(--rose-600); }

@media (max-width: 680px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 19px; }
  .brand-bow { width: 30px; }
}

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

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; border: 3px solid transparent;
  font: 800 18px/1 var(--font-display); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: translate .3s var(--bounce), box-shadow .3s var(--bounce), background .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  translate: -120% 0; transition: translate .7s var(--soft);
}
.btn:hover::after { translate: 120% 0; }
.btn:hover { translate: 0 -3px; animation: jelly .6s; }
.btn:active { translate: 0 3px; }

.btn-pink { background: var(--rose-500); color: #fff; box-shadow: 0 6px 0 var(--rose-600), 0 16px 26px -12px rgba(224, 51, 122, .8); }
.btn-pink:hover { box-shadow: 0 9px 0 var(--rose-600), 0 20px 30px -12px rgba(224, 51, 122, .8); }
.btn-pink:active { box-shadow: 0 3px 0 var(--rose-600); }

.btn-white { background: #fff; color: var(--rose-700); border-color: var(--rose-200); box-shadow: 0 6px 0 var(--rose-200); }
.btn-white:hover { box-shadow: 0 9px 0 var(--rose-200); }
.btn-white:active { box-shadow: 0 3px 0 var(--rose-200); }

.btn-ghost { background: var(--rose-50); color: var(--ink-2); border: 3px dashed var(--rose-300); cursor: default; }
.btn-ghost:hover { translate: none; animation: wobble .6s; }

.btn-sm { padding: 12px 20px; font-size: 16px; }

@keyframes jelly {
  0% { scale: 1 1; }
  30% { scale: 1.12 .9; }
  50% { scale: .92 1.08; }
  70% { scale: 1.04 .97; }
  100% { scale: 1 1; }
}
@keyframes wobble {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -4deg; }
  75% { rotate: 4deg; }
}

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

.hero {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding: 120px clamp(16px, 5vw, 64px) 40px;
}
/* the spinning ring's square box pokes out of narrow screens while it turns; what it draws stays inside */
@supports (overflow: clip) { .hero, body { overflow-x: clip; } }

.pop-in { animation: pop-in .9s var(--bounce) both; animation-delay: var(--pd, 0s); }
@keyframes pop-in { from { opacity: 0; translate: 0 40px; scale: .9; } }

.sticker {
  display: inline-block;
  font: 600 18px var(--font-hand); color: var(--rose-700);
  background: #fff; padding: 8px 18px; border-radius: 999px;
  border: 3px dashed var(--rose-300);
  box-shadow: 0 5px 0 var(--rose-100);
  rotate: -3deg;
}

.title {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 0 .12em;
  margin: 18px 0 20px; white-space: nowrap;
  font: 800 clamp(54px, 7.6vw, 116px)/.92 var(--font-display);
  letter-spacing: -.01em;
}
.title .word { display: inline-flex; }
.title .w1 { color: var(--rose-500); }
.title .w2 { color: var(--orange); }
.title .word, .title .ch {
  text-shadow:
    4px 0 0 #fff, -4px 0 0 #fff, 0 4px 0 #fff, 0 -4px 0 #fff,
    3px 3px 0 #fff, -3px 3px 0 #fff, 3px -3px 0 #fff, -3px -3px 0 #fff,
    0 11px 0 var(--rose-200), 0 20px 30px rgba(224, 51, 122, .28);
}
.title .ch {
  display: inline-block; cursor: default;
  animation: bob 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.18s);
}
.title .ch.jelly { animation: jelly-letter .7s var(--bounce); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes jelly-letter {
  0% { scale: 1 1; }
  25% { scale: 1.3 .75; translate: 0 6px; }
  50% { scale: .8 1.25; translate: 0 -18px; }
  75% { scale: 1.1 .92; }
  100% { scale: 1 1; translate: 0 0; }
}
.title-bow {
  width: .62em; flex: none; margin-inline: .02em;
  filter: drop-shadow(0 6px 0 var(--rose-200));
  animation: bow-spin 4s var(--bounce) infinite;
}
@keyframes bow-spin {
  0%, 70%, 100% { rotate: 0deg; scale: 1; }
  78% { rotate: -16deg; scale: 1.15; }
  86% { rotate: 12deg; scale: .95; }
  94% { rotate: -4deg; scale: 1.03; }
}

.lead {
  max-width: 34em; font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--ink-2);
}
.lead b { color: var(--ink); }
.typer {
  font-family: var(--font-hand); font-weight: 600; color: var(--rose-700);
  background: linear-gradient(transparent 58%, var(--rose-200) 58%, var(--rose-200) 92%, transparent 92%);
  padding: 0 2px; white-space: nowrap;
}
.caret {
  display: inline-block; width: 3px; height: 1.1em; margin-left: 2px; vertical-align: -.18em;
  background: var(--rose-500); border-radius: 2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.subdomains { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.subdomains a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 2px solid var(--rose-100);
  font-size: 15px; color: var(--ink-2); text-decoration: none;
  transition: border-color .25s, translate .3s var(--bounce), color .25s;
}
.subdomains a b { color: var(--rose-600); }
.subdomains a:hover { border-color: var(--rose-300); translate: 0 -3px; color: var(--ink); }

/* hero art */

.hero-art {
  position: relative; justify-self: center;
  width: min(500px, 100%); aspect-ratio: 1;
  display: grid; place-items: center;
}
.halo {
  position: absolute; inset: 4%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #ffd6e7 0deg 9deg, #fff6fa 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 62%, transparent 100%);
  animation: spin 80s linear infinite;
}
.ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 36s linear infinite reverse;
  overflow: visible;
}
.ring text {
  font: 800 17.5px var(--font-display); letter-spacing: 3.2px; fill: var(--rose-500);
}
@keyframes spin { to { rotate: 360deg; } }

.orbit { position: absolute; inset: var(--in, 6%); animation: spin var(--t, 16s) linear infinite; animation-delay: var(--dl, 0s); pointer-events: none; }
.orbit > span {
  position: absolute; top: 0; left: 50%; translate: -50% -50%;
  font-size: var(--fs, 30px); line-height: 1;
  animation: spin var(--t, 16s) linear infinite reverse; animation-delay: var(--dl, 0s);
  filter: drop-shadow(0 4px 0 rgba(255, 166, 201, .6));
}
.o1 { --t: 15s; --in: 9%; }
.o2 { --t: 21s; --in: 3%; --dl: -7s; --fs: 26px; }
.o3 { --t: 12s; --in: 16%; --dl: -4s; --fs: 22px; }
.o4 { --t: 26s; --in: 1%; --dl: -17s; --fs: 28px; }
.o5 { --t: 19s; --in: 12%; --dl: -12s; --fs: 30px; }

.kitty-btn {
  position: relative; z-index: 2;
  width: 62%; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 40%;
  animation: float 4.5s ease-in-out infinite;
}
.kitty { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 0 rgba(255, 166, 201, .55)); transition: scale .35s var(--bounce); }
.kitty-btn:hover .kitty { scale: 1.05; }
.kitty-btn.squish .kitty { animation: squish .55s var(--bounce); }
.kitty-shadow {
  position: absolute; left: 22%; right: 22%; bottom: -6%; height: 14px;
  background: radial-gradient(closest-side, rgba(224, 51, 122, .25), transparent);
  border-radius: 50%;
  animation: shadow 4.5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes shadow { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .8; opacity: .6; } }
@keyframes squish {
  0% { scale: 1 1; }
  30% { scale: 1.12 .86; }
  55% { scale: .94 1.08; }
  100% { scale: 1 1; }
}

.kitty .k-head { transform-box: view-box; transform-origin: 120px 186px; animation: head-tilt 6s ease-in-out infinite; }
.kitty .k-bow { transform-box: view-box; transform-origin: 172px 44px; rotate: -10deg; animation: bow-wiggle 3.2s var(--bounce) infinite; }
.kitty .k-eye { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
.kitty .k-eye + .k-eye { animation-delay: .04s; }
.kitty .k-look { transition: transform .15s ease-out; }
.kitty .k-blush { opacity: .75; transition: opacity .3s; }
.kitty-btn:hover .k-blush, .kitty-btn.squish .k-blush { opacity: 1; }
.kitty .k-heart { transform-box: fill-box; transform-origin: center; animation: heartbeat 1.6s ease-in-out infinite; }
.kitty .k-whisk { transform-box: view-box; transform-origin: 120px 130px; animation: whisk 2.4s ease-in-out infinite; }

@keyframes head-tilt { 0%, 100% { rotate: 0deg; } 30% { rotate: -4deg; } 65% { rotate: 3deg; } }
@keyframes bow-wiggle {
  0%, 62%, 100% { rotate: -10deg; scale: 1; }
  70% { rotate: -22deg; scale: 1.08; }
  78% { rotate: 2deg; scale: .96; }
  86% { rotate: -14deg; scale: 1.02; }
}
@keyframes blink { 0%, 92%, 100% { scale: 1 1; } 95% { scale: 1 .1; } }
@keyframes heartbeat { 0%, 100% { scale: 1; } 15% { scale: 1.1; } 30% { scale: .97; } 45% { scale: 1.06; } }
@keyframes whisk { 0%, 100% { scale: 1 1; } 50% { scale: 1.03 1; } }

.bubble {
  position: absolute; z-index: 3; top: 8%; right: 0;
  max-width: 220px; padding: 10px 16px;
  background: #fff; border: 3px solid var(--rose-300); border-radius: 22px 22px 22px 6px;
  font: 600 16px/1.4 var(--font-hand); color: var(--rose-700);
  box-shadow: 0 5px 0 var(--rose-100);
  opacity: 0; scale: .4; translate: 0 10px; transform-origin: 0 100%;
  transition: opacity .25s, scale .45s var(--bounce), translate .45s var(--bounce);
  pointer-events: none;
}
.bubble.show { opacity: 1; scale: 1; translate: 0 0; }

.hint {
  position: absolute; bottom: -9%; left: 50%; translate: -50% 0;
  font: 500 15px var(--font-hand); color: var(--rose-600); white-space: nowrap;
  animation: hint-bob 2s ease-in-out infinite;
}
@keyframes hint-bob { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -5px; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 104px; gap: 8px; }
  .hero-art { order: -1; width: min(400px, 84vw); margin-bottom: 30px; }
  .typewrap { display: block; }
  .title, .cta, .subdomains { justify-content: center; }
  .lead { margin-inline: auto; }
  .bubble { right: -2%; top: 2%; }
}

/* ---------- ribbons ---------- */

.ribbons { position: relative; z-index: 2; height: 150px; margin: 30px 0 10px; overflow: hidden; }
@supports (overflow: clip) { .ribbons { overflow: clip; overflow-clip-margin: 20px; } }
.ribbon {
  position: absolute; left: -10vw; width: 120vw;
  padding: 13px 0; white-space: nowrap; overflow: hidden;
  font: 800 21px/1.2 var(--font-display); letter-spacing: .05em;
}
.r1 { top: 30px; z-index: 2; rotate: -3deg; background: var(--rose-500); color: #fff; box-shadow: 0 6px 0 var(--rose-600); }
.r2 { top: 42px; rotate: 2.4deg; background: #fff; color: var(--rose-600); border-block: 3px dashed var(--rose-300); font-family: var(--font-hand); font-weight: 600; letter-spacing: .02em; }
.track { display: inline-flex; animation: marquee 32s linear infinite; will-change: transform; }
.track span { padding-right: .4em; }
.r2 .track { animation-direction: reverse; animation-duration: 40s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { position: relative; max-width: 1220px; margin: 0 auto; padding: 90px clamp(16px, 4vw, 40px); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.kicker {
  display: inline-block; font: 600 17px var(--font-hand); color: var(--rose-700);
  background: #fff; border: 2.5px dashed var(--rose-300);
  padding: 6px 16px; border-radius: 999px; rotate: -2deg;
}
.section h2 { font: 800 clamp(36px, 5.4vw, 60px)/1.08 var(--font-display); margin: 16px 0 12px; color: var(--ink); }
.hl {
  color: var(--rose-500); white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c10-6 18 2 28-2s18-6 28 0 18 4 28-1 18-4 32 1' fill='none' stroke='%23ffa6c9' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% .32em no-repeat;
  padding-bottom: .12em;
}
.section-sub { font-size: 18px; color: var(--ink-2); }

.js .reveal {
  opacity: 0; translate: 0 46px; scale: .96;
  transition: opacity .7s var(--soft), translate .9s var(--bounce), scale .9s var(--bounce),
    transform .6s var(--bounce), rotate .4s var(--bounce), box-shadow .3s;
  transition-delay: var(--rd, 0s);
}
.js .reveal.in { opacity: 1; translate: 0 0; scale: 1; }

/* ---------- project cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 54px; align-items: stretch; }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; gap: 40px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 12px; background: #fff;
  border: 3px solid var(--rose-200); border-radius: var(--r-lg);
  box-shadow: var(--pop);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .6s var(--bounce), box-shadow .3s, opacity .7s var(--soft), translate .9s var(--bounce), scale .9s var(--bounce);
}
.card:hover { --ty: -8px; box-shadow: 0 14px 0 var(--rose-200), 0 34px 50px -20px rgba(224, 51, 122, .5); transition: transform .18s ease-out, box-shadow .3s; }
.card::before {
  content: ""; position: absolute; z-index: 4; top: -15px; left: 50%;
  width: 116px; height: 30px; translate: -50% 0; rotate: -4deg;
  background: repeating-linear-gradient(45deg, var(--tape) 0 9px, rgba(255, 255, 255, .7) 9px 18px);
  border-radius: 3px; box-shadow: 0 2px 4px rgba(75, 38, 56, .08);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .7), transparent 42%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: .9; }

.scene { position: relative; height: 210px; border-radius: var(--r-md); overflow: hidden; }
.scene::after {
  content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(255, 255, 255, .9);
  border-radius: 15px; pointer-events: none;
}
.scene svg { width: 100%; height: 100%; }
.scene-tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; background: #fff;
  font: 600 13.5px var(--font-hand); color: var(--rose-700);
  box-shadow: 0 3px 0 var(--rose-100);
  animation: tag-bob 3s ease-in-out infinite;
}
.tag-right { left: auto; right: 18px; display: inline-flex; align-items: center; gap: 4px; }
.tag-bottom { top: auto; bottom: 16px; left: 50%; translate: -50% 0; white-space: nowrap; animation: none; }
@keyframes tag-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* map scene */
.route { stroke-dasharray: 9 9; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }
.pin { transform-box: fill-box; transform-origin: 50% 100%; animation: hop 2.4s var(--bounce) infinite; animation-delay: var(--d); }
@keyframes hop { 0%, 60%, 100% { translate: 0 0; scale: 1; } 70% { translate: 0 -10px; scale: 1.08 .94; } 80% { translate: 0 0; scale: .96 1.04; } }
.card:hover .pin { animation-duration: 1.2s; }

/* cards scene */
.scene-cards {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 115%, rgba(255, 255, 255, .25), transparent 55%),
    radial-gradient(rgba(255, 255, 255, .14) 2px, transparent 2.5px) 0 0 / 18px 18px,
    linear-gradient(160deg, #ff8fbd, #f2558f 55%, #d93a7a);
}
.fan { position: relative; width: 220px; height: 150px; translate: 0 18px; }
.pc {
  position: absolute; left: 50%; bottom: 0;
  width: 76px; height: 106px; margin-left: -38px;
  background: #fff; border-radius: 11px; border: 2px solid #ffe1ee;
  box-shadow: 0 8px 14px -4px rgba(75, 38, 56, .35);
  transform-origin: 50% 130%; rotate: var(--a);
  font-family: var(--font-display); font-weight: 800;
  transition: rotate .55s var(--bounce), translate .55s var(--bounce);
  animation: card-float 3.2s ease-in-out infinite; animation-delay: var(--dl);
}
.pc b { position: absolute; top: 5px; left: 9px; font-size: 20px; line-height: 1; }
.pc .b2 { top: auto; left: auto; bottom: 5px; right: 9px; rotate: 180deg; }
.pc span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; line-height: 1; }
.pc.red { color: var(--red); }
.pc.blk { color: var(--ink); }
.card:hover .pc { rotate: calc(var(--a) * 1.7); animation-play-state: paused; translate: 0 -14px; }
.card:hover .pc:nth-child(3), .card:hover .pc:nth-child(4) { translate: 0 -30px; }
@keyframes card-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

.chipstack { position: absolute; left: 26px; bottom: 26px; width: 40px; height: 52px; z-index: 1; }
.chipstack i {
  position: absolute; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 34%, transparent 35%), repeating-conic-gradient(var(--rose-500) 0 22.5deg, #fff 22.5deg 45deg);
  border: 3px solid #fff; box-shadow: 0 3px 0 rgba(75, 38, 56, .25);
  animation: chip-hop 2.8s var(--bounce) infinite;
}
.chipstack i:nth-child(1) { bottom: 0; }
.chipstack i:nth-child(2) { bottom: 6px; animation-delay: .1s; }
.chipstack i:nth-child(3) { bottom: 12px; animation-delay: .2s; background: radial-gradient(circle, #fff 0 34%, transparent 35%), repeating-conic-gradient(var(--yellow) 0 22.5deg, #fff 22.5deg 45deg); }
@keyframes chip-hop { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -8px; } }

.dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose-400); animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -4px; opacity: 1; } }

/* regrow scene */
.scene-grow {
  display: grid; place-items: center;
  background:
    radial-gradient(rgba(180, 150, 255, .22) 1.6px, transparent 2px) 0 0 / 14px 14px,
    linear-gradient(140deg, #f1e9ff, #ffe8f2);
  cursor: crosshair; touch-action: pan-y;
}
.grow-grid { display: grid; grid-template-columns: repeat(13, 13px); grid-auto-rows: 13px; gap: 2px; translate: 0 -10px; }
.cell {
  border-radius: 4px; background: var(--c);
  box-shadow: inset 0 -2px 0 rgba(184, 33, 95, .18);
  transition: scale .5s var(--bounce) var(--delay, 0ms), opacity .35s ease var(--delay, 0ms);
}
.cell.empty { visibility: hidden; }
.cell.cut { scale: 0; opacity: 0; transition: scale .16s ease-in, opacity .16s ease-in; }

/* card body */
.card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px 10px 8px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card h3 { font: 800 30px/1.1 var(--font-display); color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.badge.live { background: #e3f8ee; color: #1f7a4f; }
.badge.live i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); animation: ping 1.8s infinite; }
.badge.egg { background: #fff4d1; color: #8a6200; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }

.domain {
  align-self: flex-start;
  font: 600 15px var(--font-hand); color: var(--rose-700); text-decoration: none;
  background: linear-gradient(var(--rose-200), var(--rose-200)) 0 100% / 0 3px no-repeat;
  transition: background-size .35s var(--soft);
}
a.domain:hover { background-size: 100% 3px; }
.domain.muted { color: var(--ink-2); }
.card p { color: var(--ink-2); font-size: 15.5px; }
.feats { display: grid; gap: 7px; font-size: 15px; }
.feats li { display: flex; gap: 8px; align-items: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--rose-50); border: 2px solid var(--rose-100); color: var(--rose-700);
}
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- stats ---------- */

.stats {
  position: relative; z-index: 2; margin: 60px 0 30px; padding: 80px 16px;
  background:
    radial-gradient(rgba(255, 255, 255, .35) 3px, transparent 3.6px) 0 0 / 34px 34px,
    radial-gradient(rgba(255, 255, 255, .35) 3px, transparent 3.6px) 17px 17px / 34px 34px,
    var(--rose-400);
}
.stats::before, .stats::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px;
  background: radial-gradient(circle at 22px 22px, var(--rose-400) 21px, transparent 22px) 0 0 / 44px 44px repeat-x;
}
.stats::before { top: -21px; }
.stats::after { bottom: -21px; rotate: 180deg; }
.stat-list {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
@media (max-width: 900px) { .stat-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stat-list { gap: 14px; } }
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 14px 20px; background: #fff; border-radius: 36px 36px 36px 12px;
  box-shadow: 0 8px 0 var(--rose-600);
  transition: rotate .4s var(--bounce), opacity .7s var(--soft), translate .9s var(--bounce), scale .9s var(--bounce);
}
.stat:nth-child(even) { border-radius: 36px 36px 12px 36px; }
.stat:hover { rotate: -3deg; }
.stat:nth-child(even):hover { rotate: 3deg; }
.stat strong { font: 800 clamp(44px, 6vw, 64px)/1 var(--font-display); color: var(--rose-500); }
.stat .unit { font: 800 19px/1.2 var(--font-display); color: var(--ink); margin-top: 4px; }
.stat .label { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* ---------- timeline ---------- */

.tl { position: relative; max-width: 940px; margin: 54px auto 0; display: grid; gap: 26px; }
.tl::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 14px; translate: -50% 0;
  background: radial-gradient(circle, var(--rose-300) 3.4px, transparent 4px) 50% 0 / 14px 18px repeat-y;
}
.tl-item {
  position: relative; width: calc(50% - 46px);
  padding: 20px 24px; background: #fff; border-radius: 26px;
  border: 3px solid var(--rose-100); box-shadow: 0 7px 0 var(--rose-100);
}
.tl-item:nth-child(odd) { justify-self: start; }
.tl-item:nth-child(even) { justify-self: end; }
.tl-item .node {
  position: absolute; top: 18px; width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 22px; background: #fff; border: 3px solid var(--rose-300); border-radius: 50%;
  box-shadow: 0 4px 0 var(--rose-200);
  transition: rotate .5s var(--bounce), scale .5s var(--bounce);
}
.tl-item:nth-child(odd) .node { right: -72px; }
.tl-item:nth-child(even) .node { left: -72px; }
.tl-item:hover .node { rotate: 18deg; scale: 1.15; }
.tl-item time { font: 600 15px var(--font-hand); color: var(--rose-700); }
.tl-item h3 { font: 800 24px/1.2 var(--font-display); margin: 2px 0 6px; }
.tl-item p { color: var(--ink-2); font-size: 15.5px; }
.tl-item p b { color: var(--rose-700); }

@media (max-width: 760px) {
  .tl::before { left: 23px; }
  .tl-item, .tl-item:nth-child(even), .tl-item:nth-child(odd) { width: auto; justify-self: stretch; margin-left: 64px; }
  .tl-item:nth-child(odd) .node, .tl-item:nth-child(even) .node { left: -67px; right: auto; }
}

/* ---------- stack ---------- */

.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
@media (max-width: 1000px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stack { grid-template-columns: 1fr; } }
.sg {
  padding: 24px 20px 26px; border-radius: 30px; background: var(--tint);
  border: 3px solid #fff; box-shadow: 0 8px 0 rgba(255, 166, 201, .35), 0 20px 34px -22px rgba(224, 51, 122, .45);
}
.sg h3 { display: flex; align-items: center; gap: 8px; font: 800 21px/1.2 var(--font-display); margin-bottom: 16px; }
.bubbles { display: flex; flex-wrap: wrap; gap: 9px; }
.bubbles li {
  padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 3px 0 rgba(75, 38, 56, .08);
  cursor: default;
  animation: floaty var(--dur, 4s) ease-in-out infinite; animation-delay: var(--dl, 0s);
  transition: scale .35s var(--bounce), rotate .35s var(--bounce), background .25s, color .25s;
}
.bubbles li:hover { scale: 1.14; rotate: -4deg; background: var(--rose-500); color: #fff; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- contact ---------- */

.contact {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(36px, 6vw, 70px) clamp(18px, 5vw, 60px);
  border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, .16) 3px, transparent 3.6px) 0 0 / 30px 30px,
    linear-gradient(140deg, #f0478f, #d62f73 60%, #c0266a);
  box-shadow: 0 12px 0 var(--rose-700), 0 36px 60px -24px rgba(184, 33, 95, .7);
}
.contact-kitty {
  width: 130px; height: auto; margin: 0 auto 8px;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .12));
  animation: float 4s ease-in-out infinite, wobble 6s ease-in-out infinite;
}
.contact h2 { color: #fff; margin-top: 4px; text-shadow: 0 5px 0 rgba(120, 10, 60, .35); }
.contact > p { font-size: 19px; font-weight: 700; opacity: .96; }
.doors { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.doors a {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 22px 14px 14px; border-radius: 999px; background: #fff; color: var(--ink);
  text-decoration: none; box-shadow: 0 6px 0 rgba(120, 10, 60, .35);
  transition: translate .35s var(--bounce), box-shadow .35s var(--bounce);
}
.doors a:hover { translate: 0 -5px; box-shadow: 0 11px 0 rgba(120, 10, 60, .35); }
.doors a:active { translate: 0 2px; box-shadow: 0 3px 0 rgba(120, 10, 60, .35); }
.door-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--rose-100); font-size: 24px; transition: rotate .5s var(--bounce); }
.doors a:hover .door-ico { rotate: -14deg; }
.doors b { display: block; font: 800 18px/1.15 var(--font-display); }
.doors small { display: block; font-size: 13.5px; color: var(--ink-2); }
.spark { position: absolute; color: var(--yellow); font-size: 30px; animation: twinkle 2.4s ease-in-out infinite; }
.s1 { top: 12%; left: 9%; }
.s2 { top: 22%; right: 10%; font-size: 22px; animation-delay: .8s; }
.s3 { bottom: 14%; left: 16%; font-size: 18px; animation-delay: 1.5s; }
@keyframes twinkle { 0%, 100% { scale: .6; rotate: 0deg; opacity: .5; } 50% { scale: 1.2; rotate: 90deg; opacity: 1; } }

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

.footer { text-align: center; padding: 20px 16px 48px; color: var(--ink-2); font-size: 15px; }
.paws { display: flex; justify-content: center; gap: 22px; height: 40px; margin-bottom: 14px; }
.paws i {
  width: 22px; height: 22px; position: relative; opacity: 0;
  background: radial-gradient(circle at 50% 65%, var(--rose-300) 0 7px, transparent 7.5px);
  animation: paw 4s infinite; animation-delay: calc(var(--n) * .3s);
}
.paws i:nth-child(odd) { translate: 0 12px; }
.paws i::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 28%, var(--rose-300) 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 12%, var(--rose-300) 0 3px, transparent 3.5px),
    radial-gradient(circle at 80% 28%, var(--rose-300) 0 3px, transparent 3.5px);
}
.paws i:nth-child(1) { --n: 0; } .paws i:nth-child(2) { --n: 1; } .paws i:nth-child(3) { --n: 2; } .paws i:nth-child(4) { --n: 3; }
.paws i:nth-child(5) { --n: 4; } .paws i:nth-child(6) { --n: 5; } .paws i:nth-child(7) { --n: 6; } .paws i:nth-child(8) { --n: 7; }
@keyframes paw { 0% { opacity: 0; scale: .4; } 8% { opacity: 1; scale: 1; } 55% { opacity: 1; } 75%, 100% { opacity: 0; } }
.psst { font: 500 14px var(--font-hand); color: var(--rose-600); margin-top: 6px; }

/* ---------- toast + easter egg ---------- */

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 95;
  translate: -50% 180%;
  max-width: calc(100% - 32px);
  padding: 12px 22px; border-radius: 999px; background: #fff;
  border: 3px solid var(--rose-300); box-shadow: var(--pop);
  font-weight: 700; color: var(--rose-700); text-align: center;
  transition: translate .55s var(--bounce);
}
.toast.show { translate: -50% 0; }

.drop {
  position: fixed; top: -70px; z-index: 92; pointer-events: none; line-height: 1;
  animation: fall var(--dur) cubic-bezier(.45, .05, .55, .95) var(--dl) forwards;
}
@keyframes fall { to { translate: var(--dx, 0) calc(100vh + 140px); rotate: var(--rot); } }

/* ---------- 404 ---------- */

.lost {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; padding: 40px 16px;
}
.lost img { width: min(220px, 56vw); height: auto; margin: 0 auto; animation: float 4s ease-in-out infinite, wobble 5s ease-in-out infinite; }
.lost .big { font: 800 clamp(90px, 22vw, 180px)/.9 var(--font-display); color: var(--rose-500);
  text-shadow: 5px 0 0 #fff, -5px 0 0 #fff, 0 5px 0 #fff, 0 -5px 0 #fff, 0 14px 0 var(--rose-200); margin-top: 10px; }
.lost h1 { font: 800 clamp(28px, 5vw, 40px)/1.2 var(--font-display); margin: 8px 0; }
.lost p { color: var(--ink-2); font-size: 18px; max-width: 30em; margin: 0 auto; }
.lost .cta { justify-content: center; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .paws i { opacity: 1; }
  .hint, .cloud, .orbit { display: none; }
}
