:root {
  --bg: #070707;
  --bg-soft: #101010;
  --panel: rgba(16, 16, 16, 0.84);
  --panel-strong: rgba(21, 21, 21, 0.94);
  --text: #f3f3ed;
  --muted: #aaaaa3;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 30px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.26) rgba(255, 255, 255, 0.05);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(7, 7, 7, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18));
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #151515 0%, var(--bg) 42%, #050505 100%);
  overflow-x: hidden;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor label {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform, opacity, width, height;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--text);
  transition: opacity 140ms ease;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(243, 243, 237, 0.62);
  background: rgba(243, 243, 237, 0.02);
  transition:
    opacity 180ms ease,
    width 220ms var(--ease),
    height 220ms var(--ease),
    border-color 220ms ease,
    background-color 220ms ease;
}

.cursor-dot.is-visible,
.cursor-ring.is-visible {
  opacity: 1;
}

.cursor-ring.is-interactive {
  width: 46px;
  height: 46px;
  border-color: rgba(243, 243, 237, 0.88);
  background: rgba(243, 243, 237, 0.08);
}

.cursor-ring.is-pressed {
  width: 28px;
  height: 28px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 45%, transparent 92%);
  pointer-events: none;
  opacity: 0.22;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0, transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08) 0, transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.06) 0, transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.22;
}

.page {
  width: min(1120px, calc(100vw - 32px));
  margin: 24px auto 40px;
  position: relative;
  z-index: 1;
  will-change: transform, opacity, filter;
}

html.has-page-motion .page,
html.has-page-motion .admin-page {
  opacity: 0;
  transform: translate3d(-28px, 0, 0);
  filter: blur(10px);
  transition:
    opacity 420ms var(--ease),
    transform 560ms var(--ease),
    filter 420ms var(--ease);
}

html.has-page-motion body.is-ready .page,
html.has-page-motion body.is-ready .admin-page {
  opacity: 1;
  transform: none;
  filter: none;
}

html.has-page-motion body.is-navigating .page,
html.has-page-motion body.is-navigating .admin-page {
  opacity: 0;
  transform: translate3d(32px, 0, 0);
  filter: blur(12px);
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  text-transform: lowercase;
}

a {
  color: inherit;
}

.site-header,
.hero,
.links-panel,
.about-panel,
.spotify-panel {
  padding: 28px;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.header-side {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.03);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.header-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a8a8a;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
  flex: none;
}

.header-status.is-online {
  color: #dff7d7;
  border-color: rgba(164, 235, 149, 0.5);
  background: rgba(124, 207, 103, 0.14);
}

.header-status.is-online::before {
  background: #7ccf67;
}

.header-status.is-idle {
  color: #fff0c2;
  border-color: rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.12);
}

.header-status.is-idle::before {
  background: #ffd166;
}

.header-status.is-dnd {
  color: #ffd5d5;
  border-color: rgba(255, 126, 126, 0.45);
  background: rgba(255, 126, 126, 0.12);
}

.header-status.is-dnd::before {
  background: #ff7e7e;
}

.header-status.is-offline {
  color: var(--muted);
}

.header-status.is-offline::before {
  background: #8a8a8a;
}

.header-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.header-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 180ms ease, transform 180ms ease;
}

.header-links a:hover,
.header-links a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 20px;
  min-height: 440px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 36px rgba(255, 255, 255, 0.02),
    inset 0 0 0 88px rgba(255, 255, 255, 0.025);
  transform: translateY(-50%);
  opacity: 0.7;
  z-index: -1;
}

.section-kicker,
.signal-label,
.track-album,
.spotify-badge,
.progress-time,
.site-footer {
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--muted);
}

h1,
h2,
h3,
p,
dl,
dt,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 16px;
  max-width: 10ch;
  font-size: clamp(3.4rem, 12vw, 7rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.hero-copy,
.hero-aside,
.spotify-shell,
.signal-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-tagline {
  max-width: 28ch;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  color: rgba(243, 243, 237, 0.92);
}

.hero-bio,
.about-copy,
.spotify-note,
#spotify-artist {
  max-width: 56ch;
  line-height: 1.65;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.button,
.inline-link,
.filter-button,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms var(--ease),
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.button::before,
.inline-link::before,
.filter-button::before,
.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 12%, rgba(255, 255, 255, 0.18) 48%, transparent 84%);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 620ms var(--ease);
  pointer-events: none;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
}

.header-login {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.button-solid {
  background: var(--text);
  color: #090909;
  font-weight: 700;
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.button:hover,
.button:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.social-link:hover,
.social-link:focus-visible {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.button:hover::before,
.button:focus-visible::before,
.inline-link:hover::before,
.inline-link:focus-visible::before,
.filter-button:hover::before,
.filter-button:focus-visible::before,
.social-link:hover::before,
.social-link:focus-visible::before {
  transform: translateX(160%) skewX(-18deg);
}

.button-ghost:hover,
.button-ghost:focus-visible,
.inline-link:hover,
.inline-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-aside {
  display: flex;
  align-items: stretch;
}

.signal-card {
  width: 100%;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    var(--panel-strong);
  border: 1px solid var(--line);
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transform: translateY(-130%);
  animation: scanline 7s linear infinite;
  pointer-events: none;
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.signal-dot {
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
  animation: pulse 2.2s ease-in-out infinite;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 18px;
}

.fact-grid > div {
  min-width: 0;
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  transition:
    transform 220ms var(--ease),
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.fact-grid > div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 14%, rgba(255, 255, 255, 0.12) 48%, transparent 82%);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 620ms var(--ease);
  pointer-events: none;
}

.fact-grid > div:hover,
.fact-grid > div:focus-within {
  transform: translate3d(6px, 0, 0);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.fact-grid > div:hover::before,
.fact-grid > div:focus-within::before {
  transform: translateX(160%) skewX(-18deg);
}

.fact-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.fact-grid dd,
.fact-grid a {
  color: var(--text);
  text-decoration: none;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.96fr);
  gap: 18px;
  margin-top: 18px;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.highlight-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.highlight-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
}

.spotify-shell {
  display: grid;
  gap: 18px;
}

.spotify-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.spotify-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.spotify-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9b9b9b;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.spotify-badge.is-live {
  color: #cfeccb;
  border-color: rgba(124, 207, 103, 0.34);
  background: rgba(124, 207, 103, 0.09);
}

.spotify-badge.is-live::before {
  background: #7ccf67;
}

.spotify-badge.is-recent,
.spotify-badge.is-idle,
.spotify-badge.is-muted {
  color: var(--muted);
}

.spotify-badge.is-recent::before,
.spotify-badge.is-idle::before,
.spotify-badge.is-muted::before {
  background: #909090;
}

.inline-link {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.track-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  transition:
    opacity 220ms var(--ease),
    transform 320ms var(--ease),
    filter 320ms var(--ease);
}

.artwork-shell {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.26));
  transition:
    transform 360ms var(--ease),
    opacity 220ms var(--ease),
    filter 360ms var(--ease);
}

.artwork-shell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.artwork-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(243, 243, 237, 0.75);
}

.track-copy {
  display: grid;
  gap: 8px;
}

.track-copy > * {
  transition:
    opacity 220ms var(--ease),
    transform 320ms var(--ease),
    filter 320ms var(--ease);
}

.progress-group {
  display: grid;
  gap: 10px;
  transition:
    opacity 220ms var(--ease),
    transform 320ms var(--ease);
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.96));
  transition: width 420ms var(--ease);
  transform-origin: left center;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.links-panel {
  margin-top: 18px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.social-link {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 200ms var(--ease),
    border-color 200ms ease,
    background-color 200ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.04);
}

.social-link-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.social-link-label-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-link-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.58);
  flex: none;
}

.social-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.social-link-label::after {
  content: "+";
  color: var(--muted);
  font-size: 1rem;
}

.social-link-meta {
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 0 4px;
}

#footer-visitor-count {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-variant-numeric: tabular-nums;
}

.has-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(-24px, 0, 0);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.has-motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.spotify-shell.is-track-changing .spotify-meta,
.spotify-shell.is-track-changing .track-row,
.spotify-shell.is-track-changing .progress-group,
.spotify-shell.is-track-changing #spotify-note {
  opacity: 0;
  transform: translate3d(-24px, 0, 0);
  filter: blur(8px);
}

.spotify-shell.is-track-entering .spotify-meta,
.spotify-shell.is-track-entering .track-row,
.spotify-shell.is-track-entering .progress-group,
.spotify-shell.is-track-entering #spotify-note {
  animation: track-enter 520ms var(--ease);
}

.spotify-shell.is-track-entering .artwork-shell {
  animation: artwork-pop 560ms var(--ease);
}

#spotify-title,
#spotify-current-time,
#spotify-total-time {
  font-variant-numeric: tabular-nums;
}

@keyframes scanline {
  from {
    transform: translateY(-130%);
  }

  to {
    transform: translateY(130%);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.82);
    opacity: 0.72;
  }
}

@keyframes track-enter {
  from {
    opacity: 0;
    transform: translate3d(26px, 0, 0);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes artwork-pop {
  0% {
    opacity: 0;
    transform: translate3d(26px, 0, 0) scale(0.92);
    filter: blur(10px);
  }

  70% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.02);
    filter: none;
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .header-status {
    justify-self: start;
  }

  .header-links {
    justify-content: flex-start;
  }

  .header-side {
    justify-content: flex-start;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero::after {
    width: 260px;
    right: -80px;
  }

  .highlight-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100vw - 20px, 100%);
    margin: 10px auto 24px;
  }

  .site-header,
  .hero,
  .links-panel,
  .about-panel,
  .spotify-panel {
    padding: 20px;
  }

  .track-row,
  .link-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .spotify-meta,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .artwork-shell {
    width: 100%;
    max-width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page,
  .admin-page {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .has-motion [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .inline-link,
  .header-links a,
  .social-link,
  .progress-bar span,
  .filter-button,
  .track-row,
  .track-copy > *,
  .artwork-shell,
  .progress-group {
    transition: none;
  }

  .button::before,
  .inline-link::before,
  .filter-button::before,
  .social-link::before,
  .signal-card::after,
  .signal-dot,
  .spotify-shell.is-track-entering .spotify-meta,
  .spotify-shell.is-track-entering .track-row,
  .spotify-shell.is-track-entering .progress-group,
  .spotify-shell.is-track-entering #spotify-note,
  .spotify-shell.is-track-entering .artwork-shell {
    animation: none;
  }
}
