.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.effect-reel { --header-height: 4.55rem; --reel-distance: 165svh; }
.effect-stage { position: relative; }
.effect-reel.is-reel-ready { min-height: calc(100svh - var(--header-height) + var(--reel-distance)); }
.effect-reel.is-reel-ready .effect-stage {
  position: sticky;
  top: var(--header-height);
  height: calc(100svh - var(--header-height));
  overflow: clip;
  touch-action: pan-y;
}
.effect-reel.is-reel-ready .effect-track {
  display: flex;
  height: 100%;
  transform: translate3d(var(--reel-offset, 0%), 0, 0);
}
.effect-reel.is-reel-ready .effect-slide { flex: 0 0 100%; min-width: 0; }
.effect-slide { position: relative; isolation: isolate; }
.effect-squeeze { background: radial-gradient(ellipse at 77% 50%, #e0edcd, #f8f8ef 74%); }
.effect-breathe { background: radial-gradient(ellipse at 77% 42%, #dbeae4, #eff4ef 74%); }
.effect-talk { background: radial-gradient(ellipse at 77% 46%, #e0e6f2, #f2f3f1 75%); }

.effect-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.3rem, 5vw, 5rem);
  min-height: 35rem;
  padding-block: 3rem 4rem;
}
.is-reel-ready .effect-inner { min-height: 0; height: 100%; padding-bottom: 9rem; }
.effect-copy { position: relative; z-index: 2; }
.effect-copy h2 { margin-block: .85rem 1.08rem; font-size: clamp(3.1rem, 6.3vw, 6.2rem); line-height: 1.12; }
.effect-copy > p:not(.eyebrow) { max-width: 24rem; color: var(--secondary); }
.effect-copy .button { margin-top: 1.35rem; }
.effect-feedback { margin-top: .55rem; min-height: 1.55rem; font-size: .94rem; }
.effect-sample:not(:empty) { border-left: 2px solid #838cab; padding-left: .63rem; }

.effect-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
}
.effect-visual img {
  width: min(84%, 53svh, 32rem);
  height: auto;
  transform-origin: center 83%;
}
.effect-halo {
  position: absolute;
  width: min(84%, 52svh, 31rem);
  aspect-ratio: 1;
  border: 1px solid #839d7764;
  border-radius: 50%;
  background: radial-gradient(circle, #f7ffe5a8 22%, #f6ffed4d 48%, transparent 71%);
}
.effect-halo::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: inherit;
  border: 1px solid #839d7735;
}
.effect-breathe .effect-halo { background: radial-gradient(circle, #f4fffc 15%, #d8f4ec83 46%, transparent 72%); }
.effect-talk .effect-halo { background: radial-gradient(circle, #faf8ff 25%, #e9e5fa73 49%, transparent 71%); }

.effect-slide.is-squeezing .effect-visual img { animation: squeeze .8s ease both; }
.effect-slide.is-squeezing .effect-halo { animation: respond .8s ease both; }
.effect-slide.is-breathing .effect-halo { animation: breath 8s ease-in-out infinite; }
.effect-slide.is-breathing .effect-visual img { animation: breath-light 8s ease-in-out infinite; }
@keyframes squeeze { 32% { transform: scale(1.065, .935); filter: brightness(1.065) saturate(1.18); } 62% { transform: scale(.99, 1.015); } }
@keyframes respond { 35% { transform: scale(1.19); opacity: .9; } }
@keyframes breath { 0%, 100% { transform: scale(.9); opacity: .62; } 50% { transform: scale(1.23); opacity: 1; } }
@keyframes breath-light { 0%, 100% { filter: brightness(.97) saturate(.86); } 50% { filter: brightness(1.14) saturate(1.12); } }

.effect-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(5.2rem, calc(4.8rem + env(safe-area-inset-bottom, 0px)));
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  width: max-content;
  max-width: calc(100% - 1rem);
}
.effect-controls .switcher { border-color: #fff9; }
.effect-autoplay { min-height: 2.75rem; padding: .38rem .8rem; border-radius: 2rem; font-size: .875rem; font-weight: 650; }
.effect-autoplay:hover { background-color: #f9fff5; }
.effect-instruction { flex-basis: 100%; text-align: center; color: var(--secondary); font-size: .875rem; }

@media (max-width: 760px) {
  .effect-reel { --header-height: 4rem; --reel-distance: 145svh; }
  .effect-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 2rem 3rem; gap: .75rem; }
  .is-reel-ready .effect-inner { grid-template-rows: minmax(0, 1fr) auto; padding-block: .95rem 10rem; }
  .effect-visual { grid-row: 1; min-height: 0; }
  .effect-visual img, .effect-halo { width: min(70%, 30svh, 19rem); }
  .effect-copy h2 { font-size: clamp(2.45rem, 10vw, 4.15rem); margin-block: .35rem .6rem; }
  .effect-copy .button { margin-top: .85rem; }
  .effect-copy > p:not(.eyebrow) { line-height: 1.52; }
}
@media (max-width: 760px) and (max-height: 690px) {
  .is-reel-ready .effect-inner { padding-top: .4rem; padding-bottom: 9.2rem; gap: .38rem; }
  .is-reel-ready .effect-visual img, .is-reel-ready .effect-halo { width: min(65%, 23svh); }
  .effect-copy h2 { font-size: clamp(1.9rem, 8.3vw, 3rem); }
  .effect-copy .button { margin-top: .5rem; }
  .effect-instruction { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .effect-slide.is-squeezing .effect-halo, .effect-slide.is-breathing .effect-halo { border-width: 3px; }
}
