.qr-journey-section {
  --qr-progress: 0;
  position: relative;
  height: 175vh;
  min-height: 980px;
  color: #f5f2ff;
  background:
    radial-gradient(circle at 43% 42%, rgba(245, 162, 3, .13), transparent 31%),
    radial-gradient(circle at 59% 48%, rgba(229, 8, 126, .12), transparent 34%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 18%, #0a0a0a 82%, #050505 100%);
  overflow: clip;
}

.qr-journey-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.qr-journey-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.qr-journey-stage {
  position: relative;
  width: min(92vw, 760px);
  height: min(88vh, 690px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.qr-journey-stage::before {
  content: "";
  position: absolute;
  width: min(72vh, 610px);
  aspect-ratio: 1;
  border: 1px solid rgba(245, 162, 3, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 110px rgba(229, 8, 126, .055);
  transform: scale(calc(1 - var(--qr-progress) * .08));
  opacity: calc(1 - var(--qr-progress) * .68);
}

#qr-journey-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: calc(1 - var(--qr-progress) * .82);
}

.qr-journey-art {
  position: absolute;
  width: min(58vh, 455px);
  aspect-ratio: 1;
  z-index: 2;
  opacity: var(--qr-progress);
  transform: translateY(calc((1 - var(--qr-progress)) * 48px)) scale(calc(.68 + var(--qr-progress) * .32)) rotate(calc((1 - var(--qr-progress)) * -4deg));
  filter: drop-shadow(0 30px 44px rgba(4, 2, 12, .5));
  pointer-events: none;
  will-change: opacity, transform;
}

.qr-journey-art canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.qr-journey-toggle {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  min-height: 50px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245, 242, 255, .4);
  border-radius: 999px;
  color: #f5f2ff;
  background: rgba(5, 5, 5, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .3);
  font-family: var(--font-main, "Work Sans", sans-serif);
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .25s ease, background-color .25s ease;
}

.qr-journey-toggle-icon { color: #f5a203; font-size: 1.2rem; }
.qr-journey-toggle:focus-visible { outline: 2px solid #cee8e8; outline-offset: 4px; }

.qr-journey-hint {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(245, 242, 255, .4);
  font: 600 .58rem/1 var(--font-main, "Work Sans", sans-serif);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

@media (max-width: 767px) {
  .qr-journey-section {
    height: auto;
    min-height: 660px;
    padding: 30px 0;
    overflow: hidden;
  }

  .qr-journey-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 600px;
  }

  .qr-journey-stage {
    width: calc(100vw - 24px);
    height: 590px;
  }

  .qr-journey-stage::before { width: min(94vw, 430px); }
  .qr-journey-art { width: min(90vw, 390px); }

  .qr-journey-toggle {
    bottom: 42px;
    cursor: pointer;
    font-size: .96rem;
  }

  .qr-journey-toggle:hover { border-color: #f5a203; }
  .qr-journey-hint { top: 18px; font-size: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .qr-journey-art,
  #qr-journey-canvas,
  .qr-journey-stage::before { transition: none !important; }
}
