/* Wiggo — paste-up at the wrong scale.
   One painted green ground; everything else is torn paper, tape and cut-out prints.
   No build step, no external requests: the two faces are served from assets/fonts. */

@font-face {
  font-family: "M PLUS 1p";
  src: url("assets/fonts/m-plus-1p-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS 1p";
  src: url("assets/fonts/m-plus-1p-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS 1p";
  src: url("assets/fonts/m-plus-1p-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Mono";
  src: url("assets/fonts/noto-sans-mono-400.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Mono";
  src: url("assets/fonts/noto-sans-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #364433;
  --ink: #17150f;
  --cream: #e8e3d2;
  --pale: #d8d4c9;
  --mango: #e2892c;
  --sun: #f3ba16;
  --rose: #e98da5;
  --display: "M PLUS 1p", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --type: "Noto Sans Mono", "PingFang SC", "Hiragino Sans GB", monospace;
  --measure: 68ch;
  --gutter: clamp(1.15rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pasteup {
  margin: 0;
  background: var(--ground) url("assets/plates/painted-ground.png") repeat;
  background-size: 512px auto;
  color: var(--cream);
  font-family: var(--type);
  font-weight: 400;
  font-size: clamp(1rem, 0.93rem + 0.3vw, 1.125rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

a { color: inherit; }

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

/* ------------------------------------------------------------------ sheet */

.sheet {
  position: relative;
  max-width: 1536px;
  margin-inline: auto;
  container-type: inline-size;
}

.masthead {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.masthead > * { pointer-events: auto; }

.wordmark {
  position: absolute;
  left: 2.08%;
  top: 2.28%;
  font-family: var(--display);
  font-weight: 800;
  font-size: 6.4cqw;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-decoration: none;
  text-transform: none;
}

.tagline {
  position: absolute;
  left: 2.3%;
  top: 14.79%;
  font-size: 1.05cqw;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(23, 21, 15, 0.62);
  padding: 0.3em 0.7em 0.26em;
  transform: rotate(-0.6deg);
}

.index-tabs {
  position: absolute;
  left: 50%;
  right: 3%;
  top: 76%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55cqw;
  font-size: 1.15cqw;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.index-tabs a {
  text-decoration: none;
  padding: 0.42em 0.85em;
  color: var(--ink);
  background: var(--cream) url("assets/plates/lede-rule.png") no-repeat center bottom / 100% 6px;
  transform: rotate(-0.5deg);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 180ms;
}

.index-tabs a:nth-child(2n) { transform: rotate(0.7deg); background-color: var(--pale); }
.index-tabs a:nth-child(3n) { transform: rotate(-1deg); }

.index-tabs a:hover,
.index-tabs a:focus-visible { transform: rotate(0deg) translateY(-3px); filter: brightness(1.06); }

/* Ten languages live in one torn-paper slip. The endonyms in the list are never
   translated: a reader has to recognise their own language in any interface. */
.language-switch {
  position: absolute;
  left: 22.6%;
  top: 7.2%;
  z-index: 8;
  font-size: 1.05cqw;
  color: var(--ink);
  transform: rotate(-1deg);
}

.lang-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  min-width: 5.9em;
  padding: 0.42em 0.72em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  letter-spacing: 0.1em;
  background: var(--cream) url("assets/plates/lede-rule.png") no-repeat center bottom / 100% 6px;
  box-shadow: 2px 4px 9px rgba(23, 21, 15, 0.3);
}

.lang-chip::-webkit-details-marker { display: none; }
.lang-chip::marker { content: ""; }
.lang-chip:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.lang-chip-code { font-weight: 700; white-space: nowrap; }
.lang-chip-caret {
  width: 0; height: 0;
  border-left: 0.34em solid transparent;
  border-right: 0.34em solid transparent;
  border-top: 0.42em solid var(--ink);
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.language-switch[open] .lang-chip-caret { transform: rotate(180deg); }
.language-switch[data-auto="true"] .lang-chip-code::before {
  content: "";
  display: inline-block;
  width: 0.42em; height: 0.42em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--mango);
  vertical-align: 0.1em;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 15.2em;
  max-height: min(80vh, 36em); /* all eleven choices fit; scroll only on very short screens */
  overflow-y: auto;
  padding: 5px;
  background: var(--pale) url("assets/plates/lede-rule.png") no-repeat center bottom / 100% 8px;
  box-shadow: 3px 9px 22px rgba(23, 21, 15, 0.42);
  transform: rotate(0.5deg);
  scrollbar-color: var(--mango) rgba(23, 21, 15, 0.12);
  scrollbar-width: thin;
}
.lang-menu::-webkit-scrollbar { width: 8px; }
.lang-menu::-webkit-scrollbar-thumb { background: var(--mango); }
.lang-menu::-webkit-scrollbar-track { background: rgba(23, 21, 15, 0.12); }

.lang-menu button {
  font: inherit;
  font-size: 1em;
  text-align: left;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.42em 0.7em;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: rgba(232, 227, 210, 0.6);
  transition: background 140ms ease, transform 140ms ease;
}
.lang-menu button:nth-child(2n) { background: rgba(216, 212, 201, 0.7); }
.lang-menu button:hover,
.lang-menu button:focus-visible { background: var(--cream); transform: translateX(2px); }
.lang-menu button[aria-current="true"] { background: var(--sun); font-weight: 700; }
.lang-menu button[data-lang="auto"] {
  margin-bottom: 3px;
  border-bottom: 1px dashed rgba(23, 21, 15, 0.38);
  font-style: italic;
}

/* Uppercase and wide tracking are Latin lettering devices; CJK keeps its own spacing. */
:lang(zh) .tagline, :lang(zh) .action-tab, :lang(zh) .install-action, :lang(zh) .install-claims,
:lang(ja) .tagline, :lang(ja) .action-tab, :lang(ja) .install-action, :lang(ja) .install-claims,
:lang(ko) .tagline, :lang(ko) .action-tab, :lang(ko) .install-action, :lang(ko) .install-claims {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  aspect-ratio: 1536 / 720;
  container-type: inline-size;
}

.hero-pet {
  position: absolute;
  left: 1.82%;
  top: 6.25%;
  width: 43.95%;
  height: 84.03%;
  object-fit: cover;
  z-index: 1;
}

.headline {
  position: absolute;
  left: 49.8%;
  top: 6.25%;
  width: 28.65%;
  z-index: 2;
}

.headline-words {
  font-family: var(--type);
  font-weight: 700;
  font-size: 2.55cqw;
  line-height: 1.78;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}

/* Three cut paper bars. Drawn in CSS, not printed on a plate, so they still hug the
   words when the headline reflows at narrow widths or in Chinese. */
.bar {
  display: inline-block;
  padding: 0.05em 0.3em 0.1em;
  clip-path: polygon(1.2% 4%, 98.6% 0%, 100% 95%, 2% 100%);
}

.bar-cream { background: var(--cream); transform: rotate(-0.6deg); }
.bar-sun { background: var(--sun); transform: rotate(0.5deg); }
.bar-mango { background: var(--mango); transform: rotate(-0.4deg); }

.timecard {
  position: absolute;
  left: 81.25%;
  top: 3.06%;
  width: 15.63%;
  height: 25.83%;
  background: url("assets/plates/countdown-paper.png") no-repeat center / 100% 100%;
  z-index: 2;
}

.timecard-readout {
  position: absolute;
  left: 12%;
  top: 12%;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.7cqw;
  line-height: 1;
  color: var(--ink);
}

.timecard-list {
  position: absolute;
  left: 13%;
  top: 44%;
  width: 78%;
  font-size: 0.82cqw;
  line-height: 1.42;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.timecard-list li::before { content: "— "; color: rgba(23, 21, 15, 0.55); }

.sticker {
  position: absolute;
  left: 1.43%;
  top: 22.5%;
  width: 8.46%;
  height: 15.97%;
  z-index: 3;
}

.sticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/plates/free-sticker.png") no-repeat center / 100% 100%;
}

.sticker-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--type);
  font-weight: 700;
  font-size: 1.55cqw;
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.lede {
  position: absolute;
  left: 50.26%;
  top: 28.4%;
  width: 26.8%;
  font-size: 1.15cqw;
  line-height: 1.6;
  color: var(--cream);
  z-index: 2;
}

.lede-rule {
  position: absolute;
  left: 50.13%;
  top: 48.6%;
  width: 21%;
  height: auto;
  filter: invert(1);
  opacity: 0.85;
  z-index: 2;
}

.hero-actions {
  position: absolute;
  left: 54.69%;
  top: 50%;
  width: 23.11%;
  height: 12.77%;
  z-index: 3;
}

.action-tab {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: url("assets/plates/action-tab.png") no-repeat center / 100% 100%;
  font-weight: 600;
  font-size: 1.28cqw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 200ms;
}

.action-tab:hover,
.action-tab:focus-visible { transform: translateY(-4px) rotate(-0.6deg); filter: brightness(1.04); }

.action-quiet {
  position: absolute;
  left: 0;
  top: 108%;
  font-size: 1.1cqw;
  letter-spacing: 0.06em;
  color: var(--sun);
  text-decoration: none;
  border-bottom: 2px solid rgba(243, 186, 22, 0.45);
}

.action-quiet:hover { border-bottom-color: var(--sun); }

/* ------------------------------------------------------------------ rails */

main > section {
  max-width: 1536px;
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter) 0;
}

.rail-title {
  font-family: var(--type);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-block;
  position: relative;
  padding-bottom: 0.34em;
  margin-bottom: clamp(1.6rem, 3vw, 3rem);
}

/* A stroke of grease pencil under the title, torn from the same plate as the hero rule. */
.rail-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(7px, 0.22em, 16px);
  background: url("assets/plates/lede-rule.png") no-repeat left center / 100% 100%;
  filter: invert(1);
  opacity: 0.72;
  transform: rotate(-0.5deg);
}

/* ------------------------------------------------------------------ clips */

.clip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 2vw, 2rem);
  align-items: start;
}

.clip {
  position: relative;
  aspect-ratio: 912 / 569;
  background: var(--clip-plate) no-repeat center / 100% 100%;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.clip:hover { transform: rotate(0deg) translateY(-6px); }

.clip video {
  position: absolute;
  left: 3.73%;
  right: 3.73%;
  top: 5.98%;
  bottom: 5.98%;
  width: 92.54%;
  height: 88.05%;
  object-fit: cover;
}

.clip figcaption {
  position: absolute;
  left: 0.5%;
  bottom: -2.6em;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pale);
}

.clip-window { --clip-plate: url("assets/plates/clip-window.png"); --tilt: -1.1deg; }
.clip-imported { --clip-plate: url("assets/plates/clip-imported.png"); --tilt: 0.8deg; }
.clip-purr { --clip-plate: url("assets/plates/clip-purr.png"); --tilt: -0.6deg; }
.clip-wiggle { --clip-plate: url("assets/plates/clip-wiggle.png"); --tilt: 1.2deg; }

/* The fifth real recording: one wide print of a whole break under the three steps. */
.clip-loop {
  --clip-plate: url("assets/plates/clip-loop.png");
  --tilt: -0.5deg;
  width: min(100%, 760px);
  aspect-ratio: 1200 / 748;
  margin-top: clamp(2.4rem, 5vw, 4.5rem);
}

.clip-loop video {
  left: 3.67%;
  right: 3.67%;
  top: 5.88%;
  bottom: 5.88%;
  width: 92.66%;
  height: 88.24%;
}

.clip-note {
  margin-top: 4rem;
  max-width: 46ch;
  font-size: 0.86em;
  color: var(--pale);
}

/* ------------------------------------------------------------------- cats */

.cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 2.4vw, 2.2rem);
}

.cat-cards-art {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 1584 / 300;
  pointer-events: none;
}

.cat-card {
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.1rem, 2vw, 1.8rem) clamp(1.4rem, 2.6vw, 2.2rem);
  background: var(--card-plate) no-repeat center / 100% 100%;
  transform: rotate(var(--card-tilt, 0deg));
}

.cat-card:nth-child(2) { --card-plate: url("assets/plates/cat-card-1.png"); --card-tilt: -0.5deg; }
.cat-card:nth-child(3) { --card-plate: url("assets/plates/cat-card-2.png"); --card-tilt: 0.4deg; }
.cat-card:nth-child(4) { --card-plate: url("assets/plates/cat-card-3.png"); --card-tilt: -0.3deg; }

.cat-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.85rem + 0.7vw, 1.5rem);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.cat-card p { font-size: 0.86em; line-height: 1.6; }

.cat-photo {
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.6rem, 3.4vw, 3rem);
  max-width: 720px;
  color: var(--ink);
  background: url("assets/plates/note-slip.png") no-repeat center / 100% 100%;
  transform: rotate(-0.4deg);
}

/* -------------------------------------------------------------------- how */

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.6vw, 2.4rem);
}

.how-steps li {
  padding: clamp(1.4rem, 2.4vw, 2.4rem) clamp(1.1rem, 1.8vw, 1.8rem);
  color: var(--ink);
  background: var(--step-plate) no-repeat center / 100% 100%;
  position: relative;
}

.how-steps li:nth-child(1) { --step-plate: url("assets/plates/step-1.png"); transform: rotate(-0.6deg); }
.how-steps li:nth-child(2) { --step-plate: url("assets/plates/step-2.png"); transform: rotate(0.5deg); }
.how-steps li:nth-child(3) { --step-plate: url("assets/plates/step-3.png"); transform: rotate(-0.3deg); }

.how-steps h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.8rem + 0.8vw, 1.6rem);
  margin-bottom: 0.55em;
}

.how-steps p { font-size: 0.86em; line-height: 1.62; }

/* ----------------------------------------------------------------- notice */

.notice-list {
  max-width: 74ch;
  padding: clamp(1.6rem, 3vw, 2.8rem) clamp(1.4rem, 3vw, 3rem);
  color: var(--ink);
  background: url("assets/plates/notice-slip.png") no-repeat center / 100% 100%;
}

.notice-list li {
  padding-left: 1.5em;
  position: relative;
  font-size: 0.92em;
  line-height: 1.7;
}

.notice-list li + li { margin-top: 0.55em; }

.notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7em;
  height: 3px;
  background: var(--mango);
  transform: rotate(-2deg);
}

/* ---------------------------------------------------------------- privacy */

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.privacy .rail-title { grid-column: 1 / -1; margin-bottom: 0; }

.privacy-lead {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.3rem);
  line-height: 1.22;
  color: var(--sun);
}

.privacy-list {
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 2.6vw, 2.6rem);
  color: var(--ink);
  background: url("assets/plates/privacy-sheet.png") no-repeat center / 100% 100%;
  transform: rotate(0.4deg);
}

.privacy-list li {
  font-size: 0.9em;
  line-height: 1.66;
  padding-left: 1.5em;
  position: relative;
}

.privacy-list li + li { margin-top: 0.7em; }

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7em;
  height: 3px;
  background: var(--mango);
  transform: rotate(-2deg);
}

/* -------------------------------------------------------------- questions */

.questions {
  position: relative;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.slip-tab {
  font-family: var(--type);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: url("assets/plates/tab-slip.png") no-repeat center / 100% 100%;
  display: inline-block;
  padding: 0.7em 2em 0.6em;
  transform: rotate(-1.1deg);
  margin-bottom: -1.1em;
  position: relative;
  z-index: 2;
}

.qa-list {
  columns: 2;
  column-gap: clamp(1.6rem, 4vw, 4rem);
  padding: clamp(2rem, 3.4vw, 3.2rem) clamp(1.4rem, 3vw, 3rem);
  color: var(--ink);
  background: url("assets/plates/questions-slip.png") no-repeat center / 100% 100%;
}

.qa-list > div { break-inside: avoid; margin-bottom: 1.6em; }

.qa-list dt {
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1.4;
  color: var(--ink);
}

.qa-list dd {
  margin: 0.35em 0 0;
  font-size: 0.86em;
  line-height: 1.62;
  color: #3b3529;
}

/* ----------------------------------------------------------------- install */

.install { padding-bottom: clamp(4rem, 8vw, 7rem); }

.install-block {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  color: var(--ink);
  padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1.6rem, 3vw, 2.6rem);
  background: url("assets/plates/install-block.png") no-repeat center / 100% 100%;
}

.install-block h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 1.1em;
}

.install-action {
  display: grid;
  place-content: center;
  width: min(340px, 86%);
  margin-inline: auto;
  aspect-ratio: 1065 / 276;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: url("assets/plates/action-tab.png") no-repeat center / 100% 100%;
  transform: rotate(-0.8deg);
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 200ms;
}

.install-action:hover,
.install-action:focus-visible {
  transform: rotate(0deg) translateY(-4px);
  filter: brightness(1.04);
}

.install-claims {
  margin-top: 1em;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-honest {
  margin-top: 1.6em;
  font-size: 0.82em;
  line-height: 1.6;
  text-align: left;
  color: #3a2a12;
}

.install-links {
  margin-top: 1.8em;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  justify-content: center;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-links a { text-decoration: none; border-bottom: 2px solid rgba(23, 21, 15, 0.25); }
.install-links a:hover { border-bottom-color: var(--ink); }

/* ----------------------------------------------------------------- footer */

.site-footer {
  max-width: 1536px;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  border-top: 2px solid rgba(232, 227, 210, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 1em 2em;
  align-items: baseline;
  font-size: 0.86em;
  color: var(--pale);
}

.site-footer a { color: var(--cream); text-decoration: none; border-bottom: 2px solid rgba(243, 186, 22, 0.4); }
.site-footer a:hover { border-bottom-color: var(--sun); }

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-pet {
    animation: paste-down 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes paste-down {
    from { transform: scale(1.06) rotate(1.4deg); filter: blur(7px); }
    to { transform: none; filter: none; }
  }

  .sticker::before {
    animation: sticker-drop 700ms 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes sticker-drop {
    from { transform: rotate(-9deg) scale(1.18); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* -------------------------------------------------------------- responsive */

/* Cyrillic sticker words run wider than the two-word English original.
   cqw only has meaning at the desktop collage scale. */
@media (min-width: 1081px) {
  :lang(ru) .sticker-label { font-size: 1.42cqw; letter-spacing: 0.01em; }
}

@media (max-width: 1080px) {
  .hero { aspect-ratio: auto; container-type: normal; }

  .masthead { position: static; display: flex; flex-wrap: wrap; align-items: flex-start;
    gap: 0.5rem 1rem; padding: clamp(1.4rem, 5vw, 2.4rem) var(--gutter) 0; }

  .wordmark { position: static; flex: 1 0 100%; display: block; font-size: clamp(2.6rem, 12vw, 4rem); }
  /* CJK taglines are long; let them wrap rather than push the chip off-screen. */
  .tagline { position: static; display: inline-block; flex: 0 1 auto; min-width: 0;
    overflow-wrap: anywhere; margin-top: 0.3em; font-size: 0.7rem; }
  .language-switch { position: relative; left: auto; top: auto; order: 1; flex: 0 0 auto;
    margin-top: 0.3em; margin-left: auto; transform: none; font-size: 0.72rem; }
  .lang-chip { font-size: 0.72rem; padding: 0.45em 0.7em; }
  .lang-menu { left: auto; right: 0; min-width: 14em; max-width: calc(100vw - 2rem);
    max-height: min(72vh, 34em); }
  .index-tabs { position: static; order: 2; flex: 1 0 100%; margin-top: 1.4rem; font-size: 0.72rem; gap: 0.4rem; }

  .hero > * { position: static; width: auto; height: auto; }

  .hero { padding: 0 var(--gutter); display: grid; gap: clamp(1.4rem, 4vw, 2.4rem); }

  .hero-pet { width: min(100%, 620px); height: auto; aspect-ratio: 675 / 605; }

  .headline { padding: 0.4em 0 0; }
  .headline-words { position: static; font-size: clamp(1.35rem, 5.4vw, 2.1rem); }

  .timecard { padding: 1.2rem 1.2rem 1.4rem clamp(3.4rem, 16%, 5rem); min-height: 260px; max-width: 560px; }
  .timecard-readout { position: static; font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .timecard-list { position: static; margin-top: 0.8em; font-size: 0.8rem; }

  .sticker { position: absolute; left: auto; right: var(--gutter); top: 1rem; width: 84px; height: 74px; }
  .sticker-label { font-size: 0.7rem; }
  :lang(ru) .sticker-label { letter-spacing: 0.01em; }

  .lede { font-size: 1rem; max-width: 62ch; }
  .lede-rule { width: 220px; height: 5px; }

  .hero-actions { position: static; display: grid; gap: 1.2rem; justify-items: start; }
  .action-tab { position: static; display: grid; place-content: center; width: min(340px, 100%);
    height: auto; aspect-ratio: 1065 / 276; padding: 0; font-size: 0.86rem; }
  .action-quiet { position: static; font-size: 0.86rem; }
}

@media (max-width: 900px) {
  .clip-row { grid-template-columns: repeat(2, 1fr); gap: 3.5rem 1.2rem; }
  .cat-cards, .how-steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .cat-cards-art { width: 66%; margin-inline: auto; }
  .privacy { grid-template-columns: 1fr; }
  .qa-list { columns: 1; }
}

@media (max-width: 560px) {
  .clip-row { grid-template-columns: 1fr; gap: 3.5rem; }
  .sticker { display: none; }
}
