/* One viewport-sized reflection behind the entire page. Section boundaries,
   long ticket lists and the footer share the same light without clipped seams. */

html[data-depth-effects=ready] body {
  isolation: isolate;
}

html[data-depth-effects=ready] main > .section,
html[data-depth-effects=ready] .site-footer {
  background: transparent;
}

.depth-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
  contain: paint;
  opacity: 1;
}

.depth-atmosphere>span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.depth-field {
  left: 50%;
  top: 0;
  width: max(900px,120vw);
  height: max(900px,140vh);
  background: radial-gradient(ellipse at 48% 48%,rgba(126,65,191,.24) 0,rgba(72,28,119,.19) 23%,rgba(26,12,47,.13) 46%,transparent 73%);
  transform: translate3d(calc(-50% + var(--depth-x,0px)),calc(var(--depth-y,38vh) - 50%),0);
  opacity: calc(.78 + var(--depth-energy,0)*.22);
}

.depth-satin {
  left: 50%;
  top: 0;
  width: max(1100px,150vw);
  height: max(1000px,160vh);
  background: linear-gradient(112deg,transparent 24%,rgba(68,70,90,.012) 36%,rgba(176,185,204,.024) 43%,rgba(196,204,224,.095) 48.5%,rgba(102,79,131,.13) 49.4%,rgba(6,5,12,.3) 51%,rgba(77,49,114,.045) 58%,transparent 70%);
  /* Fade the moving layer itself so its rotated edges never form a hard cut. */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%,#000 30%,rgba(0,0,0,.75) 50%,rgba(0,0,0,.35) 70%,rgba(0,0,0,.08) 85%,transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%,#000 30%,rgba(0,0,0,.75) 50%,rgba(0,0,0,.35) 70%,rgba(0,0,0,.08) 85%,transparent 100%);
  transform: translate3d(calc(-50% + var(--depth-x,0px)*.32),calc(var(--depth-y,50vh) - 50%),0) rotate(-8deg);
  opacity: calc(.68 + var(--depth-energy,0)*.32);
}

.depth-satin::after {
  content: '';
  position: absolute;
  left: 39%;
  top: 6%;
  width: 1px;
  height: 85%;
  background: linear-gradient(180deg,transparent,rgba(180,177,204,.14),rgba(135,74,193,.09),transparent);
  transform: rotate(22deg);
  transform-origin: 50% 50%;
}

.depth-grain {
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.87' numOctaves='3' stitchTiles='stitch' seed='19'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.62' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

.depth-shade {
  inset: 0;
  background: radial-gradient(ellipse at center,transparent 30%,rgba(0,0,0,.2));
}

.depth-atmosphere>.depth-field,.depth-atmosphere>.depth-satin {
  will-change: transform,opacity;
}

.depth-effects-paused .depth-field,.depth-effects-paused .depth-satin {
  will-change: auto;
}

/* Reflections stay on image/metal surfaces. Text never receives duplicated
   colour channels, distortion, a blur filter, or an animated text shadow. */

.depth-reflector {
  position: relative;
}

.depth-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  overflow: hidden;
  overflow: clip;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .42s ease;
  contain: paint;
}

.depth-sheen::before {
  content: '';
  position: absolute;
  left: -48%;
  top: -50%;
  width: 195%;
  height: 200%;
  background: linear-gradient(112deg,transparent 34%,rgba(201,215,232,.025) 42%,rgba(222,230,246,.14) 49%,rgba(172,134,218,.085) 50.5%,transparent 60%);
  transform: translate3d(var(--reflect-x,0px),var(--reflect-y,0px),0);
}

.depth-sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(216,207,233,.08);
  box-shadow: inset 1px 0 rgba(116,199,218,.24),inset -1px 0 rgba(181,88,235,.34),inset 0 1px rgba(226,229,242,.20),inset 0 -18px 30px -26px rgba(145,80,211,.65);
}

.depth-reflector:focus-visible>.depth-sheen,.depth-reflector:focus-within>.depth-sheen {
  opacity: .7;
}

@media (hover:hover) and (pointer:fine) {
  .depth-reflector.is-depth-hover>.depth-sheen {
    opacity: 1;
  }
  .depth-reflector.is-depth-hover>.depth-sheen::before {
    will-change: transform;
  }
}

@media(max-width:760px) {
  .depth-field {
    width: 740px;
    height: max(900px,140vh);
    opacity: .68;
  }
  .depth-satin {
    width: 940px;
    height: max(1000px,160vh);
    opacity: .64;
  }
  .depth-grain {
    opacity: .04;
  }
}

@media(prefers-reduced-motion:reduce) {
  .depth-atmosphere,.depth-sheen {
    transition: none;
  }
  .depth-field,.depth-satin {
    will-change: auto!important;
  }
}

[data-motion=reduce] .depth-atmosphere,[data-motion=reduce] .depth-sheen {
  transition: none;
}

[data-motion=reduce] .depth-field,[data-motion=reduce] .depth-satin {
  will-change: auto!important;
}

@media(forced-colors:active) {
  .depth-atmosphere,.depth-sheen {
    display: none;
  }
}

@media print {
  .depth-atmosphere,.depth-sheen {
    display: none;
  }
}
