:root {
  --bg: #050505;
  --text: #ffffff;
  --sans: "Inter", sans-serif;
  --serif: "Hedvig Letters Serif", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

.media-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 2s ease;
}

.is-loaded .media-stack { opacity: 1; }

.is-about .media-stack {
  opacity: 0;
  transition-duration: 0.9s;
}

.media-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
}

.media-layer.is-active {
  opacity: 1;
  z-index: 1;
}

.media-layer__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s var(--ease-out);
}

.media-layer.is-active .media-layer__frame { opacity: 0.4; }

.is-detail .media-layer.is-active .media-layer__frame { opacity: 0.9; }

.media-layer__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.media-layer__poster {
  pointer-events: none;
  z-index: 1;
}

.media-layer.media-playing .media-layer__poster {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.media-layer__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 135%;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease 0.15s;
}

@media (max-width: 640px) {
  .media-layer__caption { font-size: 13px; }
}

.is-detail .media-layer.is-active .media-layer__caption {
  opacity: 1;
  pointer-events: auto;
}

.media-layer__caption p {
  width: min(450px, 100%);
  margin: 0 0 1em;
}

.media-layer__title {
  font-family: var(--sans);
  font-variation-settings: "opsz" 30, "wght" 575;
  letter-spacing: -0.01em;
}

.media-layer__client {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 80px;
  text-align: center;
  font-family: var(--sans);
  font-variation-settings: "wght" 475;
  font-size: 10px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(5, 5, 5, 0) 50%,
    rgba(5, 5, 5, 0.2) 70%,
    rgba(5, 5, 5, 0.4) 85%,
    rgba(5, 5, 5, 0.7) 100%);
  opacity: 0;
  transition: opacity 2.2s ease 0.3s;
}

.is-loaded .vignette { opacity: 1; }

.is-about .vignette { opacity: 0; }

@media (max-width: 640px) {
  .vignette {
    background: radial-gradient(ellipse at center,
      rgba(5, 5, 5, 0) 55%,
      rgba(5, 5, 5, 0.15) 75%,
      rgba(5, 5, 5, 0.4) 100%);
  }
}

.fixed-label {
  position: fixed;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1.4s ease 0.3s;
}

.is-loaded .fixed-label { opacity: 1; }

.fixed-label--top {
  display: flex;
  flex-direction: column;
}

.fixed-label__name,
.fixed-label__title {
  line-height: 1.25;
}

.fixed-label__name {
  display: block;
  font-family: var(--sans);
  font-variation-settings: "opsz" 30, "wght" 585;
  font-size: clamp(15px, 1.7vw, 17px);
  letter-spacing: -0.01em;
}

.fixed-label__title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(14px, 1.6vw, 16px);
  letter-spacing: -0.01em;
  color: var(--text);
}

.fixed-label--bottom {
  top: auto;
  bottom: 25px;
  padding: 5px;
  font-family: var(--sans);
  font-variation-settings: "opsz" 30, "wght" 575;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: opacity 1.2s ease 0.6s;
}

@media (max-width: 640px) {
  .fixed-label--bottom {
    bottom: 18px;
    padding: 16px 28px 12px;
  }
}

.is-detail .fixed-label--bottom,
.is-about .fixed-label--bottom {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.close-btn {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.45s var(--ease-out);
}

.is-detail .close-btn,
.is-about .close-btn {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1.2s ease 0.6s, transform 0.45s var(--ease-out);
}

.close-btn:hover { transform: translateX(-50%) scale(1.12); }

.list-mask {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.3s ease;
  mask-image: linear-gradient(to bottom,
    transparent 0%, black 14%, black 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, black 14%, black 86%, transparent 100%);
}

.is-loaded .list-mask { opacity: 1; }

.is-detail .list-mask,
.is-about .list-mask {
  opacity: 0;
}

.list {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 50svh;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overflow-anchor: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.is-settled .list {
  scroll-snap-type: y proximity;
}

.list::-webkit-scrollbar { display: none; }

.is-detail .list,
.is-about .list {
  pointer-events: none;
}

.list__item {
  flex: none;
  padding-block: 1px;
  font-family: var(--sans);
  font-variation-settings: "opsz" 32, "wght" 515;
  font-size: clamp(24px, 4.6vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--text);
  opacity: 0.3;
  scroll-snap-align: center;
  transition: opacity 0.35s ease;
  cursor: pointer;
  transform: translateY(14px);
}

.is-loaded .list__item {
  animation: item-in 1.6s var(--ease-out) forwards;
  animation-delay: var(--item-delay, 0ms);
}

@keyframes item-in {
  to { transform: none; }
}

.list__item.is-active { opacity: 1; }

@media (max-width: 640px) {
  .list__item {
    white-space: normal;
    text-align: center;
    max-width: 90vw;
    line-height: 1.2;
  }
}

.about {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

.is-about .about {
  opacity: 1;
  pointer-events: auto;
}

.about__inner {
  width: min(450px, 100%);
  cursor: auto;
}

.about__lede,
.about__meta {
  margin: 0 0 1em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 135%;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .about__lede,
  .about__meta {
    font-size: 14px;
  }
}

.about__accent {
  font-family: var(--sans);
  font-variation-settings: "opsz" 30, "wght" 575;
  font-size: inherit;
  letter-spacing: -0.01em;
}

.about__meta {
  margin: 0;
}

.about a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about a:hover { text-decoration: none; }

.reveal { opacity: 0; }

.reveal.reveal-play {
  animation: reveal-scale 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.about__lede.reveal-play { animation-delay: 0.5s; }
.about__meta.reveal-play { animation-delay: 0.7s; }

.media-layer__caption p.reveal-play { animation-delay: 0.5s; }
.media-layer__client.reveal-play { animation-delay: 0.75s; }

@keyframes reveal-scale {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fixed-label,
  .vignette,
  .media-stack,
  .media-layer,
  .media-layer__frame,
  .media-layer__caption,
  .list-mask,
  .list__item,
  .about,
  .close-btn {
    transition: none;
  }
  .list__item,
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}
