/* Chinese font subset: start */
@font-face {
  font-family: "Safe Place Han";
  src: url("assets/fonts/source-han-sans-sc-400-subset.woff2?v=82e043113279") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3002, U+4E00, U+4E0D, U+4E16, U+4E2A, U+4E2D, U+4E48, U+4E50, U+4E91, U+4EC0, U+4ED6, U+4F46, U+4F60, U+5176, U+5206, U+5230, U+53E6, U+540D, U+5426, U+558A, U+55E1, U+5728, U+58F0, U+591C, U+5931, U+5B57, U+5B69, U+5B83, U+5BDF, U+5C0F, U+5C3D, U+5F00, U+5F20, U+5F88, U+5FAE, U+5FC6, U+60F3, U+6162, U+6301, U+65E0, U+6613, U+662F, U+66F2, U+6709, U+6A21, U+6B63, U+6C14, U+6C89, U+6CA1, U+6CE8, U+6D88, U+6DF9, U+6E05, U+6E10, U+754C, U+767D, U+7684, U+76EE, U+76F4, U+773C, U+7740, U+7741, U+775B, U+7761, U+7A7A, U+7CCA, U+7EC6, U+7EED, U+7F51, U+80CC, U+8138, U+8272, U+8868, U+89C6, U+89C9, U+8BB0, U+8D77, U+9010, U+91CE, U+96BE, U+9762, U+97F3, U+9E23, U+FF0C;
}
/* Chinese font subset: end */

@font-face {
  font-family: "Work Sans";
  src: url("assets/fonts/work-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --brand-end-center: calc(max(1.52rem, env(safe-area-inset-top) + 1.27rem) + .74rem);
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  color: #f4f1ed;
  background: #000;
  font-family: "Work Sans", "Safe Place Han", system-ui, sans-serif;
  font-weight: 400;
}

button,
a {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

.experience {
  position: relative;
  height: 820svh;
}

.stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100dvh;
  min-height: 31rem;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.backdrops,
.backdrop,
.backdrop img,
.stage__shade,
.stage__end-dim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.backdrop {
  margin: 0;
  opacity: 0;
}

.backdrop:first-child {
  opacity: 1;
}

.backdrop img {
  display: block;
  object-fit: cover;
  transform: scale(1.015);
}

.backdrop--cover img {
  transform: none;
  object-position: 50% 54%;
}

.backdrop--endorphin img {
  object-position: 48% 46%;
}

.backdrop--nsfm img {
  object-position: 50% 52%;
}

.backdrop--slow-blind img {
  object-position: 52% 50%;
}

.backdrop--jason img {
  object-position: 50% 39%;
}

.backdrop--foghorn img {
  object-position: 50% 56%;
}

@supports (animation-timeline: scroll(root block)) {
  .backdrop--cover {
    animation: backdrop-cover-scroll 1s linear both;
    animation-timeline: scroll(root block);
  }

  .backdrop--endorphin {
    animation: backdrop-endorphin-scroll 1s linear both;
    animation-timeline: scroll(root block);
  }

  .backdrop--nsfm {
    animation: backdrop-nsfm-scroll 1s linear both;
    animation-timeline: scroll(root block);
  }

  .backdrop--slow-blind {
    animation: backdrop-slow-blind-scroll 1s linear both;
    animation-timeline: scroll(root block);
  }

  .backdrop--jason {
    animation: backdrop-jason-scroll 1s linear both;
    animation-timeline: scroll(root block);
  }

  .backdrop--foghorn {
    animation: backdrop-foghorn-scroll 1s linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes backdrop-cover-scroll {
  0% {
    opacity: 1;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  16.666667%,
  100% {
    opacity: 0;
  }
}

@keyframes backdrop-endorphin-scroll {
  0% {
    opacity: 0;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  16.666667% {
    opacity: 1;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  33.333333%,
  100% {
    opacity: 0;
  }
}

@keyframes backdrop-nsfm-scroll {
  0% {
    opacity: 0;
  }

  16.666667% {
    opacity: 0;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  33.333333% {
    opacity: 1;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes backdrop-slow-blind-scroll {
  0% {
    opacity: 0;
  }

  33.333333% {
    opacity: 0;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  50% {
    opacity: 1;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  66.666667%,
  100% {
    opacity: 0;
  }
}

@keyframes backdrop-jason-scroll {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  66.666667% {
    opacity: 1;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  83.333333%,
  100% {
    opacity: 0;
  }
}

@keyframes backdrop-foghorn-scroll {
  0% {
    opacity: 0;
  }

  66.666667% {
    opacity: 0;
    animation-timing-function: cubic-bezier(.333333, 0, .666667, 1);
  }

  83.333333%,
  100% {
    opacity: 1;
  }
}

.stage__shade {
  z-index: 2;
  inset: -1rem 0;
  height: auto;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .16), transparent 28%, transparent 68%, rgba(0, 0, 0, .46));
  background-color: rgba(0, 0, 0, .1);
  pointer-events: none;
}

.stage__end-dim {
  z-index: 4;
  background: #000;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.brand {
  position: absolute;
  z-index: 10;
  top: max(18svh, 7rem);
  right: clamp(1.3rem, 7vw, 7.5rem);
  margin: 0;
  color: rgb(197, 195, 187);
  font-size: clamp(1.85rem, 6.1vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .095em;
  white-space: nowrap;
  mix-blend-mode: screen;
  filter: blur(.9px);
  will-change: top, right, color, font-size, letter-spacing;
}

.brand__text,
.platform-links--floating > *,
.scroll-cue > span {
  opacity: 0;
  transition: opacity 4s ease;
}

.copy-scenes,
.copy-scene {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}

.copy-scene {
  opacity: 0;
  transition: opacity 4s ease;
}

.copy-poem {
  position: absolute;
  top: var(--my);
  left: var(--mx);
  width: var(--mw);
  margin: 0;
  color: var(--poem-color);
  font-size: clamp(1.4rem, 6vw, 1.7rem);
  line-height: 1.705;
  letter-spacing: .035em;
}

.copy-line {
  position: relative;
  display: block;
}

.copy-line--paragraph-start {
  margin-block-start: .6em;
}

.copy-line__baseline {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}

.copy-line__bitmap {
  position: absolute;
  pointer-events: none;
}

.copy-line:not(.is-rasterized) .copy-line__bitmap {
  visibility: hidden;
}

.copy-line.is-rasterized .copy-line__source {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.copy-line[hidden] {
  display: none;
}

.copy-line:not(.is-rasterized) {
  filter: blur(.9px);
}

.tracklist-panel {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 13svh 1.25rem 16svh;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.tracklist-content {
  width: min(100%, 34rem);
}

.track-list-raster-host {
  position: relative;
  width: 100%;
}

.tracklist-title {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: .35em;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1.12rem, 5vw, 1.38rem);
  line-height: 1;
  letter-spacing: .1em;
  filter: blur(.9px);
}

.tracklist-title > span {
  white-space: nowrap;
}

.tracklist-artist {
  opacity: .4;
}

.track-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-list li {
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto;
  gap: .7rem;
  align-items: center;
  padding: .52rem 0;
}

.track-list__connector {
  grid-column: 2;
  grid-row: 1;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}

.track-list__baseline {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}

.track-list__bitmap {
  position: absolute;
  pointer-events: none;
}

.track-list-raster-host.is-rasterized .track-list span,
.track-list-raster-host.is-rasterized .track-list time,
.track-list-raster-host.is-rasterized .track-list__connector {
  opacity: 0 !important;
}

.track-list span {
  grid-column: 1;
  min-width: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(.92rem, 4.2vw, 1.12rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.track-list time {
  grid-column: 3;
  color: rgba(255, 255, 255, .56);
  font-size: clamp(.72rem, 3.2vw, .84rem);
  letter-spacing: .06em;
}

.platform-links {
  z-index: 12;
  display: flex;
  align-items: center;
  gap: .85rem;
  color: rgb(197, 195, 187);
  font-size: clamp(1.44rem, 2vw, 1.76rem);
  font-family: "Work Sans", "Safe Place Han", system-ui, sans-serif;
  filter: blur(.9px);
  will-change: color, font-size, opacity;
}

.platform-links--floating {
  position: absolute;
  bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
  left: 1.15rem;
}

.platform-links--tracklist {
  position: absolute;
  bottom: max(6.5rem, calc(env(safe-area-inset-bottom) + 6rem));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-top: 0;
  color: rgba(255, 255, 255, .72);
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

.platform-links a {
  padding: .35rem 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: inherit;
  letter-spacing: .07em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.platform-links > span {
  width: 1px;
  height: .92em;
  color: inherit;
  background: currentColor;
}

.platform-links a:hover,
.platform-links a:focus,
.platform-links a:focus-visible,
.platform-links a:active,
.platform-links a:visited {
  color: inherit;
  outline: none;
  text-decoration: none;
}

.scroll-cue,
.return-cue {
  position: absolute;
  z-index: 12;
  bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
  display: grid;
  width: 1.1em;
  height: calc(1.4em + .7rem);
  padding: 0;
  border: 0;
  color: rgb(197, 195, 187);
  background: transparent;
  cursor: pointer;
  place-items: center;
  filter: blur(.9px);
  will-change: color, font-size, opacity;
}

.scroll-cue {
  right: 1.2rem;
}

.return-cue {
  left: 50%;
  color: rgba(255, 255, 255, .72);
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.scroll-cue span,
.return-cue span {
  display: block;
  width: .72em;
  height: .62em;
  background: currentColor;
}

.scroll-cue span {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.return-cue span {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.scroll-cue:focus-visible,
.return-cue:focus-visible {
  outline: none;
}

@media (hover: hover) {
  .scroll-cue:hover,
  .return-cue:hover {
    color: #fff !important;
  }
}

.scroll-cue:disabled,
.return-cue:disabled {
  outline: none;
}


@media (min-width: 800px) {
  :root {
    --brand-end-center: 2.81rem;
  }

  .experience {
    height: 760svh;
  }

  .stage {
    min-height: 34rem;
  }

  .backdrop--cover img {
    object-position: 50% 58%;
  }

  .backdrop--endorphin img {
    object-position: 48% 37%;
  }

  .backdrop--nsfm img {
    object-position: 50% 57%;
  }

  .backdrop--jason img {
    object-position: 50% 30%;
  }

  .backdrop--foghorn img {
    object-position: 50% 60%;
  }

  .copy-poem {
    top: var(--y);
    left: var(--x);
    width: var(--w);
    font-size: clamp(1.62rem, 2.55vw, 2.58rem);
    line-height: 1.65;
    letter-spacing: .045em;
  }

  .tracklist-panel {
    padding: 12svh clamp(1.3rem, 8vw, 8rem) 14svh;
  }

  .track-list {
    width: 100%;
  }

  .tracklist-content {
    width: min(100%, 48rem);
  }

  .tracklist-title {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
  }

  .track-list span {
    font-size: clamp(1rem, 1.65vw, 1.35rem);
  }

  .track-list time {
    font-size: clamp(.76rem, .9vw, .92rem);
  }

  .platform-links--floating {
    left: clamp(1.25rem, 3.2vw, 3.5rem);
  }

  .scroll-cue {
    right: clamp(1.25rem, 3.2vw, 3.5rem);
  }
}

/* Keep the homepage platform labels 2px smaller than the arrow. */
.platform-links--floating a {
  font-size: calc(1em - 2px);
}
