/* The surface behind the front page's title. Made by "Website Art/Parasite Games/home/surface.py": do not edit by hand.
   A grid bent inwards like the inside of a bowl, a honeycomb lying deeper in it, and a light that follows the pointer: a
   round window (`.torch`) that moves, holding a bright copy of both that is moved back by as much. The cell of `.track`
   under the pointer sets --mx / --my (-1 to 1); the surface leans after it, and the two layers shift by different amounts. */
.view { --mx: 0.62; --my: -0.35; position: absolute; inset: 0; z-index: -2; container-type: size; overflow: hidden; pointer-events: none; }
.hall.bowl .track { display: grid; grid-template: repeat(12, 1fr) / 1fr; }
.hall.bowl .track p { display: grid; grid-template-columns: repeat(24, 1fr); margin: 0; }
.hall.bowl > .wrap { padding-block: clamp(6rem, 20vh, 12.5rem); }
.hall.bowl .eyebrow::before, .hall.bowl .eyebrow::after { content: none; }

.tilt {
  position: absolute;
  inset: 0;
  transform: perspective(1400px) rotateY(calc(var(--mx) * -3.2deg)) rotateX(calc(var(--my) * 2.6deg)) scale(1.06);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sheet { position: absolute; left: 50%; top: 50%; width: 112cqw; height: 112cqh; margin: -56cqh 0 0 -56cqw; transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sheet img, .runs { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* dark in the middle, where the words stand */
.view > .tilt > .low img { --m: radial-gradient(ellipse 56% 60% at 50% 50%, rgba(0, 0, 0, 0.03) 22%, rgba(0, 0, 0, 0.14) 60%, rgba(0, 0, 0, 0.4) 100%); -webkit-mask-image: var(--m); mask-image: var(--m); }
.view > .tilt > .top img { --m: radial-gradient(ellipse 56% 60% at 50% 50%, rgba(0, 0, 0, 0.06) 20%, rgba(0, 0, 0, 0.32) 60%, rgba(0, 0, 0, 0.95) 100%); -webkit-mask-image: var(--m); mask-image: var(--m); }
.sheet.low { translate: calc(var(--mx) * -0.5cqw) calc(var(--my) * -0.6cqh); }
.sheet.top { translate: calc(var(--mx) * -2cqw) calc(var(--my) * -2.2cqh); }

.torch {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42rem;
  height: 42rem;
  margin: -21rem 0 0 -21rem;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 38%, transparent 100%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 38%, transparent 100%);
  translate: calc(var(--mx) * 48cqw) calc(var(--my) * 46cqh);
  transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.torch .low { translate: calc(var(--mx) * -48.5cqw) calc(var(--my) * -46.6cqh); }
.torch .top { translate: calc(var(--mx) * -50cqw) calc(var(--my) * -48.2cqh); }

.runs path { fill: none; stroke: #d9ff9e; stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 5 205; stroke-dashoffset: 8; opacity: 0; animation: run 9s cubic-bezier(0.3, 0, 0.4, 1) infinite; }
@keyframes run { 0% { stroke-dashoffset: 8; opacity: 0; } 6% { opacity: 0.8; } 26% { opacity: 0.05; } 34% { opacity: 0.05; } 50% { opacity: 0.8; } 58%, 100% { stroke-dashoffset: -108; opacity: 0; } }
.runs path:nth-child(1) { animation-delay: 0.0s; animation-direction: normal; }
.runs path:nth-child(2) { animation-delay: 4.3s; animation-direction: reverse; }
.runs path:nth-child(3) { animation-delay: 8.6s; animation-direction: normal; }
.runs path:nth-child(4) { animation-delay: 2.1s; animation-direction: reverse; }
.runs path:nth-child(5) { animation-delay: 6.4s; animation-direction: normal; }
.runs path:nth-child(6) { animation-delay: 1.7s; animation-direction: reverse; }
.runs path:nth-child(7) { animation-delay: 4.2s; animation-direction: normal; }
.runs path:nth-child(8) { animation-delay: 8.5s; animation-direction: reverse; }
.runs path:nth-child(9) { animation-delay: 3.8s; animation-direction: normal; }
.runs path:nth-child(10) { animation-delay: 6.3s; animation-direction: reverse; }

/* quiet behind the words */
.view::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 44% 46% at 50% 50%, rgba(3, 6, 4, 0.82) 40%, rgba(3, 6, 4, 0) 100%); }

@media (max-width: 44rem) {
  .hall.bowl > .wrap { padding-block: 4.5rem 5.5rem; }
  .sheet { width: 170cqw; margin-left: -85cqw; }
  .torch { width: 26rem; height: 26rem; margin: -13rem 0 0 -13rem; opacity: 0.35; }
  .view::after { background: radial-gradient(ellipse 90% 44% at 50% 50%, rgba(3, 6, 4, 0.8) 45%, rgba(3, 6, 4, 0) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .runs path { animation: none; }
  .tilt, .sheet, .torch { transition: none; }
}

.hall.bowl:has(.track i:nth-child(1):hover) .view { --mx: -0.958; }
.hall.bowl:has(.track i:nth-child(2):hover) .view { --mx: -0.875; }
.hall.bowl:has(.track i:nth-child(3):hover) .view { --mx: -0.792; }
.hall.bowl:has(.track i:nth-child(4):hover) .view { --mx: -0.708; }
.hall.bowl:has(.track i:nth-child(5):hover) .view { --mx: -0.625; }
.hall.bowl:has(.track i:nth-child(6):hover) .view { --mx: -0.542; }
.hall.bowl:has(.track i:nth-child(7):hover) .view { --mx: -0.458; }
.hall.bowl:has(.track i:nth-child(8):hover) .view { --mx: -0.375; }
.hall.bowl:has(.track i:nth-child(9):hover) .view { --mx: -0.292; }
.hall.bowl:has(.track i:nth-child(10):hover) .view { --mx: -0.208; }
.hall.bowl:has(.track i:nth-child(11):hover) .view { --mx: -0.125; }
.hall.bowl:has(.track i:nth-child(12):hover) .view { --mx: -0.042; }
.hall.bowl:has(.track i:nth-child(13):hover) .view { --mx: 0.042; }
.hall.bowl:has(.track i:nth-child(14):hover) .view { --mx: 0.125; }
.hall.bowl:has(.track i:nth-child(15):hover) .view { --mx: 0.208; }
.hall.bowl:has(.track i:nth-child(16):hover) .view { --mx: 0.292; }
.hall.bowl:has(.track i:nth-child(17):hover) .view { --mx: 0.375; }
.hall.bowl:has(.track i:nth-child(18):hover) .view { --mx: 0.458; }
.hall.bowl:has(.track i:nth-child(19):hover) .view { --mx: 0.542; }
.hall.bowl:has(.track i:nth-child(20):hover) .view { --mx: 0.625; }
.hall.bowl:has(.track i:nth-child(21):hover) .view { --mx: 0.708; }
.hall.bowl:has(.track i:nth-child(22):hover) .view { --mx: 0.792; }
.hall.bowl:has(.track i:nth-child(23):hover) .view { --mx: 0.875; }
.hall.bowl:has(.track i:nth-child(24):hover) .view { --mx: 0.958; }
.hall.bowl:has(.track p:nth-child(1):hover) .view { --my: -0.917; }
.hall.bowl:has(.track p:nth-child(2):hover) .view { --my: -0.750; }
.hall.bowl:has(.track p:nth-child(3):hover) .view { --my: -0.583; }
.hall.bowl:has(.track p:nth-child(4):hover) .view { --my: -0.417; }
.hall.bowl:has(.track p:nth-child(5):hover) .view { --my: -0.250; }
.hall.bowl:has(.track p:nth-child(6):hover) .view { --my: -0.083; }
.hall.bowl:has(.track p:nth-child(7):hover) .view { --my: 0.083; }
.hall.bowl:has(.track p:nth-child(8):hover) .view { --my: 0.250; }
.hall.bowl:has(.track p:nth-child(9):hover) .view { --my: 0.417; }
.hall.bowl:has(.track p:nth-child(10):hover) .view { --my: 0.583; }
.hall.bowl:has(.track p:nth-child(11):hover) .view { --my: 0.750; }
.hall.bowl:has(.track p:nth-child(12):hover) .view { --my: 0.917; }
