body.manual-home-page .manual-figure {
  position: relative;
  isolation: isolate;
  grid-template-rows: minmax(0, 1fr);
}

body.manual-home-page .manual-figure__stage {
  min-height: 620px;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
}

body.manual-home-page .manual-cover.is-dragging .manual-figure__stage {
  cursor: grabbing;
}

body.manual-home-page .manual-figure__stage::after {
  position: absolute;
  z-index: 7;
  top: 18px;
  right: 18px;
  content: "DRAG / SWIPE";
  padding: 8px 11px;
  color: #f7f5ef;
  background: rgba(3, 20, 17, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  font: 700 0.56rem/1 var(--gw-font-mono);
  letter-spacing: 0.1em;
  backdrop-filter: blur(14px);
  pointer-events: none;
}

body.manual-home-page .manual-slide {
  transform: translateX(1.5%) scale(1.025);
  transition:
    opacity 520ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 520ms;
}

body.manual-home-page .manual-slide.is-active {
  transform: translateX(0) scale(1);
}

body.manual-home-page .manual-slide__art {
  will-change: transform;
}

body.manual-home-page .manual-slide.is-active .manual-slide__art {
  animation: manualHeroCarouselDrift 8s ease-in-out both;
}

body.manual-home-page .manual-figure__controls {
  position: absolute;
  z-index: 12;
  inset: 0;
  min-height: 0;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  pointer-events: none;
}

body.manual-home-page .manual-figure__arrow {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  position: absolute;
  top: 50%;
  z-index: 2;
  color: #f7f5ef;
  background: rgba(3, 20, 17, 0.7);
  border-color: rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
  pointer-events: auto;
}

body.manual-home-page .manual-figure__arrow:first-child {
  left: 18px;
}

body.manual-home-page .manual-figure__arrow:last-child {
  right: 18px;
}

body.manual-home-page .manual-figure__arrow:hover {
  color: #f7f5ef;
  background: color-mix(in srgb, var(--manual-accent) 78%, rgba(3, 20, 17, 0.9));
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-50%) scale(1.04);
}

body.manual-home-page .manual-figure__caption {
  min-height: 48px;
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: rgba(247, 245, 239, 0.72);
  background: rgba(3, 20, 17, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  font-size: 0.58rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

body.manual-home-page .manual-figure__caption span {
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

body.manual-home-page .manual-figure__caption strong {
  color: #f7f5ef;
  font-weight: 700;
}

body.manual-home-page .manual-figure__dots {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 7px;
  padding: 14px;
  background: rgba(3, 20, 17, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

body.manual-home-page .manual-figure__dots button {
  width: 38px;
  height: 7px;
  position: relative;
  overflow: hidden;
  background: rgba(247, 245, 239, 0.22);
  border-color: rgba(247, 245, 239, 0.42);
}

body.manual-home-page .manual-figure__dots button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: #f7f5ef;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
}

body.manual-home-page .manual-figure__dots button.is-active {
  background: color-mix(in srgb, var(--manual-accent) 60%, rgba(247, 245, 239, 0.3));
  border-color: rgba(247, 245, 239, 0.78);
}

body.manual-home-page .manual-figure__dots button.is-active::after {
  animation: manualHeroCarouselProgress 8s linear forwards;
}

body.manual-home-page .manual-cover:hover .manual-figure__dots button.is-active::after,
body.manual-home-page .manual-cover:focus-within .manual-figure__dots button.is-active::after,
body.manual-home-page .manual-cover.is-dragging .manual-figure__dots button.is-active::after {
  animation-play-state: paused;
}

@keyframes manualHeroCarouselProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes manualHeroCarouselDrift {
  from { transform: scale(1.025); }
  to { transform: scale(1.055); }
}

@media (max-width: 1100px) {
  body.manual-home-page .manual-figure__stage {
    min-height: 680px;
  }
}

@media (max-width: 820px) {
  body.manual-home-page .manual-figure__stage {
    min-height: 560px;
  }

  body.manual-home-page .manual-figure__arrow {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }

  body.manual-home-page .manual-figure__arrow:first-child {
    left: 12px;
  }

  body.manual-home-page .manual-figure__arrow:last-child {
    right: 12px;
  }
}

@media (max-width: 560px) {
  body.manual-home-page .manual-figure__stage {
    min-height: 500px;
  }

  body.manual-home-page .manual-figure__stage::after {
    top: 12px;
    right: 12px;
    content: "SWIPE";
  }

  body.manual-home-page .manual-figure__arrow {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  body.manual-home-page .manual-figure__caption {
    right: 12px;
    bottom: 72px;
    left: 12px;
    justify-content: space-between;
    border-radius: 12px;
  }

  body.manual-home-page .manual-figure__dots {
    right: auto;
    bottom: 14px;
    left: 50%;
    padding: 12px;
    transform: translateX(-50%);
  }

  body.manual-home-page .manual-figure__dots button {
    width: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.manual-home-page .manual-slide,
  body.manual-home-page .manual-slide__art,
  body.manual-home-page .manual-figure__dots button::after {
    animation: none !important;
    transition: none !important;
  }
}