@font-face {
  font-family: "Avenir Replica";
  src: url("../assets/avenir-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
}

:root {
  --background: #8d5e94;
  --ink: #fff6ef;
  --active: #a56854;
  --page-width: 1265px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--background);
  font-family: "Avenir Replica", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--background);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  width: min(100%, var(--page-width));
  height: 98px;
  margin: 0 auto;
}

.brand {
  justify-self: start;
  width: 56px;
  height: 56px;
  margin-left: clamp(24px, 11.3vw, 143px);
  transform: translateY(3px);
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
}

.primary-navigation {
  grid-column: 2;
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 42px;
  transform: translate(35px, 3px);
}

.primary-navigation a {
  position: relative;
  display: grid;
  min-width: 109px;
  padding: 0 18px;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.primary-navigation a::after {
  position: absolute;
  right: 18px;
  bottom: 3px;
  left: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 360ms var(--ease);
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after,
.primary-navigation a.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.primary-navigation a:nth-child(2) { min-width: 174px; }
.primary-navigation a:nth-child(3) { min-width: 159px; }
.primary-navigation a:nth-child(4) { min-width: 110px; }
.primary-navigation a:nth-child(5) { min-width: 124px; }
.primary-navigation a.active { color: var(--active); }
.primary-navigation a:hover { color: var(--active); }

.menu-toggle { display: none; }

main {
  width: min(100%, var(--page-width));
  min-height: 3657px;
  margin: 0 auto;
}

.performance-intro {
  position: relative;
  height: 290px;
}

.performance-intro h1 {
  position: absolute;
  top: 62px;
  left: 50%;
  width: 539px;
  margin: 0;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 70px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%) scaleX(0.93);
  white-space: nowrap;
}

.performance-intro h1 span {
  display: inline-block;
}

.performance-socials {
  position: absolute;
  top: 155px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.performance-socials a,
.performance-socials img {
  display: block;
  width: 20px;
  height: 20px;
}

.performance-socials a {
  opacity: 0.95;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.performance-socials a:hover,
.performance-socials a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.series-section {
  width: 1090px;
  margin: 0 auto;
}

.series-title {
  margin: 0 0 38px;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.instagram-series {
  padding-bottom: 136px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 312px);
  gap: 81px 77px;
}

.instagram-card {
  position: relative;
  min-width: 0;
  width: 312px;
  height: 556px;
  overflow: hidden;
  background: transparent;
}

.instagram-card iframe {
  position: absolute;
  top: -13.5%;
  left: -25%;
  display: block;
  width: 150%;
  height: 160%;
  border: 0;
  background: #201421;
}

.guzheng-series .series-title {
  margin-bottom: 48px;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 312px);
  column-gap: 77px;
  row-gap: 81px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 118px;
}

.performance-card {
  min-width: 0;
}

.performance-media {
  position: relative;
  width: 312px;
  height: 556px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
  transform-style: preserve-3d;
  transition: box-shadow 480ms var(--ease);
}

.performance-media > img,
.performance-media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.performance-media > img {
  transition: filter 500ms var(--ease), transform 700ms var(--ease);
}

.performance-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 246, 239, 0);
  background: linear-gradient(180deg, transparent 62%, rgba(43, 20, 49, 0.16));
  content: "";
  pointer-events: none;
  transition: border-color 360ms var(--ease), background 500ms var(--ease);
}

.performance-card:hover .performance-media {
  box-shadow: 0 24px 48px rgba(65, 35, 72, 0.24);
}

.performance-card:hover .performance-media > img {
  filter: saturate(1.06) contrast(1.025);
  transform: scale(1.035);
}

.performance-card:hover .performance-media::after {
  border-color: rgba(255, 246, 239, 0.28);
  background: linear-gradient(180deg, transparent 56%, rgba(43, 20, 49, 0.24));
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.play-button::after {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  content: "";
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 320ms var(--ease), transform 480ms var(--ease);
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.play-button:hover,
.play-button:focus-visible {
  background: rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) scale(1.06);
}

.play-button:hover::after,
.play-button:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.play-button:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.performance-copy {
  width: 361px;
  min-height: 191px;
  padding-top: 34px;
}

.performance-copy h2 {
  margin: 0 0 24px;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  transition: color 300ms var(--ease), transform 420ms var(--ease);
}

.performance-copy p {
  margin: 0;
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 25.5px;
}

.performance-copy em {
  font-style: italic;
}

.performance-card:hover .performance-copy h2 {
  color: #ffd8c8;
  transform: translateX(7px);
}

.performance-card:hover .performance-copy p {
  color: #fff;
}

.performance-card.is-playing .performance-copy h2 {
  color: #ffd8c8;
}

.motion-target {
  will-change: transform, opacity;
}

@media (min-width: 1121px) {
  .performance-card:nth-child(n + 4):nth-child(-n + 9) {
    transform: translateY(-22.5px);
  }

  .performance-card:nth-child(10) {
    transform: translateY(-8.5px);
  }

  .performance-card:nth-child(11) {
    transform: translate(-7.5px, -8.5px);
  }

  .performance-card:nth-child(n + 4):nth-child(-n + 6) .performance-copy {
    transform: translateY(5px);
  }

  .performance-card:nth-child(n + 7):nth-child(-n + 9) .performance-copy {
    transform: translateY(8px);
  }

  .performance-card:nth-child(n + 10) .performance-copy {
    transform: translateY(10px);
  }
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .series-section {
    width: calc(100% - 80px);
  }

  .instagram-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 5vw;
  }

  .instagram-card {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .performance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 5vw;
    width: 100%;
  }

  .performance-media {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 78px;
    padding: 0 22px;
  }

  .brand {
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 12px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
  }

  .menu-toggle i {
    display: block;
    width: 24px;
    height: 12px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }

  .primary-navigation {
    position: fixed;
    inset: 78px 0 0;
    z-index: 15;
    display: grid;
    align-content: center;
    height: auto;
    padding: 24px;
    visibility: hidden;
    background: var(--background);
    opacity: 0;
    transform: translateY(-12px);
  }

  .primary-navigation.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-navigation a,
  .primary-navigation a:nth-child(n) {
    min-width: 0;
    padding: 12px 0;
    font-size: clamp(34px, 9vw, 58px);
  }

  .performance-intro {
    height: 245px;
  }

  .performance-intro h1 {
    top: 48px;
    width: auto;
    font-size: clamp(50px, 10vw, 70px);
  }

  .performance-socials {
    top: 135px;
  }

  .performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 58px 7vw;
    width: 100%;
  }

  .series-section {
    width: calc(100% - 48px);
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 58px 7vw;
  }
}

@media (max-width: 600px) {
  .performance-intro {
    height: 220px;
  }

  .performance-intro h1 {
    top: 42px;
    font-size: clamp(42px, 13vw, 58px);
  }

  .performance-socials {
    top: 118px;
  }

  .performance-grid {
    grid-template-columns: 1fr;
    width: min(82vw, 360px);
  }

  .series-section {
    width: min(82vw, 360px);
  }

  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .instagram-card {
    aspect-ratio: 9 / 16;
  }

  .series-title {
    margin-bottom: 28px;
    font-size: 32px;
  }

  .performance-copy {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }

  .motion-target {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    will-change: auto !important;
  }

  .performance-card:hover .performance-media > img,
  .performance-card:hover .performance-copy h2 {
    transform: none;
  }
}
