html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0a0a0a;
  color: #f5f5f7;
  letter-spacing: 0.01em;
}

:root {
  --slant: 18vh;
}

* {
  box-sizing: border-box;
}

.mobile-block {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  color: #f5f5f7;
  z-index: 1000;
  padding: 2rem;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.mobile-block .mb-kicker {
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.mobile-block .mb-title {
  font-weight: 100;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.mobile-block .mb-body {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.mobile-block .mb-hr {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.mobile-block .mb-signature {
  margin-top: 0.5rem;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
}

.panels {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  width: calc(100% + 2 * var(--slant));
  left: calc(var(--slant) * -1);
}

.panel {
  position: relative;
  flex: 0.8 1 0;
  height: 100%;
  clip-path: polygon(
    var(--slant) 0,
    100% 0,
    calc(100% - var(--slant)) 100%,
    0 100%
  );
  margin-left: calc(var(--slant) * -1);
  transition: flex-grow 1100ms cubic-bezier(0.76, 0, 0.24, 1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px);
  animation: panel-in 1000ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.panel::after {
  content: "";
  position: absolute;
  top: -8%;
  right: -1.5rem;
  width: 5rem;
  height: 116%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 38%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.03) 68%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.45;
  filter: blur(10px);
  transform: skewX(-11deg);
  z-index: 4;
  pointer-events: none;
}

.panel:last-child::after {
  display: none;
}

.panel:nth-child(1) {
  animation-delay: 120ms;
}

.panel:nth-child(2) {
  animation-delay: 240ms;
}

.panel:nth-child(3) {
  animation-delay: 360ms;
}

.panel:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

.panel:last-child {
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}

.panel.is-featured {
  flex-grow: 1.92;
}

.panels:hover .panel {
  flex-grow: 0.8;
}

.panels:hover .panel:hover,
.panel:focus-visible,
.panel.is-featured {
  flex-grow: 2.4;
}

@keyframes panel-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1) translate3d(0, 0, 0);
  transform-origin: center;
  transition:
    transform 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms ease;
  filter: grayscale(38%) brightness(0.88) contrast(1.03);
  backface-visibility: hidden;
}

.panel-music .panel-media {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: translate3d(0, 0, 0);
  animation: music-idle-drift 18s ease-in-out infinite alternate;
}

.panel:hover .panel-media,
.panel:focus-visible .panel-media,
.panel.is-featured .panel-media {
  filter: grayscale(0%) brightness(0.98) contrast(1.04) saturate(1.02);
  animation: kenburns 20s ease-in-out infinite alternate;
  will-change: transform, filter;
}

.panel-music:hover .panel-media,
.panel-music:focus-visible .panel-media,
.panel-music.is-featured .panel-media {
  animation: music-hover-drift 10s ease-in-out infinite alternate;
}

.panel:first-child:hover .panel-media,
.panel:first-child:focus-visible .panel-media {
  animation: gentle-drift 24s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate3d(-0.08%, -0.03%, 0);
  }
  50% {
    transform: scale(1.0015) translate3d(0.06%, 0.03%, 0);
  }
  100% {
    transform: scale(1.003) translate3d(0.1%, -0.03%, 0);
  }
}

@keyframes gentle-drift {
  0% {
    transform: scale(1) translate3d(-0.08%, 0.03%, 0);
  }
  100% {
    transform: scale(1.002) translate3d(0.08%, -0.03%, 0);
  }
}

@keyframes music-idle-drift {
  0% {
    transform: translate3d(-0.28%, -0.1%, 0);
  }
  100% {
    transform: translate3d(0.28%, 0.1%, 0);
  }
}

@keyframes music-hover-drift {
  0% {
    transform: translate3d(-0.75%, -0.18%, 0);
  }
  50% {
    transform: translate3d(0.5%, 0.14%, 0);
  }
  100% {
    transform: translate3d(0.75%, -0.12%, 0);
  }
}

.panel-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%),
    radial-gradient(ellipse 140% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 2;
}

.panel-grain,
.panel-dust,
.panel-dust-2,
.panel-sweep {
  pointer-events: none;
}

.panel-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.7 0'/></filter><rect width='220' height='220' filter='url(%23n)' opacity='0.9'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.18;
  z-index: 3;
}

.panel:hover .panel-grain,
.panel:focus-visible .panel-grain,
.panel.is-featured .panel-grain {
  opacity: 0.3;
  animation: grain-shift 1.5s steps(6) infinite;
}

@keyframes grain-shift {
  0% { background-position: 0 0; }
  20% { background-position: -18px 10px; }
  40% { background-position: 14px -12px; }
  60% { background-position: -10px 18px; }
  80% { background-position: 16px 8px; }
  100% { background-position: 0 0; }
}

.panel-dust,
.panel-dust-2 {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  mix-blend-mode: screen;
  transition:
    opacity 800ms ease,
    transform 900ms ease,
    filter 900ms ease;
}

.panel-dust {
  background-image:
    radial-gradient(4px 4px at 8% 90%, rgba(255, 230, 170, 0.98), transparent 68%),
    radial-gradient(3px 3px at 16% 74%, rgba(255, 196, 120, 0.88), transparent 68%),
    radial-gradient(4.5px 4.5px at 24% 84%, rgba(255, 244, 214, 0.9), transparent 70%),
    radial-gradient(3.5px 3.5px at 32% 94%, rgba(255, 208, 148, 0.8), transparent 68%),
    radial-gradient(5px 5px at 42% 78%, rgba(255, 173, 92, 0.82), transparent 70%),
    radial-gradient(3px 3px at 52% 62%, rgba(255, 214, 150, 0.86), transparent 68%),
    radial-gradient(4px 4px at 62% 86%, rgba(255, 245, 220, 0.86), transparent 69%),
    radial-gradient(3.5px 3.5px at 72% 70%, rgba(255, 160, 90, 0.72), transparent 68%),
    radial-gradient(4.5px 4.5px at 81% 92%, rgba(255, 233, 204, 0.78), transparent 70%),
    radial-gradient(3px 3px at 91% 48%, rgba(255, 210, 144, 0.72), transparent 66%),
    radial-gradient(2.5px 2.5px at 28% 34%, rgba(255, 236, 205, 0.54), transparent 66%),
    radial-gradient(3.5px 3.5px at 86% 64%, rgba(255, 188, 118, 0.6), transparent 68%);
  filter: blur(0.7px);
}

.panel-dust-2 {
  background-image:
    radial-gradient(2.5px 2.5px at 6% 56%, rgba(255, 236, 205, 0.58), transparent 64%),
    radial-gradient(3.5px 3.5px at 14% 22%, rgba(255, 181, 103, 0.5), transparent 66%),
    radial-gradient(2.5px 2.5px at 22% 66%, rgba(255, 220, 165, 0.55), transparent 64%),
    radial-gradient(4px 4px at 34% 80%, rgba(255, 217, 162, 0.6), transparent 67%),
    radial-gradient(2.5px 2.5px at 46% 28%, rgba(255, 245, 220, 0.62), transparent 64%),
    radial-gradient(3px 3px at 58% 72%, rgba(255, 170, 98, 0.46), transparent 64%),
    radial-gradient(4px 4px at 68% 90%, rgba(255, 156, 84, 0.46), transparent 66%),
    radial-gradient(2.5px 2.5px at 77% 54%, rgba(255, 220, 165, 0.52), transparent 64%),
    radial-gradient(3px 3px at 86% 66%, rgba(255, 200, 126, 0.48), transparent 64%),
    radial-gradient(2.5px 2.5px at 94% 38%, rgba(255, 235, 198, 0.44), transparent 62%);
  filter: blur(1.2px);
}

.panel:hover .panel-dust,
.panel:focus-visible .panel-dust,
.panel.is-featured:hover .panel-dust {
  opacity: 1;
  animation: ash-rise-a 13s linear infinite;
}

.panel:hover .panel-dust-2,
.panel:focus-visible .panel-dust-2,
.panel.is-featured:hover .panel-dust-2 {
  opacity: 0.92;
  animation: ash-rise-b 17s linear infinite;
}

@keyframes ash-rise-a {
  0% {
    opacity: 0;
    transform: translate3d(0, 16%, 0) scale(0.96);
  }
  12% {
    opacity: 1;
  }
  38% {
    transform: translate3d(-1.8%, -18%, 0) scale(1);
  }
  64% {
    transform: translate3d(2.4%, -48%, 0) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate3d(-0.8%, -96%, 0) scale(1.08);
  }
}

@keyframes ash-rise-b {
  0% {
    opacity: 0;
    transform: translate3d(0, 10%, 0) scale(0.92);
  }
  15% {
    opacity: 0.92;
  }
  42% {
    transform: translate3d(2.6%, -12%, 0) scale(0.98);
  }
  73% {
    transform: translate3d(-2.2%, -36%, 0) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate3d(1.6%, -82%, 0) scale(1.1);
  }
}

.panel-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.05) 52%,
    transparent 58%
  );
  background-size: 220% 220%;
  background-position: 160% 0%;
  opacity: 0;
  z-index: 4;
  mix-blend-mode: screen;
}

.panel:hover .panel-sweep,
.panel:focus-visible .panel-sweep,
.panel.is-featured .panel-sweep {
  opacity: 1;
  animation: sweep 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transition: opacity 700ms ease;
}

@keyframes sweep {
  0% { background-position: 160% 0%; }
  100% { background-position: -60% 0%; }
}

.panel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 3.5vw, 3.5rem);
  z-index: 5;
}

.panel:first-child .panel-content {
  padding-left: calc(var(--slant) + clamp(3rem, 6vw, 7rem));
}

.panel:last-child .panel-content {
  padding-right: calc(var(--slant) + clamp(3rem, 6vw, 7rem));
}

.panel-title {
  font-weight: 100;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #ffffff;
  font-size: clamp(2.4rem, 5.6vw, 8rem);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-sub {
  margin-top: 0.9rem;
  font-weight: 200;
  font-size: clamp(0.72rem, 0.8vw, 0.95rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 400ms,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 400ms;
}

.panel-sub::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  margin-right: 1rem;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1) 700ms;
}

.panel:hover .panel-title,
.panel:focus-visible .panel-title,
.panel:hover .panel-sub,
.panel:focus-visible .panel-sub {
  opacity: 1;
  transform: translateY(0);
}

.panel:hover .panel-sub::before,
.panel:focus-visible .panel-sub::before {
  width: 2.5rem;
}

.thin-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.9rem clamp(1.25rem, 2.5vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transform: translateY(10px);
  animation: footer-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 700ms forwards;
}

@keyframes footer-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thin-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform-origin: center;
  animation: line-in 1200ms cubic-bezier(0.22, 1, 0.36, 1) 500ms both;
}

@keyframes line-in {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.thin-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 200ms ease;
}

.thin-footer a:hover,
.thin-footer a:focus-visible {
  color: #ffffff;
}

@media (min-width: 2200px) {
  :root {
    --slant: 14vh;
  }

  .panel-title {
    font-size: clamp(4rem, 4.4vw, 9rem);
  }
}

@media (max-width: 1400px) {
  :root {
    --slant: 16vh;
  }
}

@media (max-height: 700px) {
  :root {
    --slant: 120px;
  }
}

@media (max-width: 899px) {
  .stage,
  .thin-footer {
    display: none !important;
  }

  .mobile-block {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
