@property --aura-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.aura-portrait { margin: 0; min-width: 0; scroll-margin-top: 7rem; }
.aura-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: .3rem;
}
.aura-portrait figcaption {
  margin-top: .45rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.aura-vortex {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  filter: drop-shadow(0 0 .22rem #e5bce487);
}
.aura-orbit {
  position: absolute;
  border-radius: 50%;
  transform: rotate(var(--aura-tilt));
  background: conic-gradient(from var(--aura-angle),
    #b589fb45 0%, #ec73c4ab 13%, #ff9d6ecd 24%, #ffd66be8 33%,
    #a7e58bc2 43%, #6ce4e2bd 54%, #6cb8f17a 65%,
    #9f9ff2a8 76%, #c693f2be 89%, #b589fb45 100%);
  mask: radial-gradient(ellipse at center, transparent 34%, #0002 47%, #000b 61%, #0006 72%, transparent 83%);
  filter: blur(.46rem);
}
.aura-orbit-outer {
  inset: 2% 2% 1%;
  --aura-tilt: -6deg;
  --aura-start: 13deg;
  --aura-angle: var(--aura-start);
  --aura-duration: 8s;
}
.aura-orbit-middle {
  inset: 27% 3% 18%;
  --aura-tilt: 15deg;
  --aura-start: 118deg;
  --aura-angle: var(--aura-start);
  --aura-duration: 9s;
  opacity: .38;
}
.aura-orbit-lower {
  inset: 49% 3% 4%;
  --aura-tilt: -15deg;
  --aura-start: 204deg;
  --aura-angle: var(--aura-start);
  --aura-duration: 7s;
  opacity: .28;
}
@media (prefers-reduced-motion: no-preference) {
  .aura-orbit {
    animation: shoshone-orbit var(--aura-duration) linear infinite paused;
  }
  .aura-image.aura-in-view:not(.aura-paused) :is(.aura-orbit, .aura-spark) {
    animation-play-state: running;
  }
  @keyframes shoshone-orbit {
    from { --aura-angle: var(--aura-start); }
    to { --aura-angle: calc(var(--aura-start) + 360deg); }
  }
}

.hero .aura-image img {
  height: auto;
  aspect-ratio: 941 / 1672;
  max-height: none;
  object-fit: contain;
}

:is(#videos, .guide-header, .hero) .free-guide-button:is(:hover, :focus-visible),
a[href="/luminosana/#start"]:is(:hover, :focus-visible) {
  box-shadow: -.2rem 0 .65rem #eca7be7a, 0 0 .55rem #f7d69264, .2rem 0 .65rem #85d7ce73;
}
@media (prefers-reduced-motion: no-preference) {
  :is(#videos, .guide-header, .hero) .free-guide-button:is(:hover, :focus-visible),
  a[href="/luminosana/#start"]:is(:hover, :focus-visible) {
    animation: free-guide-rainbow .95s ease-out;
  }
  @keyframes free-guide-rainbow {
    from { box-shadow: -.02rem 0 .1rem #eca7be2a, 0 0 .1rem #f7d69224, .02rem 0 .1rem #85d7ce23; }
    to { box-shadow: -.2rem 0 .65rem #eca7be7a, 0 0 .55rem #f7d69264, .2rem 0 .65rem #85d7ce73; }
  }
}

.aura-portrait figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .8rem;
  flex-wrap: wrap;
}
.aura-control {
  display: none;
  min-height: 44px;
  padding: .35rem .6rem;
  border-radius: .3rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--cream);
  font: 650 .82rem system-ui, sans-serif;
  cursor: pointer;
}
.aura-control:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.aura-spark {
  position: absolute;
  top: 0;
  left: 0;
  width: .85rem;
  aspect-ratio: 1;
  background: #ffe7a3;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  offset-path: ellipse(42% 42% at 50% 50%);
  offset-distance: 14%;
  opacity: .85;
}
.aura-spark-small {
  width: .58rem;
  background: #c5f8f0;
  offset-path: ellipse(39% 23% at 50% 63%);
  offset-distance: 58%;
}
.qr-frame {
  position: relative;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  border-radius: .25rem;
}
.qr-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 68% 52% 7% 11%;
  background:
    radial-gradient(ellipse at 24% 37%, #5fe5ffb3, #36cce844 30%, transparent 57%),
    radial-gradient(ellipse at 50% 66%, #ffd487e6, #ffad5b66 33%, transparent 62%),
    radial-gradient(ellipse at 76% 37%, #ff5dabb3, #ed448f48 30%, transparent 58%);
  filter: blur(clamp(2px, .55vw, 7px));
  mix-blend-mode: screen;
  opacity: .7;
}

@media (max-height: 860px) {
  .aura-portrait {
    width: min(100%, max(9rem, calc((100svh - 10.5rem) * .563)));
    justify-self: center;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .aura-control:not([hidden]) { display: inline-flex; align-items: center; }
  .aura-spark { animation: shoshone-spark 8s linear infinite paused; }
  .aura-spark-small { animation-delay: -4s; }
  .qr-frame::before, .qr-frame::after { animation: qr-halo 6s ease-in-out infinite paused; }
  .qr-rim-stars span { animation: qr-rim-twinkle var(--twinkle-duration, 3.2s) ease-in-out infinite paused; animation-delay: var(--twinkle-delay, 0s); }
  .qr-frame.qr-in-view:not(.qr-light-paused)::before,
  .qr-frame.qr-in-view:not(.qr-light-paused)::after,
  .qr-frame.qr-in-view:not(.qr-light-paused) .qr-rim-stars span { animation-play-state: running; }
  @keyframes shoshone-spark {
    0% { offset-distance: 0%; opacity: .42; }
    32% { opacity: 1; }
    65% { opacity: .62; }
    82% { opacity: 1; }
    100% { offset-distance: 100%; opacity: .42; }
  }
  @keyframes qr-halo {
    0%, 100% { opacity: .4; }
    50% { opacity: 1; }
  }
  @keyframes qr-rim-twinkle {
    0%, 100% { opacity: .25; scale: .65; }
    40% { opacity: .9; scale: 1.13; }
    62% { opacity: .62; scale: .87; }
  }
}

.aura-spark { filter: brightness(1.12); }
.aura-spark-rose {
  width: .72rem;
  background: #ffafda;
  offset-path: ellipse(38% 33% at 50% 52%);
  offset-distance: 31%;
}
.aura-spark-violet {
  width: .52rem;
  background: #d0b5ff;
  offset-path: ellipse(38% 22% at 50% 63%);
  offset-distance: 79%;
}
@media (prefers-reduced-motion: no-preference) {
  .aura-spark-rose { animation-delay: -2s; }
  .aura-spark-violet { animation-delay: -6s; }
}

.aura-vortex::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 63% 49%, transparent 32%, #ef9ece14 46%, #ffd38f35 62%, #8ce7da31 74%, transparent 91%),
    radial-gradient(ellipse at 43% 49%, transparent 37%, #939bff1c 55%, #ebb2fa25 69%, transparent 87%);
  filter: blur(.45rem);
}

.qr-display { display: grid; justify-items: end; gap: .35rem; min-width: 0; }
.qr-display .qr-frame { width: 100%; }
.qr-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 21% 27%, #82eaff96, transparent 6%),
    radial-gradient(ellipse at 13% 47%, #45dcffd9, transparent 6%),
    radial-gradient(ellipse at 18% 72%, #89eaff8c, transparent 7%),
    radial-gradient(ellipse at 46% 43%, #ff4db7c9, transparent 6%),
    radial-gradient(ellipse at 44% 67%, #ff508cb5, transparent 6%);
  filter: blur(clamp(3px, .7vw, 8px));
  mix-blend-mode: screen;
  opacity: .5;
}
.qr-rim-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.qr-rim-stars span {
  position: absolute;
  width: clamp(4px, 1.35vw, 11px);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: var(--star, #ffe6a7);
  opacity: .65;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.qr-rim-stars span:nth-child(1) { top: 25%; left: 20%; --star: #baf5ff; --twinkle-delay: -.5s; }
.qr-rim-stars span:nth-child(2) { top: 46%; left: 13%; --star: #baf5ff; --twinkle-delay: -1.4s; }
.qr-rim-stars span:nth-child(3) { top: 71%; left: 17%; --star: #d0f6ff; --twinkle-delay: -.95s; --twinkle-duration: 3.6s; }
.qr-rim-stars span:nth-child(4) { top: 82%; left: 31%; --twinkle-delay: -2.35s; }
.qr-rim-stars span:nth-child(5) { top: 68%; left: 43%; --star: #ffb0d4; --twinkle-delay: -1.85s; --twinkle-duration: 3.7s; }
.qr-rim-stars span:nth-child(6) { top: 47%; left: 47%; --star: #ffb0d4; --twinkle-delay: -.7s; }

.guide-header .winter-wordmark {
  justify-self: start;
  padding: .48rem .62rem .65rem;
  border: 1px solid #b8955d;
  border-radius: .28rem;
  background: linear-gradient(115deg, #352831, #26372c);
  color: #fff0cd;
  font-size: clamp(.8rem, 2.1vw, 1.12rem);
  font-weight: 600;
  letter-spacing: .075em;
}
.guide-header .winter-wordmark .link-prompt {
  inset-inline-end: .34rem;
  background: #322c2a;
  color: #f2d5a4;
}
