:root {
  --bg: #04050b;
  --bg-raised: #090c1a;
  --ink: #eaf0ff;
  --dim: #7f88aa;
  --blue: #3b6dff;
  --cyan: #8fd8ff;
  --line: rgba(140, 165, 255, 0.16);
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-swipe: cubic-bezier(0.7, 0, 0.2, 1);
  --display: "Unbounded", sans-serif;
  --mono: "JetBrains Mono", monospace;

  /* Smoothed bass level 0..1, written by js/effects.js on every frame. */
  --pulse: 0;
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Golos Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: var(--blue);
  color: #fff;
}

main,
.site-header,
.footer {
  position: relative;
  z-index: 2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.accent {
  color: var(--blue);
}

.timecode {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

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

/* ---------- Page-wide layers ---------- */

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(3) infinite;
  will-change: transform;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-4%, 3%); }
  66% { transform: translate(3%, -2%); }
}

.flash {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(59, 109, 255, 0.35), transparent 70%);
  opacity: 0;
}

.flash.is-flashing {
  animation: flash 0.45s ease-out;
}

@keyframes flash {
  from { opacity: 1; }
  to { opacity: 0; }
}

.cursor {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: width 0.2s, height 0.2s, margin 0.2s;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-hovering {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: transparent;
  border: 1.5px solid #fff;
  mix-blend-mode: normal;
}

/* Blue and cyan copies of a word that split apart on the beat. */
[data-echo] {
  position: relative;
}

[data-echo]::before,
[data-echo]::after {
  content: attr(data-echo);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: calc(0.15 + var(--pulse) * 0.85);
}

[data-echo]::before {
  color: var(--blue);
  clip-path: inset(10% 0 55% 0);
  transform: translateX(calc(var(--pulse) * -9px));
}

[data-echo]::after {
  color: var(--cyan);
  clip-path: inset(60% 0 8% 0);
  transform: translateX(calc(var(--pulse) * 9px));
}

/* ---------- Entry screen ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 24px;
  background: var(--bg);
  transition: opacity 0.8s ease, visibility 0.8s;
}

.gate.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.gate-disc {
  position: relative;
  width: clamp(130px, 30vmin, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    #07080d;
  box-shadow: 0 0 80px rgba(59, 109, 255, 0.45);
  animation: spin 1.8s linear infinite;
}

.gate-disc img {
  position: absolute;
  inset: 31%;
  width: 38%;
  height: 38%;
  border-radius: 50%;
  object-fit: cover;
}

.gate-name {
  font: 900 clamp(34px, 9vw, 100px) / 0.9 var(--display);
  letter-spacing: -0.04em;
  text-align: center;
}

.gate-button {
  position: relative;
  overflow: hidden;
  padding: 18px 34px;
  border: 1px solid var(--ink);
  font: 700 14px var(--display);
  letter-spacing: 0.08em;
}

.gate-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform 0.35s var(--ease-swipe);
}

.gate-button:hover::before,
.gate-button:focus-visible::before {
  transform: none;
}

.gate-button span {
  position: relative;
}

.gate-skip {
  color: var(--dim);
  font-size: 14px;
}

.gate-skip:hover {
  color: var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px var(--gutter);
  padding-top: max(16px, env(safe-area-inset-top));
  mix-blend-mode: difference;
}

.logo {
  margin-right: auto;
  font: 900 20px var(--display);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--blue);
}

.nav {
  display: flex;
  gap: 26px;
  font: 400 14px var(--display);
}

.nav a {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 1;
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 99px;
  font: 500 13px var(--mono);
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq b {
  width: 3px;
  height: 100%;
  background: currentColor;
  transform-origin: bottom;
  transform: scaleY(0.25);
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 90px var(--gutter) 130px;
  overflow: hidden;
}

.title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform, opacity;
}

.title-word {
  font: 900 clamp(64px, 19vw, 300px) / 0.82 var(--display);
  letter-spacing: -0.05em;
  white-space: nowrap;
  transform: scale(calc(1 + var(--pulse) * 0.03));
}

.title-word.accent {
  text-shadow: 0 0 calc(30px + var(--pulse) * 70px) rgba(59, 109, 255, 0.55);
}

.stage {
  position: relative;
  z-index: 3;
  perspective: 1000px;
}

.deck {
  position: relative;
  width: min(60vmin, 520px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  will-change: transform;
}

.ring {
  position: absolute;
  inset: -16%;
  width: 132%;
  height: 132%;
  pointer-events: none;
}

.platter {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    0 0 calc(40px + var(--pulse) * 130px) rgba(59, 109, 255, calc(0.25 + var(--pulse) * 0.5)),
    0 40px 80px rgba(0, 0, 0, 0.8);
}

.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 3px),
    radial-gradient(circle, #0c0e17 0 33%, #050609 34% 35.5%, #0b0c13 36.5% 96%, #191b26 97% 100%);
  cursor: grab;
  touch-action: none;
  will-change: transform;
}

.label {
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px #000;
}

.label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.08);
}

.label-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.label-text text {
  font: 700 10.5px var(--display);
  letter-spacing: 1.2px;
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.5);
  stroke-width: 2.5px;
}

/* Light reflection stays put while the record spins under it. */
.sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 300deg,
    transparent 0 20deg,
    rgba(143, 216, 255, 0.13) 40deg,
    transparent 60deg 180deg,
    rgba(255, 255, 255, 0.08) 220deg,
    transparent 240deg
  );
  -webkit-mask: radial-gradient(circle, transparent 33%, #000 34%);
  mask: radial-gradient(circle, transparent 33%, #000 34%);
}

.spindle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #9aa3c0 45%, #3a3f55);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.arm {
  position: absolute;
  right: -8%;
  top: -6%;
  width: 26%;
  height: 80%;
  pointer-events: none;
  transform: translateZ(30px);
}

.arm-pivot {
  position: absolute;
  right: 0;
  top: 0;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #dfe4f5, #5b6178 55%, #1e2130);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.arm-rod {
  position: absolute;
  right: 24%;
  top: 13%;
  width: 5px;
  height: 88%;
  border-radius: 3px;
  background: linear-gradient(90deg, #9ca4c2, #eef1fb, #6e7590);
  transform-origin: 50% 0;
  transform: rotate(13deg);
  transition: transform 1.1s cubic-bezier(0.6, 0, 0.2, 1);
}

.arm.is-down .arm-rod {
  transform: rotate(28deg);
}

.arm-head {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 20px;
  height: 38px;
  border-radius: 3px;
  background: linear-gradient(#cfd5e8, #5f6680);
  transform: translateX(-50%) rotate(-18deg);
}

.now-playing {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(26px, 5vh, 54px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
}

.now-playing-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.now-playing-text b {
  font: 900 24px var(--display);
  letter-spacing: -0.02em;
}

.now-playing-text .timecode {
  color: var(--dim);
  font-size: 13px;
}

.play {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 0 0 calc(var(--pulse) * 16px) rgba(59, 109, 255, 0.35);
  transition: transform 0.15s;
}

.play:active {
  transform: scale(0.94);
}

/* Play triangle drawn with borders; turns into two pause bars while playing. */
.play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-color: transparent transparent transparent currentColor;
  border-width: 10px 0 10px 16px;
}

.is-playing .play-icon {
  width: 16px;
  height: 20px;
  margin: 0;
  border: 0;
  border-left: 5px solid;
  border-right: 5px solid;
}

.hero-links {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(26px, 5vh, 54px);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 700 12px var(--display);
  transition: background 0.2s, border-color 0.2s;
}

@media (max-width: 760px) {
  .hero {
    align-content: center;
    padding: calc(64px + 29vw) 16px 180px;
  }

  .title {
    justify-content: flex-start;
    padding-top: 86px;
  }

  .title-word {
    font-size: 21.5vw;
  }

  .deck {
    width: min(76vw, 400px);
  }

  .now-playing {
    left: 16px;
    bottom: 92px;
  }

  .hero-links {
    left: 16px;
    right: auto;
    bottom: 30px;
  }

  .hero-links a {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 760px) and (max-height: 700px) and (orientation: portrait) {
  .hero {
    padding-top: calc(80px + 29vw);
    padding-bottom: 170px;
  }

  .deck {
    width: min(64vw, 330px);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding: 70px var(--gutter) 24px;
  }

  .title {
    justify-content: center;
    padding: 0;
  }

  .title-word {
    font-size: 15vw;
  }

  .deck {
    width: 58svh;
  }

  .now-playing {
    bottom: 20px;
  }

  .hero-links {
    display: none;
  }
}

/* ---------- Crossing bands ---------- */

.cross {
  position: relative;
  z-index: 2;
  height: clamp(170px, 24vw, 300px);
  margin: 10px 0;
  overflow: hidden;
}

.band {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  padding: 16px 0;
  white-space: nowrap;
}

.band-blue {
  z-index: 2;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) rotate(-5deg);
}

.band-light {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-50%) rotate(4deg);
}

.band-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font: 900 clamp(24px, 4.2vw, 50px) var(--display);
  letter-spacing: -0.02em;
  will-change: transform;
}

.band-track i {
  font-size: 0.7em;
  font-style: normal;
  opacity: 0.55;
}

/* ---------- Sections ---------- */

.about,
.track,
.work,
.links {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter) 0;
}

.section-title {
  margin-bottom: clamp(30px, 5vw, 60px);
  font: 900 clamp(44px, 9vw, 130px) / 0.92 var(--display);
  letter-spacing: -0.05em;
}

/* About */

.manifest {
  font: 900 clamp(34px, 6.4vw, 92px) / 1.04 var(--display);
  letter-spacing: -0.045em;
}

.manifest-line {
  color: rgba(234, 240, 255, 0.13);
  transition: color 0.5s;
}

.manifest-line.is-lit {
  color: var(--ink);
}

.manifest em {
  font-style: normal;
}

.manifest-line.is-lit em {
  color: var(--blue);
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  margin-top: clamp(60px, 9vw, 120px);
}

.about-photo {
  position: relative;
  transform: rotate(-2deg);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(59, 109, 255, 0.25);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(143, 216, 255, 0.3);
  transform: translate(14px, 14px);
  pointer-events: none;
}

.about-text h2 {
  margin-bottom: 22px;
  font: 700 clamp(24px, 2.8vw, 36px) / 1.2 var(--display);
  letter-spacing: -0.02em;
}

.about-text p {
  max-width: 58ch;
  color: #b9c2e0;
}

.about-text p + p {
  margin-top: 14px;
}

.about-text .about-last {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 480px;
  }
}

/* Track player */

.player {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(59, 109, 255, 0.1), transparent 60%), var(--bg-raised);
}

.player-disc {
  position: relative;
  flex: none;
  width: clamp(110px, 17vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 10px #07080d, 0 0 0 11px var(--line);
}

.player-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-disc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9%;
  height: 9%;
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-50%, -50%);
}

.is-playing .player-disc {
  animation: spin 1.8s linear infinite;
}

.player-main {
  flex: 1;
  min-width: 0;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.player-artist {
  color: var(--dim);
  font-size: 14px;
}

.player-title {
  margin-top: 4px;
  font: 900 clamp(30px, 4.6vw, 58px) / 1 var(--display);
  letter-spacing: -0.04em;
}

.wave {
  display: block;
  width: 100%;
  height: 86px;
  margin-top: 20px;
  cursor: pointer;
  touch-action: none;
}

.player-time {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--dim);
  font-size: 12px;
}

@media (max-width: 600px) {
  .player {
    flex-direction: column;
    align-items: stretch;
  }

  .player-disc {
    width: 150px;
    margin: 6px auto 4px;
  }

  .wave {
    height: 64px;
  }
}

/* Services */

.rows {
  border-top: 1px solid var(--line);
}

.rows li {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.rows li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease-swipe);
}

.rows li span {
  display: block;
  padding: clamp(10px, 1.6vw, 18px) 0;
  color: rgba(234, 240, 255, 0.16);
  font: 900 clamp(34px, 7vw, 96px) / 1 var(--display);
  letter-spacing: -0.045em;
  transition: color 0.5s, transform 0.4s var(--ease-out);
}

.rows li.is-lit span {
  color: var(--ink);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 44px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--ink);
  color: var(--bg);
  transition: background 0.3s, color 0.3s;
}

.cta-label {
  font: 900 clamp(26px, 5vw, 66px) / 1 var(--display);
  letter-spacing: -0.035em;
}

.cta-handle {
  font: 500 15px var(--mono);
}

/* Links */

.link-list {
  border-top: 1px solid var(--line);
}

.link-list a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 40px;
  align-items: center;
  gap: 16px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: padding 0.3s;
}

.link-list a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease-swipe);
}

.link-list b {
  font: 900 clamp(24px, 4.4vw, 54px) / 1 var(--display);
  letter-spacing: -0.035em;
}

.link-list span {
  color: var(--dim);
  font-size: 14px;
}

.link-list i {
  font-size: 24px;
  font-style: normal;
  text-align: right;
}

@media (max-width: 560px) {
  .link-list a {
    grid-template-columns: 1fr 24px;
  }

  .link-list span {
    display: none;
  }
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(90px, 14vw, 180px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
  text-align: center;
}

.footer-member {
  color: var(--dim);
  font: 700 clamp(14px, 1.6vw, 20px) var(--display);
  letter-spacing: 0.3em;
}

.footer-cult {
  margin-top: 10px;
  font: 900 clamp(40px, 11.6vw, 190px) / 0.9 var(--display);
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.footer-cult span {
  display: inline-block;
  transition: transform 0.12s, color 0.12s;
}

.footer-cult .gap {
  width: 0.3em;
}

.footer-copy {
  margin-top: 30px;
  color: var(--dim);
  font-size: 13px;
}

/* ---------- Pointer devices ---------- */

/* Hover effects only where hover exists: on touch screens they stick after a tap. */
@media (hover: hover) {
  .play:hover {
    transform: scale(1.06);
  }

  .hero-links a:hover {
    background: var(--blue);
    border-color: var(--blue);
  }

  .rows li:hover::before,
  .link-list a:hover::before {
    transform: none;
  }

  .rows li:hover span {
    color: #fff;
    transform: translateX(24px);
  }

  .link-list a:hover {
    padding-left: 24px;
  }

  .link-list a:hover span {
    color: #fff;
  }

  .cta:hover {
    background: var(--blue);
    color: #fff;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }

  body,
  a,
  button,
  .vinyl,
  .wave {
    cursor: none;
  }
}

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

  .grain,
  .gate-disc,
  .is-playing .player-disc {
    animation: none;
  }

  .manifest-line {
    color: var(--ink);
  }
}
