:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #000;
}
body { overflow-x: hidden; }

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
}

.hero {
  position: relative;
  z-index: 1;
  height: 280vh;
}
.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
}
.stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.scene-fit {
  position: absolute;
  inset: 0;
  margin: auto;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  max-height: 100%;
}
.scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}
.wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.wall-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.yt-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

.set {
  position: relative;
  width: min(1280px, 96vw, calc(94svh * 1152 / 864));
  pointer-events: auto;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.45));
}
.face {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.face:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 8px;
  box-shadow: 0 0 0 4px #000;
}
.knob {
  position: absolute;
  z-index: 4;
  left: 74.48%;
  top: 85.88%;
  width: max(44px, 7%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.knob:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.knob::after {
  content: "Curated Slop";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 58px);
  transform: translateX(-50%);
  padding: 0.3em 0.5em;
  background: rgba(0, 0, 0, 0.82);
  color: #f4fff8;
  font: 600 12px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.knob:hover::after,
.knob:focus-visible::after {
  opacity: 1;
}
.volume {
  position: absolute;
  z-index: 5;
  left: 61.6%;
  top: 75.4%;
  width: 36px;
  height: 14.6%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  touch-action: none;
}
.volume::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2%;
  bottom: 2%;
  width: 8px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: linear-gradient(90deg, #0c0c0c, #2c2c2c 42%, #141414 70%, #070707);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px #3d3d3d;
  pointer-events: none;
}
.volume::after {
  content: "VOL";
  position: absolute;
  right: calc(100% - 2px);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font: 700 8px/1 system-ui, sans-serif;
  letter-spacing: 0.24em;
  color: #6a6a6a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.volume input {
  position: relative;
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 28px;
  height: 100%;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.volume input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.volume input::-webkit-slider-runnable-track {
  width: 8px;
  background: transparent;
  border: 0;
}
.volume input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 13px;
  border: 0;
  border-radius: 2px;
  background:
    linear-gradient(#1b1b1b, #1b1b1b) center / 14px 1px no-repeat,
    linear-gradient(180deg, #f7f7f7 0%, #c5c5c5 22%, #6a6a6a 48%, #dedede 54%, #8f8f8f 100%);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  cursor: grab;
}
.volume input::-moz-range-track {
  width: 8px;
  background: transparent;
  border: 0;
}
.volume input::-moz-range-thumb {
  width: 22px;
  height: 13px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(#f4f4f4, #8a8a8a);
  cursor: grab;
}
.credit {
  position: absolute;
  z-index: 6;
  left: 24%;
  top: 65.2%;
  max-width: 52%;
  padding: 0.28em 0.55em;
  color: #f4fff8;
  background: rgba(0, 0, 0, 0.55);
  font: 600 clamp(11px, 1.5vw, 14px)/1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 1px 2px #000;
}
.credit[hidden] { display: none; }
.credit:hover { color: #fff; }
.credit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.screen {
  position: absolute;
  z-index: 1;
  left: 21.7%;
  top: 21.55%;
  width: 56.5%;
  height: 49.6%;
  overflow: hidden;
  background: #000;
  border-radius: 7% / 9%;
}
.screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
}
.set.power .screen video {
  animation: picture 0.4s ease 0.28s forwards;
}
.screen::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: #f4fff8;
  box-shadow: 0 0 18px 6px rgba(190, 255, 220, 0.9);
  opacity: 0;
  pointer-events: none;
}
.set.power .screen::before {
  animation: crt-on 0.55s ease forwards;
}
.scan,
.glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.set.power .scan,
.set.power .glass {
  opacity: 1;
  transition: opacity 0.45s ease 0.3s;
}
.scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
}
.glass {
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 28%, transparent 70%, rgba(255, 255, 255, 0.05));
}

.player {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  height: 100svh;
  place-items: center;
  background: rgba(0, 0, 0, 0.78);
}
.player.open {
  display: grid;
}
.player .pin {
  position: relative;
  height: 100%;
  width: 100%;
}
.clip {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.clip video {
  position: absolute;
  left: -8%;
  top: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  transform-origin: center center;
}
.clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 36%);
  pointer-events: none;
}
.hint {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
  font: 500 12px/1 system-ui, sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.stuff {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18vh 10vw 20vh;
}
.about {
  position: relative;
  z-index: 1;
  height: 158vh;
  background: #fff;
  color: #111;
}
.about .pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  padding: 12vh 10vw 16vh;
  background: #fff;
}
.stuff h1,
.about h1 {
  margin: 0 0 2.5rem;
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.about img {
  display: block;
  width: min(1100px, 100%);
  height: auto;
}
.about p {
  margin: 2rem 0 0;
  max-width: 34rem;
  font: 500 clamp(1.15rem, 2.2vw, 1.5rem)/1.35 system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.about p + p { margin-top: 1rem; }
.about a {
  color: inherit;
  text-underline-offset: 0.18em;
}
.about a:hover { opacity: 0.55; }
.stuff a {
  display: block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font: 500 clamp(2.75rem, 8vw, 6rem)/1 system-ui, sans-serif;
  letter-spacing: -0.04em;
}
.stuff a + a { margin-top: 0.35em; }
.stuff a:hover { opacity: 0.55; }
.stuff a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 10px;
}
.stuff a svg {
  display: block;
  height: 1em;
  width: auto;
  fill: currentColor;
}
.lost {
  min-height: 100vh;
  min-height: 100svh;
  background: #000;
  color: #fff;
}
.lost .stage { height: 100vh; height: 100svh; }
.lost .scene-fit { overflow: hidden; }
.lost-signal {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  background: #000;
  color: #fff;
  font-weight: 500;
  font-family: system-ui, sans-serif;
  letter-spacing: -0.07em;
  user-select: none;
  animation: lost-flicker 5.5s infinite;
}
.lost-signal span {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  container-type: size;
}
.lost-signal b {
  font-size: 58cqh;
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.07em;
}
.lost-signal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}
.lost-caption {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 4.5rem 1.5rem 28px;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 20%, rgba(0, 0, 0, 0));
}
.lost-path:empty { display: none; }
.lost-path,
.lost-caption a {
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.lost-caption p {
  margin: 0;
  font: 500 clamp(1.15rem, 2.2vw, 1.5rem)/1.35 system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.lost-caption a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}
.lost-caption a:hover { opacity: 0.55; }
.lost-caption a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 10px;
}
@keyframes lost-flicker {
  0%, 90%, 100% { opacity: 1; }
  92% { opacity: 0.55; }
  94% { opacity: 1; }
  97% { opacity: 0.72; }
}

@keyframes crt-on {
  0% { opacity: 1; top: 50%; height: 2px; left: 10%; right: 10%; }
  50% { opacity: 1; top: 0; height: 100%; left: 0; right: 0; }
  100% { opacity: 0; top: 0; height: 100%; left: 0; right: 0; }
}
@keyframes picture {
  to { opacity: 1; }
}

@media (max-width: 720px) {
  .hint { bottom: 14px; }
  .stuff, .about .pin { padding: 12vh 6vw 12vh; }
  .lost-caption { bottom: 14px; }
  .stage { overflow: hidden; touch-action: pan-y; }
  .wall-hit { touch-action: pan-y; }
  .scene-fit {
    inset: auto;
    top: 50%;
    left: 50%;
    width: max(100%, calc(100svh * 16 / 9));
    height: max(100%, calc(100vw * 9 / 16));
    max-height: none;
    margin: 0;
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .about { height: auto; }
  .pin { position: relative; height: 100vh; }
  .set.power .screen video { animation: none; opacity: 1; }
  .set.power .screen::before { animation: none; }
  .set.power .scan,
  .set.power .glass { transition: none; }
  .hint { display: none; }
  .lost-signal { animation: none; }
  .clip, .wall { display: none; }
  .set { filter: none; }
}
/* image container centers the image on the page */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}