:root {
  --ink: #111111;
  --paper: #ffffff;
  --wash: #f4f4f1;
  --line: #111111;
  --muted: #5f5f5f;
  --soft: #e9e9e3;
  --accent: #111111;
  --danger: #d53c2f;
  --frame-w: 480px;
  --frame-h: 340px;
  --sheet-w: 3840px;
  --sheet-h: 1700px;
  --pet-frame-w: 192px;
  --pet-frame-h: 208px;
  --pet-sheet-w: 1152px;
  --pet-sheet-h: 2496px;
  color: var(--ink);
  background: var(--wash);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--wash);
}

body,
button,
a {
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand,
.nav-links,
.hero-actions,
.action-buttons {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 8px;
  filter: grayscale(1) contrast(1.15);
}

.nav-links {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 750;
}

.nav-links a,
.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.button.primary {
  color: var(--paper);
  background: var(--accent);
}

.button.secondary {
  color: var(--ink);
  background: var(--paper);
}

.button.disabled {
  color: #555555;
  background: #d8d8d2;
  cursor: not-allowed;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.button.disabled:hover {
  transform: none;
  box-shadow: 4px 4px 0 var(--line);
}

.button.full {
  width: 100%;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--line);
}

.language-option {
  min-width: 42px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-right: 2px solid var(--line);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.language-option:last-child {
  border-right: 0;
}

.language-option.is-active,
.language-option:hover {
  color: var(--paper);
  background: var(--ink);
}

.studio-page {
  background: var(--wash);
}

.studio-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 74svh;
  overflow: hidden;
  padding: clamp(66px, 9vw, 118px) clamp(18px, 6vw, 76px);
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}

.studio-hero::before {
  position: absolute;
  inset: -8%;
  content: "";
  background-image: url("assets/villain-paper-spritesheet.png");
  background-repeat: repeat;
  background-size: 920px auto;
  opacity: 0.07;
  filter: grayscale(1) contrast(1.5);
}

.studio-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.studio-hero h1 {
  max-width: 12ch;
}

.studio-lede {
  max-width: 680px;
  margin-bottom: 28px;
  color: #252525;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 650;
  line-height: 1.7;
}

.studio-hero-note {
  position: absolute;
  right: clamp(18px, 6vw, 76px);
  bottom: 28px;
  z-index: 2;
  max-width: min(420px, calc(100% - 36px));
  padding: 12px 14px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--line);
  font-size: 14px;
  font-weight: 950;
}

.studio-products {
  background: var(--wash);
}

.studio-products-list {
  display: grid;
  gap: 22px;
}

.studio-product-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--line);
}

.studio-product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  background: #fbfbf8;
  border-right: 2px solid var(--line);
}

.studio-product-visual::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 2px dashed #b8b8b2;
}

.studio-product-visual .sprite-shadow {
  bottom: 58px;
}

.studio-product-sprite {
  position: relative;
  z-index: 1;
  transform: scale(0.68);
  transform-origin: center;
}

.studio-product-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 46px);
}

.studio-product-copy h3 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
}

.studio-product-copy p:not(.card-kicker) {
  max-width: 620px;
  margin: 0;
  color: #3f3f3f;
  font-size: 17px;
  line-height: 1.65;
}

.studio-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-product-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 950;
}

.studio-product-card-pet {
  box-shadow: 5px 5px 0 #97bfb5;
}

.pet-product-visual {
  background:
    linear-gradient(135deg, rgba(151, 191, 181, 0.28), rgba(248, 213, 126, 0.22)),
    #fbfbf8;
}

.pet-product-visual::after {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: min(74%, 360px);
  height: 18px;
  content: "";
  background: var(--line);
  border-radius: 999px;
  opacity: 0.12;
  transform: translateX(-50%);
}

.pet-product-wave-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(72%, 320px);
  aspect-ratio: 1 / 1;
}

.pet-product-wave-wrap::before {
  position: absolute;
  inset: 10%;
  content: "";
  background: var(--pet-sun);
  border: 2px solid var(--line);
  border-radius: 50%;
  opacity: 0.64;
}

.pet-product-wave-sprite {
  position: relative;
  z-index: 1;
  width: var(--pet-frame-w);
  height: var(--pet-frame-h);
  background-image: url("assets/pet-orange-tabby-spritesheet.png");
  background-repeat: no-repeat;
  background-size: var(--pet-sheet-w) var(--pet-sheet-h);
  background-position: 0 var(--pet-product-sprite-y, -624px);
  filter: drop-shadow(0 16px 0 rgba(17, 17, 17, 0.1));
  transform: scale(1.28);
  transform-origin: bottom center;
  will-change: transform, background-position;
  animation:
    petProductSpriteSteps 860ms steps(6) infinite,
    petProductFloat 2.4s ease-in-out infinite;
}

@keyframes petProductSpriteSteps {
  from {
    background-position: 0 var(--pet-product-sprite-y, -624px);
  }
  to {
    background-position: calc(var(--pet-sheet-w) * -1) var(--pet-product-sprite-y, -624px);
  }
}

@keyframes petProductFloat {
  0%,
  100% {
    transform: translateY(0) scale(1.28);
  }
  50% {
    transform: translateY(-8px) scale(1.28);
  }
}

.pet-product-cat {
  position: relative;
  z-index: 1;
  width: clamp(112px, 16vw, 164px);
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 14px 0 rgba(17, 17, 17, 0.1));
}

.pet-product-cat.cat-one {
  transform: translateX(32px) translateY(14px) scale(1.14);
}

.pet-product-cat.cat-two {
  transform: translateX(-18px) translateY(-26px) scale(0.96);
}

.pet-product-cat.cat-three {
  transform: translateX(-48px) translateY(20px) scale(1.04);
}

.studio-approach {
  background: var(--paper);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.studio-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: var(--paper);
}

.studio-contact .eyebrow {
  color: #d7d7d7;
}

.studio-contact h2 {
  max-width: 760px;
}

.studio-contact .button.primary {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 #777777;
}

.studio-contact .button.primary:hover {
  box-shadow: 2px 2px 0 #777777;
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 6vw, 76px);
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: -8%;
  content: "";
  background-image: url("assets/villain-paper-spritesheet.png");
  background-repeat: repeat;
  background-size: 960px auto;
  opacity: 0.055;
  filter: grayscale(1) contrast(1.5);
}

.pet-page {
  --pet-mint: #97bfb5;
  --pet-sun: #f8d57e;
  --pet-coral: #e88973;
  --pet-ink: #1f2524;
}

.pet-hero {
  min-height: 80svh;
  background:
    linear-gradient(120deg, rgba(151, 191, 181, 0.18), transparent 44%),
    var(--paper);
}

.pet-hero::before {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.055;
  filter: none;
}

.pet-hero h1 {
  max-width: 10ch;
}

.pet-hero-stage {
  position: absolute;
  right: clamp(22px, 6vw, 92px);
  bottom: clamp(54px, 9vw, 96px);
  z-index: 1;
  width: min(42vw, 520px);
  min-width: 360px;
  height: 430px;
  pointer-events: none;
}

.pet-hero-cat {
  position: absolute;
  z-index: 2;
  width: 172px;
  height: auto;
  filter: drop-shadow(0 18px 0 rgba(31, 37, 36, 0.1));
}

.pet-hero-cat-main {
  right: 118px;
  bottom: 88px;
  width: 232px;
}

.pet-hero-cat-left {
  left: 4px;
  bottom: 42px;
  transform: rotate(-4deg);
}

.pet-hero-cat-right {
  right: 0;
  bottom: 28px;
  transform: rotate(4deg);
}

.pet-shelf {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: 100%;
  height: 74px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 7px 7px 0 var(--line);
}

.pet-shelf::before,
.pet-shelf::after {
  position: absolute;
  top: -44px;
  width: 86px;
  height: 86px;
  content: "";
  background: var(--pet-sun);
  border: 2px solid var(--line);
  border-radius: 50%;
}

.pet-shelf::before {
  left: 42px;
  background: var(--pet-mint);
}

.pet-shelf::after {
  right: 46px;
  background: var(--pet-coral);
}

.pet-feature-card {
  box-shadow: 5px 5px 0 #97bfb5;
}

.pet-cats-section {
  background: var(--paper);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

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

.pet-cat-card {
  display: grid;
  justify-items: start;
  min-height: 390px;
  padding: 24px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--line);
}

.pet-cat-card:nth-child(2) {
  box-shadow: 5px 5px 0 var(--pet-mint);
}

.pet-cat-card:nth-child(3) {
  box-shadow: 5px 5px 0 var(--pet-coral);
}

.pet-cat-card img {
  justify-self: center;
  width: min(66%, 184px);
  height: auto;
  margin: 8px 0 26px;
  filter: drop-shadow(0 15px 0 rgba(17, 17, 17, 0.09));
}

.pet-cat-card p:not(.card-kicker) {
  color: #3f3f3f;
  line-height: 1.65;
}

.pet-feature-band {
  background: #1f2524;
}

.pet-page .download-card.is-ready {
  box-shadow: 5px 5px 0 var(--pet-mint);
}

.pet-landing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 82svh;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 6vw, 76px);
  background:
    radial-gradient(circle at 82% 18%, rgba(248, 213, 126, 0.42), transparent 24%),
    linear-gradient(120deg, rgba(151, 191, 181, 0.28), rgba(255, 255, 255, 0) 46%),
    var(--paper);
  border-bottom: 2px solid var(--line);
}

.pet-landing::before {
  position: absolute;
  inset: -20px;
  content: "";
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000 18%, transparent 78%);
}

.pet-landing-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.pet-landing h1 {
  max-width: 9ch;
}

.pet-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin: 0;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--pet-mint);
}

.pet-hero-facts div {
  min-width: 0;
  padding: 15px;
  border-right: 2px solid var(--line);
}

.pet-hero-facts div:last-child {
  border-right: 0;
}

.pet-hero-facts dt {
  margin-bottom: 6px;
  font-weight: 950;
}

.pet-hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pet-stage {
  position: relative;
  z-index: 2;
  min-height: 520px;
}

.pet-desktop-frame {
  position: absolute;
  inset: 0;
  min-height: 500px;
  overflow: hidden;
  background: #fbfbf8;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--line);
}

.pet-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}

.pet-window-bar span {
  width: 13px;
  height: 13px;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.pet-window-body {
  position: relative;
  height: calc(100% - 44px);
  min-height: 456px;
  background:
    linear-gradient(90deg, rgba(151, 191, 181, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(151, 191, 181, 0.18) 1px, transparent 1px),
    #fffefa;
  background-size: 34px 34px;
}

.pet-window-body::after {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 54px;
  height: 20px;
  content: "";
  background: var(--line);
  border-radius: 999px;
  opacity: 0.1;
}

.pet-stage-cat {
  position: absolute;
  z-index: 3;
  height: auto;
  will-change: transform;
  filter: drop-shadow(0 18px 0 rgba(17, 17, 17, 0.08));
}

.pet-stage-cat-main {
  left: 50%;
  bottom: 74px;
  width: clamp(170px, 22vw, 248px);
  transform: translateX(-50%);
}

.pet-stage-cat-left {
  left: 8%;
  bottom: 62px;
  width: clamp(118px, 15vw, 178px);
  transform: rotate(-5deg);
}

.pet-stage-cat-right {
  right: 8%;
  bottom: 58px;
  width: clamp(122px, 15vw, 184px);
  transform: rotate(4deg);
}

.pet-dock-card,
.pet-action-menu {
  position: absolute;
  z-index: 4;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 950;
}

.pet-dock-card {
  min-height: 42px;
  padding: 11px 13px;
  font-size: 13px;
}

.pet-dock-import {
  top: 64px;
  left: 34px;
  background: var(--pet-sun);
}

.pet-dock-chat {
  right: 34px;
  bottom: 154px;
  background: var(--pet-mint);
}

.pet-action-menu {
  top: 84px;
  right: 42px;
  display: grid;
  gap: 6px;
  min-width: 132px;
  padding: 10px;
}

.pet-action-menu span {
  display: block;
  min-height: 28px;
  padding: 6px 8px;
  background: #f4f4f1;
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}

.pet-companion-section {
  background: var(--wash);
}

.pet-workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  background: var(--paper);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.pet-workflow-copy {
  position: sticky;
  top: 96px;
}

.pet-workflow-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #3f3f3f;
  font-size: 17px;
  line-height: 1.65;
}

.pet-flow {
  display: grid;
  gap: 14px;
}

.pet-flow article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  align-items: start;
  min-height: 144px;
  padding: 22px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--line);
}

.pet-flow strong {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-size: 18px;
}

.pet-flow h3 {
  grid-column: 2;
  padding-top: 4px;
}

.pet-flow p {
  grid-column: 2;
  margin-bottom: 0;
  color: #3f3f3f;
  line-height: 1.65;
}

.pet-flow article:nth-child(2) {
  box-shadow: 5px 5px 0 var(--pet-mint);
}

.pet-flow article:nth-child(3) {
  box-shadow: 5px 5px 0 var(--pet-coral);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.04;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(52px, 9vw, 118px);
  font-weight: 1000;
}

h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 1000;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 950;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 28px;
  color: #252525;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 650;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px;
  margin: 0;
  border: 2px solid var(--line);
  background: var(--paper);
}

.hero-facts div {
  min-width: 0;
  padding: 15px;
  border-right: 2px solid var(--line);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  margin-bottom: 6px;
  font-weight: 950;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-stage {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(18px, 5vw, 88px);
  bottom: auto;
  width: min(42vw, 560px);
  min-width: 360px;
  height: min(58vh, 460px);
  pointer-events: none;
  transform: translateY(-50%);
}

.sprite-shadow {
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: 270px;
  height: 34px;
  background: #111111;
  border-radius: 999px;
  opacity: 0.1;
  transform: translateX(-50%) rotate(-2deg);
}

.sprite {
  width: var(--frame-w);
  height: var(--frame-h);
  background-image: url("assets/villain-paper-spritesheet.png");
  background-repeat: no-repeat;
  background-size: var(--sheet-w) var(--sheet-h);
  background-position: 0 var(--sprite-y, 0px);
  filter: grayscale(1) contrast(1.12);
  animation: spriteSteps 900ms steps(8) infinite;
}

.sprite-large {
  position: absolute;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%) scale(0.92);
  transform-origin: bottom center;
}

@keyframes spriteSteps {
  from {
    background-position: 0 var(--sprite-y, 0px);
  }
  to {
    background-position: calc(var(--sheet-w) * -1) var(--sprite-y, 0px);
  }
}

.pet-action-demo {
  background:
    linear-gradient(120deg, rgba(151, 191, 181, 0.24), transparent 46%),
    var(--paper);
}

.pet-action-demo .chip.is-active,
.pet-action-demo .chip:hover {
  color: var(--pet-ink);
  background: var(--pet-sun);
}

.pet-demo-window {
  box-shadow: 6px 6px 0 var(--pet-mint);
}

.pet-demo-window .demo-titlebar {
  background: #f7f1df;
}

.pet-sprite-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 410px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(151, 191, 181, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(151, 191, 181, 0.16) 1px, transparent 1px),
    #fffefa;
  background-size: 34px 34px;
}

.pet-demo-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 10px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
  font-size: 12px;
  font-weight: 950;
}

.pet-sprite-ground {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: 238px;
  height: 28px;
  background: var(--line);
  border-radius: 999px;
  opacity: 0.1;
  transform: translateX(-50%);
}

.pet-sprite {
  position: relative;
  z-index: 1;
  width: var(--pet-frame-w);
  height: var(--pet-frame-h);
  background-image: url("assets/pet-orange-tabby-spritesheet.png");
  background-repeat: no-repeat;
  background-size: var(--pet-sheet-w) var(--pet-sheet-h);
  background-position: 0 var(--pet-sprite-y, 0px);
  image-rendering: auto;
  transform: scale(1.32);
  transform-origin: bottom center;
  will-change: transform, background-position;
  animation: petSpriteSteps 940ms steps(6) infinite;
}

@keyframes petSpriteSteps {
  from {
    background-position: 0 var(--pet-sprite-y, 0px);
  }
  to {
    background-position: calc(var(--pet-sheet-w) * -1) var(--pet-sprite-y, 0px);
  }
}

.impact-strip {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 430px;
  width: min(100%, 430px);
  transform: translateX(-50%);
}

.impact-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
  font-size: 13px;
  font-weight: 950;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 76px);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.intro-section,
.download-section {
  background: var(--wash);
}

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

.feature-card,
.download-card,
.demo-window,
.faq-list details {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--line);
}

.feature-card {
  min-height: 245px;
  padding: 24px;
}

.card-kicker,
.platform {
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 9px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 950;
}

.feature-card p:not(.card-kicker),
.feature-list p,
.demo-copy p,
.download-card p,
.faq-list p,
.download-note,
.site-footer p {
  color: #3f3f3f;
  line-height: 1.65;
}

.action-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--paper);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.demo-copy p {
  max-width: 560px;
  font-size: 17px;
}

.action-buttons {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.chip.is-active,
.chip:hover {
  color: var(--paper);
  background: var(--ink);
}

.demo-stage {
  display: grid;
  place-items: center;
}

.demo-window {
  width: min(100%, 520px);
  overflow: hidden;
}

.demo-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  background: #eeeeea;
  border-bottom: 2px solid var(--line);
}

.demo-titlebar span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.demo-titlebar span:last-child {
  justify-self: end;
}

.sprite-wrap {
  display: grid;
  place-items: center;
  min-height: 410px;
  background: #fbfbf8;
}

.feature-band {
  background: var(--ink);
  color: var(--paper);
}

.feature-band .eyebrow,
.feature-band .feature-list p {
  color: #d7d7d7;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 2px solid var(--paper);
}

.feature-list div {
  min-height: 190px;
  padding: 22px;
  border-right: 2px solid var(--paper);
}

.feature-list div:last-child {
  border-right: 0;
}

.feature-list h3 {
  font-size: 20px;
}

.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-card {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 280px;
  padding: 24px;
}

.download-card.is-ready {
  box-shadow: 5px 5px 0 var(--danger);
}

.download-card .platform {
  color: var(--paper);
  background: var(--ink);
}

.file-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.file-meta div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #c9c9c3;
}

.file-meta dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.file-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 750;
}

.hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.download-note {
  max-width: 880px;
  margin: 24px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--line);
  font-weight: 750;
}

.custom-section {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.custom-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.custom-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.custom-copy .eyebrow,
.custom-copy p {
  color: #d7d7d7;
}

.custom-copy p {
  max-width: 660px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.custom-section .button.primary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 #777777;
}

.custom-section .button.primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #777777;
}

.custom-details {
  display: grid;
  border: 2px solid var(--paper);
}

.custom-details div {
  min-height: 92px;
  padding: 18px;
  border-bottom: 2px solid var(--paper);
}

.custom-details div:last-child {
  border-bottom: 0;
}

.custom-details span {
  display: block;
  color: #d7d7d7;
  font-size: 12px;
  font-weight: 950;
}

.custom-details strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.faq-section {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  padding: 0;
  box-shadow: 3px 3px 0 var(--line);
}

.faq-list summary {
  min-height: 58px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 950;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 76px);
  background: var(--ink);
  color: var(--paper);
}

.site-footer p {
  margin: 6px 0 0;
  color: #d6d6d6;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-stage {
    top: 54%;
    right: 18px;
    width: min(38vw, 420px);
    min-width: 320px;
    height: 360px;
    opacity: 0.82;
  }

  .pet-hero-stage {
    right: 18px;
    bottom: 48px;
    width: 360px;
    min-width: 320px;
    height: 320px;
    opacity: 0.9;
  }

  .pet-landing,
  .pet-workflow-section {
    grid-template-columns: 1fr;
  }

  .pet-stage {
    min-height: 430px;
  }

  .pet-desktop-frame {
    position: relative;
    min-height: 430px;
  }

  .pet-workflow-copy {
    position: static;
  }

  .pet-hero-cat {
    width: 132px;
  }

  .pet-hero-cat-main {
    right: 86px;
    bottom: 76px;
    width: 178px;
  }

  .sprite-large {
    bottom: 70px;
    transform: translateX(-50%) scale(0.68);
  }

  .sprite-shadow {
    bottom: 52px;
    width: 220px;
  }

  .hero-facts,
  .explain-grid,
  .feature-list,
  .pet-cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-facts div:nth-child(2) {
    border-right: 0;
  }

  .hero-facts div:last-child {
    grid-column: 1 / -1;
    border-top: 2px solid var(--line);
  }

  .action-demo,
  .download-grid,
  .custom-panel,
  .studio-product-card {
    grid-template-columns: 1fr;
  }

  .studio-product-visual {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .pet-product-visual {
    min-height: 320px;
  }

  .studio-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-list div:nth-child(2) {
    border-right: 0;
  }

  .feature-list div:nth-child(1),
  .feature-list div:nth-child(2) {
    border-bottom: 2px solid var(--paper);
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 58px;
  }

  .brand span {
    display: none;
  }

  .language-option {
    min-height: 38px;
    min-width: 38px;
    padding: 0 8px;
    font-size: 13px;
  }

  .hero {
    min-height: 78svh;
    padding-top: 46px;
  }

  .studio-hero {
    min-height: 76svh;
    padding-top: 46px;
  }

  .studio-hero-note {
    right: 18px;
    bottom: 16px;
  }

  .studio-product-visual {
    min-height: 260px;
  }

  .studio-product-sprite {
    transform: scale(0.52);
  }

  .hero-stage {
    top: 61%;
    right: 8px;
    bottom: auto;
    width: 260px;
    min-width: 260px;
    height: 260px;
    opacity: 0.34;
  }

  .pet-hero {
    min-height: auto;
    padding-bottom: 300px;
  }

  .pet-hero-stage {
    right: 50%;
    bottom: 18px;
    width: 286px;
    min-width: 286px;
    height: 236px;
    opacity: 1;
    transform: translateX(50%);
  }

  .pet-hero-cat {
    width: 104px;
  }

  .pet-hero-cat-main {
    right: 72px;
    bottom: 58px;
    width: 142px;
  }

  .pet-hero-cat-left {
    bottom: 36px;
  }

  .pet-hero-cat-right {
    bottom: 28px;
  }

  .pet-shelf {
    bottom: 22px;
    height: 54px;
  }

  .pet-shelf::before,
  .pet-shelf::after {
    top: -31px;
    width: 58px;
    height: 58px;
  }

  .pet-landing {
    min-height: auto;
  }

  .pet-hero-facts {
    grid-template-columns: 1fr;
  }

  .pet-hero-facts div,
  .pet-hero-facts div:last-child {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .pet-hero-facts div:last-child {
    border-bottom: 0;
  }

  .pet-stage {
    min-height: 330px;
  }

  .pet-desktop-frame {
    min-height: 320px;
    box-shadow: 5px 5px 0 var(--line);
  }

  .pet-window-body {
    min-height: 274px;
  }

  .pet-stage-cat-main {
    bottom: 48px;
    width: 138px;
  }

  .pet-stage-cat-left {
    left: 5%;
    bottom: 42px;
    width: 98px;
  }

  .pet-stage-cat-right {
    right: 5%;
    bottom: 40px;
    width: 102px;
  }

  .pet-dock-import,
  .pet-dock-chat {
    left: 14px;
    right: auto;
    font-size: 12px;
  }

  .pet-dock-import {
    top: 54px;
  }

  .pet-dock-chat {
    bottom: 116px;
  }

  .pet-action-menu {
    top: 54px;
    right: 14px;
    min-width: 104px;
  }

  .pet-flow article {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: auto;
    padding: 18px;
  }

  .pet-flow strong {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }

  .sprite-large {
    bottom: 58px;
    transform: translateX(-50%) scale(0.48);
  }

  .sprite-shadow {
    bottom: 45px;
    width: 150px;
  }

  .impact-strip {
    bottom: 10px;
    transform: translateX(-50%) scale(0.78);
  }

  .hero-facts,
  .explain-grid,
  .feature-list,
  .pet-cat-grid {
    grid-template-columns: 1fr;
  }

  .pet-product-visual {
    min-height: 268px;
  }

  .pet-product-wave-wrap {
    width: min(78%, 246px);
  }

  .pet-product-wave-sprite {
    transform: scale(0.92);
    animation:
      petProductSpriteSteps 860ms steps(6) infinite,
      petProductFloatSmall 2.4s ease-in-out infinite;
  }

  @keyframes petProductFloatSmall {
    0%,
    100% {
      transform: translateY(0) scale(0.92);
    }
    50% {
      transform: translateY(-6px) scale(0.92);
    }
  }

  .pet-product-cat {
    width: 118px;
  }

  .pet-product-cat.cat-one {
    transform: translateX(24px) translateY(12px) scale(1.04);
  }

  .pet-product-cat.cat-two {
    transform: translateX(-14px) translateY(-18px) scale(0.9);
  }

  .pet-product-cat.cat-three {
    transform: translateX(-38px) translateY(18px) scale(0.98);
  }

  .hero-facts div,
  .hero-facts div:nth-child(2) {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .hero-facts div:last-child {
    border-top: 0;
    border-bottom: 0;
  }

  .feature-list div,
  .feature-list div:nth-child(1),
  .feature-list div:nth-child(2) {
    border-right: 0;
    border-bottom: 2px solid var(--paper);
  }

  .feature-list div:last-child {
    border-bottom: 0;
  }

  .file-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .custom-details div {
    min-height: auto;
  }

  .sprite-wrap {
    min-height: 280px;
    overflow: hidden;
  }

  .pet-sprite-wrap {
    min-height: 300px;
  }

  .pet-sprite-ground {
    bottom: 54px;
    width: 178px;
  }

  .pet-sprite {
    transform: scale(0.94);
  }

  .demo-window {
    width: 100%;
  }

  .demo-stage .sprite {
    transform: scale(0.64);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
