/* Fruiturez hero slider v6
   Motion model:
   - Forward: current scene travels RIGHT and remains as a permanently blurred edge preview.
   - Backward: current scene travels LEFT + DOWN, shrinks, and remains blurred there.
   - The persistent ghost blur is CSS-enforced so it cannot fade back to sharp while idle.
   - Each named vector is positioned directly behind its matching character.
*/

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

.fruit-hero .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.demo-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #111;
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.fruit-hero {
  container-type: inline-size;
  --hero-h: min(100svh, 53.020833cqw);
  --scene-preview-opacity: 0.36;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 620px;
  height: max(620px, var(--hero-h));
  overflow: hidden;
  color: #fff;
  background: #fff;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.fruit-hero__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 83%, 0 96%);
  background: #8c073b;
}

.fruit-scene {
  position: absolute;
  inset: 0;
  z-index: auto;
  visibility: hidden;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}

.fruit-scene.is-active,
.fruit-scene.is-preview,
.fruit-scene.is-transition-layer {
  visibility: visible;
  opacity: 1;
}

.fruit-scene.is-active .fruit-scene__product {
  pointer-events: auto;
}

/* V6 active-scene afterimage.
   This layer is a cloned visual plane, independent from the sharp center scene.
   It deliberately stays blurred even when its source slide is active. */
.fruit-hero__active-ghost {
  position: absolute;
  inset: 0;
  z-index: 18;
  overflow: visible;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.fruit-hero__active-ghost.is-visible {
  visibility: visible;
  opacity: 1;
}

.fruit-hero__active-ghost .fruit-scene__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: 50% 53%;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.fruit-hero__active-ghost.is-right .fruit-scene__visual {
  -webkit-filter: blur(24px) !important;
  filter: blur(24px) !important;
}

.fruit-hero__active-ghost.is-left .fruit-scene__visual {
  -webkit-filter: blur(26px) !important;
  filter: blur(26px) !important;
}

/* Persistent-focus rule (v6).
   The adjacent/outgoing artwork must stay blurred for the entire idle period.
   !important is intentional here: GSAP/Web Animations may leave inline filter values
   after a transition. V6 also renders an independent blurred clone when the same
   scene is active in the center, so the edge blur never disappears. */
.fruit-scene.is-preview-right .fruit-scene__visual {
  -webkit-filter: blur(24px) !important;
  filter: blur(24px) !important;
}

.fruit-scene.is-preview-left .fruit-scene__visual {
  -webkit-filter: blur(26px) !important;
  filter: blur(26px) !important;
}

.fruit-scene__bg,
.fruit-scene__visual,
.fruit-scene__vector,
.fruit-scene__dots,
.fruit-scene__subtitle,
.fruit-scene__title,
.fruit-scene__character,
.fruit-scene__fruit,
.fruit-scene__product {
  position: absolute;
}

.fruit-scene__bg {
  inset: 0;
  z-index: 0;
  will-change: opacity;
}

/* Backgrounds do not translate with the artwork; they cross-fade like the reference video. */
[data-fruit="strawberry"] .fruit-scene__bg {
  background: linear-gradient(112deg, #98002f 0%, #ec0042 48%, #78002f 100%);
}

[data-fruit="banana"] .fruit-scene__bg {
  background: radial-gradient(ellipse at 52% 44%, #87911b 0%, #2a7a39 43%, #005121 82%);
}

[data-fruit="blueberry"] .fruit-scene__bg {
  background: linear-gradient(112deg, #982ca0 0%, #c93477 48%, #6c20da 100%);
}

/* One depth plane for title + character + fruits. GSAP animates this element's
   translate / scale / blur so the incoming slide "focuses" as it approaches. */
.fruit-scene__visual {
  inset: 0;
  z-index: 3;
  transform-origin: 50% 53%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.fruit-scene__vector {
  z-index: 5;
  display: block;
  height: auto;
  pointer-events: none;
  object-fit: contain;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

/* Named vector -> named character mapping.
   Vectors are local artwork layers and are deliberately centered on the matching
   character, one z-layer behind it (vector z=5 / character z=6). */
[data-fruit="strawberry"] .fruit-scene__vector--strawberry {
  left: 50%;
  top: 22.5%;
  width: min(31.302cqw, 601px);
  opacity: 0.52;
  filter: none;
  transform: translateX(-50%) rotate(2deg) scaleX(1.34) scaleY(0.70);
}

[data-fruit="banana"] .fruit-scene__vector--banana {
  left: 50%;
  top: 17.8%;
  width: min(27.969cqw, 537px);
  opacity: 0.50;
  filter: none;
  transform: translateX(-50%) rotate(-7deg) scaleX(1.03) scaleY(1.08);
}

[data-fruit="blueberry"] .fruit-scene__vector--blueberry {
  left: 50%;
  top: 31.0%;
  width: min(31.198cqw, 599px);
  opacity: 0.48;
  filter: none;
  transform: translateX(-50%) rotate(-2deg) scaleX(1.30) scaleY(0.66);
}

.fruit-scene__dots {
  left: 18.1%;
  top: 17.4%;
  width: 64.2%;
  height: 48.8%;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.fruit-dot {
  position: absolute;
  width: clamp(12px, 1.35cqw, 26px);
  aspect-ratio: 1;
  border-radius: 42% 58% 62% 38% / 42% 37% 63% 58%;
  opacity: 0.92;
  transform: rotate(var(--r, 0deg));
  will-change: transform, opacity;
}

.fruit-scene__subtitle {
  z-index: 3;
  left: 19.2%;
  top: 20.0%;
  width: clamp(220px, 20.4cqw, 392px);
  height: auto;
  pointer-events: none;
  will-change: transform, opacity;
}

.fruit-scene__title {
  z-index: 3;
  left: 21.0%;
  right: auto;
  top: 28.6%;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Helvetica Now Var", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(88px, 10.35cqw, 199px);
  font-weight: 300;
  line-height: 0.84;
  letter-spacing: -0.055em;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform, opacity;
}

[data-fruit="banana"] .fruit-scene__title {
  background: linear-gradient(90deg, #fffdf2 7%, #ddff45 61%, #baff17 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-fruit="blueberry"] .fruit-scene__title {
  background: linear-gradient(90deg, #f7f2ff 5%, #cfabff 58%, #b775ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fruit-scene__character {
  z-index: 6;
  left: 50%;
  bottom: 4.4%;
  width: min(42.7cqw, 820px);
  max-height: 79%;
  height: auto;
  object-fit: contain;
  transform: translateX(-50%);
  transform-origin: 50% 82%;
  filter: drop-shadow(0 34px 32px rgba(38, 0, 24, 0.23));
  pointer-events: none;
  will-change: transform;
}

[data-fruit="strawberry"] .fruit-scene__character {
  z-index: 20 !important;
}

.fruit-scene__character--banana {
  width: min(40.5cqw, 790px);
  bottom: 2.7%;
}

.fruit-scene__character--blueberry {
  width: min(39.5cqw, 760px);
  bottom: 1.8%;
}

.fruit-scene__fruit {
  z-index: 8;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.16));
  will-change: transform;
}

.fruit-scene__fruit--strawberry {
  right: 12.4%;
  top: 54%;
  width: min(13.5cqw, 260px);
  transform: rotate(4deg);
}

.fruit-scene__fruit--banana {
  right: 10.3%;
  top: 57.4%;
  width: min(16.9cqw, 324px);
  transform: rotate(-7deg);
}

.fruit-scene__fruit--blueberry {
  right: 12.0%;
  top: 58.4%;
  width: min(13.2cqw, 254px);
  transform: rotate(-2deg);
}

/* Product is a separate plane: it fades/slides, but doesn't take the heavy blur used by the artwork. */
.fruit-scene__product {
  z-index: 12;
  left: 12.1%;
  top: 60%;
  display: flex;
  width: min(11.1cqw, 213px);
  min-width: 150px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transform: translateY(-50%);
  will-change: transform, opacity, filter;
  pointer-events: none;
  perspective: 900px;
  perspective-origin: 50% 50%;
}


/* V11: Strawberry uses the shared product position, exactly like Banana and Blueberry. */

.fruit-scene__pack {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.26));
  transition: transform 180ms ease;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.fruit-scene__product:focus-visible .fruit-scene__pack {
  transform: translateY(-4px) scale(1.025);
}

@media (hover: hover) and (pointer: fine) {
  .fruit-scene__product:hover .fruit-scene__pack {
    transform: translateY(-4px) scale(1.025);
  }
}

.fruit-scene__cta-image {
  display: block;
  width: min(11.8cqw, 226px);
  max-width: 226px;
  height: auto;
}

.fruit-scene__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(11.8cqw, 226px);
  height: clamp(44px, 3.5cqw, 67px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(213, 255, 74, 0.26), inset 0 0 18px rgba(255, 255, 255, 0.08);
  font-size: clamp(16px, 1.25cqw, 24px);
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.fruit-scene__cta--banana {
  color: #111;
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 4px rgba(216, 255, 158, 0.22),
    0 0 22px rgba(196, 255, 65, 0.26),
    inset 0 0 12px rgba(255, 255, 255, 0.92);
  backdrop-filter: none;
}

.fruit-hero__controls {
  position: absolute;
  z-index: 40;
  inset: 0;
  pointer-events: none;
}

/* V11 side navigation: arrows live on the left/right edges of the Hero.
   The slider motion itself is unchanged; only control placement is updated. */
.fruit-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.fruit-hero__arrow[data-prev] {
  left: clamp(16px, 2.1cqw, 40px);
}

.fruit-hero__arrow[data-next] {
  right: clamp(16px, 2.1cqw, 40px);
}

.fruit-hero__arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-50%) scale(1.06);
}

@media (hover: hover) and (pointer: fine) {
  .fruit-hero__arrow:hover {
    border-color: rgba(255, 255, 255, 0.70);
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-50%) scale(1.06);
  }
}

.fruit-hero__pagination {
  position: absolute;
  left: 50%;
  bottom: 6.2%;
  display: flex;
  width: min(520px, calc(100% - 160px));
  justify-content: center;
  gap: 9px;
  pointer-events: auto;
  transform: translateX(-50%);
}

.fruit-hero__dot {
  display: flex;
  min-width: 52px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: color 180ms ease, background 180ms ease;
}

.fruit-hero__dot span {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.fruit-hero__dot b {
  display: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.fruit-hero__dot.is-active {
  color: #111;
  background: rgba(255, 255, 255, 0.92);
}

.fruit-hero__dot.is-active b {
  display: inline;
}

.fruit-hero__hint {
  position: absolute;
  z-index: 35;
  right: 24px;
  bottom: 4.5%;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.demo-notes {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  color: #181818;
}

.demo-notes h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5cqw, 72px);
  letter-spacing: -0.04em;
}

.demo-notes p {
  max-width: 760px;
  margin: 0;
  color: #666;
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .fruit-hero {
  container-type: inline-size;
    height: min(900px, 128cqw);
    min-height: 660px;
  }

  .fruit-hero__viewport {
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 96%);
  }

  .fruit-scene__dots {
    left: 7%;
    top: 15%;
    width: 86%;
    height: 47%;
  }

  .fruit-scene__vector--strawberry,
  .fruit-scene__vector--banana,
  .fruit-scene__vector--blueberry {
    left: 50%;
    width: min(48cqw, 430px);
  }

  .fruit-scene__vector--strawberry {
    top: 25%;
    transform: translateX(-50%) rotate(2deg) scaleX(1.28) scaleY(.72);
  }

  .fruit-scene__vector--banana {
    top: 22%;
    transform: translateX(-50%) rotate(-7deg) scale(1.02);
  }

  .fruit-scene__vector--blueberry {
    top: 31%;
    transform: translateX(-50%) rotate(-2deg) scaleX(1.24) scaleY(.68);
  }

  .fruit-scene__subtitle {
    left: 9%;
    top: 15%;
    width: min(43cqw, 300px);
  }

  .fruit-scene__title {
    left: 9%;
    right: auto;
    top: 23%;
    font-size: clamp(72px, 13.5cqw, 138px);
  }

  .fruit-scene__character,
  .fruit-scene__character--banana,
  .fruit-scene__character--blueberry {
    left: 50%;
    bottom: 8%;
    width: min(62cqw, 600px);
    max-height: 67%;
  }

  .fruit-scene__fruit--strawberry {
    right: 4%;
    top: 58%;
    width: min(19cqw, 180px);
  }

  .fruit-scene__fruit--banana {
    right: 1.5%;
    top: 58%;
    width: min(23.6cqw, 214px);
  }

  .fruit-scene__fruit--blueberry {
    right: 5.2%;
    top: 59%;
    width: min(18.6cqw, 170px);
  }

  .fruit-scene__product {
    left: 6%;
    top: 67%;
    width: 132px;
    min-width: 132px;
  }

  .fruit-scene__cta-image,
  .fruit-scene__cta {
    width: 132px;
  }

  .fruit-hero__hint {
    display: none;
  }

  .fruit-hero__pagination {
    bottom: 5.4%;
  }

  .fruit-hero__arrow {
    width: 44px;
    height: 44px;
  }

  .fruit-hero__arrow[data-prev] {
    left: 16px;
  }

  .fruit-hero__arrow[data-next] {
    right: 16px;
  }
}

@media (max-width: 640px) {
  .fruit-hero {
  container-type: inline-size;
    height: min(820px, 174cqw);
    min-height: 610px;
  }

  .fruit-scene__dots {
    left: 4%;
    top: 13%;
    width: 92%;
    height: 42%;
  }

  .fruit-scene__vector--strawberry,
  .fruit-scene__vector--banana,
  .fruit-scene__vector--blueberry {
    left: 50%;
    width: min(65cqw, 340px);
    filter: none;
  }

  .fruit-scene__vector--strawberry {
    top: 30%;
    transform: translateX(-50%) rotate(2deg) scaleX(1.22) scaleY(.74);
  }

  .fruit-scene__vector--banana {
    top: 27%;
    transform: translateX(-50%) rotate(-7deg) scale(.98);
  }

  .fruit-scene__vector--blueberry {
    top: 34%;
    transform: translateX(-50%) rotate(-2deg) scaleX(1.18) scaleY(.70);
  }

  .fruit-scene__subtitle {
    left: 7%;
    top: 15%;
    width: min(58cqw, 250px);
  }

  .fruit-scene__title {
    left: 6%;
    top: 23%;
    font-size: clamp(54px, 15.5cqw, 96px);
  }

  [data-fruit="blueberry"] .fruit-scene__title {
    font-size: clamp(51px, 15cqw, 90px);
  }

  .fruit-scene__character,
  .fruit-scene__character--banana,
  .fruit-scene__character--blueberry {
    left: 50%;
    bottom: 11%;
    width: min(91cqw, 520px);
    max-height: 61%;
  }

  .fruit-scene__fruit--strawberry {
    right: -1%;
    top: 51%;
    width: min(29cqw, 148px);
  }

  .fruit-scene__fruit--banana {
    right: -3%;
    top: 52%;
    width: min(33cqw, 168px);
  }

  .fruit-scene__fruit--blueberry {
    right: 0.5%;
    top: 55%;
    width: min(26cqw, 132px);
  }

  .fruit-scene__product {
    left: 18px;
    top: 67%;
    width: 90px;
    min-width: 90px;
    gap: 4px;
  }

  .fruit-scene__cta-image,
  .fruit-scene__cta {
    width: 90px;
  }

  .fruit-scene__cta {
    height: 34px;
    font-size: 12px;
  }

  .fruit-hero__arrow {
    width: 40px;
    height: 40px;
  }

  .fruit-hero__arrow[data-prev] {
    left: 10px;
  }

  .fruit-hero__arrow[data-next] {
    right: 10px;
  }

  .fruit-hero__pagination {
    bottom: 5.6%;
    width: calc(100% - 112px);
    gap: 5px;
  }

  .fruit-hero__dot {
    min-width: 38px;
    padding: 7px 9px;
  }

  .fruit-hero__dot b {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .fruit-hero { --hero-h: 1018px; height: 1018px; min-height: 1018px; }
}

@media (prefers-reduced-motion: reduce) {
  .fruit-hero *,
  .fruit-hero *::before,
  .fruit-hero *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
