.mei-parallax-hero,
.mei-parallax-hero * {
  box-sizing: border-box;
}

.mei-parallax-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: var(--hero-min-height-desktop, 500px);
  max-height: var(--hero-max-height-desktop, 900px);
  overflow: hidden;
  background: var(--hero-bg-fallback, #1a1a1a);
}

.mei-parallax-hero__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* background */
.mei-parallax-hero__bg {
  position: absolute;
  inset: -15% 0;
  will-change: transform;
  z-index: 0;
}

.mei-parallax-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* sticker */
.mei-parallax-hero__sticker {
  position: absolute;
  top: 450px;
  left: var(--sticker-left-desktop, 55%);
  transform: translateY(-50%) rotate(var(--sticker-rotation-desktop, -6deg));
  width: clamp(
    var(--sticker-min-width-desktop, 300px),
    var(--sticker-width-desktop, 52%),
    var(--sticker-max-width-desktop, 680px)
  );
  will-change: transform;
  z-index: 1;
  pointer-events: none;
}

.mei-parallax-hero__sticker img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
}

.mei-parallax-hero__sticker.is-floating img {
  animation: mei-float-sticker var(--sticker-float-duration, 4s) ease-in-out infinite;
}

/* character */
.mei-parallax-hero__character {
  position: absolute;
  bottom: var(--character-bottom-desktop, -50%);
  left: var(--character-left-desktop, 50%);
  transform: translateX(-50%);
  width: clamp(
    var(--character-min-width-desktop, 380px),
    var(--character-width-desktop, 78%),
    var(--character-max-width-desktop, 900px)
  );
  will-change: transform;
  z-index: 2;
  pointer-events: none;
}

.mei-parallax-hero__character img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
}

.mei-parallax-hero__character.is-floating img {
  animation: mei-float-character var(--character-float-duration, 4s) ease-in-out infinite;
}

/* content overlay */
.mei-parallax-hero__content {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0 20px;
}

/* headline top */
.mei-parallax-hero__headline-top h1{
  width: 100%;
  max-width: var(--headline-max-width, 760px);
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  font-size: 50px;
}

.mei-parallax-hero__intro {
  margin: 0;
  font-family: 'UniviaPro', sans-serif;
  font-weight: 900;
  font-size: var(--intro-font-size-desktop, 42px);
  line-height: 1.05;
  color: var(--text-color, #fff);
  text-transform: none;
  letter-spacing: -0.3px;
}

.mei-parallax-hero__intro--top {
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* video */
.mei-parallax-hero__video-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 260px;
  position: relative;
  z-index: 5;
}

.mei-parallax-hero__video-frame {
  width: min(100%, var(--video-max-width-desktop, 720px));
  aspect-ratio: var(--video-aspect-ratio, 16 / 9);
  border-radius: var(--video-border-radius, 16px);
  overflow: hidden;
  background: #d9d9d9;
}

.mei-parallax-hero__video-frame--embed iframe,
.mei-parallax-hero__video-frame--embed video,
.mei-parallax-hero__video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mei-parallax-hero__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #d9d9d9;
}

{% raw %}
.mei-parallax-hero__video-frame {
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}
{% endraw %}

/* marquee */
.mei-parallax-hero__marquee {
  width: 100%;
  overflow: hidden;
  margin-top: var(--marquee-top-spacing, 18px);
  margin-bottom: var(--marquee-bottom-spacing, 16px);
  position: relative;
  z-index: 5;
}
.mei-parallax-hero__marquee-track span {
  font-family: 'Winco Ultra Black', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mei-parallax-hero__marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: var(--marquee-gap, 48px);
  animation: mei-marquee linear infinite;
  animation-duration: 22s;
}

.mei-parallax-hero__marquee-track span {
  display: inline-block;
  white-space: nowrap;
 font-family: 'UniviaPro', sans-serif;
  font-size: var(--marquee-font-size-desktop, 44px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--marquee-text-color, #fff);
  letter-spacing: -0.5px;
  -webkit-text-stroke: 0 var(--marquee-stroke-color, transparent);
}

/* scroll hint */
.mei-parallax-hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  color: var(--scroll-hint-color, rgba(255,255,255,0.8));
  animation: mei-bounce 1.8s ease-in-out infinite;
}

.mei-parallax-hero__scroll-hint span {
  display: block;
  width: 2px;
  height: 36px;
  background: currentColor;
  border-radius: 2px;
}

.mei-parallax-hero__mobile-overlay {
  display: none;
}

@keyframes mei-float-character {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(var(--character-float-distance, 14px) * -1)); }
}

@keyframes mei-float-sticker {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--sticker-float-distance, 14px)); }
}

@keyframes mei-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes mei-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .mei-parallax-hero {
    min-height: 100svh;
    max-height: none;
  }

  .mei-parallax-hero__bg {
    inset: 0;
  }

  .mei-parallax-hero__character {
    bottom: var(--character-bottom-mobile, -2%);
    left: var(--character-left-mobile, 52%);
    transform: translateX(-50%);
    width: auto;
    max-width: none;
    height: var(--character-height-mobile, 62svh);
  }

  .mei-parallax-hero__character img {
    width: auto;
    height: 100%;
    max-width: none;
  }

 
       .mei-parallax-hero__sticker {
        top: 16%;
        left: 70%;
        transform: translateX(-50%) rotate(var(--sticker-rotation-mobile, 0deg));
        width: 210px;
        max-width: 300px;
    }


  .mei-parallax-hero__headline-top h1{
    margin-top: var(--headline-top-spacing-mobile, 32px);
    max-width: 320px;
    font-size: 30px !important;
  }
  
  .mei-parallax-hero__intro {
    font-size: var(--intro-font-size-mobile, 26px);
    line-height: 1.05;
  }

  .mei-parallax-hero__video-wrap {
    margin-top: 250px;
  }

  .mei-parallax-hero__video-frame {
    width: min(100%, var(--video-max-width-mobile, 320px));
  }

  .mei-parallax-hero__marquee-track span {
    font-size: var(--marquee-font-size-mobile, 28px);
  }

  .mei-parallax-hero__mobile-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      var(--mobile-overlay-start, rgba(20,10,5,0.72)) var(--mobile-overlay-stop-1, 0%),
      var(--mobile-overlay-middle, rgba(20,10,5,0.38)) var(--mobile-overlay-stop-2, 22%),
      transparent var(--mobile-overlay-stop-3, 48%)
    );
    z-index: 2;
    pointer-events: none;
  }

  .mei-parallax-hero__scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mei-parallax-hero__character img,
  .mei-parallax-hero__sticker img,
  .mei-parallax-hero__scroll-hint,
  .mei-parallax-hero__marquee-track {
    animation: none !important;
  }
}