:root {
  --paper: #faf9f3;
  --ivory: #f1f0e4;
  --ink: #101712;
  --forest: #254c3a;
  --forest-2: #356650;
  --moss: #afc85a;
  --sky: #6aa6bf;
  --line: #aeb9a8;
  --muted: #3d4942;
  --white: #fffef9;
  --radius: 28px;
  --shadow: 0 22px 50px rgba(37, 76, 58, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

body::before {
  width: 360px;
  height: 360px;
  right: -130px;
  top: 100px;
  background: rgba(175, 200, 90, 0.13);
}

body::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: 8%;
  background: rgba(106, 166, 191, 0.1);
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  z-index: 20;
  background-image: radial-gradient(rgba(16, 23, 18, 0.055) 0.45px, transparent 0.45px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

a { color: inherit; }

.site-header,
.site-footer,
#app {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: baseline;
  text-decoration: none;
}

.brand-cn { font-size: 20px; font-weight: 700; letter-spacing: 0.08em; }
.brand-en { font: 12px/1 Georgia, serif; color: var(--forest); letter-spacing: 0.13em; }

.top-nav { display: flex; gap: 28px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top-nav a:hover { color: var(--forest); }

#app { min-height: 72vh; }
#app:focus { outline: none; }
#app.route-enter > * { animation: page-enter .58s cubic-bezier(.2,.72,.28,1) both; }

.home-hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 62px 0 36px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--forest);
  font: 12px/1.2 Georgia, serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.home-hero h1 em {
  display: block;
  margin-left: 1.1em;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 660px;
  margin: 32px 0 0;
  font-size: 19px;
  line-height: 1.9;
  color: var(--muted);
}

.hero-tags,
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags { margin-top: 28px; }
.tag,
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--forest);
  background: rgba(255, 254, 249, 0.68);
  font-size: 13px;
}

.hero-illustration {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
}

.hero-illustration::before {
  content: "";
  width: 310px;
  height: 310px;
  position: absolute;
  border-radius: 48% 52% 59% 41% / 46% 44% 56% 54%;
  background: var(--ivory);
  border: 1px solid var(--line);
  transform: rotate(-6deg);
  animation: blob-breathe 9s ease-in-out infinite;
}

.hero-cat-stage {
  position: relative;
  z-index: 1;
  width: min(326px, 82%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(var(--cat-shift-x, 0), var(--cat-shift-y, 0));
  transition: transform .45s cubic-bezier(.2,.72,.28,1);
}

.hero-cat {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 20px rgba(37, 76, 58, 0.08));
  transform-origin: 48% 86%;
}

.vector-cat {
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: visible;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 8px 14px rgba(43, 73, 56, .07));
}

.vector-cat .cat-fur {
  fill: #f2ede3;
  stroke: #3e5d4d;
  stroke-width: 2.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vector-cat .cat-patch {
  fill: #ddd4c2;
  stroke: #6c7b60;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vector-cat .cat-ear-inner { fill: #dcb8b1; opacity: .58; }
.vector-cat .cat-line,
.vector-cat .cat-eyes--sleepy {
  fill: none;
  stroke: #3e5d4d;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vector-cat .cat-eyes { fill: #355444; }
.vector-cat .cat-eye-glint { fill: #faf8f1; stroke: none; }
.vector-cat .cat-nose { fill: #c49a94; stroke: #3e5d4d; stroke-width: 1.2; }
.vector-cat .cat-blush { fill: #dcb8b1; opacity: .26; }
.vector-cat .cat-scarf,
.vector-cat .cat-scarf-knot,
.vector-cat .cat-scarf-tail {
  fill: #839ca4;
  stroke: #3e5d4d;
  stroke-width: 1.95;
  stroke-linejoin: round;
}
.vector-cat .cat-scarf-detail {
  fill: none;
  stroke: rgba(250, 248, 241, .78);
  stroke-width: 1.7;
  stroke-linecap: round;
}
.vector-cat .cat-ground { fill: rgba(62, 93, 77, .075); }
.vector-cat .cat-paw-pad,
.vector-cat .cat-paw-toe { fill: #c49a94; stroke: #3e5d4d; stroke-width: 1.15; }
.vector-cat .cat-yarn circle { fill: #b7c879; stroke: #3e5d4d; stroke-width: 1.9; }
.vector-cat .cat-yarn path { fill: none; stroke: #3e5d4d; stroke-width: 1.7; stroke-linecap: round; }
.vector-cat .cat-ledge { fill: none; stroke: #3e5d4d; stroke-width: 2.4; stroke-linecap: round; }

.vector-cat .cat-part { transform-box: fill-box; }
.vector-cat .cat-eyes { transform-origin: center; animation: cat-blink 5.8s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat .cat-ear-left { transform-origin: 76% 100%; animation: cat-ear-left 7.2s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat .cat-ear-right { transform-origin: 24% 100%; animation: cat-ear-right 7.2s cubic-bezier(.45,0,.55,1) infinite; animation-delay: -.12s; }
.vector-cat .cat-head-group { transform-origin: 50% 82%; animation: cat-head-bob 5.2s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat .cat-breath { transform-origin: 50% 75%; animation: cat-breathe 4.8s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat .cat-tail { transform-origin: 82% 55%; animation: cat-tail-swish 5.4s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--wave .cat-wave-paw { transform-origin: 48% 86%; animation: cat-paw-wave 3.2s cubic-bezier(.42,0,.58,1) infinite; }
.vector-cat--walk .cat-walk-body { transform-origin: center; animation: cat-walk-bob 1.65s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--walk .cat-leg-a { transform-origin: 50% 4%; animation: cat-step-a 1.65s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--walk .cat-leg-b { transform-origin: 50% 4%; animation: cat-step-b 1.65s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--sleep .cat-tail { animation-duration: 6.2s; }
.vector-cat--peek .cat-peek-head { transform-origin: 50% 88%; animation: cat-peek-bob 4.2s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--peek .cat-peek-paw { transform-origin: 50% 85%; animation: cat-peek-paw 4.2s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--peek .cat-peek-paw--right { animation-delay: -.48s; }
.vector-cat--play .cat-play-body { transform-origin: 60% 70%; animation: cat-play-ready 3.8s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--play .cat-play-paw { transform-origin: 30% 12%; animation: cat-paw-tap 2.8s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--play .cat-yarn { transform-origin: center; animation: cat-yarn-roll 2.8s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--roll .cat-roll-body { transform-origin: center; animation: cat-roll-breathe 4.8s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--roll .cat-roll-paw-a { transform-origin: 50% 90%; animation: cat-kick-a 3.6s cubic-bezier(.45,0,.55,1) infinite; }
.vector-cat--roll .cat-roll-paw-b { transform-origin: 50% 90%; animation: cat-kick-b 4.1s cubic-bezier(.45,0,.55,1) infinite; animation-delay: -.7s; }
.vector-cat--rest .cat-head-group { animation-duration: 6.2s; }

.vector-cat .cat-part { animation-play-state: paused; }
.is-motion-playing .vector-cat .cat-part { animation-play-state: running; }

.handdrawn-cat {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  filter: drop-shadow(0 10px 16px rgba(37, 76, 58, .075));
}
.handdrawn-cat-body,
.handdrawn-cat-moving-part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.handdrawn-cat-body img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.handdrawn-cat-body {
  transform-origin: 50% 78%;
  animation-name: handdrawn-breathe;
  animation-duration: 5.8s;
  animation-timing-function: cubic-bezier(.45, 0, .55, 1);
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
.handdrawn-cat-moving-part {
  animation-duration: 4.8s;
  animation-timing-function: cubic-bezier(.45, 0, .55, 1);
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
.handdrawn-cat--wave .handdrawn-cat-moving-part {
  clip-path: polygon(56% 27%, 79% 27%, 80% 69%, 54% 69%);
  transform-origin: 61% 65%;
  animation-name: handdrawn-wave-part;
}
.hero-cat .handdrawn-cat-body {
  animation-name: handdrawn-hero-float;
}
.handdrawn-cat--walk .handdrawn-cat-moving-part {
  clip-path: polygon(0 0, 47% 0, 47% 83%, 0 83%);
  transform-origin: 43% 56%;
  animation-name: handdrawn-tail-part;
  animation-duration: 5.6s;
}
.handdrawn-cat--sleep .handdrawn-cat-moving-part {
  clip-path: polygon(3% 8%, 58% 8%, 58% 70%, 3% 70%);
  transform-origin: 48% 61%;
  animation-name: handdrawn-sleep-part;
  animation-duration: 6.4s;
}
.handdrawn-cat--peek .handdrawn-cat-moving-part {
  clip-path: inset(0 0 35% 0);
  transform-origin: 50% 63%;
  animation-name: handdrawn-peek-part;
  animation-duration: 5.2s;
}
.handdrawn-cat--play .handdrawn-cat-moving-part {
  clip-path: polygon(49% 27%, 100% 27%, 100% 100%, 49% 100%);
  transform-origin: 58% 60%;
  animation-name: handdrawn-play-part;
  animation-duration: 5.1s;
}
.handdrawn-cat--roll .handdrawn-cat-moving-part {
  clip-path: polygon(29% 0, 88% 0, 88% 78%, 29% 78%);
  transform-origin: 47% 70%;
  animation-name: handdrawn-roll-part;
  animation-duration: 5.4s;
}
.handdrawn-cat--rest .handdrawn-cat-moving-part {
  clip-path: polygon(0 5%, 56% 5%, 56% 75%, 0 75%);
  transform-origin: 51% 65%;
  animation-name: handdrawn-rest-part;
  animation-duration: 6.1s;
}
.is-motion-playing .handdrawn-cat .cat-part { animation-play-state: running; }

.hero-cat-stage::after,
.work-motion::after,
.detail-motion::after,
.extras-motion::after,
.about-motion::after,
.document-motion::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 7%;
  pointer-events: none;
  border-radius: 42%;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(37, 76, 58, .45) .45px, transparent .55px);
  background-size: 6px 6px;
}

.doodle-star {
  position: absolute;
  color: var(--sky);
  font-size: 34px;
  z-index: 2;
}
.star-one { top: 52px; right: 16%; transform: rotate(12deg); }
.star-two { bottom: 55px; left: 7%; color: var(--moss); font-size: 24px; }
.star-one { animation: star-float 3.2s ease-in-out infinite; }
.star-two { animation: star-float 3.8s ease-in-out -1.1s infinite; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 0 28px;
}

.section-heading h2,
.detail-heading h1,
.about-page h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.section-note { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.75; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 82px;
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 432px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 249, 0.83);
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 26px;
  transition: transform .22s ease, box-shadow .22s ease;
  animation: card-fade .56s ease both;
  animation-delay: calc(var(--card-order, 0) * 80ms + 120ms);
}

.work-card-copy { position: relative; z-index: 2; }
.work-card-side {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.work-motion {
  position: relative;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.work-motion::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 13px 8px 7px 11px;
  border-radius: 48% 52% 44% 56% / 57% 45% 55% 43%;
  background: var(--ivory);
  background: color-mix(in srgb, var(--motion-accent, rgba(175, 200, 90, .24)) 70%, var(--ivory));
  border: 1px solid rgba(37, 76, 58, .13);
}
.work-card-cat {
  width: 100%;
  height: 100%;
  padding: 4px;
  filter: drop-shadow(0 8px 10px rgba(37, 76, 58, 0.07));
  transform: translateY(0);
  transform-origin: 50% 70%;
  will-change: transform;
}
.work-card.is-motion-playing .work-card-cat {
  animation: work-cat-hover-float 3.6s cubic-bezier(.45, 0, .55, 1) infinite;
}

.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -72px;
  bottom: -72px;
  border-radius: 50%;
  background: var(--card-accent, rgba(175, 200, 90, 0.24));
}

.work-index { font: italic 34px/1 Georgia, serif; color: var(--forest); }
.work-type { margin: 18px 0 8px; color: var(--forest); font-size: 13px; }
.work-card h3 { margin: 0; font-size: 30px; font-weight: 500; }
.work-card p { color: var(--muted); line-height: 1.75; }

.card-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.primary-link,
.back-link,
.attachment-link,
.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--forest);
  min-height: 42px;
  padding: 0 18px;
  background: var(--forest);
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.copy-link { background: transparent; color: var(--forest); }
.qr-block { align-self: center; position: relative; z-index: 2; text-align: center; }
.qr-box { width: 168px; min-height: 168px; padding: 0; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.qr-box img, .qr-box canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-box:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
.qr-dialog { width: min(90vw, 480px); padding: 20px; border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.qr-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.qr-dialog canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; margin-top: 12px; }
.qr-caption { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }

.detail-page { padding: 38px 0 78px; }
.back-link { background: transparent; color: var(--forest); margin-bottom: 40px; }

.detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 186px 210px;
  gap: 30px;
  align-items: center;
  margin-bottom: 34px;
}

.detail-subtitle { color: var(--forest); font: italic 18px/1.5 Georgia, serif; }
.detail-summary { max-width: 760px; font-size: 17px; line-height: 1.85; color: var(--muted); }
.detail-motion {
  position: relative;
  width: 182px;
  height: 168px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.detail-motion::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px 8px 5px 12px;
  border-radius: 43% 57% 52% 48% / 54% 42% 58% 46%;
  background: var(--ivory);
  background: color-mix(in srgb, var(--motion-accent, rgba(175, 200, 90, .22)) 74%, var(--ivory));
  border: 1px solid rgba(37, 76, 58, .14);
}
.detail-cat {
  width: 100%;
  height: 100%;
  padding: 5px;
  filter: drop-shadow(0 9px 12px rgba(37, 76, 58, 0.07));
}
.detail-qr { justify-self: end; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); text-align: center; }

.video-shell {
  background: #13271e;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid var(--forest);
}

.video-shell video { display: block; width: 100%; max-height: 74vh; background: #0c1511; }
.video-meta { display: flex; justify-content: space-between; gap: 18px; padding: 14px 18px; color: #eff4ea; font-size: 13px; }
.video-fallback { margin: 0; padding: 16px 20px; color: #f5f2e7; background: #254c3a; }
.video-fallback a { color: #d8ea91; text-decoration: underline; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 28px;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 254, 249, 0.8);
}
.route-enter .content-panel { animation: panel-rise .55s ease both; }
.route-enter .content-panel:nth-child(2) { animation-delay: 90ms; }

.content-panel h2,
.extras-section h2 { margin: 0 0 18px; font-size: 25px; font-weight: 500; }
.content-panel p, .content-panel li { color: var(--muted); line-height: 1.85; }
.highlight-list { padding-left: 1.3em; margin: 0; }

.attachments { display: grid; gap: 12px; }
.attachment-link { justify-content: space-between; border-radius: 16px; background: var(--ivory); color: var(--forest); border-color: var(--line); text-align: left; }
.attachment-link span:last-child { font-size: 11px; color: var(--muted); }

.extras-section { position: relative; margin-top: 48px; padding-top: 8px; }
.extras-section > h2 { padding-right: 174px; }
.extras-motion {
  position: absolute;
  width: 154px;
  height: 116px;
  right: 8px;
  top: -24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.extras-cat {
  width: 148px;
  height: 132px;
  transform: translateY(19px);
}
.extras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.extra-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--white); }
.route-enter .extra-card { animation: card-fade .58s ease both; animation-delay: calc(var(--extra-order, 0) * 100ms + 180ms); }
.extra-card video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #101712; }
.extra-card-copy { padding: 18px; }
.extra-card h3 { margin: 0 0 8px; font-size: 20px; }
.extra-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.about-page { padding: 64px 0 100px; }
.about-layout { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 60px; align-items: start; }
.about-motion {
  position: relative;
  width: min(100%, 340px);
  min-height: 390px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.about-motion::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  border-radius: 53% 47% 45% 55% / 41% 58% 42% 59%;
  background: rgba(175, 200, 90, .17);
  border: 1px solid var(--line);
}
.about-cat {
  width: 100%;
  max-width: 330px;
  height: 370px;
  justify-self: center;
  filter: drop-shadow(0 16px 24px rgba(37, 76, 58, 0.08));
}
.about-copy p { font-size: 18px; line-height: 1.9; color: var(--muted); }
.contact-card { margin-top: 28px; padding: 24px; border-radius: 22px; background: var(--forest); color: white; }
.contact-card a { display: block; margin-top: 8px; text-decoration: none; }

.document-page { padding: 42px 0 96px; }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 36px; }
.document-toolbar .back-link { margin: 0; }
.document-header { position: relative; max-width: 980px; min-height: 188px; margin-bottom: 28px; padding-right: 210px; }
.document-motion {
  position: absolute;
  width: 188px;
  height: 172px;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.document-motion::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 19px 10px 4px 15px;
  border-radius: 49% 51% 45% 55% / 57% 43% 57% 43%;
  background: var(--ivory);
  background: color-mix(in srgb, var(--motion-accent, rgba(175, 200, 90, .22)) 68%, var(--ivory));
  border: 1px solid rgba(37, 76, 58, .13);
}
.document-cat {
  width: 100%;
  height: 100%;
  padding: 4px;
}
.document-header h1, .document-page > h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 58px); font-weight: 500; letter-spacing: -.04em; }
.document-header > p:last-child { color: var(--muted); line-height: 1.8; }
.document-note { padding: 16px 20px; border-left: 4px solid var(--moss); background: var(--ivory); color: var(--muted); line-height: 1.75; }
.document-paper { padding: clamp(24px, 5vw, 62px); border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.route-enter .document-paper { animation: paper-open .66s cubic-bezier(.2,.72,.28,1) 100ms both; }
.doc-heading { margin: 2.2em 0 .75em; font-size: 24px; font-weight: 500; color: var(--forest); }
.doc-heading:first-child { margin-top: 0; }
.doc-paragraph { margin: 0 0 1em; color: var(--muted); font-size: 16px; line-height: 1.9; white-space: pre-wrap; }
.sheet-section + .sheet-section { margin-top: 42px; }
.sheet-section h2 { font-size: 24px; font-weight: 500; }
.table-scroll { overflow-x: auto; margin: 20px 0 36px; border: 1px solid var(--line); border-radius: 16px; }
.document-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.document-table th, .document-table td { min-width: 110px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; text-align: left; white-space: pre-wrap; }
.document-table th { position: sticky; top: 0; background: var(--forest); color: white; font-weight: 500; }
.document-table tr:last-child td { border-bottom: 0; }
.document-table th:last-child, .document-table td:last-child { border-right: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--muted);
}
.footer-title { margin: 0 0 8px; color: var(--ink); font-size: 22px; }
.footer-contact { display: grid; gap: 8px; text-align: right; }
.footer-contact a { text-decoration: none; }

.empty-qr { display: grid; place-items: center; color: var(--muted); font-size: 11px; }

@keyframes page-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes panel-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes paper-open {
  from { opacity: 0; transform: translateY(14px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes blob-breathe {
  0%, 100% { border-radius: 48% 52% 59% 41% / 46% 44% 56% 54%; transform: rotate(-6deg) scale(1); }
  50% { border-radius: 55% 45% 46% 54% / 53% 58% 42% 47%; transform: rotate(-3deg) scale(1.025); }
}

@keyframes star-float {
  0%, 100% { opacity: .7; transform: translateY(0) rotate(8deg) scale(.92); }
  50% { opacity: 1; transform: translateY(-7px) rotate(18deg) scale(1.08); }
}

@keyframes cat-blink {
  0%, 43%, 47%, 74%, 78%, 100% { transform: scaleY(1); }
  45%, 76% { transform: scaleY(.12); }
}

@keyframes cat-ear-left {
  0%, 58%, 66%, 100% { transform: rotate(0); }
  61% { transform: rotate(-4deg); }
  64% { transform: rotate(1.5deg); }
}

@keyframes cat-ear-right {
  0%, 58%, 66%, 100% { transform: rotate(0); }
  61% { transform: rotate(3.5deg); }
  64% { transform: rotate(-1deg); }
}

@keyframes cat-head-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(.8px) rotate(-.55deg); }
}

@keyframes cat-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.009, 1.015); }
}

@keyframes cat-tail-swish {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(3.5deg); }
}

@keyframes cat-paw-wave {
  0%, 100% { transform: rotate(-4deg); }
  35% { transform: rotate(6deg); }
  65% { transform: rotate(-7deg); }
}

@keyframes cat-walk-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

@keyframes cat-step-a {
  0%, 100% { transform: rotate(3.5deg) translateY(0); }
  50% { transform: rotate(-4.5deg) translateY(-1.5px); }
}

@keyframes cat-step-b {
  0%, 100% { transform: rotate(-4.5deg) translateY(-1.5px); }
  50% { transform: rotate(3.5deg) translateY(0); }
}

@keyframes cat-peek-bob {
  0%, 100% { transform: translateY(1px); }
  45%, 70% { transform: translateY(-3px); }
}

@keyframes cat-peek-paw {
  0%, 100% { transform: translateY(1px) rotate(0); }
  48% { transform: translateY(-2.5px) rotate(-2deg); }
}

@keyframes cat-play-ready {
  0%, 100% { transform: translateY(0) rotate(0); }
  55% { transform: translateY(1px) rotate(-.5deg); }
}

@keyframes cat-paw-tap {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  48% { transform: rotate(6deg) translateY(2.5px); }
}

@keyframes cat-yarn-roll {
  0%, 100% { transform: translateX(0) rotate(0); }
  48% { transform: translateX(3px) rotate(8deg); }
}

@keyframes cat-roll-breathe {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(.6deg) scale(1.006); }
}

@keyframes cat-kick-a {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg) translateY(-1.5px); }
}

@keyframes cat-kick-b {
  0%, 100% { transform: rotate(4deg) translateY(-1.5px); }
  50% { transform: rotate(-3deg); }
}

@keyframes handdrawn-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-.6px) scale(1.004, 1.008); }
}

@keyframes handdrawn-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.8px); }
}

@keyframes handdrawn-wave-part {
  0%, 100% { transform: rotate(-.35deg); }
  42% { transform: rotate(.8deg) translateY(-.35px); }
  72% { transform: rotate(-.6deg); }
}

@keyframes handdrawn-tail-part {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(2deg) translateY(-.5px); }
}

@keyframes handdrawn-sleep-part {
  0%, 72%, 100% { transform: rotate(0) translateY(0); }
  78% { transform: rotate(-1.2deg) translateY(-.7px); }
  84% { transform: rotate(.6deg); }
}

@keyframes handdrawn-peek-part {
  0%, 100% { transform: translateY(.6px) rotate(0); }
  48%, 68% { transform: translateY(-1.6px) rotate(-.35deg); }
}

@keyframes handdrawn-play-part {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  52% { transform: translate(1.5px, -1px) rotate(1deg); }
}

@keyframes handdrawn-roll-part {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  46% { transform: translateY(-1.2px) rotate(1.2deg); }
  72% { transform: translateY(-.4px) rotate(-.8deg); }
}

@keyframes handdrawn-rest-part {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(.7px) rotate(-.45deg); }
}

@keyframes work-cat-hover-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 820px) {
  .site-header, .site-footer, #app { width: min(100% - 26px, 1180px); }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; }
  .hero-illustration { min-height: 320px; }
  .work-grid, .detail-grid, .extras-grid, .about-layout { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: minmax(0, 1fr) 168px; min-height: 408px; padding: 24px; }
  .work-motion { width: 118px; height: 118px; }
  .detail-heading { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
  .detail-heading > div:first-child { grid-column: 1 / -1; }
  .detail-motion { grid-column: 1; width: 146px; height: 138px; }
  .detail-qr { grid-column: 2; justify-self: start; }
  .section-heading { align-items: start; flex-direction: column; }
  .about-motion { justify-self: center; min-height: 340px; }
}

@media (max-width: 520px) {
  .top-nav { gap: 14px; }
  .brand-en { display: none; }
  .home-hero h1 { font-size: 53px; }
  .hero-lead { font-size: 16px; }
  .work-card { grid-template-columns: 1fr; min-height: 0; }
  .work-card-side { flex-direction: row; align-items: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
  .work-motion { width: 138px; height: 118px; }
  .work-card-cat { width: 100%; height: 100%; }
  .qr-block { margin-top: 0; text-align: center; }
  .detail-heading h1 { font-size: 42px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 42px 0; }
  .footer-contact { text-align: left; }
  .document-toolbar { align-items: flex-start; flex-direction: column; }
  .document-header { min-height: 0; padding-right: 0; }
  .document-motion { position: relative; width: 138px; height: 126px; margin: 0 0 18px auto; }
  .document-cat { width: 100%; height: 100%; }
  .document-paper { padding: 20px; border-radius: 20px; }
  .doc-paragraph { font-size: 15px; }
  .extras-section > h2 { padding-right: 112px; }
  .extras-motion { width: 104px; height: 82px; right: 0; top: -12px; }
  .extras-cat { width: 102px; height: 92px; transform: translateY(13px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-cat-stage { transform: none !important; }
}
