/* Query-gated hero study. The production terrain remains untouched without hero=replica. */
.home-v88.home-replica-preview .v86-hero {
  background: #edf0f2;
}

.home-v88.home-replica-preview .v86-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 249, 250, 0.98) 0%, rgba(248, 249, 250, 0.9) 28%, rgba(248, 249, 250, 0.36) 43%, transparent 58%);
}

.home-v88.home-replica-preview .v86-hero-copy {
  z-index: 2;
}

.home-v88.home-replica-preview .v86-hero-grid {
  min-height: clamp(620px, calc(100vh - 84px), 780px);
}

.home-v88 .replica-hero {
  position: absolute;
  inset: 0;
  left: calc((100% - 100vw) / 2);
  width: 100vw;
  margin: 0;
  overflow: hidden;
  contain: layout paint;
  z-index: 0;
  background: #edf0f2;
}

.replica-art {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(74vw, 1760px);
  overflow: hidden;
  isolation: isolate;
}

.replica-material {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 51%;
  user-select: none;
  pointer-events: none;
  transform: scale(1.018);
  filter: saturate(0.94) contrast(1.015);
  will-change: transform;
}

.replica-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 51%, rgba(183, 28, 35, 0.1), transparent 19%),
    linear-gradient(180deg, rgba(240, 243, 245, 0.12), transparent 26%, transparent 78%, rgba(237, 240, 242, 0.28));
  opacity: 0.75;
  transition: opacity 500ms ease;
}

.replica-art::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: clamp(100px, 16vw, 260px);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(237, 240, 242, 0.96), rgba(237, 240, 242, 0));
}

.replica-art canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.replica-controls {
  position: absolute;
  right: clamp(76px, 6vw, 126px);
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.replica-status-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.replica-state {
  position: static;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 1px;
  min-width: 154px;
  padding: 10px 14px;
  color: #5d6670;
  background: rgba(247, 248, 249, 0.9);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.replica-state-dot {
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b92224;
  box-shadow: 0 0 0 5px rgba(185, 34, 36, 0.09);
}

.replica-state-label {
  color: #777f87;
  font-size: 11px;
}

.replica-state-text {
  color: #20252a;
  font-weight: 650;
}

.replica-pause {
  position: static;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(237, 240, 242, 0.94);
  color: #59636d;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.replica-pause:hover {
  background: #fff;
  color: #a72335;
}

.replica-pause:active {
  transform: scale(0.94);
}

.replica-pause:focus-visible {
  outline: 2px solid #ae2437;
  outline-offset: 3px;
}

.replica-pause svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.replica-pause .play-mark {
  display: none;
}

.replica-pause[aria-pressed="true"] .pause-mark {
  display: none;
}

.replica-pause[aria-pressed="true"] .play-mark {
  display: block;
}

.replica-hero[data-running="false"] .replica-material {
  will-change: auto;
}

@media (max-width: 1000px) {
  .home-v88.home-replica-preview .v86-hero::after {
    background: linear-gradient(90deg, rgba(248, 249, 250, 0.98) 0%, rgba(248, 249, 250, 0.86) 34%, rgba(248, 249, 250, 0.28) 56%, transparent 74%);
  }

  .replica-art {
    width: min(78vw, 1240px);
  }

  .replica-controls {
    right: 24px;
  }
}

@media (max-width: 850px) {
  .home-v88.home-replica-preview .v86-hero::after {
    display: none;
  }

  .home-v88 .replica-hero {
    position: relative;
    inset: auto;
    left: calc((100% - 100vw) / 2);
    width: 100vw;
    height: clamp(360px, 68vw, 500px);
    margin-top: 20px;
  }

  .replica-art {
    width: 100%;
    right: 0;
  }

  .replica-material {
    object-position: 66% 50%;
  }

  .replica-pause {
    width: 40px;
    height: 40px;
  }

  .replica-controls {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .home-v88 .replica-hero {
    height: 340px;
    margin-top: 16px;
  }

  .replica-material {
    inset: -4%;
    width: 108%;
    height: 108%;
    object-position: 64% 50%;
  }

  .replica-controls {
    right: 16px;
    justify-content: flex-end;
  }
}

@media (min-width: 1800px) {
  .home-v88 .container {
    width: min(1800px, calc(100% - 120px));
    max-width: 1800px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .replica-material {
    transform: none !important;
    will-change: auto;
  }

  .replica-pause {
    transition: none;
  }

}
