:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-soft: #151515;
  --text: #f5f5f5;
  --muted: #a1a1aa;
  --muted-dark: #71717a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --white: #ffffff;
  --black: #0a0a0a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.1), transparent 34rem),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 48%, #080808 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--black);
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--muted-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.nav a {
  padding: 9px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--black);
  background: var(--white);
}

.home-hero,
.intro-card,
.feature-article,
.side-panel,
.roadmap-item,
.build-log,
.manifesto,
.page-hero,
.content-panel,
.article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  gap: 18px;
}

.intro-card,
.feature-article {
  display: flex;
  flex-direction: column;
}

.intro-card {
  min-height: 620px;
  justify-content: center;
  padding: clamp(38px, 6vw, 82px);
}

.feature-article {
  justify-content: flex-end;
  min-height: 620px;
  padding: clamp(34px, 4vw, 54px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 18rem);
}

.feature-article h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.feature-article p {
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-links {
  display: grid;
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.feature-links a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  color: var(--text);
  font-weight: 850;
  border-bottom: 1px solid var(--line);
}

.feature-links a::after {
  content: "Read";
  color: var(--muted-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-links a:hover::after {
  color: var(--white);
}

.avatar {
  display: grid;
  width: 112px;
  height: 112px;
  margin-bottom: 30px;
  place-items: center;
  color: var(--white);
  font-size: 2.25rem;
  font-weight: 950;
  border: 1px solid rgba(245, 245, 245, 0.76);
  border-radius: 50%;
  background: linear-gradient(145deg, #171717, #0d0d0d);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.025), 0 0 38px rgba(255, 255, 255, 0.18);
}

.eyebrow,
.card-kicker {
  margin: 0 0 16px;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--text);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.author-name {
  margin-bottom: 18px;
  font-size: 3rem;
  font-weight: 950;
}

h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

h3 {
  color: var(--text);
  font-size: 22px;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.hero-text,
.page-hero p {
  max-width: 700px;
  color: #a1a1aa;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  color: var(--black);
  border-color: var(--white);
  background: var(--white);
  transform: translateY(-2px);
}

.button.primary,
.button.ghost {
  color: var(--white);
  background: transparent;
}

.button.primary:hover,
.button.ghost:hover {
  color: var(--black);
  background: var(--white);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(620px, 100%);
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-meta div {
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--line);
}

.hero-meta div:nth-child(2) {
  padding-left: 18px;
}

.hero-meta div:last-child {
  padding-left: 18px;
  border-right: 0;
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-meta span {
  color: var(--muted-dark);
  font-size: 13px;
}

.section {
  padding: 72px 0 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.section-link:hover {
  color: var(--white);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.article-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.article-preview {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.article-preview:hover h3 {
  color: var(--white);
}

.preview-date {
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 850;
}

.article-preview h3 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.article-preview p {
  max-width: 680px;
  color: var(--muted);
}

.side-panel {
  position: sticky;
  top: 24px;
  padding: 26px;
}

.panel-block + .panel-block {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.panel-title {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-list a {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.topic-list a:hover {
  color: var(--black);
  border-color: var(--white);
  background: var(--white);
}

.popular-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted-dark);
}

.popular-list a {
  color: var(--muted);
  font-weight: 700;
}

.popular-list a:hover {
  color: var(--white);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.roadmap-item {
  padding: 28px;
  background: #0d0d0d;
  box-shadow: none;
}

.roadmap-item span {
  display: block;
  margin-bottom: 34px;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 950;
}

.roadmap-item p {
  color: var(--muted);
}

.build-log {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 30px;
  align-items: end;
  padding: clamp(30px, 5vw, 58px);
}

.build-log p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-list span {
  padding: 16px 18px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.manifesto {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--line);
  box-shadow: none;
}

.manifesto p {
  margin: 0;
  padding: 28px;
  color: var(--white);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.04em;
  background: #0d0d0d;
}

.post-card,
.post-row {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.post-card:hover,
.post-row:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.065);
}

.post-card {
  display: flex;
  min-height: 288px;
  flex-direction: column;
  padding: 28px;
}

.post-card p,
.post-row p {
  color: var(--muted);
}

.post-meta,
time {
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span {
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.page-hero {
  padding: clamp(32px, 5vw, 64px);
}

.page-hero.compact h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 950;
}

.content-panel {
  margin-top: 24px;
  padding: clamp(28px, 4vw, 48px);
}

.content-panel p,
.feature-list p {
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-list > div {
  padding: 26px;
  background: #0d0d0d;
}

.post-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.post-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 34px;
}

.post-row h2 {
  margin: 8px 0 8px;
  font-size: 30px;
}

.post-row > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.article {
  padding: clamp(32px, 5vw, 72px);
}

.article-header {
  max-width: 820px;
  margin: 0 auto 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 14px 0;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 950;
}

.article-header p {
  color: var(--muted);
  font-size: 1.2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.back-link:hover {
  color: var(--white);
}

.prose {
  max-width: 820px;
  margin: 0 auto;
  color: #d4d4d8;
  font-size: 18px;
}

.prose h2 {
  margin: 42px 0 12px;
  color: var(--white);
  font-size: 30px;
}

.prose p {
  margin-bottom: 18px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 7px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 52px 0 36px;
  color: var(--muted-dark);
  font-size: 14px;
}

.cat-widget {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 30;
  width: clamp(132px, 15vw, 184px);
  aspect-ratio: 240 / 210;
  cursor: pointer;
  --paw-x: 0px;
  --paw-y: 0px;
  --paw-rotate: 0deg;
  opacity: 0.96;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
  transform-origin: 50% 100%;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.cat-widget:hover {
  opacity: 1;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.18));
  transform: translateY(-3px);
}

.cat-sign {
  position: absolute;
  right: calc(100% - 8px);
  bottom: 26px;
  width: max-content;
  max-width: 160px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.86);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
  pointer-events: none;
}

.cat-sign::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
}

.cat-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.24);
  transform: translateY(-50%);
}

.cat-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.cat-shadow {
  fill: rgba(0, 0, 0, 0.48);
}

.cat-body,
.cat-head,
.cat-ear,
.cat-inner-ear,
.cat-cheek,
.cat-paw,
.cat-tail {
  fill: url(#cat-fur);
  stroke: rgba(245, 245, 245, 0.58);
  stroke-width: 2;
  filter: url(#cat-glow);
}

.cat-tail {
  fill: none;
  stroke: rgba(245, 245, 245, 0.72);
  stroke-width: 15;
  stroke-linecap: round;
  transform-origin: 176px 132px;
  animation: cat-tail-sway 4.8s ease-in-out infinite;
}

.cat-chest {
  fill: rgba(255, 255, 255, 0.055);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.4;
}

.cat-cheek {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.14);
}

.cat-ear {
  fill: #090909;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.18));
}

.cat-inner-ear {
  fill: none;
  stroke: rgba(245, 245, 245, 0.48);
  stroke-width: 1.8;
  stroke-linecap: round;
  filter: none;
}

.cat-ear.left,
.cat-ear.right {
  transform-origin: 120px 86px;
}

.cat-eye-white {
  fill: #f4f4f5;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1;
}

.cat-eye-shine {
  fill: rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.cat-pupil {
  fill: #080808;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.08s linear;
}

.cat-spiral-eye {
  display: none;
  fill: none;
  stroke: #080808;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
}

.cat-sleep-line {
  display: none;
  fill: none;
  stroke: rgba(245, 245, 245, 0.82);
  stroke-width: 3;
  stroke-linecap: round;
}

.cat-nose {
  fill: #d4d4d8;
}

.cat-mouth,
.cat-whiskers path {
  fill: none;
  stroke: rgba(245, 245, 245, 0.62);
  stroke-width: 2;
  stroke-linecap: round;
}

.cat-whiskers path {
  stroke-width: 1.4;
}

.cat-snore {
  position: absolute;
  top: -16px;
  right: 4px;
  display: none;
  pointer-events: none;
}

.cat-dizzy-stars {
  position: absolute;
  top: -24px;
  left: 50%;
  display: none;
  width: 92px;
  height: 42px;
  pointer-events: none;
  transform: translateX(-50%);
}

.cat-dizzy-stars span {
  position: absolute;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 950;
  opacity: 0;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
  animation: cat-star-orbit 1.1s linear infinite;
}

.cat-dizzy-stars span:nth-child(1) {
  left: 8px;
  top: 16px;
}

.cat-dizzy-stars span:nth-child(2) {
  left: 38px;
  top: 0;
  animation-delay: 0.18s;
}

.cat-dizzy-stars span:nth-child(3) {
  right: 8px;
  top: 17px;
  animation-delay: 0.36s;
}

.cat-snore span {
  position: absolute;
  right: 0;
  bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: cat-snore 2.8s ease-in-out infinite;
}

.cat-snore span:nth-child(2) {
  right: 16px;
  animation-delay: 0.8s;
}

.cat-snore span:nth-child(3) {
  right: 34px;
  animation-delay: 1.55s;
}

.cat-widget.is-blinking .cat-eye-white,
.cat-widget.is-sleeping .cat-eye-white {
  opacity: 0;
}

.cat-widget.is-blinking .cat-pupil,
.cat-widget.is-sleeping .cat-pupil {
  opacity: 0;
}

.cat-widget.is-blinking .cat-sleep-line,
.cat-widget.is-sleeping .cat-sleep-line {
  display: block;
}

.cat-widget.is-sleeping {
  transform: translateY(4px) scale(0.98);
  opacity: 0.88;
}

.cat-widget.is-sleeping .cat-snore {
  display: block;
}

.cat-widget.is-sleeping .cat-head-group {
  transform: translateY(4px);
  transform-origin: 120px 140px;
  animation: cat-breathe 3.4s ease-in-out infinite;
}

.cat-widget.is-sleeping .cat-body-group {
  transform-origin: 120px 168px;
  animation: cat-breathe-body 3.4s ease-in-out infinite;
}

.cat-widget.is-sleeping .cat-tail {
  animation: none;
  transform: rotate(-5deg);
}

.cat-widget.is-waking {
  animation: cat-wake 0.7s ease both;
}

.cat-widget.is-stretching .cat-body-group {
  transform-origin: 120px 174px;
  animation: cat-stretch-body 2.1s ease-in-out both;
}

.cat-widget.is-stretching .cat-head-group {
  transform-origin: 120px 124px;
  animation: cat-stretch-head 2.1s ease-in-out both;
}

.cat-widget.is-stretching .cat-paw.left {
  animation: cat-stretch-left-paw 2.1s ease-in-out both;
}

.cat-widget.is-stretching .cat-paw.right {
  animation: cat-stretch-right-paw 2.1s ease-in-out both;
}

.cat-widget.is-watching .cat-head-group {
  transform-origin: 120px 120px;
  animation: cat-watch-head 1.4s ease-in-out infinite;
}

.cat-widget.is-watching .cat-tail {
  animation: cat-watch-tail 1.2s ease-in-out infinite;
}

.cat-widget.is-hunting.is-grab-left .cat-paw.left {
  animation: cat-directed-grab 1.05s ease-in-out infinite;
}

.cat-widget.is-hunting.is-grab-right .cat-paw.right {
  animation: cat-directed-grab 1.05s ease-in-out infinite;
}

.cat-widget.is-hunting.is-grab-left .cat-paw.right,
.cat-widget.is-hunting.is-grab-right .cat-paw.left {
  animation: cat-support-paw 1.05s ease-in-out infinite;
}

.cat-widget.is-dizzy .cat-dizzy-stars {
  display: block;
}

.cat-widget.is-dizzy .cat-svg {
  transform-origin: 50% 78%;
  animation: cat-dizzy-body 2.4s ease-in-out both;
}

.cat-widget.is-dizzy .cat-head-group {
  transform-origin: 120px 120px;
  animation: cat-dizzy-head 0.42s ease-in-out infinite;
}

.cat-widget.is-dizzy .cat-eye-white {
  transform-origin: center;
  animation: cat-dizzy-eyes 0.42s ease-in-out infinite;
}

.cat-widget.is-dizzy .cat-pupil,
.cat-widget.is-dizzy .cat-eye-shine {
  display: none;
}

.cat-widget.is-dizzy .cat-spiral-eye {
  display: block;
  animation: cat-spiral-spin 0.62s linear infinite;
}

.cat-widget.is-rolling .cat-svg {
  transform-origin: 50% 72%;
  animation: cat-roll-over 3.6s ease-in-out both;
}

.cat-widget.is-rolling .cat-tail {
  animation: cat-roll-tail 3.6s ease-in-out both;
}

.cat-widget.is-rolling .cat-paw.left {
  animation: cat-roll-left-paw 3.6s ease-in-out both;
}

.cat-widget.is-rolling .cat-paw.right {
  animation: cat-roll-right-paw 3.6s ease-in-out both;
}

.cat-widget.is-side-lying .cat-svg {
  transform-origin: 50% 78%;
  animation: cat-side-lie 4.2s ease-in-out both;
}

.cat-widget.is-side-lying .cat-head-group {
  transform-origin: 120px 120px;
  animation: cat-side-head 4.2s ease-in-out both;
}

.cat-widget.is-side-lying .cat-tail {
  animation: cat-side-tail 4.2s ease-in-out both;
}

.cat-widget.is-loafing .cat-body-group {
  transform-origin: 120px 174px;
  animation: cat-loaf-body 3.2s ease-in-out both;
}

.cat-widget.is-loafing .cat-head-group {
  transform-origin: 120px 116px;
  animation: cat-loaf-head 3.2s ease-in-out both;
}

.cat-widget.is-loafing .cat-paw.left,
.cat-widget.is-loafing .cat-paw.right {
  animation: cat-loaf-paws 3.2s ease-in-out both;
}

.cat-widget.is-pawing .cat-paw.left {
  animation: cat-paw-tap 2.4s ease-in-out both;
}

.cat-widget.is-pawing .cat-head-group {
  transform-origin: 120px 120px;
  animation: cat-curious-head 2.4s ease-in-out both;
}

@keyframes cat-tail-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(7deg); }
}

@keyframes cat-snore {
  0% { opacity: 0; transform: translate(0, 0) scale(0.82); }
  20% { opacity: 0.75; }
  100% { opacity: 0; transform: translate(-12px, -34px) scale(1.28); }
}

@keyframes cat-breathe {
  0%, 100% { transform: translateY(4px); }
  50% { transform: translateY(7px); }
}

@keyframes cat-breathe-body {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.025); }
}

@keyframes cat-wake {
  0% { transform: translateY(4px) scale(0.98); }
  45% { transform: translateY(-8px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes cat-stretch-body {
  0%, 100% { transform: scale(1); }
  42% { transform: translateY(5px) scaleX(1.08) scaleY(0.9); }
  68% { transform: translateY(-2px) scaleX(0.96) scaleY(1.05); }
}

@keyframes cat-stretch-head {
  0%, 100% { transform: translate(0, 0); }
  42% { transform: translate(-8px, 12px) rotate(-5deg); }
  68% { transform: translate(5px, -2px) rotate(3deg); }
}

@keyframes cat-stretch-left-paw {
  0%, 100% { transform: translate(0, 0); }
  42% { transform: translate(-16px, 10px); }
}

@keyframes cat-stretch-right-paw {
  0%, 100% { transform: translate(0, 0); }
  42% { transform: translate(15px, 10px); }
}

@keyframes cat-watch-head {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-2deg); }
}

@keyframes cat-watch-tail {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(10deg); }
}

@keyframes cat-directed-grab {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  34%, 74% { transform: translate(var(--paw-x), var(--paw-y)) rotate(var(--paw-rotate)); }
  88% { transform: translate(calc(var(--paw-x) * 0.55), calc(var(--paw-y) * 0.55)) rotate(calc(var(--paw-rotate) * -0.45)); }
}

@keyframes cat-support-paw {
  0%, 100% { transform: translate(0, 0); }
  45% { transform: translate(0, 4px) scaleY(0.9); }
}

@keyframes cat-dizzy-body {
  0% { transform: rotate(0deg) translate(0, 0); }
  18% { transform: rotate(-6deg) translate(-4px, 2px); }
  36% { transform: rotate(7deg) translate(4px, 2px); }
  54% { transform: rotate(-5deg) translate(-3px, 1px); }
  72% { transform: rotate(4deg) translate(2px, 1px); }
  100% { transform: rotate(0deg) translate(0, 0); }
}

@keyframes cat-dizzy-head {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
}

@keyframes cat-dizzy-eyes {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.82); }
}

@keyframes cat-star-orbit {
  0% { opacity: 0; transform: translateY(6px) scale(0.8) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-8px) scale(1.2) rotate(180deg); }
}

@keyframes cat-spiral-spin {
  to { transform: rotate(360deg); }
}

@keyframes cat-roll-over {
  0%, 100% { transform: rotate(0deg) translate(0, 0) scale(1); }
  18% { transform: rotate(-8deg) translate(-4px, 2px) scale(1.01); }
  44% { transform: rotate(-24deg) translate(-10px, 9px) scaleX(1.04) scaleY(0.96); }
  66% { transform: rotate(16deg) translate(7px, 8px) scaleX(1.02) scaleY(0.98); }
  84% { transform: rotate(-5deg) translate(-2px, 1px) scale(1.01); }
}

@keyframes cat-roll-tail {
  0%, 100% { transform: rotate(-3deg); }
  35% { transform: rotate(30deg) translate(8px, -10px); }
  64% { transform: rotate(-22deg) translate(-5px, 8px); }
}

@keyframes cat-roll-left-paw {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-10px, -12px) rotate(-18deg); }
  66% { transform: translate(8px, -8px) rotate(16deg); }
}

@keyframes cat-roll-right-paw {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(12px, -12px) rotate(18deg); }
  66% { transform: translate(-8px, -8px) rotate(-16deg); }
}

@keyframes cat-side-lie {
  0%, 100% { transform: rotate(0deg) translate(0, 0) scale(1); }
  18%, 78% { transform: rotate(-12deg) translate(-8px, 8px) scaleX(1.08) scaleY(0.94); }
}

@keyframes cat-side-head {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  18%, 78% { transform: translate(-8px, 6px) rotate(-8deg); }
}

@keyframes cat-side-tail {
  0%, 100% { transform: rotate(-3deg); }
  18%, 78% { transform: rotate(-22deg) translate(-4px, 12px); }
}

@keyframes cat-loaf-body {
  0%, 100% { transform: translateY(0) scale(1); }
  24%, 76% { transform: translateY(10px) scaleX(1.08) scaleY(0.84); }
}

@keyframes cat-loaf-head {
  0%, 100% { transform: translateY(0); }
  24%, 76% { transform: translateY(9px); }
}

@keyframes cat-loaf-paws {
  0%, 100% { opacity: 1; transform: translate(0, 0); }
  24%, 76% { opacity: 0.35; transform: translateY(8px) scaleY(0.72); }
}

@keyframes cat-paw-tap {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  22% { transform: translate(-10px, -6px) rotate(-14deg); }
  42% { transform: translate(-4px, 2px) rotate(8deg); }
  62% { transform: translate(-10px, -5px) rotate(-12deg); }
  80% { transform: translate(-2px, 1px) rotate(3deg); }
}

@keyframes cat-curious-head {
  0%, 100% { transform: rotate(0deg); }
  35%, 70% { transform: rotate(-5deg) translateY(2px); }
}

/* Cat v2 */
.cat-widget {
  width: clamp(142px, 16vw, 202px);
  aspect-ratio: 260 / 230;
  --cat-lift: 0px;
  --cat-lean: 0deg;
  --head-x: 0px;
  --head-y: 0px;
  --head-rotate: 0deg;
  --paw-x: 0px;
  --paw-y: 0px;
  --paw-rotate: 0deg;
  --ear-left: 0deg;
  --ear-right: 0deg;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.12));
  outline: 0;
}

.cat-widget:focus-visible {
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.2));
}

.cat-widget:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

.cat-aura {
  position: absolute;
  inset: 12% 4% 2%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 48% 36%, rgba(255, 255, 255, 0.16), transparent 37%),
    radial-gradient(circle at 54% 74%, rgba(214, 164, 79, 0.13), transparent 48%);
  filter: blur(16px);
  opacity: 0.68;
  transform: scale(0.95);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.cat-widget:hover .cat-aura,
.cat-widget.is-watching .cat-aura,
.cat-widget.is-hunting .cat-aura {
  opacity: 0.9;
  transform: scale(1.02);
}

.cat-svg {
  transform: translateY(var(--cat-lift)) rotate(var(--cat-lean));
  transform-origin: 50% 82%;
  transition: transform 0.18s ease;
  animation: cat-idle-float-v2 7.4s ease-in-out infinite;
}

.cat-shadow {
  fill: rgba(0, 0, 0, 0.58);
  transform-origin: 130px 198px;
  animation: cat-shadow-pulse-v2 7.4s ease-in-out infinite;
}

.cat-body,
.cat-head,
.cat-ear,
.cat-paw,
.cat-tail-tip {
  fill: url(#cat-fur);
  stroke: rgba(255, 255, 255, 0.64);
  stroke-width: 2.1;
  filter: url(#cat-glow);
}

.cat-head {
  stroke-width: 2.3;
}

.cat-body-group {
  transform-origin: 128px 186px;
  animation: cat-body-breathe-v2 4.6s ease-in-out infinite;
}

.cat-head-group {
  transform: translate(var(--head-x), var(--head-y)) rotate(var(--head-rotate));
  transform-origin: 130px 125px;
  transition: transform 0.18s ease;
}

.cat-body-light,
.cat-face-light {
  fill: url(#cat-soft-light);
  opacity: 0.72;
  pointer-events: none;
}

.cat-chest {
  fill: rgba(255, 255, 255, 0.09);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
}

.cat-cheek {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.16);
}

.cat-tail-group {
  transform-origin: 188px 156px;
  animation: cat-tail-sway-v2 5.1s ease-in-out infinite;
}

.cat-tail {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#cat-glow);
}

.cat-tail-outer {
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 18;
}

.cat-tail-inner {
  stroke: #070707;
  stroke-width: 12;
}

.cat-tail-tip {
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 1.6;
}

.cat-ear {
  fill: #080808;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 2.5;
  transform-origin: 130px 96px;
}

.cat-ear.left {
  transform: rotate(var(--ear-left));
}

.cat-ear.right {
  transform: rotate(var(--ear-right));
}

.cat-inner-ear {
  fill: rgba(214, 164, 79, 0.1);
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.7;
}

.cat-brow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2;
  stroke-linecap: round;
}

.cat-eye-white {
  fill: #fffef7;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.2;
  filter: url(#cat-eye-glow);
  transform-box: fill-box;
  transform-origin: center;
}

.cat-gaze {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.08s linear;
}

.cat-iris {
  fill: url(#cat-eye-iris);
  filter: url(#cat-eye-glow);
}

.cat-pupil {
  fill: #050505;
  transition: none;
}

.cat-eye-shine {
  fill: rgba(255, 255, 255, 0.96);
  pointer-events: none;
}

.cat-eye-shine.small {
  opacity: 0.58;
}

.cat-nose {
  fill: #eeeeee;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.18));
}

.cat-mouth,
.cat-chin,
.cat-whiskers path,
.cat-toes path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.66);
  stroke-linecap: round;
}

.cat-mouth {
  stroke-width: 2;
}

.cat-chin {
  stroke-width: 1.5;
  opacity: 0.42;
}

.cat-whiskers path {
  stroke-width: 1.45;
  opacity: 0.7;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.18));
}

.cat-toes path {
  stroke-width: 1.5;
  opacity: 0.62;
}

.cat-sign {
  bottom: 34px;
  max-width: 148px;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0.9;
  transform: rotate(-3deg) translateY(2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cat-widget:hover .cat-sign,
.cat-widget.is-watching .cat-sign {
  opacity: 1;
  transform: rotate(-2deg) translateY(-2px);
}

.cat-sparkles {
  position: absolute;
  top: 4px;
  left: 50%;
  display: none;
  width: 98px;
  height: 56px;
  pointer-events: none;
  transform: translateX(-50%);
}

.cat-sparkles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(214, 164, 79, 0.38);
  opacity: 0;
  animation: cat-spark-v2 1.5s ease-in-out infinite;
}

.cat-sparkles span:nth-child(1) {
  left: 7px;
  top: 25px;
}

.cat-sparkles span:nth-child(2) {
  left: 48px;
  top: 4px;
  animation-delay: 0.22s;
}

.cat-sparkles span:nth-child(3) {
  right: 8px;
  top: 30px;
  animation-delay: 0.46s;
}

.cat-widget.is-delighted .cat-sparkles,
.cat-widget.is-pawing .cat-sparkles,
.cat-widget.is-biscuit .cat-sparkles,
.cat-widget.is-pouncing .cat-sparkles {
  display: block;
}

.cat-widget.is-blinking .cat-eye-white,
.cat-widget.is-sleeping .cat-eye-white {
  opacity: 0;
}

.cat-widget.is-blinking .cat-gaze,
.cat-widget.is-sleeping .cat-gaze {
  opacity: 0;
}

.cat-widget.is-blinking .cat-sleep-line,
.cat-widget.is-sleeping .cat-sleep-line {
  display: block;
}

.cat-widget.is-watching .cat-svg {
  animation-duration: 4.8s;
}

.cat-widget.is-watching .cat-tail-group {
  animation: cat-watch-tail-v2 1.2s ease-in-out infinite;
}

.cat-widget.is-hunting .cat-body-group {
  animation: cat-hunt-crouch-v2 1.2s ease-in-out infinite;
}

.cat-widget.is-hunting .cat-tail-group {
  animation: cat-hunt-tail-v2 0.72s ease-in-out infinite;
}

.cat-widget.is-hunting.is-grab-left .cat-paw.left,
.cat-widget.is-hunting.is-grab-right .cat-paw.right {
  animation: cat-directed-grab-v2 0.92s ease-in-out infinite;
}

.cat-widget.is-hunting.is-grab-left .cat-paw.right,
.cat-widget.is-hunting.is-grab-right .cat-paw.left {
  animation: cat-support-paw-v2 0.92s ease-in-out infinite;
}

.cat-widget.is-sleeping {
  transform: translateY(5px) scale(0.97);
  opacity: 0.88;
}

.cat-widget.is-sleeping .cat-svg {
  animation: none;
}

.cat-widget.is-sleeping .cat-snore {
  display: block;
}

.cat-widget.is-sleeping .cat-head-group {
  transform-origin: 130px 148px;
  animation: cat-sleep-head-v2 3.5s ease-in-out infinite;
}

.cat-widget.is-sleeping .cat-body-group {
  animation: cat-sleep-body-v2 3.5s ease-in-out infinite;
}

.cat-widget.is-sleeping .cat-tail-group {
  animation: none;
  transform: rotate(-8deg) translate(-2px, 5px);
}

.cat-widget.is-waking {
  animation: cat-wake-v2 0.72s ease both;
}

.cat-widget.is-stretching .cat-svg {
  animation: none;
}

.cat-widget.is-stretching .cat-body-group {
  transform-origin: 128px 186px;
  animation: cat-stretch-body-v2 2.25s ease-in-out both;
}

.cat-widget.is-stretching .cat-head-group {
  transform-origin: 130px 140px;
  animation: cat-stretch-head-v2 2.25s ease-in-out both;
}

.cat-widget.is-stretching .cat-paw.left {
  animation: cat-stretch-left-paw-v2 2.25s ease-in-out both;
}

.cat-widget.is-stretching .cat-paw.right {
  animation: cat-stretch-right-paw-v2 2.25s ease-in-out both;
}

.cat-widget.is-rolling .cat-svg {
  transform-origin: 50% 76%;
  animation: cat-roll-over-v2 3.7s ease-in-out both;
}

.cat-widget.is-rolling .cat-tail-group {
  animation: cat-roll-tail-v2 3.7s ease-in-out both;
}

.cat-widget.is-side-lying .cat-svg {
  transform-origin: 50% 82%;
  animation: cat-side-lie-v2 4.1s ease-in-out both;
}

.cat-widget.is-side-lying .cat-head-group {
  transform-origin: 130px 126px;
  animation: cat-side-head-v2 4.1s ease-in-out both;
}

.cat-widget.is-side-lying .cat-tail-group {
  animation: cat-side-tail-v2 4.1s ease-in-out both;
}

.cat-widget.is-loafing .cat-body-group {
  transform-origin: 128px 188px;
  animation: cat-loaf-body-v2 3.25s ease-in-out both;
}

.cat-widget.is-loafing .cat-head-group {
  transform-origin: 130px 136px;
  animation: cat-loaf-head-v2 3.25s ease-in-out both;
}

.cat-widget.is-loafing .cat-paw.left,
.cat-widget.is-loafing .cat-paw.right {
  animation: cat-loaf-paws-v2 3.25s ease-in-out both;
}

.cat-widget.is-pawing .cat-paw.left {
  animation: cat-paw-tap-v2 2.2s ease-in-out both;
}

.cat-widget.is-pawing .cat-head-group {
  transform-origin: 130px 124px;
  animation: cat-curious-head-v2 2.2s ease-in-out both;
}

.cat-widget.is-biscuit .cat-paw.left {
  animation: cat-biscuit-left-v2 2.4s ease-in-out both;
}

.cat-widget.is-biscuit .cat-paw.right {
  animation: cat-biscuit-right-v2 2.4s ease-in-out both;
}

.cat-widget.is-biscuit .cat-body-group {
  animation: cat-biscuit-body-v2 2.4s ease-in-out both;
}

.cat-widget.is-pouncing .cat-svg {
  animation: cat-pounce-v2 1.25s cubic-bezier(0.2, 0.9, 0.25, 1.08) both;
}

.cat-widget.is-pouncing .cat-tail-group {
  animation: cat-pounce-tail-v2 1.25s ease-in-out both;
}

.cat-widget.is-ear-twitching .cat-ear.left {
  animation: cat-ear-left-v2 0.72s ease-in-out both;
}

.cat-widget.is-ear-twitching .cat-ear.right {
  animation: cat-ear-right-v2 0.72s ease-in-out both;
}

.cat-widget.is-ear-twitching .cat-head-group {
  animation: cat-ear-head-v2 0.72s ease-in-out both;
}

.cat-widget.is-dizzy .cat-dizzy-stars {
  display: block;
}

.cat-widget.is-dizzy .cat-svg {
  transform-origin: 50% 78%;
  animation: cat-dizzy-body-v2 2.4s ease-in-out both;
}

.cat-widget.is-dizzy .cat-head-group {
  transform-origin: 130px 126px;
  animation: cat-dizzy-head-v2 0.42s ease-in-out infinite;
}

.cat-widget.is-dizzy .cat-eye-white {
  transform-origin: center;
  animation: cat-dizzy-eyes-v2 0.42s ease-in-out infinite;
}

.cat-widget.is-dizzy .cat-gaze {
  display: none;
}

.cat-widget.is-dizzy .cat-spiral-eye {
  display: block;
  animation: cat-spiral-spin 0.62s linear infinite;
}

@keyframes cat-idle-float-v2 {
  0%, 100% { transform: translateY(var(--cat-lift)) rotate(var(--cat-lean)); }
  50% { transform: translateY(calc(var(--cat-lift) - 4px)) rotate(var(--cat-lean)); }
}

@keyframes cat-shadow-pulse-v2 {
  0%, 100% { transform: scaleX(1); opacity: 0.72; }
  50% { transform: scaleX(0.92); opacity: 0.54; }
}

@keyframes cat-body-breathe-v2 {
  0%, 100% { transform: scale(1); }
  50% { transform: translateY(1px) scaleX(1.018) scaleY(0.99); }
}

@keyframes cat-tail-sway-v2 {
  0%, 100% { transform: rotate(-4deg); }
  45% { transform: rotate(8deg) translateY(-2px); }
  70% { transform: rotate(2deg); }
}

@keyframes cat-watch-tail-v2 {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(13deg) translateY(-3px); }
}

@keyframes cat-hunt-crouch-v2 {
  0%, 100% { transform: translateY(3px) scaleX(1.02) scaleY(0.97); }
  50% { transform: translateY(6px) scaleX(1.06) scaleY(0.93); }
}

@keyframes cat-hunt-tail-v2 {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(18deg) translateY(-4px); }
}

@keyframes cat-directed-grab-v2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  36%, 72% { transform: translate(var(--paw-x), var(--paw-y)) rotate(var(--paw-rotate)); }
  86% { transform: translate(calc(var(--paw-x) * 0.45), calc(var(--paw-y) * 0.45)) rotate(calc(var(--paw-rotate) * -0.35)); }
}

@keyframes cat-support-paw-v2 {
  0%, 100% { transform: translate(0, 0); }
  45% { transform: translateY(5px) scaleY(0.88); }
}

@keyframes cat-sleep-head-v2 {
  0%, 100% { transform: translateY(5px) rotate(-1deg); }
  50% { transform: translateY(8px) rotate(1deg); }
}

@keyframes cat-sleep-body-v2 {
  0%, 100% { transform: translateY(3px) scaleY(0.99); }
  50% { transform: translateY(5px) scaleY(1.02); }
}

@keyframes cat-wake-v2 {
  0% { transform: translateY(5px) scale(0.97); }
  42% { transform: translateY(-8px) scale(1.035); }
  68% { transform: translateY(2px) scale(0.995); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes cat-stretch-body-v2 {
  0%, 100% { transform: scale(1); }
  42% { transform: translateY(7px) scaleX(1.12) scaleY(0.88); }
  68% { transform: translateY(-3px) scaleX(0.97) scaleY(1.06); }
}

@keyframes cat-stretch-head-v2 {
  0%, 100% { transform: translate(0, 0); }
  42% { transform: translate(-11px, 13px) rotate(-6deg); }
  68% { transform: translate(6px, -3px) rotate(3deg); }
}

@keyframes cat-stretch-left-paw-v2 {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-20px, 12px) rotate(-9deg); }
}

@keyframes cat-stretch-right-paw-v2 {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(19px, 12px) rotate(9deg); }
}

@keyframes cat-roll-over-v2 {
  0%, 100% { transform: rotate(0deg) translate(0, 0) scale(1); }
  18% { transform: rotate(-8deg) translate(-4px, 2px) scale(1.01); }
  44% { transform: rotate(-25deg) translate(-11px, 10px) scaleX(1.05) scaleY(0.96); }
  66% { transform: rotate(17deg) translate(8px, 8px) scaleX(1.02) scaleY(0.98); }
  84% { transform: rotate(-5deg) translate(-2px, 1px) scale(1.01); }
}

@keyframes cat-roll-tail-v2 {
  0%, 100% { transform: rotate(-4deg); }
  35% { transform: rotate(34deg) translate(9px, -10px); }
  64% { transform: rotate(-24deg) translate(-5px, 9px); }
}

@keyframes cat-side-lie-v2 {
  0%, 100% { transform: rotate(0deg) translate(0, 0) scale(1); }
  18%, 78% { transform: rotate(-12deg) translate(-9px, 10px) scaleX(1.08) scaleY(0.94); }
}

@keyframes cat-side-head-v2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  18%, 78% { transform: translate(-9px, 7px) rotate(-8deg); }
}

@keyframes cat-side-tail-v2 {
  0%, 100% { transform: rotate(-4deg); }
  18%, 78% { transform: rotate(-23deg) translate(-5px, 12px); }
}

@keyframes cat-loaf-body-v2 {
  0%, 100% { transform: translateY(0) scale(1); }
  24%, 76% { transform: translateY(11px) scaleX(1.09) scaleY(0.84); }
}

@keyframes cat-loaf-head-v2 {
  0%, 100% { transform: translateY(0); }
  24%, 76% { transform: translateY(10px); }
}

@keyframes cat-loaf-paws-v2 {
  0%, 100% { opacity: 1; transform: translate(0, 0); }
  24%, 76% { opacity: 0.35; transform: translateY(8px) scaleY(0.72); }
}

@keyframes cat-paw-tap-v2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-11px, -8px) rotate(-15deg); }
  42% { transform: translate(-4px, 3px) rotate(8deg); }
  62% { transform: translate(-10px, -6px) rotate(-12deg); }
  82% { transform: translate(-2px, 1px) rotate(3deg); }
}

@keyframes cat-curious-head-v2 {
  0%, 100% { transform: rotate(0deg); }
  35%, 70% { transform: rotate(-6deg) translateY(2px); }
}

@keyframes cat-biscuit-left-v2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-5px, 5px) scaleY(0.9); }
  50% { transform: translate(0, -5px); }
  75% { transform: translate(-3px, 5px) scaleY(0.9); }
}

@keyframes cat-biscuit-right-v2 {
  0%, 100% { transform: translate(0, -4px); }
  25% { transform: translate(4px, -5px); }
  50% { transform: translate(0, 5px) scaleY(0.9); }
  75% { transform: translate(4px, -4px); }
}

@keyframes cat-biscuit-body-v2 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(3px) scaleX(1.03) scaleY(0.97); }
}

@keyframes cat-pounce-v2 {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  24% { transform: translateY(9px) rotate(-3deg) scaleX(1.08) scaleY(0.9); }
  55% { transform: translateY(-30px) rotate(9deg) scaleX(0.94) scaleY(1.08); }
  82% { transform: translateY(3px) rotate(-4deg) scaleX(1.03) scaleY(0.96); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes cat-pounce-tail-v2 {
  0%, 100% { transform: rotate(-4deg); }
  28% { transform: rotate(24deg) translateY(-7px); }
  60% { transform: rotate(-22deg) translateY(6px); }
}

@keyframes cat-ear-left-v2 {
  0%, 100% { transform: rotate(var(--ear-left)); }
  34% { transform: rotate(calc(var(--ear-left) - 12deg)); }
  68% { transform: rotate(calc(var(--ear-left) + 5deg)); }
}

@keyframes cat-ear-right-v2 {
  0%, 100% { transform: rotate(var(--ear-right)); }
  34% { transform: rotate(calc(var(--ear-right) + 12deg)); }
  68% { transform: rotate(calc(var(--ear-right) - 5deg)); }
}

@keyframes cat-ear-head-v2 {
  0%, 100% { transform: translate(var(--head-x), var(--head-y)) rotate(var(--head-rotate)); }
  50% { transform: translate(var(--head-x), calc(var(--head-y) - 2px)) rotate(calc(var(--head-rotate) + 2deg)); }
}

@keyframes cat-dizzy-body-v2 {
  0% { transform: rotate(0deg) translate(0, 0); }
  18% { transform: rotate(-7deg) translate(-4px, 2px); }
  36% { transform: rotate(8deg) translate(4px, 2px); }
  54% { transform: rotate(-6deg) translate(-3px, 1px); }
  72% { transform: rotate(4deg) translate(2px, 1px); }
  100% { transform: rotate(0deg) translate(0, 0); }
}

@keyframes cat-dizzy-head-v2 {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
}

@keyframes cat-dizzy-eyes-v2 {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.78); }
}

@keyframes cat-spark-v2 {
  0% { opacity: 0; transform: translateY(8px) scale(0.65); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-12px) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .cat-widget,
  .cat-widget *,
  .cat-widget *::before,
  .cat-widget *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 920px) {
  .home-hero,
  .content-layout,
  .build-log {
    grid-template-columns: 1fr;
  }

  .post-grid,
  .feature-list,
  .roadmap-grid,
  .manifesto {
    grid-template-columns: 1fr;
  }

  .intro-card,
  .feature-article {
    min-height: auto;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-row {
    grid-template-columns: 1fr;
  }

  .brand-text small {
    display: none;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    padding: 9px 12px;
  }

  .article-preview {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cat-widget {
    width: 118px;
    right: 12px;
    bottom: 12px;
  }

  .cat-sign {
    right: auto;
    left: 50%;
    bottom: calc(100% - 8px);
    max-width: 136px;
    transform: translateX(-50%) rotate(-2deg);
  }

  .cat-sign::before,
  .cat-sign::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
  }

  .intro-card,
  .feature-article,
  .page-hero,
  .content-panel,
  .article {
    padding: 26px;
  }

  .avatar {
    width: 92px;
    height: 92px;
    font-size: 1.9rem;
  }

  .author-name {
    font-size: 3rem;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .feature-article h2 {
    font-size: 32px;
  }
}
