/* Candy House experimental page
   All selectors are scoped to the developer playground and effect deck. */

.experiment-options {
  padding-top: clamp(9rem, 16vw, 12rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.experiment-options__intro {
  max-width: 920px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.experiment-options__intro h1 {
  margin-bottom: 1rem;
}

.experiment-options__intro h1 span {
  display: block;
  color: var(--dark-orange);
}

.option-set + .option-set {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.option-set__heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: end;
  margin-bottom: 1rem;
}

.option-set__heading h2 {
  margin: 0;
  color: var(--dark-pink);
  font-size: clamp(2rem, 4.6vw, 4rem);
}

.no-image-option-grid,
.hero-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hero-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.no-image-option,
.hero-option {
  min-width: 0;
}

.option-label {
  margin: 0 0 0.5rem;
  color: var(--dark-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.no-image-option .station-card {
  min-height: 100%;
}

.missing-photo-card,
.hero-option-preview {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(232, 63, 135, 0.15);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 48px rgba(120, 53, 78, 0.09);
}

.missing-photo-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 250px;
  padding: 1.25rem;
}

.missing-photo-card h3,
.hero-option-preview h3 {
  margin: 0;
  color: var(--dark-pink);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1;
}

.missing-photo-card p,
.hero-option-preview p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.missing-photo-card--label {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 243, 249, 0.92)),
    repeating-linear-gradient(45deg, rgba(245, 106, 163, 0.13) 0 12px, rgba(245, 163, 58, 0.14) 12px 24px);
}

.missing-photo-mark {
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, #ef4d95, #f2a23a);
  box-shadow: 0 16px 32px rgba(186, 54, 115, 0.2);
  font-size: 1.45rem;
  font-weight: 900;
}

.missing-photo-card--ticket {
  border-style: dashed;
  background:
    radial-gradient(circle at 0 50%, transparent 0 18px, rgba(255, 255, 255, 0.9) 19px),
    linear-gradient(145deg, #fffdf9, #fff1f7);
}

.missing-photo-chip {
  width: fit-content;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  color: #0b6a64;
  background: rgba(31, 181, 169, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.missing-photo-card--menu {
  background:
    radial-gradient(circle at 100% 0, rgba(31, 181, 169, 0.18), transparent 13rem),
    linear-gradient(145deg, #fff, #fff8f1);
}

.missing-photo-line {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4d95, #f2a23a, #1fb5a9);
}

.missing-photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: auto;
}

.missing-photo-tags span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: #6a3850;
  background: rgba(245, 106, 163, 0.1);
  font-size: 0.76rem;
  font-weight: 900;
}

.hero-option-preview {
  min-height: 420px;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
}

.hero-option-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0.65rem;
}

.hero-option--tabs .hero-option-preview {
  display: grid;
  align-content: space-between;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.74), transparent 12rem),
    linear-gradient(135deg, #ff58a9, #ff9bcf 48%, #ffc14b);
}

.hero-option--tabs .hero-option-preview h3,
.hero-option--tabs .hero-option-preview p {
  color: white;
}

.hero-option--tabs img {
  width: 76%;
  aspect-ratio: 1.1;
  justify-self: end;
  object-fit: cover;
  border: 7px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow: 0 24px 54px rgba(117, 31, 74, 0.22);
}

.hero-tab-strip {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.hero-tab-strip span {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: #a71954;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-option--stack .hero-option-preview {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 106, 163, 0.16), transparent 13rem),
    linear-gradient(145deg, #fffdf9, #f2fffd);
}

.hero-photo-stack {
  position: relative;
  min-height: 230px;
}

.hero-photo-stack img {
  position: absolute;
  width: 58%;
  aspect-ratio: 1.05;
  object-fit: cover;
  border: 7px solid white;
  border-radius: 26px;
  box-shadow: 0 22px 44px rgba(82, 41, 59, 0.15);
}

.hero-photo-stack img:nth-child(1) {
  left: 0;
  top: 16%;
  transform: rotate(-7deg);
}

.hero-photo-stack img:nth-child(2) {
  right: 0;
  top: 0;
  transform: rotate(5deg);
}

.hero-photo-stack img:nth-child(3) {
  left: 22%;
  bottom: 0;
  transform: rotate(-1deg);
}

.hero-option--flow .hero-option-preview {
  display: grid;
  align-content: center;
  gap: 1.4rem;
  background:
    radial-gradient(circle at 50% 0, rgba(245, 163, 58, 0.2), transparent 14rem),
    linear-gradient(145deg, #fff8f1, #fff1f7);
}

.hero-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.hero-flow span {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 0.7rem;
  border-radius: 24px;
  color: white;
  background: linear-gradient(145deg, #ef4d95, #f2a23a);
  box-shadow: 0 18px 34px rgba(186, 54, 115, 0.14);
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  font-weight: 900;
  text-align: center;
}

.experiment-mailto {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.experiment-mailto__intro {
  max-width: 840px;
  margin-bottom: 2rem;
}

.experiment-mailto__intro h1,
.experiment-lab__intro h2 {
  margin-bottom: 1rem;
}

.experiment-mailto__intro h1 span,
.experiment-lab__intro h2 span {
  display: block;
  color: var(--dark-orange);
}

.experiment-mailto__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.experiment-code-card {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(245, 163, 58, 0.14), transparent 16rem),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.experiment-code-card h2 {
  margin-bottom: 1.2rem;
  color: var(--dark-pink);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.experiment-kicker {
  margin-bottom: 0.55rem;
  color: var(--dark-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experiment-code {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  overflow-wrap: anywhere;
  border: 1px solid rgba(232, 63, 135, 0.14);
  border-radius: 16px;
  color: #5e4350;
  background: rgba(255, 248, 241, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.55;
}

.experiment-lab {
  position: relative;
  overflow: clip;
  background: #2c1022;
}

.experiment-lab__intro {
  position: relative;
  z-index: 2;
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.experiment-lab__intro .eyebrow,
.experiment-lab__intro h2,
.experiment-lab__intro p {
  color: white;
}

.experiment-lab__intro h2 {
  font-size: clamp(3rem, 8vw, 6.6rem);
}

.experiment-lab__intro p:last-child {
  max-width: 660px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.68);
}

.effect-deck {
  position: relative;
}

.candy-effect {
  --effect-progress: 0;
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(360px, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(7rem, 11vw, 10rem) max(24px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  isolation: isolate;
  color: white;
}

.candy-effect::before,
.candy-effect::after {
  content: "";
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.8s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
}

.candy-effect::before {
  width: min(52vw, 680px);
  aspect-ratio: 1;
  left: -12%;
  top: 8%;
  background: rgba(255, 255, 255, 0.15);
}

.candy-effect::after {
  width: min(44vw, 580px);
  aspect-ratio: 1;
  right: -10%;
  bottom: -12%;
  background: rgba(255, 255, 255, 0.11);
}

.candy-effect.is-active::before,
.candy-effect.is-active::after {
  opacity: 1;
  transform: scale(1);
}

.effect-heading {
  position: relative;
  z-index: 5;
  max-width: 470px;
}

.effect-heading h2 {
  margin-bottom: 1rem;
  color: white;
  font-family: "Luckiest Guy", "Baloo 2", system-ui, sans-serif;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-shadow: 0 12px 0 rgba(70, 18, 50, 0.18);
}

.effect-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.effect-index {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.effect-sugar-burst {
  background:
    radial-gradient(circle at 78% 40%, rgba(255,255,255,.38), transparent 19rem),
    linear-gradient(135deg, #ff4fa6, #ff8bc8 52%, #ffb540);
}

.burst-zone {
  --burst-x: 50%;
  --burst-y: 50%;
  position: relative;
  width: min(72vw, 570px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  outline: none;
}

.burst-zone:focus-visible {
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.52);
}

.burst-zone::before,
.burst-zone::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 3px dashed rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  opacity: 0;
}

.burst-zone::after {
  inset: 24%;
  border-style: solid;
}

.effect-sugar-burst.is-active .burst-zone::before {
  opacity: 1;
  animation: expSpin 14s linear infinite;
}

.effect-sugar-burst.is-active .burst-zone::after {
  opacity: 1;
  animation: expSpin 9s linear infinite reverse;
}

.burst-orbit {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background:
    conic-gradient(from 10deg, transparent 0 7%, rgba(255,255,255,.35) 8% 11%, transparent 12% 25%, rgba(255,255,255,.22) 26% 31%, transparent 32% 100%);
  filter: blur(1px);
}

.burst-core {
  position: relative;
  z-index: 4;
  width: 38%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ff378e;
  background:
    radial-gradient(circle at 35% 28%, white 0 12%, transparent 13%),
    linear-gradient(145deg, #fff, #ffe1f1);
  box-shadow:
    0 32px 80px rgba(108, 18, 65, 0.32),
    inset -18px -22px 36px rgba(255, 95, 169, 0.22);
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  transform: scale(0.88) rotate(-7deg);
  transition: transform 0.22s ease;
}

.burst-zone:hover .burst-core,
.burst-zone:focus-visible .burst-core {
  transform: scale(1) rotate(4deg);
}

.burst-particle {
  position: absolute;
  left: var(--burst-x);
  top: var(--burst-y);
  z-index: 8;
  width: var(--size);
  height: calc(var(--size) * 0.42);
  border-radius: 999px;
  background: var(--particle-colour);
  box-shadow: 0 8px 16px rgba(80, 15, 48, 0.18);
  pointer-events: none;
  animation: expBurst 850ms cubic-bezier(.1,.75,.25,1) forwards;
}

.effect-gummy-morph {
  background:
    radial-gradient(circle at 76% 50%, rgba(255, 255, 255, 0.2), transparent 22rem),
    linear-gradient(135deg, #6632d5, #b84df0 48%, #ff5fc6);
}

.gummy-stage {
  position: relative;
  width: min(76vw, 650px);
  aspect-ratio: 1.15;
  justify-self: center;
  filter: drop-shadow(0 35px 45px rgba(39, 8, 84, 0.25));
}

.gummy {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 16px 18px 28px rgba(255, 255, 255, 0.25),
    inset -22px -25px 34px rgba(57, 13, 94, 0.22),
    0 28px 55px rgba(51, 10, 79, 0.2);
  backdrop-filter: blur(8px);
  opacity: 0.92;
  animation-play-state: paused;
}

.gummy span {
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  left: 22%;
  top: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  filter: blur(6px);
}

.gummy-a {
  width: 44%;
  aspect-ratio: 0.9;
  left: 4%;
  top: 19%;
  background: linear-gradient(145deg, rgba(255, 83, 183, 0.92), rgba(231, 31, 133, 0.78));
  animation: gummyA 6.2s ease-in-out infinite alternate;
}

.gummy-b {
  width: 39%;
  aspect-ratio: 1.05;
  right: 5%;
  top: 7%;
  background: linear-gradient(145deg, rgba(89, 239, 255, 0.9), rgba(28, 162, 238, 0.72));
  animation: gummyB 5.5s ease-in-out infinite alternate;
}

.gummy-c {
  width: 38%;
  aspect-ratio: 1.15;
  left: 35%;
  bottom: 2%;
  background: linear-gradient(145deg, rgba(255, 219, 67, 0.92), rgba(255, 123, 51, 0.78));
  animation: gummyC 6.8s ease-in-out infinite alternate;
}

.effect-gummy-morph.is-active .gummy {
  animation-play-state: running;
}

.gummy-reflection {
  position: absolute;
  left: 12%;
  right: 8%;
  bottom: -2%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.34), transparent 68%);
  filter: blur(15px);
  transform: rotateX(68deg);
}

.effect-stripe-wipe {
  background:
    radial-gradient(circle at 80% 45%, rgba(255,255,255,.34), transparent 18rem),
    linear-gradient(135deg, #ff3e3e, #ff697b 48%, #ff9c3e);
}

.stripe-wipe-card {
  position: relative;
  width: min(76vw, 620px);
  min-height: min(62svh, 560px);
  justify-self: center;
  display: grid;
  place-content: center;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 10px solid rgba(255, 255, 255, 0.88);
  border-radius: 48px;
  color: #b81752;
  background: #fff6dc;
  box-shadow: 0 38px 90px rgba(105, 14, 48, 0.3);
  text-align: center;
  transform: rotate(2deg);
}

.stripe-wipe-card strong {
  display: block;
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-size: clamp(4.3rem, 11vw, 9.5rem);
  line-height: 0.78;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 0 rgba(255, 151, 63, 0.35);
}

.stripe-wipe-small,
.stripe-wipe-card span {
  position: relative;
  z-index: 1;
  color: #b81752;
  font-weight: 900;
}

.stripe-wipe-cover {
  position: absolute;
  inset: -10%;
  z-index: 3;
  background:
    repeating-linear-gradient(
      -45deg,
      #fff 0 34px,
      #ff5f8f 34px 68px,
      #fff 68px 102px,
      #ffbd45 102px 136px
    );
  transform: translateX(0) rotate(0.01deg);
}

.effect-stripe-wipe.is-active .stripe-wipe-cover {
  animation: stripePeel 1.2s 0.25s cubic-bezier(.72,0,.18,1) forwards;
}

.effect-lollipop-tunnel {
  --portal-rx: 0deg;
  --portal-ry: 0deg;
  background:
    radial-gradient(circle at 78% 46%, rgba(255,255,255,.26), transparent 21rem),
    linear-gradient(135deg, #0ec8d2, #38d8c3 48%, #8be84a);
}

.lollipop-portal {
  position: relative;
  width: min(78vw, 650px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  perspective: 900px;
  transform-style: preserve-3d;
  transform: rotateX(var(--portal-rx)) rotateY(var(--portal-ry));
  transition: transform 0.18s ease-out;
}

.lollipop-portal i {
  position: absolute;
  width: calc(94% - (var(--ring) * 11%));
  aspect-ratio: 1;
  border: clamp(10px, 1.8vw, 21px) solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(
      #ff3b88 0 12.5%,
      #fff 12.5% 25%,
      #ffb52f 25% 37.5%,
      #fff 37.5% 50%,
      #6837e8 50% 62.5%,
      #fff 62.5% 75%,
      #22cfd5 75% 87.5%,
      #fff 87.5% 100%
    ) border-box;
  box-shadow:
    0 0 40px rgba(255,255,255,.18),
    inset 0 0 34px rgba(255,255,255,.3);
  transform:
    translateZ(calc(var(--ring) * -54px))
    rotate(calc(var(--ring) * 15deg))
    scale(calc(1 - var(--ring) * .025));
  opacity: calc(1 - var(--ring) * .08);
  animation-play-state: paused;
}

.effect-lollipop-tunnel.is-active .lollipop-portal i:nth-child(odd) {
  animation: portalSpin 8s linear infinite;
}

.effect-lollipop-tunnel.is-active .lollipop-portal i:nth-child(even) {
  animation: portalSpinReverse 10s linear infinite;
}

.portal-centre {
  position: relative;
  z-index: 5;
  width: 25%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #5030b3;
  background: white;
  box-shadow: 0 22px 60px rgba(23, 99, 104, 0.26);
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2.7rem);
}

.effect-popcorn-reactor {
  background:
    radial-gradient(circle at 76% 42%, rgba(255,255,255,.27), transparent 21rem),
    linear-gradient(135deg, #ff9d19, #ffbd3b 50%, #ffe377);
}

.popcorn-reactor {
  width: min(78vw, 690px);
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}

.popcorn-chamber {
  position: relative;
  width: 100%;
  min-height: min(60svh, 540px);
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px 50px 110px 110px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.08)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 2px, transparent 2px 70px);
  box-shadow:
    inset 0 -42px 60px rgba(179, 89, 4, 0.18),
    0 40px 90px rgba(131, 60, 3, 0.24);
  backdrop-filter: blur(8px);
}

.popcorn-chamber::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 70%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(171, 76, 6, 0.32), transparent 68%);
  filter: blur(12px);
}

.popcorn-kernel {
  position: absolute;
  left: var(--kernel-x);
  bottom: -18%;
  width: var(--kernel-size);
  aspect-ratio: 1;
  border-radius: 44% 56% 51% 49% / 57% 43% 57% 43%;
  background:
    radial-gradient(circle at 30% 28%, #fff 0 17%, transparent 18%),
    radial-gradient(circle at 62% 34%, #fff8df 0 26%, transparent 27%),
    linear-gradient(145deg, #fff7d2, #f3c65f);
  box-shadow:
    inset -7px -8px 12px rgba(178, 104, 12, 0.22),
    0 12px 18px rgba(126, 59, 5, 0.18);
  opacity: 0;
  transform: translateX(-50%) rotate(var(--kernel-rotate));
  animation: popcornPop var(--kernel-duration) var(--kernel-delay) cubic-bezier(.15,.75,.25,1) both;
  animation-play-state: paused;
}

.effect-popcorn-reactor.is-active .popcorn-kernel {
  animation-play-state: running;
}

.reactor-button {
  min-width: 190px;
  border: 0;
  cursor: pointer;
}

@keyframes expSpin {
  to { transform: rotate(1turn); }
}

@keyframes expBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rotation)) scale(0.3);
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--travel-x)),
        calc(-50% + var(--travel-y))
      )
      rotate(calc(var(--rotation) + 260deg))
      scale(1.1);
  }
}

@keyframes gummyA {
  0% { border-radius: 42% 58% 65% 35% / 38% 45% 55% 62%; transform: translate(0, 0) rotate(-8deg) scale(0.94); }
  100% { border-radius: 67% 33% 40% 60% / 55% 67% 33% 45%; transform: translate(32%, -10%) rotate(16deg) scale(1.08); }
}

@keyframes gummyB {
  0% { border-radius: 55% 45% 34% 66% / 36% 61% 39% 64%; transform: translate(0, 0) rotate(8deg) scale(1); }
  100% { border-radius: 32% 68% 61% 39% / 65% 38% 62% 35%; transform: translate(-30%, 20%) rotate(-18deg) scale(0.9); }
}

@keyframes gummyC {
  0% { border-radius: 38% 62% 55% 45% / 66% 41% 59% 34%; transform: translate(0, 0) rotate(-3deg) scale(0.9); }
  100% { border-radius: 64% 36% 33% 67% / 42% 62% 38% 58%; transform: translate(-12%, -27%) rotate(14deg) scale(1.13); }
}

@keyframes stripePeel {
  0% { transform: translateX(0) rotate(0.01deg); }
  55% { transform: translateX(-28%) skewX(-6deg) rotate(0.01deg); }
  100% { transform: translateX(-115%) skewX(-12deg) rotate(0.01deg); }
}

@keyframes portalSpin {
  to {
    transform:
      translateZ(calc(var(--ring) * -54px))
      rotate(calc(var(--ring) * 15deg + 360deg))
      scale(calc(1 - var(--ring) * .025));
  }
}

@keyframes portalSpinReverse {
  to {
    transform:
      translateZ(calc(var(--ring) * -54px))
      rotate(calc(var(--ring) * 15deg - 360deg))
      scale(calc(1 - var(--ring) * .025));
  }
}

@keyframes popcornPop {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) rotate(var(--kernel-rotate)) scale(0.3);
  }
  12% {
    opacity: 1;
  }
  55% {
    opacity: 1;
    transform:
      translate(
        calc(-50% + var(--kernel-drift)),
        calc(-1 * var(--kernel-rise))
      )
      rotate(calc(var(--kernel-rotate) + 260deg))
      scale(1.08);
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--kernel-drift-end)),
        calc(-1 * var(--kernel-rise) + 120px)
      )
      rotate(calc(var(--kernel-rotate) + 470deg))
      scale(0.85);
  }
}

@media (max-width: 860px) {
  .option-set__heading,
  .experiment-mailto__grid {
    grid-template-columns: 1fr;
  }

  .no-image-option-grid,
  .hero-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candy-effect {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 7rem;
    padding-bottom: 7rem;
    text-align: center;
  }

  .effect-heading {
    justify-self: center;
  }

  .burst-zone,
  .gummy-stage,
  .stripe-wipe-card,
  .lollipop-portal,
  .popcorn-reactor {
    width: min(92vw, 620px);
  }

  .popcorn-chamber {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .experiment-options {
    padding-top: 8.5rem;
  }

  .no-image-option-grid,
  .hero-option-grid {
    grid-template-columns: 1fr;
  }

  .hero-option-preview {
    min-height: 360px;
  }

  .hero-photo-stack {
    min-height: 210px;
  }

  .hero-flow {
    grid-template-columns: 1fr;
  }

  .hero-flow span {
    min-height: 64px;
  }

  .experiment-mailto {
    padding-top: 3rem;
  }

  .experiment-code-card {
    border-radius: 24px;
  }

  .candy-effect {
    padding-inline: 18px;
  }

  .effect-heading h2 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  .stripe-wipe-card {
    min-height: 430px;
    border-width: 7px;
    border-radius: 34px;
  }

  .popcorn-chamber {
    min-height: 430px;
    border-radius: 36px 36px 76px 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candy-effect *,
  .candy-effect *::before,
  .candy-effect *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .stripe-wipe-cover {
    display: none;
  }
}


/* =========================================================
   FIVE HOME HERO REDESIGNS
   The visible wording inside every version is intentionally identical.
   ========================================================= */

.hero-variant-deck {
  position: relative;
  background: #fff8f1;
}

.hero-variant {
  --hero-mx: 0;
  --hero-my: 0;
  --hero-depth: 0;
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(7.5rem, 11vw, 10rem) 0 clamp(5rem, 8vw, 7.5rem);
}

.hero-variant + .hero-variant {
  border-top: 1px solid rgba(255, 255, 255, 0.46);
}

.hero-variant__shell {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.hero-variant .page-copy,
.hero-variant .page-visual {
  min-width: 0;
}

.hero-variant .page-title {
  margin-bottom: 1.25rem;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.84;
  text-wrap: balance;
}

.hero-variant .page-title span {
  display: block;
}

.hero-variant .page-copy > p {
  max-width: 630px;
  margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.hero-variant .hero-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  max-width: 660px;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
}

.hero-variant .hero-feature-list li {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0.7rem 0.85rem 0.7rem 2.25rem;
  border-radius: 17px;
  line-height: 1.22;
}

.hero-variant .hero-feature-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main-pink), var(--orange));
  box-shadow: 0 0 0 5px rgba(245, 106, 163, 0.11);
}

.hero-variant .hero-actions {
  margin-top: 1.7rem;
}

.hero-variant .hero-actions .btn {
  min-height: 51px;
}

.hero-variant .page-visual {
  position: relative;
  z-index: 4;
}

.hero-variant .page-visual img {
  width: 100%;
  height: clamp(430px, 52vw, 650px);
  object-fit: cover;
  padding: 0;
  border-radius: inherit;
  background: none;
  box-shadow: none;
}

.hero-variant .page-copy > *,
.hero-variant .page-visual {
  opacity: 0;
  transform: translateY(36px);
}

.hero-variant.is-active .page-copy > *,
.hero-variant.is-active .page-visual {
  animation: heroVariantEnter 0.85s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero-variant.is-active .page-copy > :nth-child(1) { animation-delay: 0.03s; }
.hero-variant.is-active .page-copy > :nth-child(2) { animation-delay: 0.13s; }
.hero-variant.is-active .page-copy > :nth-child(3) { animation-delay: 0.23s; }
.hero-variant.is-active .page-copy > :nth-child(4) { animation-delay: 0.33s; }
.hero-variant.is-active .page-visual { animation-delay: 0.12s; }

/* VERSION 1: ORBIT */

.hero-variant--orbit {
  background:
    radial-gradient(circle at 76% 48%, rgba(255, 255, 255, 0.92) 0 7%, transparent 31%),
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.85), transparent 25rem),
    linear-gradient(135deg, #fff4f9, #ffd4e9 48%, #ffc987);
}

.hero-variant--orbit .page-title {
  color: #4c2639;
}

.hero-variant--orbit .page-title span {
  color: var(--dark-pink);
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  letter-spacing: 0.025em;
  text-shadow:
    0 6px 0 rgba(255, 255, 255, 0.72),
    0 15px 32px rgba(232, 63, 135, 0.2);
  transform: rotate(-1.4deg);
}

.hero-variant--orbit .hero-feature-list li {
  color: #664a57;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 13px 30px rgba(134, 47, 86, 0.08);
  backdrop-filter: blur(12px);
}

.hero-variant__ambient,
.hero-gummy-field,
.hero-popcorn-rays,
.hero-stack-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-orbit-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(7px);
  opacity: 0.66;
}

.hero-orbit-blob--one {
  width: min(46vw, 660px);
  aspect-ratio: 1;
  right: -10%;
  top: -16%;
  background: linear-gradient(145deg, rgba(255, 76, 167, 0.55), rgba(255, 193, 75, 0.5));
  animation: heroBlobMorphA 9s ease-in-out infinite alternate;
}

.hero-orbit-blob--two {
  width: min(31vw, 440px);
  aspect-ratio: 1;
  left: -9%;
  bottom: -20%;
  background: linear-gradient(145deg, rgba(101, 218, 255, 0.55), rgba(161, 113, 239, 0.42));
  animation: heroBlobMorphB 11s ease-in-out infinite alternate;
}

.hero-orbit-particles {
  position: absolute;
  inset: 0;
}

.hero-orbit-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  background: var(--c);
  opacity: var(--o);
  transform: rotate(var(--r));
  animation: heroParticleFloat var(--d) var(--delay) ease-in-out infinite alternate;
}

.hero-orbit-stage {
  position: relative;
  min-height: 670px;
  display: grid;
  place-items: center;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.hero-variant--orbit .page-visual {
  width: min(88%, 590px);
  aspect-ratio: 0.92;
  overflow: hidden;
  border: 13px solid rgba(255, 255, 255, 0.72);
  border-radius: 48% 52% 44% 56% / 40% 45% 55% 60%;
  box-shadow:
    0 42px 85px rgba(117, 38, 74, 0.24),
    inset 0 1px 0 white;
  transform:
    rotateX(calc(var(--hero-my) * -5deg))
    rotateY(calc(var(--hero-mx) * 7deg))
    translateZ(22px);
  transition: transform 0.18s ease-out;
}

.hero-variant--orbit .page-visual img {
  height: 100%;
  transform: scale(1.08);
}

.hero-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(219, 49, 129, 0.26);
  pointer-events: none;
}

.hero-orbit-ring--outer {
  width: min(104%, 700px);
  aspect-ratio: 1;
  animation: heroRingSpin 22s linear infinite;
}

.hero-orbit-ring--inner {
  width: min(78%, 520px);
  aspect-ratio: 1;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.58);
  animation: heroRingSpin 16s linear infinite reverse;
}

.hero-orbit-candy {
  position: absolute;
  z-index: 8;
  width: 54px;
  aspect-ratio: 1.8;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #fff 0 18%, transparent 19% 81%, #fff 82%),
    linear-gradient(135deg, var(--main-pink), var(--orange));
  box-shadow: 0 16px 30px rgba(109, 36, 70, 0.18);
}

.hero-orbit-candy--one {
  left: 4%;
  top: 23%;
  transform: rotate(-24deg);
  animation: heroCandyFloatA 5s ease-in-out infinite;
}

.hero-orbit-candy--two {
  right: 2%;
  top: 37%;
  background:
    linear-gradient(90deg, #fff 0 18%, transparent 19% 81%, #fff 82%),
    linear-gradient(135deg, #6bdff5, #9271ef);
  transform: rotate(28deg);
  animation: heroCandyFloatB 6s ease-in-out infinite;
}

.hero-orbit-candy--three {
  right: 15%;
  bottom: 5%;
  width: 46px;
  background:
    linear-gradient(90deg, #fff 0 18%, transparent 19% 81%, #fff 82%),
    linear-gradient(135deg, #ffca41, #ff6e71);
  transform: rotate(-9deg);
  animation: heroCandyFloatA 6.7s ease-in-out infinite reverse;
}

/* VERSION 2: WRAPPER REVEAL */

.hero-variant--wrapper {
  background:
    radial-gradient(circle at 14% 50%, rgba(255, 255, 255, 0.84), transparent 26rem),
    linear-gradient(135deg, #fff8df, #ffe9bd 45%, #ffd2df);
}

.hero-variant--wrapper::before {
  content: "";
  position: absolute;
  inset: 4.5rem 3vw 3.5rem;
  z-index: -1;
  border-radius: 46px;
  border: 2px solid rgba(199, 42, 101, 0.13);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.36) 0 18px,
      rgba(255, 117, 158, 0.12) 18px 36px
    );
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.26);
}

.hero-variant--wrapper .hero-variant__shell {
  grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
}

.hero-variant--wrapper .page-copy {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 8;
  padding: clamp(1.6rem, 4vw, 3.4rem);
  border-radius: 38px;
  background: rgba(255, 253, 246, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 30px 70px rgba(132, 53, 77, 0.13);
  backdrop-filter: blur(18px);
}

.hero-variant--wrapper .page-title {
  color: #b8235c;
}

.hero-variant--wrapper .page-title span {
  color: var(--dark-orange);
}

.hero-variant--wrapper .hero-feature-list li {
  color: #72535f;
  background: #fff8ef;
  border: 1px solid rgba(232, 63, 135, 0.11);
}

.hero-wrapper-stage {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.hero-variant--wrapper .page-visual {
  width: min(92%, 640px);
  overflow: hidden;
  border-radius: 32px 88px 32px 88px;
  box-shadow: 0 45px 90px rgba(119, 45, 67, 0.25);
  transform:
    rotateY(calc(var(--hero-mx) * 5deg))
    rotateX(calc(var(--hero-my) * -4deg))
    rotate(-2deg);
  transition: transform 0.18s ease-out;
}

.hero-variant--wrapper .page-visual img {
  height: 610px;
}

.hero-wrapper-shadow {
  position: absolute;
  width: 78%;
  height: 17%;
  left: 12%;
  bottom: 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(115, 51, 64, 0.24), transparent 66%);
  filter: blur(15px);
  transform: rotate(-3deg);
}

.hero-wrapper-curtain {
  position: absolute;
  inset: 6% 4% 5%;
  z-index: 7;
  display: flex;
  overflow: hidden;
  border-radius: 32px 88px 32px 88px;
  pointer-events: none;
}

.hero-wrapper-curtain span {
  flex: 1;
  background:
    repeating-linear-gradient(
      -45deg,
      #fff 0 24px,
      #ff5d91 24px 48px,
      #fff 48px 72px,
      #ffbd42 72px 96px
    );
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(0);
}

.hero-variant--wrapper.is-active .hero-wrapper-curtain span {
  animation: heroWrapperOpen 0.9s cubic-bezier(.76, 0, .22, 1) forwards;
}

.hero-variant--wrapper.is-active .hero-wrapper-curtain span:nth-child(2) { animation-delay: 0.08s; }
.hero-variant--wrapper.is-active .hero-wrapper-curtain span:nth-child(3) { animation-delay: 0.16s; }
.hero-variant--wrapper.is-active .hero-wrapper-curtain span:nth-child(4) { animation-delay: 0.24s; }
.hero-variant--wrapper.is-active .hero-wrapper-curtain span:nth-child(5) { animation-delay: 0.32s; }

.hero-wrapper-ribbon {
  position: absolute;
  z-index: 2;
  width: 54vw;
  height: 44px;
  background:
    repeating-linear-gradient(
      90deg,
      #fff 0 38px,
      #ff5e92 38px 76px,
      #fff 76px 114px,
      #ffbf43 114px 152px
    );
  box-shadow: 0 13px 30px rgba(122, 43, 71, 0.13);
}

.hero-wrapper-ribbon--top {
  top: 8%;
  right: -12%;
  transform: rotate(6deg);
}

.hero-wrapper-ribbon--bottom {
  left: -12%;
  bottom: 7%;
  transform: rotate(-5deg);
}

/* VERSION 3: GUMMY GLASS */

.hero-variant--gummy {
  background:
    radial-gradient(circle at 80% 28%, rgba(255, 255, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, #5d2bb7, #a13dd2 48%, #ee58a9);
}

.hero-variant--gummy .page-copy {
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 28px 75px rgba(37, 11, 75, 0.25);
  backdrop-filter: blur(22px) saturate(1.25);
}

.hero-variant--gummy .page-title,
.hero-variant--gummy .page-copy > p,
.hero-variant--gummy .hero-feature-list li {
  color: white;
}

.hero-variant--gummy .page-title span {
  color: #ffe05b;
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  letter-spacing: 0.03em;
  text-shadow:
    0 6px 0 rgba(69, 19, 111, 0.38),
    0 18px 38px rgba(30, 7, 65, 0.23);
}

.hero-variant--gummy .hero-feature-list li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.19);
}

.hero-variant--gummy .hero-feature-list li::before {
  background: linear-gradient(135deg, #ffe66d, #62eaff);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.11);
}

.hero-gummy-field {
  overflow: hidden;
}

.hero-gummy-blob {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 28px 31px 45px rgba(255, 255, 255, 0.18),
    inset -28px -30px 44px rgba(35, 7, 73, 0.2),
    0 35px 75px rgba(33, 7, 70, 0.2);
  opacity: 0.78;
  backdrop-filter: blur(8px);
}

.hero-gummy-blob--one {
  width: min(36vw, 520px);
  aspect-ratio: 0.92;
  right: -5%;
  top: 0%;
  background: linear-gradient(145deg, rgba(255, 90, 183, 0.78), rgba(249, 47, 128, 0.58));
  animation: heroGummyMorphA 8s ease-in-out infinite alternate;
}

.hero-gummy-blob--two {
  width: min(28vw, 400px);
  aspect-ratio: 1.08;
  left: -7%;
  bottom: -8%;
  background: linear-gradient(145deg, rgba(72, 224, 245, 0.75), rgba(49, 131, 239, 0.55));
  animation: heroGummyMorphB 10s ease-in-out infinite alternate;
}

.hero-gummy-blob--three {
  width: min(20vw, 290px);
  aspect-ratio: 1;
  left: 45%;
  top: -8%;
  background: linear-gradient(145deg, rgba(255, 224, 84, 0.72), rgba(255, 120, 70, 0.56));
  animation: heroGummyMorphC 7s ease-in-out infinite alternate;
}

.hero-gummy-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 8px 8px 16px rgba(255, 255, 255, 0.15);
}

.hero-gummy-bubble--one {
  width: 68px;
  aspect-ratio: 1;
  left: 42%;
  bottom: 12%;
  animation: heroBubbleFloat 6s ease-in-out infinite;
}

.hero-gummy-bubble--two {
  width: 38px;
  aspect-ratio: 1;
  right: 9%;
  bottom: 21%;
  animation: heroBubbleFloat 5.2s 0.8s ease-in-out infinite;
}

.hero-gummy-bubble--three {
  width: 24px;
  aspect-ratio: 1;
  left: 29%;
  top: 17%;
  animation: heroBubbleFloat 4.6s 1.2s ease-in-out infinite;
}

.hero-gummy-stage {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.hero-gummy-glow {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 66%);
  filter: blur(12px);
}

.hero-variant--gummy .page-visual {
  width: min(91%, 620px);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 62% 38% 49% 51% / 42% 57% 43% 58%;
  background: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 18px 18px 30px rgba(255, 255, 255, 0.2),
    0 42px 88px rgba(34, 8, 68, 0.3);
  backdrop-filter: blur(16px);
  transform:
    translate(
      calc(var(--hero-mx) * 13px),
      calc(var(--hero-my) * 11px)
    )
    rotateX(calc(var(--hero-my) * -4deg))
    rotateY(calc(var(--hero-mx) * 6deg));
  transition: transform 0.18s ease-out;
  animation: heroImageGummyMorph 9s ease-in-out infinite alternate;
}

.hero-variant--gummy .page-visual img {
  height: 620px;
  transform: scale(1.08);
}

/* VERSION 4: POPCORN BURST */

.hero-variant--popcorn {
  color: white;
  background:
    radial-gradient(circle at 74% 40%, rgba(255, 219, 92, 0.33), transparent 22rem),
    linear-gradient(135deg, #a71954, #ed3e72 48%, #f39a2f);
}

.hero-variant--popcorn .page-title,
.hero-variant--popcorn .page-copy > p,
.hero-variant--popcorn .hero-feature-list li {
  color: white;
}

.hero-variant--popcorn .page-title span {
  color: #ffe36c;
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  letter-spacing: 0.035em;
  -webkit-text-stroke: 2px rgba(116, 24, 63, 0.42);
  text-shadow: 0 8px 0 rgba(111, 23, 59, 0.36);
}

.hero-variant--popcorn .hero-feature-list li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.hero-variant--popcorn .hero-feature-list li::before {
  border-radius: 48% 52% 44% 56%;
  background:
    radial-gradient(circle at 35% 31%, white 0 22%, transparent 23%),
    linear-gradient(145deg, #fff3b4, #f2bd42);
  box-shadow: inset -3px -4px 6px rgba(170, 87, 8, 0.2);
}

.hero-variant--popcorn .btn-primary {
  color: #a71954;
  background: white;
  box-shadow: 0 18px 38px rgba(93, 18, 53, 0.24);
}

.hero-popcorn-rays {
  background:
    repeating-conic-gradient(
      from -10deg at 77% 50%,
      rgba(255, 255, 255, 0.09) 0 7deg,
      transparent 7deg 17deg
    );
  opacity: 0;
  transform: scale(0.75) rotate(-8deg);
  transition: opacity 0.8s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
}

.hero-variant--popcorn.is-active .hero-popcorn-rays {
  opacity: 1;
  transform: scale(1.1) rotate(0);
}

.hero-popcorn-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-popcorn-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  border-radius: 47% 53% 45% 55% / 56% 45% 55% 44%;
  background:
    radial-gradient(circle at 30% 28%, white 0 20%, transparent 21%),
    radial-gradient(circle at 65% 34%, #fff8d9 0 28%, transparent 29%),
    linear-gradient(145deg, #fff4bd, #efb936);
  box-shadow:
    inset -5px -6px 8px rgba(175, 91, 11, 0.2),
    0 12px 20px rgba(89, 19, 46, 0.16);
  opacity: 0;
  transform: translateY(80px) rotate(var(--r)) scale(0.3);
}

.hero-variant--popcorn.is-active .hero-popcorn-particle {
  animation: heroPopcornBurst var(--d) var(--delay) cubic-bezier(.15, .75, .25, 1) both;
}

.hero-popcorn-stage {
  position: relative;
  min-height: 690px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.hero-popcorn-arch {
  position: absolute;
  width: min(96%, 670px);
  height: 86%;
  bottom: 2%;
  border: clamp(20px, 3vw, 38px) solid rgba(255, 255, 255, 0.22);
  border-bottom: 0;
  border-radius: 50% 50% 20px 20px / 40% 40% 20px 20px;
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.12),
    0 0 70px rgba(255, 210, 79, 0.16);
}

.hero-variant--popcorn .page-visual {
  width: min(83%, 580px);
  overflow: hidden;
  border: 11px solid rgba(255, 255, 255, 0.77);
  border-radius: 48% 48% 25px 25px / 34% 34% 25px 25px;
  box-shadow: 0 48px 95px rgba(85, 16, 45, 0.35);
  transform:
    rotateX(calc(var(--hero-my) * -4deg))
    rotateY(calc(var(--hero-mx) * 6deg))
    translateY(calc(var(--hero-my) * 8px));
  transition: transform 0.18s ease-out;
}

.hero-variant--popcorn .page-visual img {
  height: 610px;
}

.hero-popcorn-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(89, 16, 45, 0.34), transparent 68%);
  filter: blur(12px);
}

/* VERSION 5: 3D CARD STACK */

.hero-variant--stack {
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.92), transparent 24rem),
    radial-gradient(circle at 85% 74%, rgba(248, 160, 60, 0.18), transparent 26rem),
    linear-gradient(135deg, #fdfaf7, #f6eaf3 55%, #e8e1ff);
}

.hero-stack-grid {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(123, 76, 113, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 76, 113, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 60% 50%, black, transparent 82%);
}

.hero-variant--stack .page-title {
  color: #3b2936;
}

.hero-variant--stack .page-title span {
  display: inline-block;
  color: white;
  padding: 0.05em 0.16em 0.11em;
  border-radius: 0.22em;
  background: linear-gradient(135deg, var(--dark-pink), #935ed9);
  box-shadow: 0.13em 0.14em 0 var(--orange);
  transform: rotate(-2deg);
}

.hero-variant--stack .hero-feature-list li {
  color: #584852;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(130, 73, 112, 0.11);
  box-shadow: 0 12px 30px rgba(77, 49, 69, 0.07);
}

.hero-stack-stage {
  position: relative;
  min-height: 700px;
  display: grid;
  place-items: center;
  perspective: 1300px;
  transform-style: preserve-3d;
}

.hero-stack-card {
  position: absolute;
  width: min(78%, 540px);
  height: 74%;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 35px 72px rgba(69, 39, 62, 0.14);
  transform-origin: center bottom;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.hero-stack-card--back {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.45) 0 18px,
      rgba(106, 211, 238, 0.35) 18px 36px
    ),
    #caeff8;
  transform:
    translate3d(-54px, -22px, -70px)
    rotate(-9deg)
    rotateY(calc(var(--hero-mx) * 4deg));
}

.hero-stack-card--middle {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.42) 0 18px,
      rgba(245, 106, 163, 0.31) 18px 36px
    ),
    #ffd7e8;
  transform:
    translate3d(52px, 20px, -35px)
    rotate(8deg)
    rotateY(calc(var(--hero-mx) * 3deg));
}

.hero-variant--stack .page-visual {
  width: min(80%, 560px);
  overflow: hidden;
  border: 12px solid white;
  border-radius: 42px;
  box-shadow: 0 48px 96px rgba(66, 36, 59, 0.25);
  transform:
    translate3d(
      calc(var(--hero-mx) * 13px),
      calc(var(--hero-my) * 10px),
      35px
    )
    rotateX(calc(var(--hero-my) * -5deg))
    rotateY(calc(var(--hero-mx) * 7deg));
  transition: transform 0.17s ease-out;
}

.hero-variant--stack .page-visual img {
  height: 610px;
}

.hero-stack-spark {
  position: absolute;
  z-index: 7;
  width: 36px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--main-pink), var(--orange));
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%);
  filter: drop-shadow(0 12px 18px rgba(80, 43, 68, 0.16));
  animation: heroSparkPulse 3.5s ease-in-out infinite;
}

.hero-stack-spark--one {
  left: 4%;
  top: 18%;
}

.hero-stack-spark--two {
  right: 3%;
  top: 31%;
  width: 26px;
  background: linear-gradient(135deg, #6adcf0, #8a68e9);
  animation-delay: 0.8s;
}

.hero-stack-spark--three {
  right: 15%;
  bottom: 8%;
  width: 46px;
  background: linear-gradient(135deg, #ffd44d, #ff744f);
  animation-delay: 1.4s;
}

/* HERO VARIANT ANIMATIONS */

@keyframes heroVariantEnter {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroRingSpin {
  to { transform: rotate(1turn); }
}

@keyframes heroBlobMorphA {
  0% { border-radius: 44% 56% 62% 38% / 37% 55% 45% 63%; }
  100% { border-radius: 62% 38% 41% 59% / 58% 40% 60% 42%; }
}

@keyframes heroBlobMorphB {
  0% { border-radius: 61% 39% 45% 55% / 49% 62% 38% 51%; }
  100% { border-radius: 38% 62% 57% 43% / 63% 38% 62% 37%; }
}

@keyframes heroParticleFloat {
  to {
    translate: calc(var(--dx) * 1px) calc(var(--dy) * 1px);
    rotate: 90deg;
  }
}

@keyframes heroCandyFloatA {
  50% { translate: 0 -17px; rotate: 8deg; }
}

@keyframes heroCandyFloatB {
  50% { translate: 0 18px; rotate: -10deg; }
}

@keyframes heroWrapperOpen {
  0% { transform: translateY(0) rotate(0.01deg); }
  100% { transform: translateY(-112%) rotate(0.01deg); }
}

@keyframes heroGummyMorphA {
  0% {
    border-radius: 38% 62% 56% 44% / 63% 38% 62% 37%;
    transform: translate(0, 0) rotate(-8deg);
  }
  100% {
    border-radius: 64% 36% 39% 61% / 42% 64% 36% 58%;
    transform: translate(-7%, 9%) rotate(12deg);
  }
}

@keyframes heroGummyMorphB {
  0% {
    border-radius: 57% 43% 34% 66% / 43% 62% 38% 57%;
    transform: translate(0, 0) rotate(7deg);
  }
  100% {
    border-radius: 34% 66% 61% 39% / 62% 37% 63% 38%;
    transform: translate(12%, -8%) rotate(-11deg);
  }
}

@keyframes heroGummyMorphC {
  0% {
    border-radius: 45% 55% 64% 36% / 36% 57% 43% 64%;
  }
  100% {
    border-radius: 63% 37% 42% 58% / 60% 39% 61% 40%;
    transform: translateY(18px) rotate(16deg);
  }
}

@keyframes heroBubbleFloat {
  50% { translate: 0 -28px; scale: 1.12; }
}

@keyframes heroImageGummyMorph {
  0% { border-radius: 62% 38% 49% 51% / 42% 57% 43% 58%; }
  100% { border-radius: 43% 57% 61% 39% / 61% 39% 55% 45%; }
}

@keyframes heroPopcornBurst {
  0% {
    opacity: 0;
    transform: translateY(90px) rotate(var(--r)) scale(0.25);
  }
  20% {
    opacity: 1;
  }
  62% {
    opacity: 1;
    transform:
      translate(
        calc(var(--drift) * 1px),
        calc(var(--rise) * -1px)
      )
      rotate(calc(var(--r) + 220deg))
      scale(1.05);
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(var(--drift-end) * 1px),
        calc((var(--rise) - 85) * -1px)
      )
      rotate(calc(var(--r) + 390deg))
      scale(0.75);
  }
}

@keyframes heroSparkPulse {
  50% {
    transform: scale(1.28) rotate(24deg);
    filter: drop-shadow(0 14px 24px rgba(80, 43, 68, 0.22));
  }
}

/* RESPONSIVE HERO VARIANTS */

@media (max-width: 980px) {
  .hero-variant {
    min-height: auto;
    padding-top: 8.5rem;
    padding-bottom: 7rem;
  }

  .hero-variant__shell,
  .hero-variant--wrapper .hero-variant__shell {
    grid-template-columns: 1fr;
  }

  .hero-variant .page-copy,
  .hero-variant--wrapper .page-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 780px;
    justify-self: center;
    text-align: center;
  }

  .hero-variant .page-copy > p {
    margin-inline: auto;
  }

  .hero-variant .hero-actions {
    justify-content: center;
  }

  .hero-variant .hero-feature-list {
    margin-inline: auto;
    text-align: left;
  }

  .hero-orbit-stage,
  .hero-wrapper-stage,
  .hero-gummy-stage,
  .hero-popcorn-stage,
  .hero-stack-stage {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-height: 640px;
  }

  .hero-wrapper-ribbon {
    width: 80vw;
  }
}

@media (max-width: 620px) {
  .hero-variant {
    padding-top: 7.5rem;
    padding-bottom: 5.5rem;
  }

  .hero-variant__shell {
    width: min(100% - 24px, var(--max));
    gap: 1.8rem;
  }

  .hero-variant .page-title {
    font-size: clamp(3.4rem, 15.5vw, 5.1rem);
  }

  .hero-variant .hero-feature-list {
    grid-template-columns: 1fr;
  }

  .hero-variant .hero-actions {
    display: grid;
  }

  .hero-variant .hero-actions .btn {
    width: 100%;
  }

  .hero-orbit-stage,
  .hero-wrapper-stage,
  .hero-gummy-stage,
  .hero-popcorn-stage,
  .hero-stack-stage {
    min-height: 500px;
  }

  .hero-variant .page-visual img {
    height: 460px;
  }

  .hero-variant--orbit .page-visual,
  .hero-variant--wrapper .page-visual,
  .hero-variant--gummy .page-visual,
  .hero-variant--popcorn .page-visual,
  .hero-variant--stack .page-visual {
    width: min(91%, 480px);
  }

  .hero-variant--wrapper::before {
    inset: 2.5rem 10px 2rem;
    border-radius: 30px;
  }

  .hero-variant--wrapper .page-copy,
  .hero-variant--gummy .page-copy {
    padding: 1.35rem;
    border-radius: 28px;
  }

  .hero-wrapper-curtain {
    inset: 5% 4%;
  }

  .hero-stack-card {
    width: 76%;
    height: 72%;
  }

  .hero-stack-card--back {
    transform: translate3d(-28px, -18px, -70px) rotate(-8deg);
  }

  .hero-stack-card--middle {
    transform: translate3d(28px, 18px, -35px) rotate(8deg);
  }
}

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

  .hero-variant .page-copy > *,
  .hero-variant .page-visual {
    opacity: 1;
    transform: none;
  }

  .hero-wrapper-curtain {
    display: none;
  }
}

/* =========================================================
   HOME ORBIT BLOB MOTION — 10 JULY 2026 FOLLOW-UP
   The earlier version only morphed the outline, which was easy to miss.
   These keyframes add slow, visible drifting while retaining the soft blobs.
   ========================================================= */

.hero-variant--home-mix .hero-orbit-blob {
  will-change: transform, border-radius;
  transform-origin: center;
}

.hero-variant--home-mix .hero-orbit-blob--one {
  animation: heroBlobMorphA 14s cubic-bezier(.45, 0, .25, 1) infinite alternate;
}

.hero-variant--home-mix .hero-orbit-blob--two {
  animation: heroBlobMorphB 17s cubic-bezier(.45, 0, .25, 1) infinite alternate;
}

@keyframes heroBlobMorphA {
  0% {
    border-radius: 44% 56% 62% 38% / 37% 55% 45% 63%;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  34% {
    border-radius: 58% 42% 48% 52% / 51% 41% 59% 49%;
    transform: translate3d(-4.5vw, 3.5vh, 0) rotate(8deg) scale(1.055);
  }
  68% {
    border-radius: 51% 49% 36% 64% / 43% 59% 41% 57%;
    transform: translate3d(-1.5vw, 8vh, 0) rotate(-7deg) scale(0.97);
  }
  100% {
    border-radius: 62% 38% 41% 59% / 58% 40% 60% 42%;
    transform: translate3d(2.75vw, 4.5vh, 0) rotate(6deg) scale(1.035);
  }
}

@keyframes heroBlobMorphB {
  0% {
    border-radius: 61% 39% 45% 55% / 49% 62% 38% 51%;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  32% {
    border-radius: 46% 54% 63% 37% / 57% 43% 57% 43%;
    transform: translate3d(5vw, -4vh, 0) rotate(-9deg) scale(1.06);
  }
  66% {
    border-radius: 55% 45% 39% 61% / 42% 58% 42% 58%;
    transform: translate3d(2vw, -9vh, 0) rotate(7deg) scale(0.965);
  }
  100% {
    border-radius: 38% 62% 57% 43% / 63% 38% 62% 37%;
    transform: translate3d(7vw, -5vh, 0) rotate(-5deg) scale(1.025);
  }
}
