@font-face {
  font-family: "InterCustom";
  src: url("assets/Fonts/Inter_18pt-Bold.ttf");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("assets/Fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/Fonts/Inter_18pt-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/Fonts/Inter_18pt-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/Fonts/Inter_18pt-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans";
  src: url("assets/Fonts/SourceHanSansSC-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans";
  src: url("assets/Fonts/SourceHanSansCN-Heavy.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --page-bg: #fff;
  --text: #111;
  --muted: #aaa;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Inter", "Source Han Sans", sans-serif;
}

body {
  min-width: 280px;
  overflow-x: hidden;
  overflow-y: auto;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.site-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

.page {
  position: absolute;
  inset: 0;
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--page-bg);
  -webkit-overflow-scrolling: touch;
}

.page.active {
  display: block;
  overflow-y: auto;
}

/* Shared header */
.page-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: max(18px, env(safe-area-inset-top)) 24px 12px;
}

.site-wordmark {
  display: block;
  width: 80px;
  font-family: "Inter", sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.menu-toggle {
  display: grid;
  gap: 5px;
  width: 42px;
  padding: 8px 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 29px;
  height: 2px;
  background: #000;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:nth-child(3) {
  display: none;
}

.menu-toggle.open {
  gap: 0;
}

.menu-toggle.open span:first-child {
  transform: translateY(1px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  transform: translateY(-1px) rotate(-45deg);
}

.menu-toggle--on-home {
  position: fixed;
  z-index: 3;
  top: max(20px, env(safe-area-inset-top));
  left: 20px;
}

.site-wordmark--home {
  position: fixed;
  z-index: 3;
  top: max(20px, env(safe-area-inset-top));
  right: 24px;
  color: #000;
}

.menu-toggle--on-home span {
  background: #000;
  box-shadow: 0 1px 1px rgb(0 0 0 / 18%);
}

.back-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Inter", "Source Han Sans", sans-serif;
  font-size: 30px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

/* Home */
.page--home {
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.home-image {
  display: block;
  width: 100%;
  height: auto;
}

.home-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: #aaa;
  font-family: "Inter", "Source Han Sans", sans-serif;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.16em;
  text-align: center;
  transform: translate(-50%, -50%);
}

.home-placeholder span {
  font-size: 10px;
  letter-spacing: 0.06em;
}

.page--home.has-background .home-placeholder {
  display: none;
}

.page--home:not(.has-background) .home-image {
  display: none;
}

/* Main menu */
.page--menu {
  background: #000;
  color: #fff;
}

.page--menu .menu-toggle span {
  background: #fff;
}

.page--menu .site-wordmark {
  color: #fff;
}

.menu-links {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 24px;
  width: min(82%, 320px);
  transform: translate(-50%, -50%);
}

.menu-links button {
  padding: 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: "Archivo Black", "Source Han Sans", sans-serif;
  font-size: clamp(17px, 5vw, 21px);
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
}

/* Artist links */
#artist-links {
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  color: #e2e0d8;
  -webkit-overflow-scrolling: touch;
}

#artist-links::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("assets/bg1.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  opacity: 0.2;
  pointer-events: none;
  animation: link-bg-breathe 6s ease-in-out infinite;
}

@keyframes link-bg-breathe {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.6;
  }
}

#artist-links .page-header {
  position: sticky;
  z-index: 5;
  top: 0;
}

#artist-links .back-button {
  color: #e2e0d8;
}

#artist-links .site-wordmark {
  color: #e2e0d8;
}

#artist-links .artist-texture {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

#artist-links .artist-texture--grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.08;
}

#artist-links .artist-texture--dust {
  background-image:
    radial-gradient(circle at 12% 18%, rgb(226 224 216 / 60%) 0 0.6px, transparent 1px),
    radial-gradient(circle at 82% 27%, rgb(226 224 216 / 45%) 0 0.8px, transparent 1.3px),
    radial-gradient(circle at 31% 76%, rgb(226 224 216 / 50%) 0 0.5px, transparent 1px),
    radial-gradient(circle at 71% 88%, rgb(226 224 216 / 35%) 0 0.7px, transparent 1.2px),
    linear-gradient(96deg, transparent 0 46%, rgb(226 224 216 / 18%) 46.1% 46.25%, transparent 46.35%),
    linear-gradient(83deg, transparent 0 73%, rgb(226 224 216 / 12%) 73.1% 73.22%, transparent 73.35%);
  background-size: 107px 131px, 149px 173px, 181px 157px, 127px 193px, 100% 100%, 100% 100%;
  opacity: 0.04;
}

#artist-links .artist-texture--vignette {
  background: radial-gradient(
    circle at center,
    transparent 35%,
    rgb(0 0 0 / 12%) 68%,
    rgb(0 0 0 / 42%) 100%
  );
}

#artist-links .artist-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 90%;
  max-width: 352px;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  padding: 40px 0 max(48px, env(safe-area-inset-bottom));
}

#artist-links .artist-heading {
  margin-bottom: 38px;
  text-align: center;
}

#artist-links .artist-name {
  margin: 0;
  color: #e2e0d8;
  font-family: "Inter", "Source Han Sans", sans-serif;
  font-size: clamp(30px, 9.5vw, 40px);
  font-style: normal;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

#artist-links .artist-kicker {
  margin: 14px 0 0;
  color: #8c8a80;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

#artist-links .artist-links {
  display: grid;
  gap: 12px;
}

#artist-links .artist-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
  box-shadow:
    inset 0 0 10px rgb(255 255 255 / 5%),
    inset 0 0 2px rgb(255 255 255 / 10%),
    0 1px 0 rgb(255 255 255 / 2%),
    0 2px 8px rgb(0 0 0 / 12%);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#artist-links .artist-link__platform {
  color: #e2e0d8;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

#artist-links .btn-main {
  display: inline-flex;
  flex-shrink: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#artist-links .platform-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: rgb(226 224 216 / 72%);
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out;
}

#artist-links .btn-text {
  white-space: nowrap;
}

#artist-links .artist-link__detail {
  min-width: 0;
  margin-left: 16px;
  color: #8c8a80;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#artist-links .artist-link:hover {
  border-color: rgb(255 255 255 / 13%);
  background: rgb(255 255 255 / 7%);
  box-shadow:
    inset 0 0 14px rgb(255 255 255 / 8%),
    inset 0 0 2px rgb(255 255 255 / 12%),
    0 8px 22px rgb(0 0 0 / 20%);
  transform: translateY(-1.5px);
}

#artist-links .artist-link:hover .platform-icon {
  color: rgb(255 255 255 / 98%);
  transform: scale(1.06);
}

#artist-links .artist-link:focus-visible {
  outline: 1px solid rgb(226 224 216 / 55%);
  outline-offset: 3px;
}

#artist-links .artist-link:active {
  background: rgb(255 255 255 / 5%);
  box-shadow:
    inset 0 0 8px rgb(255 255 255 / 4%),
    inset 0 0 1px rgb(255 255 255 / 7%),
    0 2px 8px rgb(0 0 0 / 14%);
  transform: translateY(0);
}

#artist-links .artist-link:active .platform-icon {
  transform: scale(1);
}

#artist-links .artist-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
  color: #8c8a80;
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Music artwork */
#music {
  isolation: isolate;
  background: #000;
}

#music .page-header {
  margin-bottom: calc(-1 * var(--header-height));
  color: #fff;
}

#music .back-button,
#music .site-wordmark {
  color: #fff;
}

.music-canvas {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
}

.music-background-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.6;
  pointer-events: none;
  animation: music-bg-breathe 6s ease-in-out infinite;
  user-select: none;
}

@keyframes music-bg-breathe {
  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.music-particles {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.music-particle-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: visible;
  opacity: 1;
  pointer-events: none;
}

.music-stage {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.shape-button {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: music-float 4.2s ease-in-out infinite;
}

.music-entry-image {
  position: absolute;
  display: block;
  width: var(--music-image-width);
  height: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgb(0 0 0 / 18%));
  inset: var(--music-image-top) auto auto var(--music-image-left);
  pointer-events: none;
  transform: scale(1);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), filter 0.24s ease;
  user-select: none;
}

.shape-button:active .music-entry-image {
  filter: drop-shadow(0 12px 18px rgb(0 0 0 / 15%));
  transform: scale(1.12);
}

.shape-button--circle {
  top: 8%;
  left: 42%;
  width: clamp(55px, 17.6%, 85.25px);
  aspect-ratio: 753 / 730;
  --music-image-width: 113.3%;
  --music-image-left: -6.6%;
  --music-image-top: -76.7%;
  animation-duration: 4.2s;
  animation-delay: -0.4s;
}

.shape-button--diamond {
  top: 25%;
  left: 37%;
  width: clamp(84px, 26.25%, 127px);
  aspect-ratio: 783 / 1005;
  --music-image-width: 109%;
  --music-image-left: -4.5%;
  --music-image-top: -41.8%;
  animation-duration: 4.8s;
  animation-delay: -1.3s;
}

.shape-button--star {
  top: 47%;
  left: 8%;
  width: clamp(100px, 31%, 150px);
  aspect-ratio: 763 / 950;
  --music-image-width: 111.8%;
  --music-image-left: -5.9%;
  --music-image-top: -47.4%;
  animation-duration: 3.9s;
  animation-delay: -2.1s;
}

.shape-button--triangle {
  top: 42%;
  right: 14%;
  width: clamp(57.6px, 18%, 87px);
  aspect-ratio: 740 / 1070;
  --music-image-width: 115.3%;
  --music-image-left: -10.8%;
  --music-image-top: -36.4%;
  animation-duration: 4.5s;
  animation-delay: -0.9s;
}

[data-music-action="letter"].letter-triggered {
  animation: none;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
}

.shape-button--blob {
  top: 69%;
  right: 12%;
  width: clamp(100px, 31%, 150px);
  aspect-ratio: 765 / 1050;
  --music-image-width: 111.5%;
  --music-image-left: -5.9%;
  --music-image-top: -38.1%;
  animation-duration: 5s;
  animation-delay: -1.7s;
}

@keyframes music-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* Letter interaction */
.letter-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.letter-overlay.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.letter-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 8%);
  cursor: pointer;
}

.letter-container {
  position: relative;
  z-index: 1;
  width: min(86vw, 370px);
  height: min(72vh, 500px);
  height: min(72dvh, 500px);
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(2%) scale(0.97);
  transition: opacity 0.45s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.letter-overlay.open .letter-container {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.envelope-body,
.envelope-flap {
  position: absolute;
  left: 50%;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  transform: translateX(-50%);
  user-select: none;
}

.envelope-body {
  z-index: 2;
  bottom: 0;
}

.letter-paper {
  position: absolute;
  z-index: 1;
  bottom: 7%;
  left: 11%;
  width: 78%;
  height: clamp(230px, 68vw, 300px);
  margin: 0;
  padding: clamp(28px, 8vw, 42px) clamp(22px, 7vw, 34px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgb(0 0 0 / 13%);
  color: #111;
  opacity: 0;
  transform: translateY(22%);
  transition: opacity 0.65s ease 0.2s, transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.letter-overlay.open .letter-paper {
  opacity: 1;
  transform: translateY(-54%);
}

/* While opening: body above paper, with the opened flap behind both. */
.letter-overlay.open:not(.letter-revealed) .envelope-body {
  z-index: 3;
}

.letter-overlay.open:not(.letter-revealed) .letter-paper {
  z-index: 2;
}

.letter-overlay.open:not(.letter-revealed) .envelope-flap {
  z-index: 1;
}

/* Once the paper has cleared the envelope, bring it above both image layers. */
.letter-overlay.letter-revealed .letter-paper {
  z-index: 4;
}

.letter-paper h2 {
  margin: 0 0 30px;
  font-family: "Archivo Black", "Source Han Sans", sans-serif;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.letter-paper p {
  margin: 0 0 13px;
  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 1.55;
}

.envelope-flap {
  z-index: 3;
  bottom: 25%;
  width: 98%;
}

/* And More */
#and-more {
  isolation: isolate;
  background: #000;
  color: #e2e0d8;
}

#and-more::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("assets/link-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  opacity: 0.2;
  pointer-events: none;
  animation: link-bg-breathe 6s ease-in-out infinite;
}

#and-more .back-button,
#and-more .site-wordmark {
  color: #e2e0d8;
}

.coming-soon {
  position: absolute;
  z-index: 1;
  inset: var(--header-height) 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: var(--header-height);
  color: #e2e0d8;
  text-align: center;
  text-shadow: 0 2px 14px rgb(0 0 0 / 45%);
}

.coming-soon-cn {
  font-family: "Source Han Sans", sans-serif;
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.16em;
}

.coming-soon-en {
  font-family: "Inter", sans-serif;
  font-size: clamp(12px, 3.5vw, 16px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
}

/* Shared modal */
.modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: none;
  place-items: center;
  padding: 28px;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(0 0 0 / 30%);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  min-height: 190px;
  padding: 52px 28px 38px;
  background: #fff;
  box-shadow: 0 16px 50px rgb(0 0 0 / 16%);
  text-align: center;
}

.modal-card p {
  margin: 0;
  font-family: "Archivo Black", "Source Han Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Inter", "Source Han Sans", sans-serif;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 700px) {
  .site-shell {
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgb(0 0 0 / 8%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page.active {
    animation: page-in 220ms ease-out;
  }

  @keyframes page-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
