:root {
  --bg: #06050a;
  --surface: #110f19;
  --surface-2: #1a1724;
  --fg: #f5f2ff;
  --muted: rgba(245, 242, 255, .66);
  --line: rgba(255, 255, 255, .09);
  --mint: #a8f0d1;
  --sky: #9ccbff;
  --lavender: #c7a8ff;
  --grad: linear-gradient(100deg, var(--mint), var(--sky), var(--lavender));
  --display: "Unbounded", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 5vw, 64px);
}

@font-face {
  font-family: "Unbounded"; font-weight: 400 800; font-display: swap;
  src: url("fonts/unbounded-cyrillic.v2.woff2") format("woff2");
  unicode-range: U+0401, U+0410-044F, U+0451, U+2116;
}
@font-face {
  font-family: "Unbounded"; font-weight: 400 800; font-display: swap;
  src: url("fonts/unbounded-latin.v2.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B7, U+00BB, U+2013-2014, U+2018-2019, U+201C-201E, U+2026;
}
@font-face {
  font-family: "Signature"; font-display: block;
  src: url("fonts/signature.woff2") format("woff2");
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font: 1rem/1.55 var(--body);
  color: var(--fg);
  overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
main { overflow-x: hidden; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--lavender); color: var(--bg); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 8px; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 10px 16px; border-radius: 99px; background: var(--fg); color: var(--bg);
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.grad, .statement em, .order::after, .hero__sig {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.statement em { font-weight: 600; }

.progress {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: center; gap: clamp(16px, 4vw, 36px);
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 14px;
  background: var(--bg);
}
.nav a {
  min-width: 24px; padding: 8px 2px; text-align: center;
  font: 500 .95rem/1.2 var(--display); letter-spacing: -.01em;
  color: var(--muted);
  text-decoration: underline 2px transparent; text-underline-offset: 7px;
  transition: color .2s, text-decoration-color .2s;
}
.nav a.is-active { color: var(--fg); text-decoration-color: currentColor; }

.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: 110px var(--gutter) 80px;
}
.hero__title {
  position: relative;
  font: 800 clamp(4.4rem, 19vw, 17.5rem)/.86 var(--display);
  letter-spacing: -.055em;
  white-space: nowrap;
  user-select: none; -webkit-user-select: none;
  cursor: default;
}
.char { display: inline-block; padding: 0 .02em; animation: rise 1.3s calc(.25s + var(--i, 0) * 80ms) var(--ease) both; }
.char:nth-child(2) { --i: 1; }
.char:nth-child(3) { --i: 2; }
.char:nth-child(4) { --i: 3; }
.char:nth-child(5) { --i: 4; }
@keyframes rise { from { opacity: 0; transform: translateY(55%) rotate(10deg) scale(.9); filter: blur(14px); } }
.hero__sig {
  position: absolute; right: -.34em; bottom: -.74em;
  padding: 0 .1em;
  font: .78em/1 "Signature", "Snell Roundhand", "Segoe Script", cursive;
  letter-spacing: 0;
  transform: rotate(-8deg);
  pointer-events: none;
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 0 0 / 300% 100% no-repeat;
  mask: linear-gradient(90deg, #000 40%, transparent 60%) 0 0 / 300% 100% no-repeat;
  animation: sign 1.8s 1.1s cubic-bezier(.33, 0, .2, 1) both;
}
@keyframes sign {
  from { opacity: 0; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  20% { opacity: 1; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
.hero__cta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(76px, 13vw, 220px); }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 99px;
  background: var(--fg); color: var(--bg);
  font: 500 .95rem/1 var(--display); letter-spacing: -.01em;
  transition: scale .15s ease-out;
}
.btn:active { scale: .96; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad);
  transform: translateY(101%); transition: transform .45s var(--ease);
}

.marquee {
  position: relative; z-index: 2;
  margin: calc(-1 * clamp(48px, 11vh, 130px)) -2vw 0;
  padding: clamp(14px, 2vw, 22px) 0;
  overflow: hidden;
  background: var(--grad); color: var(--bg);
  transform: rotate(-2.2deg);
  box-shadow: 0 30px 80px -30px rgba(156, 203, 255, .45);
}
.marquee__track {
  display: flex; width: max-content;
  font: 800 clamp(1.4rem, 3.4vw, 2.8rem)/1 var(--display); letter-spacing: -.03em;
  animation: marquee 22s linear infinite;
  will-change: transform;
}
.marquee__group { --gap: clamp(18px, 2.4vw, 36px); flex: none; display: flex; align-items: center; gap: var(--gap); padding-right: var(--gap); }
.marquee b { font-size: .6em; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { max-width: 1240px; margin: 0 auto; padding: clamp(90px, 13vw, 180px) var(--gutter) 0; }
.section__title { font: 600 clamp(2.4rem, 6vw, 5rem)/1 var(--display); letter-spacing: -.05em; }

.statement { max-width: 22ch; text-wrap: pretty; font: clamp(1.75rem, 4.6vw, 4rem)/1.12 var(--display); letter-spacing: -.035em; }
.order { display: inline-block; padding-bottom: .06em; background: var(--grad) no-repeat 0 100% / 100% .07em; }
.order::after { content: "→" / ""; display: inline-block; margin-left: .25em; transition: transform .25s var(--ease); }

.cat-section { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(40px, 7vw, 110px); align-items: center; }
.cat-text { margin-top: clamp(18px, 2.4vw, 28px); max-width: 38ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.meter {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: clamp(22px, 3vw, 34px);
  font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.meter b { display: inline-block; font: 600 1.35rem/1 var(--display); letter-spacing: -.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.meter.bump b { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); color: var(--lavender); } }

.cat-wrap { position: relative; padding-top: 22%; perspective: 1100px; cursor: pointer; }
.cat-float { transform-style: preserve-3d; animation: float 9s -3s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: rotateX(4deg) rotateY(-8deg) translateY(0); }
  50% { transform: rotateX(-4deg) rotateY(8deg) translateY(-10px); }
}
.cat {
  position: relative; display: block;
  width: 100%; aspect-ratio: 1 / .86;
  border-radius: 14px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  touch-action: pan-y;
  outline-offset: 8px;
  user-select: none; -webkit-user-select: none;
}
.cat__img {
  position: absolute; left: 50%; bottom: 0;
  width: 76%; height: auto;
  transform: translateX(-50%) translateZ(34px);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, transparent, #000 13%); mask-image: linear-gradient(to top, transparent, #000 13%);
  pointer-events: none;
}
.cat.is-petted .cat__img { animation: squish .55s var(--ease); }
@keyframes squish { 30% { scale: 1.05 .93; } 65% { scale: .98 1.03; } }
.cat__badge {
  position: absolute; right: 2%; top: 18%;
  padding: 9px 14px; border-radius: 99px;
  background: var(--fg); color: var(--bg);
  font: 600 .78rem/1 var(--display); letter-spacing: -.01em;
  transform: translateZ(84px) rotate(8deg);
}
.hearts { position: absolute; inset: 0; pointer-events: none; }
.heart {
  position: absolute; left: var(--x); top: var(--y);
  font: var(--s)/1 var(--display); color: var(--c);
  animation: heart 1.15s var(--ease) forwards;
}
.heart--purr { font-weight: 700; text-shadow: 0 4px 18px rgba(199, 168, 255, .8); }
@keyframes heart {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  15% { opacity: 1; }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% - 130px)) rotate(var(--r)) scale(1.1); }
}

.links { margin-top: clamp(36px, 6vw, 64px); border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.link {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  padding: clamp(20px, 3vw, 30px) clamp(8px, 1.6vw, 20px);
  transition: background-color .15s;
}
.link::after { content: "↗" / ""; display: grid; place-items: center; width: 44px; aspect-ratio: 1; font-size: 1.3rem; }
.link:focus-visible { outline-offset: -2px; border-radius: 0; }
.link__icon { display: grid; place-items: center; width: clamp(42px, 5vw, 52px); aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); }
.link__icon svg { width: 46%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.link__name { font: 500 clamp(1.4rem, 4vw, 2.6rem)/1 var(--display); letter-spacing: -.045em; }
.link__handle { font: .85rem/1.3 var(--mono); color: var(--muted); }

.footer { max-width: 1240px; margin: clamp(90px, 13vw, 160px) auto 0; padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }

.toast {
  position: fixed; left: 50%; bottom: max(32px, calc(env(safe-area-inset-bottom) + 16px)); z-index: 150;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: 12px;
  background: var(--fg); color: var(--bg);
  font-size: .95rem; line-height: 1.3; text-align: center;
  translate: -50% 12px; opacity: 0;
  transition: translate .2s ease-out, opacity .2s;
  pointer-events: none;
}
.toast.show { translate: -50% 0; opacity: 1; }

@media (max-width: 900px) {
  .cat-section { grid-template-columns: 1fr; }
  .cat-wrap { width: 100%; max-width: 400px; justify-self: center; }
}
@media (max-width: 640px) {
  .hero__title { font-size: 21vw; }
  .hero__sig { right: -.14em; }
  .btn { min-height: 50px; padding: 0 24px; }
  .link { grid-template-columns: auto 1fr auto; row-gap: 4px; }
  .link__icon { grid-row: span 2; }
  .link__handle { grid-area: 2 / 2; font-size: .78rem; }
  .link::after { grid-area: 1 / 3 / 3; width: 38px; }
}
@media (hover: hover) {
  .nav a:hover { color: var(--fg); }
  .btn:hover::before { transform: none; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .order:hover::after { transform: translateX(.18em); }
  .link:hover { background: var(--surface); }
}

.is-off, .is-off * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .progress, .nav, .marquee, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}
