:root {
  --black: #000;
  --electric: #9bd9ff;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

.snap-shell {
  scroll-snap-type: y proximity;
}

.panel {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  scroll-snap-align: start;
}

/* HOME */
.hero-link {
  display: grid;
  background: #000;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 80ms linear, transform 180ms ease-out;
}

/* Blue glow that makes the lightning already in the artwork flare brighter. */
.lightning-glow,
.lightning-whiteout {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.lightning-glow {
  z-index: 1;
  background:
    radial-gradient(circle at 7% 42%, rgba(122, 205, 255, .95), transparent 24%),
    radial-gradient(circle at 38% 45%, rgba(105, 198, 255, .90), transparent 27%),
    radial-gradient(circle at 79% 52%, rgba(122, 205, 255, .95), transparent 31%),
    radial-gradient(circle at 97% 38%, rgba(175, 225, 255, .85), transparent 22%);
  mix-blend-mode: screen;
}

.lightning-whiteout {
  z-index: 2;
  background: rgba(225, 244, 255, .45);
  mix-blend-mode: screen;
}

.hero.flash-1 .hero-art {
  filter: brightness(1.7) contrast(1.08) saturate(1.15);
}

.hero.flash-1 .lightning-glow {
  animation: glowFlash 520ms ease-out;
}

.hero.flash-1 .lightning-whiteout {
  animation: whiteFlash 520ms ease-out;
}

.hero.flash-2 .hero-art {
  filter: brightness(2.15) contrast(1.12) saturate(1.2);
}

.hero.flash-2 .lightning-glow {
  animation: glowFlashStrong 650ms ease-out;
}

.hero.flash-2 .lightning-whiteout {
  animation: whiteFlashStrong 650ms ease-out;
}

@keyframes glowFlash {
  0% { opacity: 0; }
  5% { opacity: .95; }
  13% { opacity: .12; }
  22% { opacity: .78; }
  34% { opacity: .05; }
  100% { opacity: 0; }
}

@keyframes whiteFlash {
  0% { opacity: 0; }
  5% { opacity: .72; }
  11% { opacity: .03; }
  21% { opacity: .42; }
  31% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes glowFlashStrong {
  0% { opacity: 0; }
  4% { opacity: 1; }
  10% { opacity: .08; }
  17% { opacity: .95; }
  26% { opacity: .08; }
  34% { opacity: .72; }
  47% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes whiteFlashStrong {
  0% { opacity: 0; }
  4% { opacity: .92; }
  9% { opacity: .04; }
  17% { opacity: .68; }
  25% { opacity: 0; }
  34% { opacity: .32; }
  44% { opacity: 0; }
  100% { opacity: 0; }
}

/* VIDEO + SPOTIFY PAGES */
.media-panel {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 15%, rgba(82, 160, 220, .18), transparent 28%),
    linear-gradient(180deg, #020305 0%, #000 55%, #05070a 100%);
}

.media-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .8;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, .018) 0 1px,
    transparent 1px 6px
  );
}

.media-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 180px 55px #000;
}

.section-inner {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
  padding: 70px 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

.panel.is-visible .section-inner {
  opacity: 1;
  transform: translateY(0);
}

.video-frame {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(213, 235, 255, .35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05),
    0 0 45px rgba(78, 166, 230, .22),
    0 35px 80px rgba(0, 0, 0, .7);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spotify-wrap {
  width: min(100%, 760px);
  padding: 10px;
  border: 1px solid rgba(213, 235, 255, .25);
  background: rgba(255, 255, 255, .025);
  box-shadow: 0 0 45px rgba(78, 166, 230, .16);
}

.spotify-wrap iframe {
  display: block;
  border: 0;
  border-radius: 12px;
}

@media (max-width: 760px) {
  .hero-art {
    object-fit: contain;
    background: #000;
  }

  .section-inner {
    width: min(100% - 24px, 1100px);
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lightning-glow,
  .lightning-whiteout {
    display: none;
  }
}
