:root {
  color-scheme: dark;
  --bg: #080808;
  --ink: #e9e8e2;
  --dim: #8a8983;
  --line: rgba(233, 232, 226, 0.2);
  --signal: #e7e7e4;
  --pad: clamp(18px, 2.8vw, 44px);
  --mono: "Courier New", Courier, monospace;
  --sans: "Helvetica Neue", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 42% at 50% 31%, rgba(218, 218, 214, 0.052), transparent 72%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  cursor: none;
}

button,
a {
  color: inherit;
  font: inherit;
  cursor: none;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 7px;
}

#signal,
.grain,
.scanlines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#signal {
  z-index: 0;
  opacity: 1;
  background: #080808;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.grain {
  display: none;
}

.scanlines {
  display: none;
}

.track-audio {
  display: none;
}

.cursor {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(233, 232, 226, 0.58);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transition: background 120ms ease, border-color 120ms ease;
}

.cursor span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.cursor.is-active {
  background: #fff;
}

.contact-sheet .cursor {
  border-color: rgba(9, 9, 9, 0.9);
  background: rgba(9, 9, 9, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.38), 0 0 18px rgba(9, 9, 9, 0.28);
}

.contact-sheet .cursor span {
  background: #090909;
}

.contact-sheet .cursor.is-active {
  background: #090909;
}

.contact-sheet .cursor.is-active span {
  background: #fff;
}

.gate {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  background: #050505;
  transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.18, 1), visibility 1.1s;
  clip-path: inset(0 0 0 0);
}

.gate.is-open {
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

.gate__button {
  display: grid;
  gap: 14px;
  justify-items: center;
  background: transparent;
  text-transform: uppercase;
}

.gate__word {
  position: relative;
  font: 300 clamp(2.7rem, 8vw, 7.5rem) / 1 var(--sans);
  letter-spacing: 0.36em;
  text-indent: 0.36em;
}

.gate__word::before,
.gate__word::after {
  content: "ESOTERIK";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: none;
}

.gate__button:hover .gate__word::before {
  color: #ff275f;
  opacity: 0.75;
  transform: translate(-5px, 2px);
  clip-path: inset(21% 0 48% 0);
}

.gate__button:hover .gate__word::after {
  color: #35d8ff;
  opacity: 0.75;
  transform: translate(5px, -2px);
  clip-path: inset(61% 0 12% 0);
}

.gate__action,
.gate__note,
.gate__index {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gate__action::before {
  content: "[ ";
  color: var(--signal);
}

.gate__action::after {
  content: " ]";
  color: var(--signal);
}

.gate__index {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
}

.gate__note {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  margin: 0;
  text-align: right;
  line-height: 1.7;
}

.site {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  padding: var(--pad);
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1s 0.35s ease, transform 1.2s 0.25s cubic-bezier(0.2, 0.7, 0, 1);
}

.site.is-visible {
  opacity: 1;
  transform: none;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mark {
  justify-self: start;
  font: 300 13px/1 var(--sans);
  letter-spacing: 0.3em;
}

.mark span {
  color: var(--signal);
}

.location {
  display: flex;
  align-items: center;
  gap: 9px;
}

.location i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 6px rgba(231, 231, 228, 0.45);
}

.sound {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 6px 10px;
  background: transparent;
  letter-spacing: inherit;
  text-transform: inherit;
}

.sound__bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 13px;
}

.sound__bars i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--signal);
  transform-origin: center;
  transform: scaleY(0.72);
}

.sound[aria-pressed="false"] .sound__bars i {
  transform: scaleY(0.16);
  background: var(--dim);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
}

.hero__core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  min-width: 0;
  justify-items: center;
  transform: translateY(9vh);
}

.hero__eyebrow {
  margin: 24px 0 0;
  font-size: clamp(9px, 0.9vw, 13px);
  font-weight: 300;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  margin: 0;
  font: 300 clamp(3rem, 7.4vw, 7.8rem) / 1 var(--sans);
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-align: center;
  white-space: nowrap;
}

.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  display: none;
}

.hero h1::before {
  color: #ff1d55;
  animation: glitch-a 5.4s steps(1) infinite;
}

.hero h1::after {
  color: #2de1ff;
  animation: glitch-b 5.4s 80ms steps(1) infinite;
}

.hero__meta {
  position: absolute;
  top: 50%;
  display: grid;
  gap: 6px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__meta--left {
  left: 0;
  transform: translate(-40%, -50%) rotate(-90deg);
}

.hero__meta--right {
  right: 0;
  transform: translate(42%, -50%) rotate(90deg);
}

.player {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: min(360px, 35vw);
  transform: translateX(-50%);
}

.player__time {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.player__track {
  height: 1px;
  margin: 8px 0 9px;
  overflow: hidden;
  background: var(--line);
}

.player__track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal);
}

.player p {
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}

.ticker {
  grid-column: 1 / -1;
  justify-self: center;
  display: grid;
  grid-template-columns: 1px minmax(0, 1fr) 1px;
  align-items: center;
  gap: 14px;
  width: min(450px, 100%);
  min-width: 0;
  padding: 10px 0;
  color: #e4e3e3;
}

.ticker::before,
.ticker::after {
  content: "";
  width: 1px;
  height: 15px;
  background: currentColor;
}

.ticker__viewport {
  min-width: 0;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  font: 400 0.9375rem / 1.4 Consolas, Arial, sans-serif;
  white-space: nowrap;
  animation: ticker-scroll 22.5s linear 1s infinite;
  will-change: transform;
}

.ticker__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1.5ch;
  padding-right: 420px;
}

.ticker__word {
  flex: 0 0 auto;
}

.socials {
  display: flex;
  gap: clamp(14px, 2.5vw, 38px);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer__actions {
  display: flex;
  gap: 12px;
}

.socials a,
.contact,
.sets-trigger {
  position: relative;
}

.socials a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.socials a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact,
.sets-trigger {
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 220ms ease, background 220ms ease;
}

.contact:hover,
.sets-trigger:hover {
  color: var(--bg);
  background: var(--ink);
}

.contact b {
  color: var(--signal);
}

.sets-trigger {
  gap: 24px;
  color: var(--bg);
  background: var(--ink);
}

.sets-trigger:hover {
  background: #fff;
}

.sets-trigger b {
  font-size: 10px;
}

.sets-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--pad);
  overflow-y: auto;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  cursor: auto;
  gap: clamp(32px, 6vh, 72px);
}

.sets-sheet button,
.sets-sheet a {
  cursor: pointer;
}

.sets-sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.sets-sheet__brand,
.sets-sheet__close,
.sets-sheet__foot {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  line-height: 1.6;
}

.sets-sheet__close {
  min-height: 44px;
  padding: 8px 0 8px 16px;
  background: transparent;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.sets-sheet__content {
  align-self: center;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.sets-sheet h2 {
  margin: 0 0 clamp(28px, 5vh, 56px);
  font: 300 clamp(2.5rem, 6vw, 5.5rem) / 1.1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sets-sheet h2 > span {
  color: var(--dim);
  font-size: 0.875rem;
  vertical-align: top;
  white-space: nowrap;
}

.sets-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

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

.set-choice {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.set-choice:hover {
  background: #151515;
}

.set-choice[aria-pressed="true"] {
  color: var(--bg);
  background: var(--ink);
}

.set-choice__number {
  font: 0.875rem var(--mono);
  opacity: 0.65;
}

.set-choice__copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.set-choice strong {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.set-choice small {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.set-choice__play {
  margin-left: auto;
  font-size: 0.875rem;
}

.set-player {
  min-width: 0;
}

.set-player__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.set-player__heading h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.set-player__heading > span {
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.set-player__embed {
  height: clamp(200px, 32vh, 300px);
  background: #151515;
  border: 1px solid var(--line);
}

.set-player__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.set-player__status {
  min-height: 2.8em;
  margin: 16px 0 8px;
  color: #b5b4af;
  font-size: 0.875rem;
  line-height: 1.4;
}

.set-player__external {
  display: inline-block;
  padding: 10px 0;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.sets-sheet__foot {
  margin: 0;
  color: var(--dim);
}

body.sets-open .cursor {
  visibility: hidden;
}

body.sets-open .ticker__track {
  animation-play-state: paused;
}

.contact-sheet {
  position: fixed;
  z-index: 50;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--pad);
  border: 0;
  background: var(--signal);
  color: #090909;
}

.contact-sheet,
.sets-sheet {
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.77, 0, 0.18, 1), overlay 0.7s allow-discrete, display 0.7s allow-discrete;
}

.contact-sheet[open],
.sets-sheet[open] {
  display: grid;
  opacity: 1;
  transform: none;
}

@starting-style {
  .contact-sheet[open],
  .sets-sheet[open] {
    opacity: 0;
    transform: translateY(100%);
  }
}

.contact-sheet::backdrop,
.sets-sheet::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.contact-sheet__close {
  justify-self: end;
  padding: 8px 0;
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-sheet > div {
  align-self: center;
}

.contact-sheet__label {
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-sheet h2 {
  margin: 0 0 clamp(38px, 7vh, 80px);
  font: 300 clamp(3rem, 9vw, 8.5rem) / 0.94 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-sheet__mail {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(760px, 100%);
  padding: 16px 0;
  border-bottom: 2px solid #090909;
  font: 700 clamp(1rem, 2.2vw, 2rem) / 1 var(--sans);
}

.contact-sheet__foot {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

noscript {
  position: fixed;
  z-index: 200;
  inset: auto 0 0;
  padding: 16px;
  background: #fff;
  color: #000;
  text-align: center;
}

@keyframes pulse {
  50% { opacity: 0.35; box-shadow: 0 0 4px var(--signal); }
}

@keyframes bar {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

@keyframes breathe {
  50% { letter-spacing: -0.075em; filter: blur(0.35px); }
}

@keyframes glitch-a {
  0%, 94%, 100% { opacity: 0; transform: none; clip-path: none; }
  95% { opacity: 0.6; transform: translate(-4px, 1px); clip-path: inset(8% 0 67% 0); }
  96% { opacity: 0.35; transform: translate(3px, -1px); clip-path: inset(68% 0 9% 0); }
  97% { opacity: 0; }
}

@keyframes glitch-b {
  0%, 94%, 100% { opacity: 0; transform: none; clip-path: none; }
  95% { opacity: 0.55; transform: translate(4px, -1px); clip-path: inset(48% 0 30% 0); }
  96% { opacity: 0.25; transform: translate(-3px, 1px); clip-path: inset(18% 0 64% 0); }
  97% { opacity: 0; }
}

@keyframes ticker-scroll {
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; }
  .location { display: none; }
  .hero__eyebrow { margin-bottom: 14px; }
  .hero__core { transform: translateY(10vh); }
  .hero h1 { font-size: clamp(2rem, 10.5vw, 4.6rem); letter-spacing: 0.27em; text-indent: 0.27em; }
  .hero__meta { display: none; }
  .player { width: min(70vw, 330px); bottom: 4vh; }
  .footer { grid-template-columns: 1fr; gap: 16px; }
  .socials { justify-content: space-between; }
  .footer__actions { display: grid; grid-template-columns: auto 1fr; }
  .contact, .sets-trigger { width: 100%; justify-content: space-between; gap: 12px; }
  .sets-layout { grid-template-columns: minmax(0, 1fr); }
  .set-choice { padding: 18px 12px; }
  .gate__word { font-size: clamp(2.1rem, 11vw, 4.5rem); letter-spacing: 0.26em; text-indent: 0.26em; }
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .cursor { display: none; }
}

@media (max-height: 650px) {
  .hero__eyebrow, .hero__meta, .player { display: none; }
  .hero__core { transform: translateY(6vh); }
  .hero h1 { font-size: clamp(2.2rem, 11vh, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation-name: none;
    transform: none;
    will-change: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
