:root {
  --black: #020606;
  --cyan-deep: #003f46;
  --cyan-mid: #007782;
  --cyan-bright: #24f8ff;
  --cyan-soft: rgba(36, 248, 255, 0.45);
  --active-rgb: 36, 248, 255;
  --active-color: rgb(var(--active-rgb));
  --active-soft: rgba(var(--active-rgb), 0.42);
  --active-dim: rgba(var(--active-rgb), 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--active-color);
  background: var(--black);
  font-family: "Press Start 2P", monospace;
}

body.palette-audio {
  --active-rgb: 255, 35, 199;
}

body.palette-visual {
  --active-rgb: 50, 255, 118;
}

body.palette-web {
  --active-rgb: 255, 230, 50;
}

body.intro-locked {
  overflow: hidden;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 119, 130, 0.18), transparent 38rem),
    var(--black);
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.36;
}

.banner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 45vh;
  background: #050505;
  border-bottom: 2px solid rgba(36, 248, 255, 0.28);
  overflow: hidden;
}

.banner video {
  display: block;
  width: 100%;
  height: min(29.17vw, 45vh);
  object-fit: cover;
  object-position: center;
}

.coming-soon {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - min(29.17vw, 45vh));
  place-items: center;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem) 1rem;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(0, 35, 39, 0.76), rgba(2, 6, 6, 0.9)),
    var(--black);
}

.scanlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.coming-soon::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(36, 248, 255, 0.12), transparent),
    radial-gradient(circle at center, rgba(0, 119, 130, 0.2), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: soft-drift 12s linear infinite;
}

.scanlines {
  z-index: -1;
  background: repeating-linear-gradient(
    0deg,
    rgba(36, 248, 255, 0.045) 0,
    rgba(36, 248, 255, 0.045) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.7;
}

.content {
  width: min(100%, 68rem);
  text-align: center;
}

.status {
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  max-width: 63rem;
  color: rgba(180, 255, 255, 0.78);
  font-size: clamp(0.58rem, 1.35vw, 0.88rem);
  line-height: 1.8;
  text-shadow: 0 0 0.8rem rgba(36, 248, 255, 0.42);
}

.owners {
  margin: clamp(1rem, 3vw, 1.8rem) auto 0;
  max-width: 58rem;
  color: rgba(205, 255, 255, 0.7);
  font-size: clamp(0.48rem, 1.08vw, 0.72rem);
  line-height: 2;
  overflow-wrap: anywhere;
  text-shadow: 0 0 0.7rem rgba(36, 248, 255, 0.22);
}

.owners a {
  color: var(--cyan-bright);
  text-decoration: none;
  text-shadow:
    0 0 0.35rem rgba(36, 248, 255, 0.72),
    0 0 1rem rgba(36, 248, 255, 0.36);
}

.enter-button {
  position: relative;
  display: inline-flex;
  min-height: 3rem;
  margin-top: clamp(1.3rem, 3.5vw, 2.5rem);
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem 0.85rem 1.2rem;
  border: 1px solid rgba(36, 248, 255, 0.58);
  background: rgba(0, 24, 28, 0.36);
  box-shadow:
    0 0 0.8rem rgba(36, 248, 255, 0.26),
    inset 0 0 1.2rem rgba(36, 248, 255, 0.12);
  cursor: pointer;
  color: var(--cyan-bright);
  font: inherit;
  text-transform: none;
}

.enter-button::before {
  position: absolute;
  inset: -0.55rem;
  content: "";
  border: 1px solid rgba(36, 248, 255, 0.16);
}

.enter-button span {
  width: 0.72rem;
  height: 0.72rem;
  border-right: 3px solid var(--cyan-bright);
  border-bottom: 3px solid var(--cyan-bright);
  transform: translateY(-0.18rem) rotate(45deg);
  filter: drop-shadow(0 0 0.45rem rgba(36, 248, 255, 0.9));
  animation: arrow-pulse 2.3s ease-in-out infinite;
}

.enter-button strong {
  font-size: clamp(0.54rem, 1.15vw, 0.72rem);
  font-weight: 400;
  line-height: 1;
  text-shadow:
    0 0 0.45rem rgba(36, 248, 255, 0.78),
    0 0 1rem rgba(36, 248, 255, 0.36);
}

.enter-button:hover,
.enter-button:focus-visible {
  outline: none;
  background: rgba(0, 68, 76, 0.38);
  box-shadow:
    0 0 1.1rem rgba(36, 248, 255, 0.48),
    inset 0 0 1.4rem rgba(36, 248, 255, 0.2);
}

.enter-button:focus-visible {
  border-color: #f2ffff;
}

.signal-transition {
  position: relative;
  z-index: 1;
  min-height: clamp(22rem, 56vh, 40rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 6, 6, 0.94), rgba(0, 27, 31, 0.72) 44%, rgba(1, 10, 11, 0.5)),
    linear-gradient(rgba(36, 248, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 248, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 100% 2.25rem, 2.25rem 100%;
  border-top: 1px solid rgba(36, 248, 255, 0.08);
}

.signal-transition::before,
.signal-transition::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.signal-transition::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(36, 248, 255, 0.13), transparent 24rem),
    linear-gradient(180deg, rgba(2, 6, 6, 0.6), transparent 38%, rgba(36, 248, 255, 0.055) 68%, transparent);
  opacity: 0.82;
}

.signal-transition::after {
  background: repeating-linear-gradient(
    0deg,
    rgba(36, 248, 255, 0.03) 0,
    rgba(36, 248, 255, 0.03) 1px,
    transparent 1px,
    transparent 8px
  );
  opacity: 0.74;
}

.noise-story {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 330vh;
  margin-top: clamp(-24rem, -34vh, -12rem);
  padding: clamp(3rem, 8vw, 7rem) 1.25rem clamp(8rem, 16vw, 14rem);
  background:
    linear-gradient(180deg, rgba(2, 6, 6, 0.94), rgba(0, 22, 25, 0.58) 44%, rgba(0, 7, 8, 0.42)),
    radial-gradient(circle at 50% 20%, rgba(36, 248, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 50% 76%, rgba(36, 248, 255, 0.2), transparent 35rem);
}

.noise-story::before,
.story-scanlines {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.noise-story::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(36, 248, 255, 0.035) 0,
    rgba(36, 248, 255, 0.035) 2px,
    transparent 2px,
    transparent 11px
  );
  opacity: 0.62;
}

.story-scanlines {
  background: repeating-linear-gradient(
    0deg,
    rgba(36, 248, 255, 0.036) 0,
    rgba(36, 248, 255, 0.036) 1px,
    transparent 1px,
    transparent 9px
  );
  opacity: 0.72;
}

.noise-story__content {
  position: relative;
  display: flex;
  min-height: 300vh;
  width: min(100%, 76rem);
  margin: 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(18rem, 42vh, 34rem);
  text-align: center;
}

.story-line {
  margin: 0;
  will-change: transform;
  color: rgba(205, 255, 255, 0.9);
  font-size: clamp(0.78rem, 2.45vw, 1.55rem);
  line-height: 2.05;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 0.8rem rgba(36, 248, 255, 0.4),
    0 0 1.8rem rgba(0, 119, 130, 0.38);
}

.story-line span,
.story-line a {
  color: var(--cyan-bright);
  text-decoration: none;
  text-shadow:
    0 0 0.45rem rgba(36, 248, 255, 0.86),
    0 0 1.5rem rgba(36, 248, 255, 0.42);
}

.story-line--lead {
  font-size: clamp(0.95rem, 3vw, 2rem);
}

.story-line--quiet {
  color: rgba(235, 255, 255, 0.78);
  font-size: clamp(0.74rem, 2.2vw, 1.28rem);
}

.story-line--noise {
  color: #f2ffff;
  font-size: clamp(1.25rem, 5.7vw, 4.6rem);
  line-height: 1.45;
  text-shadow:
    0 0 0.55rem rgba(36, 248, 255, 0.9),
    0 0 1.6rem rgba(36, 248, 255, 0.58),
    0 0 3.4rem rgba(0, 119, 130, 0.8);
}

.story-line--contact {
  color: rgba(205, 255, 255, 0.84);
  font-size: clamp(0.62rem, 1.75vw, 1rem);
  line-height: 2.1;
}

.play-button,
.icon-button {
  position: relative;
  min-height: 3rem;
  border: 1px solid rgba(var(--active-rgb), 0.58);
  background: rgba(2, 6, 6, 0.58);
  box-shadow:
    0 0 0.9rem rgba(var(--active-rgb), 0.24),
    inset 0 0 1.1rem rgba(var(--active-rgb), 0.12);
  color: var(--active-color);
  cursor: pointer;
  font: inherit;
  line-height: 1.45;
  text-shadow: 0 0 0.55rem rgba(var(--active-rgb), 0.72);
}

.play-button:hover,
.play-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  outline: none;
  background: rgba(var(--active-rgb), 0.13);
  border-color: rgba(var(--active-rgb), 0.9);
}

.work-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(4rem, 9vw, 8rem) 1.25rem;
  border-top: 1px solid rgba(var(--active-rgb), 0.2);
  background:
    linear-gradient(180deg, rgba(2, 6, 6, 0.92), rgba(2, 6, 6, 0.7)),
    radial-gradient(circle at 18% 12%, rgba(var(--active-rgb), 0.18), transparent 27rem),
    radial-gradient(circle at 82% 68%, rgba(var(--active-rgb), 0.13), transparent 30rem);
  isolation: isolate;
}

.work-section::before,
.work-section::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.work-section::before {
  z-index: -2;
  background:
    repeating-linear-gradient(0deg, rgba(var(--active-rgb), 0.045) 0, rgba(var(--active-rgb), 0.045) 1px, transparent 1px, transparent 8px),
    repeating-linear-gradient(90deg, rgba(var(--active-rgb), 0.035) 0, rgba(var(--active-rgb), 0.035) 1px, transparent 1px, transparent 2.1rem);
  opacity: 0.64;
}

.work-section::after {
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(var(--active-rgb), 0.1), transparent);
  opacity: 0.45;
  transform: translateX(-18%);
  animation: soft-drift 11s linear infinite;
}

.work-section--audio {
  --active-rgb: 255, 35, 199;
}

.work-section--visual {
  --active-rgb: 50, 255, 118;
}

.work-section--web {
  --active-rgb: 255, 230, 50;
}

.work-section__inner {
  width: min(100%, 76rem);
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: 1.1rem;
  color: rgba(var(--active-rgb), 0.72);
  font-size: clamp(0.52rem, 1.1vw, 0.68rem);
  text-transform: uppercase;
  text-shadow: 0 0 0.8rem rgba(var(--active-rgb), 0.58);
}

.work-section h2 {
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  max-width: 66rem;
  color: #f8ffff;
  font-size: clamp(1rem, 4.5vw, 3.5rem);
  line-height: 1.45;
  text-shadow:
    0 0 0.8rem rgba(var(--active-rgb), 0.64),
    0 0 2.5rem rgba(var(--active-rgb), 0.3);
}

.audio-player {
  position: relative;
  display: grid;
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid rgba(var(--active-rgb), 0.52);
  background:
    linear-gradient(180deg, rgba(255, 35, 199, 0.1), rgba(2, 6, 6, 0.62)),
    rgba(2, 6, 6, 0.78);
  box-shadow:
    0 0 2rem rgba(var(--active-rgb), 0.22),
    inset 0 0 2.4rem rgba(var(--active-rgb), 0.1);
}

.audio-visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.audio-player__meta,
.audio-player__controls,
.track-progress,
.track-list,
.wave-bars {
  position: relative;
  z-index: 1;
}

.audio-player__meta {
  align-self: start;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.audio-player__meta p {
  margin: 0 0 0.75rem;
  color: #fff6ff;
  font-size: clamp(0.72rem, 1.8vw, 1.15rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.audio-player__meta span,
.track-list button {
  color: rgba(255, 232, 251, 0.74);
  font-size: clamp(0.48rem, 1vw, 0.62rem);
}

.audio-player__controls {
  display: flex;
  align-self: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

.icon-button {
  width: 3.4rem;
  padding: 0.45rem;
  font-size: 1.5rem;
}

.play-button {
  min-width: 9rem;
  padding: 0.8rem 1rem;
}

.track-progress {
  width: calc(100% - clamp(2rem, 6vw, 4rem));
  margin: auto auto 1rem;
  accent-color: var(--active-color);
}

.track-list {
  display: flex;
  align-self: end;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0 clamp(1rem, 3vw, 2rem) 6.2rem;
}

.track-list button {
  flex: 0 0 auto;
  max-width: 16rem;
  padding: 0.68rem 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(var(--active-rgb), 0.34);
  background: rgba(2, 6, 6, 0.66);
  color: rgba(255, 232, 251, 0.8);
  cursor: pointer;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-list button.is-active {
  border-color: rgba(var(--active-rgb), 0.85);
  color: #fff6ff;
  box-shadow: inset 0 0 1rem rgba(var(--active-rgb), 0.12);
}

.wave-bars {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  height: 4.5rem;
  align-items: end;
  gap: 0.28rem;
}

.wave-bars span {
  flex: 1 1 0;
  min-width: 0.16rem;
  height: 18%;
  background: linear-gradient(180deg, #fff6ff, rgba(var(--active-rgb), 0.72));
  box-shadow: 0 0 0.65rem rgba(var(--active-rgb), 0.6);
  transform-origin: bottom;
}

.visual-gallery {
  position: relative;
  display: grid;
  min-height: 70rem;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 4.4rem;
  gap: 0.95rem;
}

.visual-tile {
  position: relative;
  overflow: hidden;
  min-height: 10rem;
  border: 1px solid rgba(var(--active-rgb), 0.68);
  background:
    linear-gradient(135deg, rgba(50, 255, 118, 0.16), rgba(2, 6, 6, 0.72)),
    rgba(2, 6, 6, 0.82);
  box-shadow:
    0 0 1.15rem rgba(var(--active-rgb), 0.22),
    inset 0 0 1.8rem rgba(var(--active-rgb), 0.1);
}

.visual-tile:nth-child(1) {
  grid-area: 1 / 1 / span 5 / span 4;
}

.visual-tile:nth-child(2) {
  grid-area: 2 / 4 / span 4 / span 5;
  margin-left: -2rem;
}

.visual-tile:nth-child(3) {
  grid-area: 1 / 9 / span 6 / span 3;
}

.visual-tile:nth-child(4) {
  grid-area: 6 / 2 / span 4 / span 3;
}

.visual-tile:nth-child(5) {
  grid-area: 7 / 5 / span 5 / span 4;
  margin-top: -1.2rem;
}

.visual-tile:nth-child(6) {
  grid-area: 7 / 9 / span 4 / span 4;
}

.visual-tile:nth-child(7) {
  grid-area: 12 / 1 / span 4 / span 5;
}

.visual-tile:nth-child(8) {
  grid-area: 11 / 6 / span 6 / span 3;
}

.visual-tile:nth-child(9) {
  grid-area: 12 / 9 / span 5 / span 4;
}

.visual-tile img,
.web-frame img,
.web-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-tile img {
  display: block;
  opacity: 0.86;
  mix-blend-mode: screen;
  filter: saturate(1.2) contrast(1.15);
}

.visual-tile::before,
.web-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(0deg, rgba(var(--active-rgb), 0.08) 0, rgba(var(--active-rgb), 0.08) 1px, transparent 1px, transparent 6px);
  pointer-events: none;
}

.visual-tile__fallback {
  display: grid;
  height: 100%;
  min-height: inherit;
  place-items: center;
  padding: 1rem;
  color: rgba(230, 255, 235, 0.74);
  font-size: clamp(0.52rem, 1.1vw, 0.7rem);
  line-height: 1.7;
  text-align: center;
}

.web-reel {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.web-frame {
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
  min-height: clamp(20rem, 72vh, 44rem);
  border: 1px solid rgba(var(--active-rgb), 0.65);
  background:
    linear-gradient(135deg, rgba(255, 230, 50, 0.12), rgba(2, 6, 6, 0.78)),
    rgba(2, 6, 6, 0.84);
  box-shadow:
    0 0 1.5rem rgba(var(--active-rgb), 0.2),
    inset 0 0 1.7rem rgba(var(--active-rgb), 0.09);
}

.web-frame:nth-child(even) {
  width: min(100%, 60rem);
  margin-left: auto;
}

.web-frame:nth-child(odd) {
  width: min(100%, 66rem);
}

.web-frame__fallback {
  display: grid;
  min-height: inherit;
  place-items: center;
  padding: 1rem;
  color: rgba(255, 248, 202, 0.78);
  font-size: clamp(0.55rem, 1.25vw, 0.78rem);
  line-height: 1.8;
  text-align: center;
}

.glitch {
  position: relative;
  display: inline-block;
  margin: 0;
  max-width: 100%;
  color: var(--cyan-bright);
  font-size: clamp(1.35rem, 7vw, 4.8rem);
  line-height: 1.35;
  letter-spacing: 0;
  text-shadow:
    0 0 0.35rem rgba(36, 248, 255, 0.82),
    0 0 1.2rem var(--cyan-soft),
    0 0 2.4rem rgba(0, 119, 130, 0.7);
  animation: glow-pulse 5.5s ease-in-out infinite;
}

.glitch::before,
.glitch::after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  content: attr(data-text);
  opacity: 0.8;
  pointer-events: none;
}

.glitch::before {
  color: #f2ffff;
  text-shadow: -0.12rem 0 rgba(255, 255, 255, 0.22);
  clip-path: polygon(0 13%, 100% 8%, 100% 25%, 0 31%);
  transform: translate(-0.06em, 0);
  animation: slice-a 4.8s steps(1, end) infinite;
}

.glitch::after {
  color: #00aab6;
  text-shadow: 0.14rem 0 rgba(36, 248, 255, 0.32);
  clip-path: polygon(0 56%, 100% 48%, 100% 69%, 0 76%);
  transform: translate(0.04em, 0);
  animation: slice-b 6.2s steps(1, end) infinite;
}

@keyframes soft-drift {
  from {
    transform: translateX(-14%);
  }
  to {
    transform: translateX(14%);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.16);
  }
}

@keyframes arrow-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(-0.2rem) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(0.2rem) rotate(45deg);
  }
}

@keyframes slice-a {
  0%,
  84%,
  100% {
    clip-path: polygon(0 13%, 100% 8%, 100% 25%, 0 31%);
    transform: translate(-0.04em, 0);
  }
  86% {
    clip-path: polygon(0 34%, 100% 30%, 100% 43%, 0 47%);
    transform: translate(0.08em, -0.01em);
  }
  88% {
    clip-path: polygon(0 72%, 100% 66%, 100% 82%, 0 86%);
    transform: translate(-0.1em, 0.01em);
  }
  90% {
    clip-path: polygon(0 18%, 100% 15%, 100% 28%, 0 32%);
    transform: translate(0.02em, 0);
  }
}

@keyframes slice-b {
  0%,
  74%,
  100% {
    clip-path: polygon(0 56%, 100% 48%, 100% 69%, 0 76%);
    transform: translate(0.04em, 0);
  }
  76% {
    clip-path: polygon(0 40%, 100% 36%, 100% 50%, 0 55%);
    transform: translate(-0.07em, 0.01em);
  }
  78% {
    clip-path: polygon(0 7%, 100% 4%, 100% 17%, 0 20%);
    transform: translate(0.09em, -0.01em);
  }
  81% {
    clip-path: polygon(0 61%, 100% 58%, 100% 73%, 0 78%);
    transform: translate(0.01em, 0);
  }
}

@media (max-width: 640px) {
  .coming-soon {
    min-height: 62vh;
  }

  .signal-transition {
    min-height: 46vh;
  }

  .noise-story {
    min-height: 360vh;
    margin-top: -24vh;
  }

  .noise-story__content {
    min-height: 330vh;
    gap: 34vh;
  }

  .glitch {
    font-size: clamp(1.15rem, 10vw, 2.6rem);
  }

  .work-section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .audio-player {
    min-height: 32rem;
  }

  .audio-player__controls {
    align-self: start;
  }

  .visual-gallery {
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(9rem, auto);
  }

  .visual-tile,
  .visual-tile:nth-child(n) {
    grid-area: auto;
    margin: 0;
  }

  .visual-tile:nth-child(3n + 1) {
    grid-column: span 2;
  }

  .web-frame,
  .web-frame:nth-child(even),
  .web-frame:nth-child(odd) {
    position: relative;
    top: auto;
    width: 100%;
    min-height: 68vh;
  }

}

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