:root {
  --cp-motion-cream: #f3eadb;
  --cp-motion-ink: #fff8ec;
  --cp-motion-accent: #ffbc3e;
  --cp-motion-deep: #50201d;
  --cp-motion-soft: #b95340;
  --cp-motion-ease: cubic-bezier(.22, 1, .36, 1);
}

.cp-motion-showcase {
  position: relative;
  isolation: isolate;
  min-height: min(860px, calc(100svh - 88px));
  overflow: hidden;
  color: var(--cp-motion-ink);
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cp-motion-soft) 84%, white), transparent 34%),
    linear-gradient(135deg, var(--cp-motion-deep), var(--cp-motion-soft));
  transition: background 800ms ease, color 500ms ease;
}

.cp-motion-showcase::before,
.cp-motion-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cp-motion-showcase::before {
  z-index: -1;
  opacity: .2;
  background:
    repeating-linear-gradient(90deg, transparent 0 9.9%, rgba(255,255,255,.18) 10%),
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.25), transparent 22%);
  mix-blend-mode: soft-light;
}

.cp-motion-showcase::after {
  z-index: 9;
  box-shadow: inset 0 0 180px rgba(26, 9, 12, .38);
}

.cp-motion-shell {
  position: relative;
  z-index: 3;
  width: min(1440px, 100%);
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 92px) clamp(24px, 5vw, 78px) 42px;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(430px, 1.25fr) minmax(190px, .55fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 20px;
}

.cp-motion-heading {
  position: relative;
  z-index: 7;
  max-width: 360px;
  align-self: center;
}

.cp-motion-kicker {
  margin: 0 0 16px;
  color: var(--cp-motion-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cp-motion-title {
  max-width: 470px;
  margin: 0;
  color: var(--cp-motion-ink);
  font-size: clamp(2.2rem, 4.1vw, 4.8rem);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.062em;
  text-wrap: balance;
}

.cp-motion-subtitle {
  max-width: 340px;
  margin: 22px 0 24px;
  color: color-mix(in srgb, var(--cp-motion-ink) 76%, transparent);
  font-size: clamp(.92rem, 1.2vw, 1.02rem);
  line-height: 1.58;
}

.cp-motion-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: var(--cp-motion-ink);
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 220ms ease, transform 220ms ease;
}

.cp-motion-shop-link:hover,
.cp-motion-shop-link:focus-visible {
  color: var(--cp-motion-deep);
  background: var(--cp-motion-ink);
  transform: translateY(-2px);
}

.cp-motion-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  height: clamp(440px, 54vw, 660px);
  align-self: center;
  touch-action: pan-y;
}

.cp-motion-card {
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(270px, 31vw, 430px);
  aspect-ratio: 5 / 7;
  translate: -50% -50%;
  transform: scale(.48);
  opacity: 0;
  z-index: calc(20 - abs(var(--i) - var(--active, 0)));
  text-decoration: none;
  pointer-events: none;
  transition: transform 760ms var(--cp-motion-ease), opacity 420ms ease, filter 500ms ease;
  filter: blur(1px) saturate(.75);
}

.cp-motion-card.is-active {
  transform: translateX(0) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 30;
  filter: none;
  pointer-events: auto;
}

.cp-motion-card.is-before,
.cp-motion-card.is-after {
  opacity: .6;
  z-index: 12;
  filter: saturate(.66) brightness(.72);
}

.cp-motion-card.is-before {
  transform: translateX(-78%) scale(.48) rotate(-7deg);
}

.cp-motion-card.is-after {
  transform: translateX(78%) scale(.48) rotate(7deg);
}

.cp-motion-image-wrap {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: clamp(7px, .8vw, 11px) solid rgba(255,255,255,.94);
  border-radius: clamp(22px, 2.4vw, 34px);
  background: #fff;
  box-shadow:
    0 42px 86px rgba(27, 8, 12, .33),
    0 0 0 1px rgba(255,255,255,.55),
    inset 0 0 42px rgba(78,32,29,.08);
}

.cp-motion-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.01);
  transition: transform 900ms var(--cp-motion-ease);
}

.cp-motion-card.is-active:hover .cp-motion-image-wrap img,
.cp-motion-card.is-active:focus-visible .cp-motion-image-wrap img {
  transform: scale(1.045);
}

.cp-motion-floating-age {
  position: absolute;
  z-index: 8;
  top: -5%;
  right: -17%;
  display: grid;
  place-items: center;
  min-width: 1.8em;
  min-height: 1.8em;
  padding: .14em .22em;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 28% 72% 64% 36% / 44% 35% 65% 56%;
  background: var(--cp-motion-accent);
  color: var(--cp-motion-deep);
  font-size: clamp(2.25rem, 4.6vw, 4.8rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.08em;
  text-shadow: 0 1px rgba(255,255,255,.32);
  box-shadow: 0 18px 42px rgba(28,8,10,.3);
  transform: rotate(9deg);
  transition: transform 760ms var(--cp-motion-ease), opacity 420ms ease;
}

.cp-motion-card.is-active .cp-motion-floating-age {
  animation: cp-age-float 3.2s ease-in-out infinite;
}

.cp-motion-card.is-before .cp-motion-floating-age,
.cp-motion-card.is-after .cp-motion-floating-age {
  transform: rotate(-7deg) scale(.86);
}

.cp-motion-floating-age:empty { display: none; }

@keyframes cp-age-float {
  0%, 100% { transform: translate3d(0,0,0) rotate(9deg); }
  50% { transform: translate3d(0,-13px,0) rotate(5deg); }
}

.cp-motion-card-label {
  position: absolute;
  left: 50%;
  bottom: -2.5%;
  z-index: 4;
  translate: -50% 0;
  min-width: max-content;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--cp-motion-accent);
  color: var(--cp-motion-deep);
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(32,8,10,.2);
}

.cp-motion-controls {
  position: relative;
  z-index: 11;
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cp-motion-arrow {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--cp-motion-ink);
  font: 700 1.35rem/1 sans-serif;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 200ms ease, color 200ms ease, background 200ms ease;
}

.cp-motion-arrow:hover,
.cp-motion-arrow:focus-visible {
  color: var(--cp-motion-deep);
  background: var(--cp-motion-ink);
  transform: scale(1.07);
}

.cp-motion-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cp-motion-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  cursor: pointer;
  transition: width 300ms ease, background 300ms ease;
}

.cp-motion-dot[aria-current="true"] {
  width: 30px;
  background: var(--cp-motion-accent);
}

.cp-motion-dots.is-count {
  min-width: 106px;
  justify-content: center;
}

.cp-motion-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--cp-motion-accent);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cp-motion-hint {
  position: relative;
  z-index: 7;
  grid-column: 3;
  justify-self: end;
  margin: 0;
  color: color-mix(in srgb, var(--cp-motion-ink) 72%, transparent);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cp-motion-decor {
  position: absolute;
  z-index: 5;
  width: clamp(180px, 22vw, 340px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(30,8,10,.28));
  transition: transform 900ms var(--cp-motion-ease);
}

.cp-motion-decor-left {
  left: max(-78px, -5vw);
  bottom: -45px;
  transform: rotate(-7deg);
}

.cp-motion-decor-right {
  right: max(-92px, -6vw);
  top: -25px;
  transform: rotate(8deg);
}

.cp-motion-showcase.is-changing .cp-motion-decor-left { transform: translate(-18px, 12px) rotate(-11deg); }
.cp-motion-showcase.is-changing .cp-motion-decor-right { transform: translate(18px, -12px) rotate(12deg); }

@media (max-width: 980px) {
  .cp-motion-showcase { min-height: 850px; }
  .cp-motion-shell {
    grid-template-columns: 1fr 1.35fr;
    grid-template-rows: auto 1fr auto;
    padding-top: 46px;
  }
  .cp-motion-heading { max-width: 390px; }
  .cp-motion-stage { height: 520px; }
  .cp-motion-controls { grid-column: 1 / -1; }
  .cp-motion-hint { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 700px) {
  .cp-motion-showcase { min-height: 780px; }
  .cp-motion-shell {
    min-height: 780px;
    display: flex;
    flex-direction: column;
    padding: 34px 18px 28px;
  }
  .cp-motion-heading {
    width: min(100%, 520px);
    max-width: none;
    text-align: center;
  }
  .cp-motion-kicker { margin-bottom: 9px; font-size: .62rem; }
  .cp-motion-title { margin-inline: auto; font-size: clamp(2.15rem, 10vw, 3.6rem); }
  .cp-motion-subtitle { margin: 13px auto 17px; font-size: .88rem; }
  .cp-motion-shop-link { min-height: 44px; font-size: .8rem; }
  .cp-motion-stage {
    flex: 1 1 auto;
    width: 100%;
    min-height: 360px;
    height: 46svh;
  }
  .cp-motion-card { width: min(68vw, 360px); }
  .cp-motion-card.is-before { transform: translateX(-72%) scale(.42) rotate(-7deg); }
  .cp-motion-card.is-after { transform: translateX(72%) scale(.42) rotate(7deg); }
  .cp-motion-floating-age { right: -10%; top: -3%; font-size: clamp(2.1rem, 11vw, 3.7rem); }
  .cp-motion-decor { width: clamp(125px, 34vw, 205px); opacity: .9; }
  .cp-motion-decor-left { left: -60px; bottom: 24px; }
  .cp-motion-decor-right { right: -72px; top: 220px; }
  .cp-motion-controls { margin-top: -8px; }
  .cp-motion-arrow { width: 48px; height: 48px; }
  .cp-motion-hint { display: none; }
}

@media (max-width: 420px) {
  .cp-motion-showcase,
  .cp-motion-shell { min-height: 735px; }
  .cp-motion-shell { padding-inline: 12px; }
  .cp-motion-stage { min-height: 330px; }
  .cp-motion-card { width: min(70vw, 315px); }
  .cp-motion-card-label { bottom: -2%; }
  .cp-motion-decor-right { top: 236px; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-motion-showcase,
  .cp-motion-card,
  .cp-motion-image-wrap img,
  .cp-motion-decor,
  .cp-motion-dot { transition-duration: 1ms !important; }
}
