.eo-unfold-section {
  position: relative;
}

.eo-unfold-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.eo-unfold-grid {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.eo-unfold-left,
.eo-unfold-right {
  min-width: 0;
}

.eo-unfold-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #eee;
}

.eo-unfold-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.eo-unfold-image-item {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  transform: translateY(20px);
  will-change: clip-path, transform;
}

.eo-unfold-image-item:first-child {
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

.eo-unfold-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eo-unfold-copy-frame {
  height: 320px;
  overflow: hidden;
}

.eo-unfold-copy-track {
  will-change: transform;
}

.eo-unfold-copy-item {
  height: 320px;
  display: flex;
  align-items: center;
}

.eo-copy-inner {
  max-width: 520px;
}

.eo-unfold-section.is-entering-lock .eo-unfold-grid {
  transform: translateY(18px) scale(0.985);
  opacity: 0.96;
}

.eo-unfold-section.is-locked .eo-unfold-grid {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (max-width: 989px) {
  .eo-unfold-section {
    position: relative !important;
    height: calc(var(--eo-mobile-panels, 8) * 100svh) !important;
    overflow: visible !important;
  }

  .eo-unfold-sticky {
    position: sticky !important;
    top: 0 !important;
    height: 100svh !important;
    min-height: 100svh !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    padding: 72px 0 34px !important;
  }

  .eo-unfold-grid {
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  .eo-unfold-left,
  .eo-unfold-right {
    display: block !important;
    width: 100% !important;
  }

  .eo-unfold-frame {
    width: 100% !important;
    max-width: none !important;
    height: min(42svh, 360px) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .eo-unfold-images {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  .eo-unfold-image-item {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    clip-path: inset(100% 0 0 0);
    transform: translateY(20px);
    will-change: clip-path, transform;
  }

  .eo-unfold-image-item:first-child {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }

  .eo-unfold-image-item img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    display: block !important;
  }

  .eo-unfold-copy-frame {
    display: block !important;
    height: 38svh !important;
    min-height: 300px !important;
    overflow: hidden !important;
  }

  .eo-unfold-copy-track {
    display: block !important;
    will-change: transform !important;
  }

  .eo-unfold-copy-item {
    height: 38svh !important;
    min-height: 300px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .eo-copy-inner {
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 8px !important;
  }

  .eo-copy-inner h2 {
    margin: 0 0 14px !important;
    line-height: 1.05 !important;
  }

  .eo-copy-inner p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    margin: 0 auto !important;
  }

  .eo-unfold-section.eo-mobile-stack-ready {
    position: relative !important;
    overflow: visible !important;
  }

  .eo-unfold-section.eo-mobile-stack-ready > .eo-unfold-sticky {
    display: none !important;
  }

  .eo-unfold-section .eo-mobile-stack-inner {
    position: absolute;
    top: 0;
    left: 50% !important;
    width: 100vw !important;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%) !important;
  }

  .eo-unfold-section .eo-mobile-stack-stage {
    position: relative;
    width: calc(100vw - 32px) !important;
    max-width: 420px !important;
    height: clamp(660px, 84svh, 720px) !important;
    min-height: 560px;
  }

  .eo-unfold-section .eo-mobile-stack-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.13);
    transform-origin: center top;
    will-change: transform, opacity, filter;
  }

  .eo-unfold-section .eo-mobile-stack-card > img {
    width: 100%;
    height: 38% !important;
    object-fit: cover;
    display: block;
  }

  .eo-unfold-section .eo-mobile-stack-copy {
    height: 62% !important;
    box-sizing: border-box !important;
    padding: 24px 22px 28px !important;
    display: flex;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: center;
  }

  .eo-unfold-section .eo-mobile-stack-copy .eo-copy-inner {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .eo-unfold-section .eo-mobile-stack-copy .eo-eyebrow {
    margin: 0 0 14px !important;
    line-height: 1.2 !important;
    transform: none !important;
    position: relative !important;
    top: auto !important;
  }

  .eo-unfold-section .eo-mobile-stack-copy h2 {
    margin: 0 0 14px !important;
    line-height: 1.04 !important;
    font-size: 2em !important;
  }

  .eo-unfold-section .eo-mobile-stack-copy p {
    font-size: 15px !important;
    line-height: 1.43 !important;
    margin: 0 auto !important;
  }

  .eo-unfold-section .rsr-ctas {
    margin-top: 35px !important;
  }
}
