/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&display=swap');

:root {
  --bg-white: #FFFFFF;
  --typo-black: #262145;
  --typo-pink: #ED1F79;
  --typo-bordo: #4D2219;
  --typo-gray: #3F3F3F;
  --btn-default: #ED1F79;
  --btn-border: #372D52;
  --btn-shadow: #301837;
  --header-shadow: rgba(69,59,59,0.1);
  --nav-text: #832638;
  --bg-brown: #BF5D5C;
  --font-main: 'Baloo 2', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  color: var(--typo-black);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; padding: 0; }

html { font-size: calc(100vw / 1440 * 10); overflow-x: hidden; overflow-y: scroll; }
@media (max-width: 1024px) { html { font-size: calc(100vw / 1024 * 10); } }
@media (max-width: 640px) { html { font-size: calc(100vw / 375 * 10); } }

html.hide #preloader { display: none; }
html.menu-lock, html.menu-lock body { overflow: hidden; }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
}
#preloader img { width: 6rem; height: 6rem; }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  padding: 9rem 2rem 2rem;
  gap: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  font-weight: 500;
  color: var(--nav-text);
  padding: 0.8rem 0;
  transition: color 0.3s ease;
}
#mobile-menu .nav-link:hover { color: var(--typo-pink); }

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0;
  position: relative;
  z-index: 101;
}
.burger-btn span {
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--typo-black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn.act span:nth-child(1) { transform: translateY(0.7rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.7rem) rotate(-45deg); }

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 0.2rem 1.2rem rgba(0,0,0,.15);
}

.store-btn { transition: opacity 0.3s ease, transform 0.3s ease; }
.store-btn:hover { opacity: 0.88; }

@keyframes store-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1rem); }
}

#year { }
/* /stp:base */
/* stp:header */
.header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(1.2rem);
  box-shadow: 0.6rem 0.6rem 1.2rem var(--header-shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.2rem;
  padding: 0 8rem;
  width: 100%;
}
.logo-link { display: block; flex: 0 0 auto; transition: opacity 0.3s ease; }
.logo-link:hover { opacity: 0.8; }
.logo-img { width: 4rem; height: 4rem; border-radius: 0.4rem; object-fit: cover; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav .nav-link {
  font-size: clamp(14px, 1.6rem, 1.6rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--nav-text);
  padding: 0.8rem 1.2rem;
  border-radius: 5rem;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
}
.main-nav .nav-link:hover { color: var(--typo-pink); background: rgba(237,31,121,0.08); }

@media (max-width: 1024px) {
  .header-inner { padding: 0 3rem; }
  .main-nav { display: none; }
  .burger-btn { display: flex; }
}

@media (max-width: 640px) {
  .header-inner { height: 5.2rem; padding: 0 1.6rem; }
  .logo-img { width: 4rem; height: 4rem; }
}
/* /stp:header */
/* stp:hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 81.2rem;
  background-image: url('../img/hero.webp');
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
}
.hero-container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10.2rem 6.4rem 0;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 52.8rem;
  max-width: 100%;
}
.hero-title-img {
  position: relative;
  width: 45.3rem;
  height: 21.9rem;
}
.title-toy {
  position: absolute;
  left: 0;
  top: 1.7rem;
  width: 21.2rem;
  height: 11.2rem;
}
.title-company {
  position: absolute;
  left: 0;
  top: 12.9rem;
  width: 45.3rem;
  height: 9rem;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.hero-store-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 24rem;
  padding: 1.2rem 2rem;
  background: var(--btn-default);
  border: 1px solid var(--btn-border);
  border-radius: 5rem;
  box-shadow: 0.2rem 0.4rem 0 var(--btn-shadow);
  animation: store-float 3s ease-in-out infinite;
}
.hero-store-btn:hover { animation-play-state: paused; }
.store-icon { width: 3rem; height: 3.4rem; flex: 0 0 auto; }
.store-text { display: flex; flex-direction: column; gap: 0.4rem; color: #0A1130; }
.store-text-small { font-size: clamp(14px, 1.4rem, 1.4rem); font-family: Roboto, sans-serif; }
.store-text-big { font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 500; font-family: Roboto, sans-serif; }
.hero__headline {
  margin: 0;
  width: 100%;
  font-weight: 800;
  font-size: 3.8rem;
  line-height: 1.1;
  color: var(--typo-pink);
  -webkit-text-stroke: 0.8rem #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0.2rem 0.4rem 0 var(--btn-shadow));
}
.hero-descr {
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  color: var(--typo-bordo);
  width: 21.7rem;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .hero-container { padding: 10.2rem 3rem 3rem; }
  .hero-title { width: 100%;}
  #hero {
    background-position: top left;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 81.2rem;
    background-image: url('../img/hero-m.webp');
  }
  .hero-container { padding: 7.6rem 1.6rem 4rem; }
  .hero-title { width: 100%; gap: 2.4rem; justify-content: space-between; }
  .hero-title-img { width: 100%; height: 16.6rem; }
  .title-toy { width: 16.1rem; height: 8.5rem; top: 1.3rem; }
  .title-company { width: 34.3rem; max-width: 100%; height: 6.8rem; top: 9.8rem; }
  .hero-cta-row { flex-direction: column-reverse; align-items: flex-start; gap: 1.6rem; width: 100%; }
  .hero-store-btn { width: 100%; }
  .hero-descr { width: 100%; font-size: clamp(14px, 1.4rem, 1.4rem); }
  .hero__headline { font-size: 2.8rem; -webkit-text-stroke-width: 0.5rem; }
}
/* /stp:hero */
/* stp:page-bg */
.page-bg {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-white);
}
.page-bg::before,
.page-bg::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.page-bg::before {
  left: 75%;
  top: 30%;
  width: 90vw;
  height: 90vw;
  max-width: 140rem;
  max-height: 140rem;
  background: radial-gradient(circle, rgba(245,217,255,0.8) 0%, rgba(245,217,255,0) 70%);
}
.page-bg::after {
  left: 20%;
  top: 90%;
  width: 80vw;
  height: 80vw;
  max-width: 120rem;
  max-height: 120rem;
  background: radial-gradient(circle, rgba(255,237,189,0.85) 0%, rgba(255,237,189,0) 70%);
}
/* /stp:page-bg */
/* stp:about */
.about {
  position: relative;
  width: 100%;
  padding: 8rem 6.4rem 6.4rem;
  overflow: hidden;
}
.about-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4.8rem;
  max-width: 144rem;
  margin: 0 auto;
}
.about-image { flex: 0 0 auto; width: 64rem; order: -1; }
.about-image img { width: 100%; height: auto; }
.about-text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.4rem;
}
.about-head { display: flex; flex-direction: column; gap: 0.8rem; }
.overline {
  font-size: clamp(14px, 1.4rem, 1.4rem);
  font-weight: 600;
  letter-spacing: 1.1rem;
  line-height: 1.36;
  color: var(--typo-pink);
  text-transform: uppercase;
}
.about-title {
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.2rem;
  color: #4D2219;
}
.about-body {
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  color: var(--typo-gray);
}

@media (max-width: 1024px) {
  .about { padding: 6rem 3rem; }
  .about-inner { gap: 3rem; }
  .about-image { width: 40rem; }
  .about-title { font-size: 3.6rem; }
}

@media (max-width: 640px) {
  .about { padding: 4.8rem 1.6rem 4rem; }
  .about-inner { flex-direction: column; align-items: stretch; gap: 2.4rem; }
  .about-image { width: 100%; order: 1; }
  .about-text { order: 0; gap: 2.4rem; }
  .about-title { font-size: 2.8rem; letter-spacing: -0.1rem; }
  .about-body { font-size: clamp(14px, 1.4rem, 1.4rem); }
}
/* /stp:about */
/* stp:gameplay */
.gameplay {
  position: relative;
  width: 100%;
  padding: 6.4rem 6.4rem 10.4rem;
  display: flex;
  justify-content: center;
}
.gameplay-inner {
  display: flex;
  align-items: center;
  gap: 4.8rem;
  max-width: 144rem;
  width: 100%;
}
.gameplay-text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.2rem;
}
.gameplay-head { display: flex; flex-direction: column; gap: 0.8rem; }
.gameplay-title {
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.2rem;
  color: #3B8F93;
}
.gameplay-features {
  display: grid;
  grid-template-columns: repeat(2, 29.4rem);
  gap: 3.2rem 3.2rem;
}
.feature-card { display: flex; flex-direction: column; gap: 1.6rem; }
.feature-icon { width: 3.2rem; height: 3.2rem; }
.feature-body { display: flex; flex-direction: column; gap: 0.4rem; }
.feature-title { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--typo-black); }
.feature-descr { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--typo-gray); }
.gameplay-image { flex: 0 0 auto; width: 64rem; }
.gameplay-image img { width: 100%; height: auto; }

@media (max-width: 1024px) {
  .gameplay { padding: 5rem 3rem 7rem; }
  .gameplay-inner { gap: 3rem; }
  .gameplay-image { width: 36rem; }
  .gameplay-title { font-size: 3.6rem; }
  .gameplay-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gameplay { padding: 4rem 1.6rem; }
  .gameplay-inner { flex-direction: column; align-items: stretch; gap: 2.4rem; }
  .gameplay-text { gap: 2.4rem; order: 0; }
  .gameplay-image { width: 100%; order: 1; }
  .gameplay-title { font-size: 2.8rem; letter-spacing: -0.1rem; }
  .gameplay-features { grid-template-columns: 1fr; gap: 2.4rem; }
}
/* /stp:gameplay */
/* stp:gallery */
.gallery {
  width: 100%;
  padding: 6.4rem 6.4rem 11.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.8rem;
}
.gallery-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  max-width: 131.2rem;
  width: 100%;
}
.gallery-title {
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #96AE4C;
}
.gallery-block {
  display: flex;
  gap: 3.2rem;
  max-width: 131.2rem;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}
.gallery-block::-webkit-scrollbar { display: none; }
.gallery-block.dragging { cursor: grabbing; scroll-behavior: auto; }
.gallery-img {
  flex: 0 0 auto;
  width: 41.6rem;
  height: 74rem;
  border-radius: 1.6rem;
  object-fit: cover;
  -webkit-user-drag: none;
}

@media (max-width: 1024px) {
  .gallery { padding: 5rem 3rem 8rem; }
  .gallery-title { font-size: 3.6rem; }
  .gallery-img { width: 30rem; height: 53.3rem; }
}

@media (max-width: 640px) {
  .gallery { padding: 4rem 1.6rem; gap: 2.4rem; }
  .gallery-title { font-size: 3.2rem; }
  .gallery-block { gap: 2rem; }
  .gallery-img { width: 28.2rem; height: 50.1rem; }
}
/* /stp:gallery */
/* stp:faq */
.faq {
  width: 100%;
  padding: 6.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.8rem;
}
.faq-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}
.faq-title {
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #FF8F00;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 86.4rem;
  max-width: 100%;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid rgba(38,33,69,0.1);
  border-radius: 1.6rem;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 2.4rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  font-weight: 500;
  color: var(--typo-black);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--typo-pink);
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-toggle img { width: 1.2rem; height: 1.2rem; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item:hover .faq-toggle { background: #d41a6c; }
.faq-answer {
  padding: 0 2.4rem 2rem;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  color: var(--typo-gray);
}

@media (max-width: 1024px) {
  .faq { padding: 5rem 3rem; }
  .faq-title { font-size: 3.6rem; }
  .faq-list { width: 100%; }
}

@media (max-width: 640px) {
  .faq { padding: 4rem 1.6rem; gap: 2.4rem; }
  .faq-title { font-size: 3.2rem; }
  .faq-list { gap: 1.6rem; }
  .faq-question { padding: 2rem 2.4rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:footer */
.footer {
  position: relative;
  width: 100%;
  background: var(--bg-brown, #BF5D5C);
  display: flex;
  flex-direction: column;
}
.footer-toys {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.footer-toys-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-width: 120rem;
}
.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  padding: 6rem 8.8rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 6rem;
  width: 100%;
}
.footer-link {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  font-weight: 500;
  color: var(--bg-white);
  transition: opacity 0.3s ease, text-decoration-color 0.3s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
}
.footer-link:hover { opacity: 0.8; text-decoration-color: var(--bg-white); }
.footer-rights {
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  color: var(--bg-white);
  text-align: center;
}

@media (max-width: 1024px) {
  .footer-bar { padding: 5rem 3rem; gap: 4rem; }
}

@media (max-width: 640px) {
  .footer-bar { padding: 6rem 1.6rem; gap: 2.4rem; }
  .footer-nav { flex-direction: column; align-items: center; gap: 0.8rem; justify-content: center; }
  .footer-link { font-size: clamp(14px, 1.6rem, 1.6rem); text-align: center; }
  .footer-rights { font-size: clamp(14px, 1.4rem, 1.4rem); }
  .footer-toys-img { max-width: 31.3rem; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6.2rem; background: var(--bg-white); }
.legal-page { width: 100%; display: flex; justify-content: center; padding: 6rem 6.4rem 8rem; }
.legal-content {
  width: 100%;
  max-width: 96rem;
  overflow-wrap: anywhere;
  color: var(--typo-gray);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.6;
}
.legal-content h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--typo-black);
  text-align: center;
  margin-bottom: 4rem;
}
.legal-content h2 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--typo-black);
  margin-top: 3.2rem;
  margin-bottom: 1.2rem;
}
.legal-content h3 {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--typo-black);
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
}
.legal-content h4 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--typo-black);
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}
.legal-content p { margin-bottom: 1.6rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.6rem 2rem; padding: 0; }
.legal-content li { margin-bottom: 0.8rem; }
.legal-content a { color: var(--typo-pink); text-decoration: underline; transition: opacity 0.3s ease; }
.legal-content a:hover { opacity: 0.75; }
.legal-content strong, .legal-content b { font-weight: 600; color: var(--typo-black); }
.legal-content em, .legal-content i { font-style: italic; }

@media (max-width: 1024px) {
  .legal-page { padding: 5rem 3rem 6rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 5.2rem; }
  .legal-page { padding: 4rem 1.6rem 5rem; }
  .legal-content { font-size: clamp(14px, 1.4rem, 1.4rem); }
  .legal-content h1 { font-size: 2.6rem; margin-bottom: 2.4rem; }
  .legal-content h2 { font-size: 2rem; }
  .legal-content h3 { font-size: 1.7rem; }
  main::before {
    width: 100rem;
    height: 100rem;
  }
  main::after {
    width: 100rem;
    height: 100rem;
  }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-title-img { --ta-drop: -6rem; --ta-amp: 1; }
.anim-on .title-toy,
.anim-on .title-company { opacity: 0; }
.anim-on .title-toy { transform-origin: 50% -6rem; }
.anim-on .title-company { transform-origin: 0 100%; }
.anim-on .hero-title-img.is-in .title-toy {
  animation: ta-hang 1.7s cubic-bezier(0.37, 0, 0.32, 1) both;
}
.anim-on .hero-title-img.is-in .title-company {
  animation: ta-unwrap 1s cubic-bezier(0.65, 0, 0.3, 1.25) 0.45s both;
}
.anim-on .hero-title-img::after {
  content: '';
  position: absolute;
  left: 0;
  top: 12.9rem;
  width: 45.3rem;
  height: 9rem;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0 40%, rgba(255,255,255,0.85) 48%, rgba(255,240,248,0.95) 50%, rgba(255,255,255,0) 60% 100%) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-mask: url('../img/title-company.webp') center / 100% 100% no-repeat;
  mask: url('../img/title-company.webp') center / 100% 100% no-repeat;
}
.anim-on .hero-title-img.is-in::after {
  opacity: 0.8;
  animation: ta-sheen 6s ease-in-out 1.5s infinite;
}
@keyframes ta-hang {
  0% { opacity: 0; transform: translateY(var(--ta-drop)) rotate(calc(var(--ta-amp) * -18deg)); }
  12% { opacity: 1; }
  34% { transform: translateY(0) rotate(calc(var(--ta-amp) * 12deg)); }
  54% { transform: rotate(calc(var(--ta-amp) * -7deg)); }
  71% { transform: rotate(calc(var(--ta-amp) * 4deg)); }
  86% { transform: rotate(calc(var(--ta-amp) * -1.5deg)); }
  100% { opacity: 1; transform: none; }
}
@keyframes ta-unwrap {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(1.2rem) scale(0.96, 0.9); }
  12% { opacity: 1; }
  70% { clip-path: inset(0 0 0 0); transform: translateY(-0.3rem) scale(1.02, 1.04); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes ta-sheen {
  0% { background-position: 100% 0; }
  24%, 100% { background-position: 0 0; }
}

.anim-on .ta-split .ta-w {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform-origin: 50% -1.2rem;
}
.anim-on .ta-split.is-in .ta-w {
  animation: ta-swing 1.2s cubic-bezier(0.37, 0, 0.32, 1) calc(var(--i) * 0.09s) both;
}
@keyframes ta-swing {
  0% { opacity: 0; transform: translateY(-2.4rem) rotate(-12deg); }
  20% { opacity: 1; }
  38% { transform: translateY(0) rotate(8deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(1.5deg); }
  100% { opacity: 1; transform: none; }
}

/* hero headline: words inflate like balloons, then bob */
.anim-on .hero__headline .ta-w { display: inline-block; white-space: nowrap; opacity: 0; transform-origin: 50% 100%; }
.anim-on .hero__headline.is-in .ta-w {
  animation:
    ta-inflate 0.95s cubic-bezier(0.3, 0.9, 0.4, 1) calc(var(--i) * 0.16s) both,
    ta-bob 3.4s ease-in-out calc(var(--i) * 0.2s + 3s) infinite;
}
@keyframes ta-inflate {
  0% { opacity: 0; transform: translateY(1.8rem) scale(0.2, 0.1); }
  14% { opacity: 1; }
  46% { transform: translateY(0.2rem) scale(1.2, 0.84); }
  66% { transform: translateY(-0.5rem) scale(0.94, 1.12); }
  84% { transform: translateY(0) scale(1.03, 0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ta-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-0.5rem) scale(1.02, 1.03); }
}

@media (max-width: 640px) {
  .anim-on .hero-title-img { --ta-drop: -3.6rem; --ta-amp: 0.7; }
  .anim-on .title-toy { transform-origin: 50% -4rem; }
  .anim-on .hero-title-img.is-in .title-toy { animation-duration: 1.4s; }
  .anim-on .hero-title-img.is-in .title-company { animation-duration: 0.8s; animation-delay: 0.35s; }
  .anim-on .hero-title-img::after { top: 9.8rem; width: 34.3rem; max-width: 100%; height: 6.8rem; }
  .anim-on .ta-split .ta-w { transform-origin: 50% -0.8rem; }
  .anim-on .ta-split.is-in .ta-w { animation-name: ta-swing-m; animation-duration: 0.95s; }
  @keyframes ta-swing-m {
    0% { opacity: 0; transform: translateY(-1.4rem) rotate(-8deg); }
    20% { opacity: 1; }
    40% { transform: translateY(0) rotate(5deg); }
    65% { transform: rotate(-2deg); }
    100% { opacity: 1; transform: none; }
  }
}
@media (max-width: 640px) {
  .anim-on .hero__headline.is-in .ta-w {
    animation-duration: 0.8s, 3.4s;
    animation-delay: calc(var(--i) * 0.12s), calc(var(--i) * 0.2s + 2.4s);
  }
  @keyframes ta-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-0.3rem) scale(1.02, 1.03); }
  }
}
/* /stp:title-anim */
