:root { --motion-ease: cubic-bezier(.2, .75, .25, 1); }
.brand-motion .brand-chomper { display: none; }
.custom-choice { margin-top: 8px; }
.custom-choice[hidden], .custom-quantity[hidden] { display: none; }
.custom-quantity { margin-top: 8px; padding: 11px; border: 1px solid var(--outline); border-radius: 14px; background: var(--surface-2); }
.custom-quantity .hint { margin: 6px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .brand-motion { position: relative; isolation: isolate; overflow: hidden; }
  .brand-motion picture { display: block; animation: wordmark-chomp 1.75s .5s both; transition: scale .24s var(--motion-ease); }
  .topbar .brand-motion .brand-chomper { display: block; opacity: 0; position: absolute; inset: 50% auto auto 0; width: 18%; max-width: 34px; height: auto; pointer-events: none; animation: logo-chomp 1.75s .5s both; }
  .brand-motion:focus-visible picture { scale: 1.035; }
  .hero-copy > * { animation: lift-in .46s var(--motion-ease) both; }
  .hero-copy > h1 { animation-delay: 45ms; }
  .hero-copy > .lead { animation-delay: 90ms; }
  .hero-copy > .hero-cta { animation-delay: 125ms; }
  .hero-copy > .hero-points { animation-delay: 155ms; }
  .creator-visual img { animation: art-arrive .66s .06s var(--motion-ease) both; }
  .creator-visual .creator-chip-heart { animation-delay: .55s; }
  .creator-visual .creator-chip-play { animation-delay: .65s; }
  .motion-arrived { animation: lift-in .52s var(--motion-ease) both; }
  .motion-arrived.steps > li { animation: lift-in .46s var(--motion-ease) both; }
  .motion-arrived.steps > li:nth-child(2) { animation-delay: 45ms; }
  .motion-arrived.steps > li:nth-child(3) { animation-delay: 90ms; }
  .motion-arrived.steps > li:nth-child(4) { animation-delay: 135ms; }
  #serviceGrid > .card { animation: lift-in .27s var(--motion-ease) both; }
  #serviceGrid > .card:nth-child(2) { animation-delay: 28ms; }
  #serviceGrid > .card:nth-child(3) { animation-delay: 56ms; }
  #serviceGrid > .card:nth-child(4) { animation-delay: 84ms; }
  .sheet[open] { animation: dialog-arrive .28s var(--motion-ease) both; }
  .sheet[open]::backdrop { animation: fade-in .22s ease-out both; }
  #orderDlg[open] > .sheet-body:not([hidden]) { animation: lift-in .21s var(--motion-ease) both; }
  .custom-quantity:not([hidden]), #trackResult .timeline { animation: lift-in .24s var(--motion-ease) both; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand-motion:hover picture { scale: 1.035; }
  .hero-cta a, .automatic-panel a { transition: transform .23s var(--motion-ease), box-shadow .23s var(--motion-ease), background .2s; }
  .hero-cta a:hover, .automatic-panel a:hover { transform: translateY(-2px); }
}

@keyframes wordmark-chomp {
  0%, 7% { clip-path: inset(0 0 0 0); scale: 1; }
  8%, 22% { clip-path: inset(0 0 0 21%); }
  23%, 38% { clip-path: inset(0 0 0 38%); }
  39%, 53% { clip-path: inset(0 0 0 57%); }
  54%, 68% { clip-path: inset(0 0 0 77%); }
  69%, 84% { clip-path: inset(0 0 0 100%); scale: 1; }
  85% { clip-path: inset(0 0 0 0); scale: 1.08; }
  100% { clip-path: inset(0 0 0 0); scale: 1; }
}
@keyframes logo-chomp {
  0%, 7% { opacity: 0; left: 0; transform: translateY(-50%); }
  8%, 15% { opacity: 1; left: 1%; transform: translateY(-50%) rotate(-12deg) scale(1.14); }
  23% { left: 18%; transform: translateY(-50%) rotate(6deg) scaleY(.85); }
  31% { transform: translateY(-58%) rotate(-12deg) scale(1.13); }
  39% { left: 38%; transform: translateY(-50%) rotate(6deg) scaleY(.85); }
  47% { transform: translateY(-58%) rotate(-12deg) scale(1.13); }
  54% { left: 57%; transform: translateY(-50%) rotate(6deg) scaleY(.85); }
  62% { transform: translateY(-58%) rotate(-12deg) scale(1.13); }
  69%, 82% { opacity: 1; left: 81%; transform: translateY(-50%) scale(.96); }
  85%, 100% { opacity: 0; left: 81%; transform: translateY(-50%) scale(.72); }
}
@keyframes lift-in { from { opacity: .55; translate: 0 8px; } to { opacity: 1; translate: none; } }
@keyframes art-arrive { from { opacity: .45; translate: 0 12px; scale: .985; } to { opacity: 1; translate: none; scale: 1; } }
@keyframes dialog-arrive { from { opacity: .5; translate: 0 12px; scale: .99; } to { opacity: 1; translate: none; scale: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
