
/* Positions, sizes and animations copied from referans/tasarim.css (.mm-*),
 * px → rem. Keyframes live in src/global.css.
 *
 * Host sections must:
 *   - give the anchor element `position: relative`
 *   - clip horizontal overflow (`overflow-x: clip`) where a decor bleeds past
 *     the viewport edge (branch-r, horse), so no horizontal scrollbar appears.
 */

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor, .cc_wxfdt9jm_6FhaG3otEp .mm-decor, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor, .cc_wxfdt9jm_u2rydYE7CT .mm-decor {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Branches (.mm-branch) ─────────────────────────────── */
.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--branch-l, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--branch-l, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--branch-l, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--branch-l, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--branch-l, .cc_wxfdt9jm_9mjLP1YE07 .mm-decor--branch-r, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--branch-r, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--branch-r, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--branch-r, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--branch-r {
  top: -0.375rem;
  z-index: var(--z-decor-back);
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--branch-l .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--branch-l .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--branch-l .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--branch-l .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--branch-l .mm-decor__img, .cc_wxfdt9jm_9mjLP1YE07 .mm-decor--branch-r .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--branch-r .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--branch-r .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--branch-r .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--branch-r .mm-decor__img {
  animation: mmHang 6s ease-in-out infinite;
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--branch-l, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--branch-l, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--branch-l, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--branch-l, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--branch-l {
  left: -0.625rem;
  top: 4.5rem;
  width: clamp(9.375rem, 15vw, 14.375rem);
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--branch-l .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--branch-l .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--branch-l .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--branch-l .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--branch-l .mm-decor__img {
  transform-origin: 6% 6%;
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--branch-r, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--branch-r, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--branch-r, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--branch-r, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--branch-r {
  right: -0.625rem;
  width: clamp(7.5rem, 12vw, 11.25rem);
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--branch-r .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--branch-r .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--branch-r .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--branch-r .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--branch-r .mm-decor__img {
  transform-origin: 94% 4%;
  animation-delay: -2.5s;
}

/* ─── Horse (.mm-horse) ─────────────────────────────────── */
/* The horse stands in front of the first brand card: its nose lands about 130px
 * inside the card (container-anchored), but it may never be cropped by the
 * viewport edge by more than a third. Its head tops out ~0.4 of its width above
 * the cards. It is tilted nose-up, turning around its nose so that point stays put. */
.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--horse, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--horse, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--horse, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--horse, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--horse {
  left: var(--horse-left);
  top: calc(100% + 2.5rem - var(--horse-w) * 0.4);
  width: var(--horse-w);
  z-index: var(--z-decor);
  transform-origin: 97% 24%;
  transform: rotate(-14deg);
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--horse .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--horse .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--horse .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--horse .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--horse .mm-decor__img {
  transform-origin: 55% 80%;
  animation: mmGallop 3.2s ease-in-out infinite;
}

/* ─── Moth in the table scene (.mm-moth) ────────────────── */
.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--moth, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--moth, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--moth, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--moth, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--moth {
  left: 4%;
  top: 8%;
  width: clamp(4rem, 6.5vw, 6.5rem);
  z-index: var(--z-decor-front);
  animation: mmFly 14s ease-in-out infinite;
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--moth .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--moth .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--moth .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--moth .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--moth .mm-decor__img {
  transform-origin: 62% 38%;
  animation: mmFlap 0.9s ease-in-out infinite alternate;
}

/* ─── Moth beside the H1 (.mm-moth2) ────────────────────── */
.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--moth2, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--moth2, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--moth2, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--moth2, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--moth2 {
  left: 100%;
  top: 0;
  width: clamp(4.25rem, 6vw, 6.25rem);
  margin: 1.875rem 0 0 1.75rem;
  transform: rotate(3deg) scaleX(-1);
  animation: mmHover 6s ease-in-out infinite;
  /* resting pose = mmHover 0% (kept under reduced motion) */
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--moth2 .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--moth2 .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--moth2 .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--moth2 .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--moth2 .mm-decor__img {
  transform-origin: 62% 38%;
  animation: mmFlap 0.9s ease-in-out infinite alternate;
}

/* ─── Heron (.mm-heron) ─────────────────────────────────── */
.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--heron, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--heron, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--heron, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--heron, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--heron {
  left: 89%;
  bottom: calc(100% - 1rem);
  width: clamp(9.375rem, 14vw, 13.125rem);
  z-index: var(--z-decor);
  transform: translateX(-50%) scaleX(-1);
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--heron .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--heron .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--heron .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--heron .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--heron .mm-decor__img {
  transform-origin: 50% 100%;
  animation: mmPeck 6s ease-in-out infinite;
}

/* ─── Flower (.mm-flower) ───────────────────────────────── */
.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--flower, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--flower, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--flower, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--flower, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--flower {
  left: 0;
  top: calc(100% - 2px);
  width: clamp(4.375rem, 6.5vw, 6.25rem);
  z-index: var(--z-decor);
}

.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--flower .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--flower .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--flower .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--flower .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--flower .mm-decor__img {
  transform-origin: 45% 100%;
  animation: mmBloom 5s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* ─── Corner (page headings: Markalar, categories) ──────── */
/* A small picture against the right edge, beside the page heading; the host section sets
 * its `top` and gives it a positioned container. It floats and sways a little. */
.cc_wxfdt9jm_9mjLP1YE07 .mm-decor--corner, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--corner, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--corner, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--corner, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--corner {
  top: 0;
  right: 0;
  width: clamp(4rem, 7vw, 6rem);
  z-index: var(--z-decor);
  transform-origin: 50% 100%;
  animation: mmCornerFloat 6s ease-in-out infinite;
}

/* ─── Mobile ────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .cc_wxfdt9jm_9mjLP1YE07 .mm-decor--hide-mobile, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor--hide-mobile, .cc_wxfdt9jm_6FhaG3otEp .mm-decor--hide-mobile, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor--hide-mobile, .cc_wxfdt9jm_u2rydYE7CT .mm-decor--hide-mobile {
    display: none;
  }
}

/* ─── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cc_wxfdt9jm_9mjLP1YE07 .mm-decor, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor, .cc_wxfdt9jm_6FhaG3otEp .mm-decor, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor, .cc_wxfdt9jm_u2rydYE7CT .mm-decor, .cc_wxfdt9jm_9mjLP1YE07 .mm-decor__img, .cc_wxfdt9jm_5bwNK9rUl7 .mm-decor__img, .cc_wxfdt9jm_6FhaG3otEp .mm-decor__img, .cc_wxfdt9jm_6nM1QGaLQN .mm-decor__img, .cc_wxfdt9jm_u2rydYE7CT .mm-decor__img {
    animation: none !important;
  }
}

/* Keyframes live here, in the same file as the animations that use them: the
 * compiler prefixes a keyframe name and rewrites its references only when both
 * are in one stylesheet (a name defined in global.css is not rewritten here). */

@keyframes mmGallop {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-7px) rotate(-3deg); }
  50%  { transform: translateY(0) rotate(0deg); }
  75%  { transform: translateY(-3px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes mmPeck {
  0%, 100% { transform: rotate(0deg); }
  40%      { transform: rotate(2deg); }
  55%      { transform: rotate(-1deg); }
  70%      { transform: rotate(1deg); }
}

@keyframes mmFly {
  0%   { transform: translate(0, 0) rotate(-2deg); }
  25%  { transform: translate(14px, -8px) rotate(3deg); }
  50%  { transform: translate(24px, 4px) rotate(-1deg); }
  75%  { transform: translate(10px, 10px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(-2deg); }
}

@keyframes mmHover {
  0%, 100% { transform: translate(0, 0) rotate(3deg) scaleX(-1); }
  50%      { transform: translate(-6px, -8px) rotate(-4deg) scaleX(-1); }
}

@keyframes mmFlap {
  from { transform: scaleX(1) skewY(0deg); }
  to   { transform: scaleX(0.9) skewY(-1.5deg); }
}

@keyframes mmHang {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(2.5deg); }
}

@keyframes mmBloom {
  0%, 100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(2deg); }
}

@keyframes mmCornerFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
