:root {
  --ink: #161616;
  --muted: #665e54;
  --cream: #fff8ea;
  --paper: #fffdf7;
  --yellow: #ffe65c;
  --coral: #ff5f70;
  --mint: #62e6c7;
  --teal: #12a9a2;
  --blue: #3a86ff;
  --lilac: #bba7ff;
  --shadow: 0 22px 60px rgba(22, 22, 22, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Arial Rounded MT Bold", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 95, 112, 0.18), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(98, 230, 199, 0.24), transparent 30%),
    linear-gradient(180deg, #fff8ea 0%, #fffdf7 45%, #fff1c6 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(22, 22, 22, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, 0.5) 47% 53%, transparent 54%);
  background-size: 18px 18px, 90px 90px;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -52px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 248, 234, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--coral);
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Microsoft YaHei UI", sans-serif;
  font-size: 24px;
}

.brand-text {
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Microsoft YaHei UI", sans-serif;
  font-size: 24px;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #2a2725;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: white;
  outline: 2px solid var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(38px, 6vw, 86px) clamp(18px, 5vw, 70px) 56px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 22, 22, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 22, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Microsoft YaHei UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 6px 6px 0 rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1 span {
  display: block;
}

.hero-subtitle {
  width: 100%;
  max-width: min(620px, 100%);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-subtitle span {
  display: inline;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, translate 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
  outline: none;
}

.button-primary {
  background: var(--coral);
  color: white;
}

.button-ghost {
  background: white;
}

.hero-carousel {
  position: relative;
  z-index: 2;
  min-height: 520px;
  border: 3px solid var(--ink);
  border-radius: 36px;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.7), transparent 22%),
    linear-gradient(135deg, rgba(255, 230, 92, 0.95), rgba(98, 230, 199, 0.9) 48%, rgba(255, 95, 112, 0.9));
  box-shadow: 12px 12px 0 var(--ink), var(--shadow);
  overflow: hidden;
}

.hero-carousel::before,
.hero-carousel::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 160px;
  height: 160px;
  border: 3px solid rgba(22, 22, 22, 0.12);
  border-radius: 42% 58% 60% 40% / 55% 38% 62% 45%;
  background: rgba(255, 255, 255, 0.24);
}

.hero-carousel::before {
  top: -34px;
  right: 72px;
  transform: rotate(14deg);
}

.hero-carousel::after {
  left: -40px;
  bottom: 90px;
  transform: rotate(-18deg);
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  display: grid;
  align-items: end;
  padding: 24px;
  opacity: 0;
  transform: scale(0.96) rotate(-1deg);
  transition: opacity 450ms ease, transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.slide img {
  width: min(82%, 520px);
  max-height: 420px;
  object-fit: contain;
  justify-self: center;
  align-self: center;
  filter: drop-shadow(0 26px 24px rgba(22, 22, 22, 0.2));
}

.slide-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px 18px;
  border: 2px solid rgba(22, 22, 22, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}

.slide-caption h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.slide-caption p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: var(--yellow);
  outline: none;
}

.carousel-control.prev {
  left: 14px;
}

.carousel-control.next {
  right: 14px;
}

.carousel-dots {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--coral);
}

.floating-stickers .sticker,
.paw-layer span {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: white;
  box-shadow: 5px 5px 0 var(--ink);
}

.sticker {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-weight: 900;
  animation: floaty 4.8s ease-in-out infinite;
}

.sticker-rabbit {
  top: 14%;
  right: 47%;
  background: #ffd6e0;
}

.sticker-bird {
  top: 16%;
  right: 8%;
  background: #b7f8e4;
  animation-delay: -1.4s;
}

.sticker-fish {
  left: 38%;
  bottom: 12%;
  background: #b9ddff;
  animation-delay: -2.5s;
}

.paw-layer span {
  width: 28px;
  height: 24px;
  border-radius: 50% 50% 45% 45%;
  opacity: 0.25;
}

.paw-layer span:nth-child(1) {
  left: 8%;
  top: 22%;
  transform: rotate(-18deg);
}

.paw-layer span:nth-child(2) {
  left: 44%;
  top: 8%;
  transform: rotate(14deg);
}

.paw-layer span:nth-child(3) {
  right: 20%;
  bottom: 12%;
  transform: rotate(-10deg);
}

.paw-layer span:nth-child(4) {
  left: 16%;
  bottom: 18%;
  transform: rotate(20deg);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-14px) rotate(5deg);
  }
}

.category-strip,
.gallery-section,
.notes-section,
.site-footer {
  padding: clamp(50px, 8vw, 96px) clamp(18px, 5vw, 70px);
}

.category-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) 1fr;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--ink);
  background-size: 20px 20px, 20px 20px, auto;
  color: white;
}

.category-strip .section-kicker {
  color: var(--yellow);
}

.category-strip h2,
.gallery-section h2,
.notes-section h2 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.category-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 white;
  color: var(--ink);
  font-weight: 900;
  transition: translate 180ms ease, transform 180ms ease;
}

.category-pill:hover,
.category-pill:focus-visible {
  background: var(--mint);
  outline: none;
  transform: rotate(-2deg);
}

.section-heading,
.notes-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p:last-child,
.notes-heading p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pet-card {
  position: relative;
  min-height: 366px;
  padding: 16px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  opacity: 0;
  transform: translateY(26px);
  transform-style: preserve-3d;
  transition: opacity 450ms ease, transform 450ms ease, box-shadow 200ms ease;
}

.pet-card:nth-child(4n + 1) {
  background: #fffdf7;
}

.pet-card:nth-child(4n + 2) {
  background: #f4fff9;
}

.pet-card:nth-child(4n + 3) {
  background: #fff7fb;
}

.pet-card:nth-child(4n) {
  background: #f7f9ff;
}

.pet-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0ms);
}

.pet-card:hover {
  box-shadow: 11px 11px 0 var(--ink);
}

.pet-image-wrap {
  position: relative;
  min-height: 186px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.88), transparent 28%),
    linear-gradient(135deg, rgba(255, 230, 92, 0.58), rgba(98, 230, 199, 0.45));
  overflow: hidden;
}

.pet-image-wrap[data-fallback]::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(22, 22, 22, 0.28);
  border-radius: 16px;
  color: var(--muted);
  font-weight: 900;
}

.pet-image-wrap img {
  width: 86%;
  max-height: 178px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(22, 22, 22, 0.16));
  transition: transform 220ms ease;
}

.pet-card:hover img {
  transform: scale(1.08) rotate(-2deg);
}

.pet-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff0a5;
  font-size: 12px;
  font-weight: 900;
}

.pet-card h3 {
  margin: 14px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.pet-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.care {
  margin-top: 12px;
  color: var(--teal);
  font-weight: 900;
}

.notes-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 95, 112, 0.22), transparent 26%),
    linear-gradient(135deg, #fff, #fff1b8);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.notes-grid article {
  min-height: 220px;
  padding: 18px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #fff8ea;
  box-shadow: 6px 6px 0 var(--ink);
}

.notes-grid article:nth-child(2) {
  background: #e8fff8;
}

.notes-grid article:nth-child(3) {
  background: #fff0f4;
}

.notes-grid article:nth-child(4) {
  background: #eef4ff;
}

.note-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  font-weight: 900;
}

.notes-grid h3 {
  margin: 14px 0 8px;
  line-height: 1.25;
}

.notes-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--ink);
  color: white;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  margin: 0 0 8px;
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Microsoft YaHei UI", sans-serif;
  font-size: 30px;
  font-weight: 900;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  outline: none;
}

.cursor-paw {
  position: fixed;
  z-index: 999;
  width: 20px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--coral);
  opacity: 0.55;
  transform: translate(-50%, -50%) rotate(-18deg);
  animation: pawFade 700ms ease forwards;
}

.cursor-paw::before,
.cursor-paw::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: inherit;
}

.cursor-paw::before {
  left: 2px;
}

.cursor-paw::after {
  right: 2px;
}

@keyframes pawFade {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-16px) rotate(14deg) scale(0.55);
  }
}

@media (max-width: 1100px) {
  .pet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 460px;
  }

  .pet-grid,
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .nav-links a {
    padding-inline: 10px;
    text-align: center;
  }

  .hero {
    padding-top: 34px;
  }

  .hero > * {
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 44px);
    line-height: 1.12;
    text-shadow: 4px 4px 0 rgba(255, 255, 255, 0.78);
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.65;
    word-break: break-all;
  }

  .hero-subtitle span {
    display: block;
  }

  .hero-carousel {
    width: min(326px, calc(100vw - 64px));
    max-width: 100%;
    min-height: 390px;
    border-radius: 26px;
    box-shadow: 6px 6px 0 var(--ink), var(--shadow);
  }

  .slide {
    padding: 16px;
  }

  .slide img {
    width: min(90%, 330px);
    max-height: 260px;
    align-self: start;
    margin-top: 20px;
  }

  .slide-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 13px 14px;
  }

  .carousel-control {
    top: 44%;
  }

  .pet-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .pet-card {
    min-height: 0;
  }

  .floating-stickers,
  .paw-layer {
    display: none;
  }
}

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

  .pet-card {
    opacity: 1;
    transform: none;
  }
}

/* Pet card links */
.pet-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.pet-card-link:hover .pet-card {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
