:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #120f16;
  color: #fff8ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: visible;
}

body {
  min-height: 100vh;
}

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 8, 12, .24), rgba(8, 8, 12, .42)),
    radial-gradient(circle at 18% 24%, rgba(255, 211, 105, .42) 0 9%, transparent 29%),
    radial-gradient(circle at 82% 12%, rgba(87, 196, 255, .34) 0 8%, transparent 27%),
    radial-gradient(circle at 72% 80%, rgba(255, 69, 86, .42) 0 10%, transparent 31%),
    linear-gradient(132deg, #201019 0%, #171a2c 39%, #21120f 72%, #100d13 100%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -3;
  background:
    conic-gradient(from 20deg at 50% 50%, transparent 0 12deg, rgba(255, 245, 205, .14) 13deg 18deg, transparent 19deg 47deg),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, .075) 0 1px, transparent 2px 16px);
  animation: rotateSky 42s linear infinite;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, #000 0 36%, transparent 72%);
  animation: gridDrift 12s linear infinite;
}

.noise {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: .18;
  background-image:
    repeating-radial-gradient(circle at 11% 12%, rgba(255,255,255,.8) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(100deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.spotlight {
  position: absolute;
  top: -18vh;
  width: 36vw;
  height: 130vh;
  opacity: .58;
  filter: blur(18px);
  transform-origin: top center;
  mix-blend-mode: screen;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

.spotlight-a {
  left: 1vw;
  background: linear-gradient(rgba(255, 224, 132, .8), transparent 82%);
  animation: sweepA 8s ease-in-out infinite alternate;
}

.spotlight-b {
  right: 1vw;
  background: linear-gradient(rgba(72, 203, 255, .74), transparent 82%);
  animation: sweepB 9s ease-in-out infinite alternate;
}

.ambient-title {
  position: absolute;
  left: -3vw;
  top: 12vh;
  z-index: 1;
  max-width: none;
  color: rgba(255, 250, 229, .09);
  font-size: clamp(4rem, 10vw, 11rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: .9;
  white-space: nowrap;
  filter: blur(1.8px);
  animation: ambientSlide 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.site-detail {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.glass-detail {
  left: clamp(18px, 3vw, 58px);
  bottom: clamp(28px, 5vh, 76px);
  width: clamp(280px, 28vw, 500px);
  aspect-ratio: 1.5;
  opacity: 0;
  filter: invert(1) blur(.15px) drop-shadow(0 0 20px rgba(255, 223, 114, .28));
  mix-blend-mode: screen;
  background: url("glass.png") center / contain no-repeat;
  transform: scaleX(-1);
  transition: opacity .24s ease;
}

.glass-detail.is-visible {
  opacity: .5;
}

.submarine-detail {
  left: clamp(10px, 2vw, 46px);
  bottom: clamp(20px, 4vh, 66px);
  width: clamp(300px, 31vw, 560px);
  aspect-ratio: 1.5;
  opacity: 0;
  filter: blur(.12px) drop-shadow(0 0 20px rgba(255, 223, 114, .32));
  mix-blend-mode: screen;
  background: url("submarine.png") center / contain no-repeat;
  transition: opacity .24s ease;
}

.submarine-detail.is-visible {
  opacity: .52;
}

.abbey-detail {
  left: clamp(10px, 2vw, 46px);
  bottom: clamp(28px, 5vh, 76px);
  width: clamp(360px, 38vw, 680px);
  aspect-ratio: 1.88;
  opacity: 0;
  filter: invert(1) blur(.15px) drop-shadow(0 0 18px rgba(83, 199, 255, .28));
  mix-blend-mode: screen;
  background: url("abbey.png") center / contain no-repeat;
  transition: opacity .24s ease;
}

.abbey-detail.is-visible {
  opacity: .42;
}

.deck {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100vw - 36px));
  min-height: min(620px, calc(100vh - 156px));
  display: grid;
  align-items: center;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .55);
}

.slide {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 13, 20, .86), rgba(18, 20, 32, .62)),
    radial-gradient(circle at 14% 18%, rgba(255, 224, 132, .16), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(83, 199, 255, .14), transparent 35%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .5),
    inset 0 0 44px rgba(255, 255, 255, .05);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .32s ease, transform .32s ease;
  pointer-events: none;
}

.slide > :not(.design-phrase, .slide-detail) {
  position: relative;
  z-index: 2;
}

.slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.design-phrase {
  position: absolute;
  top: clamp(24px, 4vw, 52px);
  right: clamp(26px, 4.4vw, 68px);
  z-index: 1;
  max-width: min(620px, 58%);
  color: rgba(255, 248, 222, .28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.45vw, 2.6rem);
  font-weight: 950;
  line-height: .86;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(255, 248, 222, .28),
    0 0 28px rgba(255, 223, 114, .18),
    0 18px 42px rgba(0, 0, 0, .22);
  filter: blur(.55px);
  opacity: .9;
  transform: none;
  pointer-events: none;
  user-select: none;
}

.design-phrase::after {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 8px),
    linear-gradient(90deg, transparent, rgba(255, 223, 114, .16), transparent);
  mix-blend-mode: screen;
  opacity: .34;
}

.slide-detail {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: #ffdf72;
  font-size: clamp(.8rem, 1.4vw, 1rem);
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fff7d9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: 0;
  filter: drop-shadow(0 0 18px rgba(255, 205, 85, .45));
}

.record {
  position: absolute;
  right: max(-96px, -6vw);
  bottom: max(-120px, -9vw);
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(250px, 36vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffdf72 0 8%, #101014 8.5% 15%, transparent 15.5%),
    repeating-radial-gradient(circle, #15151d 0 6px, #09090d 7px 10px);
  box-shadow: 0 0 80px rgba(0, 0, 0, .72);
  animation: spin 9s linear infinite;
}

.label {
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 8%, rgba(0, 0, 0, .22) 8.5% 12%, transparent 12.5%),
    url("album.jpg") center / cover no-repeat;
  box-shadow:
    0 0 0 6px rgba(255, 223, 114, .18),
    inset 0 0 18px rgba(0, 0, 0, .34);
}

.slide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 58px);
  gap: clamp(14px, 2vh, 22px);
  max-width: 980px;
  margin: clamp(30px, 4vw, 54px) 0 0;
  padding: 0;
  list-style: none;
}

.slide li {
  position: relative;
  padding-left: 34px;
  color: rgba(255, 248, 239, .92);
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.18;
}

.slide li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffdf72;
  box-shadow: 0 0 18px rgba(255, 223, 114, .65);
}

.deck-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transform: translateX(-50%);
}

.nav-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: #fff8ef;
  background: rgba(13, 12, 18, .62);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
  font: inherit;
  font-size: 2.15rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.nav-button:hover {
  border-color: rgba(255, 223, 114, .7);
  color: #ffdf72;
}

.slide-dots {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(13, 12, 18, .54);
  backdrop-filter: blur(16px);
}

.slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .34);
}

.slide-dot.is-active {
  background: #ffdf72;
  box-shadow: 0 0 16px rgba(255, 223, 114, .8);
}

@keyframes rotateSky {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gridDrift {
  to {
    background-position: 84px 84px;
  }
}

@keyframes sweepA {
  from {
    transform: rotate(-18deg);
  }
  to {
    transform: rotate(21deg);
  }
}

@keyframes sweepB {
  from {
    transform: rotate(18deg);
  }
  to {
    transform: rotate(-22deg);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 18px rgba(255, 77, 87, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 87, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ambientSlide {
  to {
    translate: -8vw 3vh;
    opacity: .7;
  }
}

@media (max-width: 680px) {
  .stage {
    min-height: 560px;
  }

  .deck {
    min-height: calc(100vh - 132px);
    width: calc(100vw - 24px);
  }

  .slide {
    padding: 26px 22px;
  }

  .design-phrase {
    top: 22px;
    right: 18px;
    max-width: 76%;
    font-size: clamp(1rem, 4.7vw, 1.65rem);
    opacity: .68;
    transform: none;
  }

  .glass-detail {
    left: 14px;
    bottom: 74px;
    width: min(62vw, 260px);
  }

  .glass-detail.is-visible {
    opacity: .34;
  }

  .submarine-detail {
    left: 10px;
    bottom: 72px;
    width: min(68vw, 300px);
  }

  .submarine-detail.is-visible {
    opacity: .38;
  }

  .abbey-detail {
    left: 10px;
    bottom: 78px;
    width: min(82vw, 360px);
  }

  .abbey-detail.is-visible {
    opacity: .34;
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 3.4rem);
    line-height: .96;
  }

  .slide ul {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }

  .slide li {
    padding-left: 28px;
    font-size: clamp(.96rem, 4.8vw, 1.26rem);
  }

  .slide li::before {
    width: 10px;
    height: 10px;
  }

  .deck-controls {
    bottom: 18px;
    gap: 12px;
  }

  .nav-button {
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
  }

  .record {
    opacity: .72;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
