:root {
  --wine: #7e1723;
  --ink: #282020;
  --line: #d9d3d1;
  --paper: #fcfbfa;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.nav {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr 0.8fr 70px 90px;
  color: var(--wine);
  border-bottom: 1px solid rgba(126, 23, 35, 0.28);
}
.nav > * {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-right: 1px solid rgba(126, 23, 35, 0.28);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.nav > *:first-child {
  justify-content: flex-start;
}
.nav > *:last-child {
  border: 0;
}
.logo {
  font:
    400 31px Didot,
    Georgia,
    serif !important;
  letter-spacing: -0.1em !important;
}
.logo sup {
  font: 8px Arial;
  margin-left: 2px;
}
.menu {
  line-height: 5px;
}
.hero-scroll {
  height: 200svh;
  --progress: 0;
}
.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: #1e1818;
  isolation: isolate;
}
.hero:before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(
    circle 34vw at var(--glow-x, 74%) var(--glow-y, 38%),
    rgba(255, 255, 255, 0.25),
    transparent 72%
  );
  opacity: 0.15;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero.lit:before {
  opacity: 1;
}
.hero:after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(0deg, rgba(32, 20, 20, 0.22), transparent 38%);
  pointer-events: none;
}
.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.33) saturate(0.25) contrast(1.05);
  transform: translate3d(
      calc(var(--progress) * -15vw),
      calc(var(--progress) * -2vh),
      0
    )
    scale(calc(1.015 + var(--progress) * 0.16));
  transform-origin: 70% 46%;
  transition: filter 1.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.hero.lit .hero-portrait {
  filter: saturate(0.74) contrast(1.01);
}
.hero-object {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 39%;
  width: min(37vw, 500px);
  height: min(53vw, 650px);
  overflow: hidden;
  opacity: clamp(0, calc(var(--progress) * 1.7 - 0.26), 1);
  transform: translate3d(calc(62vw - var(--progress) * 62vw), -50%, 0)
    rotate(calc(12deg - var(--progress) * 12deg));
  box-shadow: 0 25px 80px rgba(25, 17, 17, 0.19);
  will-change: transform, opacity;
}
.hero-object img {
  display: block;
  width: 500%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}
.kicker,
.hero-copy,
.hero > small,
.scroll-cue {
  position: absolute;
  z-index: 3;
  color: #c5bbb7;
  opacity: 0.44;
  transition:
    opacity 1.2s,
    color 1.2s;
}
.hero.lit .kicker,
.hero.lit .hero-copy,
.hero.lit > small,
.hero.lit .scroll-cue {
  color: var(--wine);
  opacity: 1;
}
.kicker {
  top: 95px;
  left: 4vw;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.1em;
  transform: translateY(calc(var(--progress) * -5vh));
  opacity: calc((0.44 + var(--progress) * 0.56) * (1 - var(--progress) * 0.86));
}
.hero.lit .kicker {
  opacity: calc(1 - var(--progress) * 0.86);
}
.hero-copy {
  left: 4vw;
  bottom: 9vh;
  transform: translate3d(
    calc(var(--progress) * -3vw),
    calc(var(--progress) * -8vh),
    0
  );
  opacity: calc(0.44 * (1 - var(--progress) * 1.8));
}
.hero.lit .hero-copy {
  opacity: calc(1 - var(--progress) * 1.8);
}
.hero-copy h1 {
  margin: 0 0 14px;
  font:
    400 clamp(55px, 8vw, 128px)/0.8 "Songti SC",
    STSong,
    serif;
  letter-spacing: 0.03em;
}
.hero-copy h1 em {
  color: #8d7776;
  font-family: Didot, Georgia, serif;
}
.hero.lit .hero-copy h1 {
  color: #3b3230;
}
.hero.lit .hero-copy h1 em {
  color: var(--wine);
}
.hero-copy p {
  margin: 0 0 17px;
  font:
    15px/1.75 "Songti SC",
    STSong,
    serif;
}
.hero-copy a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.hero > small {
  right: 24px;
  bottom: 19px;
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: calc(0.44 * (1 - var(--progress) * 2));
}
.hero.lit > small {
  opacity: calc(1 - var(--progress) * 2);
}
.scroll-cue {
  left: 50%;
  bottom: 21px;
  transform: translateX(-50%) translateY(calc(var(--progress) * 20px));
  font-size: 8px;
  letter-spacing: 0.18em;
  animation: cue 2.4s ease-in-out infinite;
}
.hero.lit .scroll-cue {
  opacity: calc(1 - var(--progress) * 2);
}
@keyframes cue {
  50% {
    margin-bottom: 9px;
  }
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  color: var(--wine);
  font-size: 9px;
  letter-spacing: 0.11em;
}
.section-label {
  display: flex;
  justify-content: space-between;
  padding: 28px 22px 23px;
  color: var(--wine);
  font-size: 9px;
  letter-spacing: 0.11em;
}
.collection {
  background: #fff;
}
.objects {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.objects article {
  min-width: 180px;
  padding-bottom: 17px;
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.objects article:last-child {
  border: 0;
}
.piece {
  display: block;
  height: clamp(290px, 31vw, 520px);
  background-color: #f1efef;
  background-image: url("./ying-sculptural-hoops.png");
  background-repeat: no-repeat;
  background-size: auto 250%;
  background-position: 0 center;
  transition: transform 680ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 680ms ease;
}
.objects article.is-sounding .piece {
  filter: brightness(1.09) contrast(1.03);
  transform: scale(1.025);
}
.p2 {
  background-position: 25% center;
}
.p3 {
  background-image: url("./ying-mirror-ritual.png");
  background-size: cover;
  background-position: center;
}
.p4 {
  background-image: url("./ying-turning-ritual.png");
  background-size: cover;
  background-position: center;
}
.p5 {
  background-image: url("./ying-leaving-ritual-v2.png");
  background-size: cover;
  background-position: center;
}
.objects p {
  margin: 17px 17px 6px;
  font:
    400 18px Didot,
    "Songti SC",
    serif;
}
.objects small {
  margin: 0 17px;
  color: #675f5c;
  font:
    13px "Songti SC",
    STSong,
    serif;
}
.ritual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background: #efebea;
}
.ritual-photo {
  min-height: 620px;
  overflow: hidden;
}
.ritual-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  filter: saturate(0.74);
}
.ritual-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9vw;
}
.ritual-copy > p,
.letter p,
.last p {
  margin: 0 0 24px;
  color: var(--wine);
  font-size: 9px;
  letter-spacing: 0.11em;
}
.ritual-copy h2,
.letter h2,
.last h2 {
  margin: 0;
  font:
    400 clamp(38px, 5vw, 76px)/1.14 "Songti SC",
    STSong,
    serif;
  letter-spacing: 0.06em;
}
.ritual-copy ol {
  margin: 36px 0 28px;
  padding: 0;
  list-style-position: inside;
  border-top: 1px solid rgba(126, 23, 35, 0.45);
}
.ritual-copy li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(126, 23, 35, 0.23);
  font:
    15px "Songti SC",
    STSong,
    serif;
}
.ritual-copy em {
  color: var(--wine);
  font:
    italic clamp(25px, 3vw, 50px) Didot,
    "Songti SC",
    serif;
}
.letter {
  display: grid;
  grid-template-columns: 1.17fr 0.83fr;
  min-height: 88svh;
  border-top: 1px solid var(--line);
}
.letter > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9vw;
  border-right: 1px solid var(--line);
}
.letter > div span {
  margin-top: 37px;
  color: #514b4a;
  font:
    15px/2 "Songti SC",
    STSong,
    serif;
  letter-spacing: 0.05em;
}
.letter aside {
  display: grid;
  place-content: center;
  text-align: center;
  color: #f8edeb;
  background: #7b1722;
}
.letter aside b {
  font:
    400 clamp(65px, 10vw, 140px)/0.75 Didot,
    Georgia,
    serif;
  letter-spacing: -0.13em;
}
.letter aside small {
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: 0.19em;
}
.last {
  min-height: 68svh;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  align-items: center;
  gap: 5vw;
  overflow: hidden;
  padding: 7vw;
  text-align: left;
  background: radial-gradient(circle at 30% 44%, #fff 0, #f4efed 31%, #e6dddd 100%);
}
.silver-orbit {
  position: relative;
  width: min(34vw, 470px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 23, 35, 0.28);
  border-radius: 50%;
  transform: rotate(-17deg);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.silver-orbit::before,
.silver-orbit::after,
.silver-orbit i {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(92, 83, 81, 0.3);
}
.silver-orbit::before { inset: 10%; }
.silver-orbit::after { inset: 22%; border-color: rgba(126, 23, 35, 0.44); }
.silver-orbit i:first-child { inset: 35%; border-color: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(89,80,77,.11), 0 20px 50px rgba(70,55,53,.15); }
.silver-orbit i:nth-child(2) { width: 18%; height: 18%; background: var(--wine); border: 0; }
.silver-orbit i:nth-child(3) { width: 64%; height: 64%; border-style: dashed; opacity: .45; animation: orbit 18s linear infinite; }
.silver-orbit b { position: relative; z-index: 1; color: #fff; font: 400 clamp(30px, 5vw, 70px)/1 Didot, Georgia, serif; transform: rotate(17deg); }
.final-copy { position: relative; z-index: 1; max-width: 510px; }
.last h2 { max-width: 620px; }
.last span {
  display: block;
  margin-top: 25px;
  color: #746969;
  font: 15px/1.8 "Songti SC", STSong, serif;
  letter-spacing: .08em;
}
.final-trigger {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 0 0 7px;
  color: var(--wine);
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font: 9px "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .16em;
  cursor: pointer;
}
.final-trigger i { font: 400 20px/8px Didot, Georgia, serif; transition: transform .5s ease; }
.final-note { display: block; max-height: 0; overflow: hidden; margin-top: 0; color: var(--wine); font: 400 22px/1.45 "Songti SC", STSong, serif; letter-spacing: .07em; opacity: 0; transition: max-height .8s ease, margin-top .8s ease, opacity .6s ease; }
.last.open .silver-orbit { transform: rotate(343deg) scale(1.05); }
.last.open .final-trigger i { transform: rotate(45deg); }
.last.open .final-note { max-height: 100px; margin-top: 27px; opacity: 1; }
@keyframes orbit { to { transform: rotate(360deg); } }
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 21px;
  color: var(--wine);
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.reveal {
  position: relative;
  isolation: isolate;
}
.reveal:after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  background: rgba(21, 15, 15, 0.7);
  pointer-events: none;
  transition: opacity 1.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.lit:after {
  opacity: 0;
}
.reveal:not(.lit) > * {
  filter: brightness(0.66) saturate(0.56);
  transition: filter 1.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.lit > * {
  filter: none;
}
@media (max-width: 680px) {
  .nav {
    height: 60px;
    grid-template-columns: 1fr 50px 78px;
  }
  .nav a:nth-child(2) {
    display: none;
  }
  .nav > * {
    padding: 0 10px;
    font-size: 8px;
  }
  .logo {
    font-size: 28px !important;
  }
  .hero-scroll {
    height: 175svh;
  }
  .hero-object {
    left: 29%;
    width: 57vw;
    height: 78vw;
  }
  .hero-portrait {
    object-position: 65% center;
    transform: translate3d(
        calc(var(--progress) * -22vw),
        calc(var(--progress) * -1vh),
        0
      )
      scale(calc(1.025 + var(--progress) * 0.18));
  }
  .kicker {
    top: 76px;
    left: 18px;
    font-size: 7px;
  }
  .hero-copy {
    left: 19px;
    bottom: 49px;
  }
  .hero-copy h1 {
    font-size: 56px;
  }
  .hero-copy p {
    font-size: 13px;
  }
  .hero > small {
    right: 14px;
    bottom: 14px;
    font-size: 7px;
  }
  .scroll-cue {
    bottom: 16px;
    font-size: 7px;
  }
  .section-label {
    padding: 17px 14px;
  }
  .section-label span:last-child {
    display: none;
  }
  .objects {
    display: flex;
    overflow-x: auto;
  }
  .objects article {
    flex: 0 0 52vw;
  }
  .piece {
    height: 64vw;
  }
  .objects p {
    font-size: 16px;
  }
  .objects small {
    font-size: 12px;
  }
  .ritual,
  .letter {
    grid-template-columns: 1fr;
  }
  .ritual-photo {
    min-height: 64svh;
  }
  .ritual-copy {
    min-height: 64svh;
    padding: 62px 25px;
  }
  .ritual-copy h2,
  .letter h2 {
    font-size: 38px;
  }
  .letter > div {
    min-height: 65svh;
    padding: 70px 25px;
    border: 0;
  }
  .letter aside {
    min-height: 55svh;
  }
  .letter aside b {
    font-size: 95px;
  }
  .last {
    min-height: 68svh;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 75px 25px;
    text-align: center;
  }
  .silver-orbit {
    width: min(66vw, 300px);
    justify-self: center;
  }
  .last h2 {
    font-size: 31px;
  }
  footer {
    padding: 17px 14px;
    font-size: 7px;
  }
  footer span:nth-child(2) {
    display: none;
  }
}
