:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0c1222;
  --text: #f7fbff;
  --muted: #a8b4c7;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.11);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --accent: #7dd3fc;
  --accent-2: #c084fc;
  --accent-3: #fb7185;
  --glow: rgba(125, 211, 252, 0.35);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --font-body: "Share Tech Mono", monospace;
  --font-heading: "Jacquard 24", system-ui;
  --font: var(--font-body);
  --record-size: clamp(60px, 7.6vw, 74px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(125, 211, 252, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(192, 132, 252, 0.13), transparent 25rem),
    linear-gradient(135deg, var(--bg), var(--bg-soft) 58%, #101827);
  color: var(--text);
  cursor: none;
  font-family: var(--font);
  letter-spacing: 0;
}

a,
button {
  font: inherit;
}

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

button {
  color: inherit;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  transform: translate(-100px, -100px);
  translate: -50% -50%;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 0 22px var(--glow);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(220px, 280px);
  gap: 18px;
  align-content: center;
  align-items: start;
  justify-content: center;
  width: min(818px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0;
}

.site-shell.single-page {
  grid-template-columns: minmax(0, 620px);
  align-items: center;
  justify-content: center;
}

.glass-panel,
.glass-tile {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}

.profile-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: var(--radius);
  overflow: visible;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 36%),
    radial-gradient(circle at 72% 14%, rgba(125, 211, 252, 0.18), transparent 18rem);
  pointer-events: none;
}

.profile-panel > * {
  position: relative;
}

.profile-top {
  display: flex;
  gap: 18px;
  align-items: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.75), transparent 0.1rem),
    linear-gradient(145deg, rgba(125, 211, 252, 0.38), rgba(192, 132, 252, 0.22));
  box-shadow: 0 0 48px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.avatar.has-image {
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.identity {
  min-width: 0;
}

.eyebrow,
.status-line,
.track-copy span,
.glass-tile small {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.65rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.status-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.7);
}

.intro {
  max-width: 34rem;
  margin: 30px 0;
  color: rgba(247, 251, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.link-grid {
  display: grid;
  gap: 10px;
}

.social-link {
  --brand: var(--accent);
  --brand-glow: var(--glow);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link.blue {
  --brand: #7dd3fc;
  --brand-glow: rgba(125, 211, 252, 0.56);
}

.social-link.violet {
  --brand: #c084fc;
  --brand-glow: rgba(192, 132, 252, 0.58);
}

.social-link.red {
  --brand: #fb7185;
  --brand-glow: rgba(251, 113, 133, 0.58);
}

.social-link.crimson {
  --brand: #f87171;
  --brand-glow: rgba(248, 113, 113, 0.58);
}

.social-link[href]:hover,
.social-link[type="button"]:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  outline: 0;
}

.social-link[data-hover]::after {
  content: attr(data-hover);
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(247, 251, 255, 0.78);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.social-link[data-hover]:hover::after,
.social-link[data-hover]:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.social-link[aria-disabled="true"] {
  color: rgba(247, 251, 255, 0.48);
}

.social-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 38%, transparent),
    0 0 22px color-mix(in srgb, var(--brand-glow) 70%, transparent);
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-mark.has-icon::before {
  content: "";
  width: 21px;
  height: 21px;
  background: currentColor;
  filter: drop-shadow(0 0 7px var(--brand-glow));
  mask: var(--icon-url) center / contain no-repeat;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  transition: filter 180ms ease, transform 180ms ease;
}

.social-link:hover .social-mark,
.social-link:focus-visible .social-mark {
  background: color-mix(in srgb, var(--brand) 20%, rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 58%, transparent),
    0 0 20px var(--brand-glow),
    0 0 42px var(--brand-glow),
    0 0 72px color-mix(in srgb, var(--brand-glow) 65%, transparent);
  transform: scale(1.05);
}

.social-link:hover .social-mark.has-icon::before,
.social-link:focus-visible .social-mark.has-icon::before {
  filter:
    drop-shadow(0 0 8px var(--brand-glow))
    drop-shadow(0 0 18px var(--brand-glow));
  transform: scale(1.08);
}

.social-label {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 30;
  min-width: 170px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 15, 31, 0.78);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.music-player {
  display: grid;
  grid-template-columns: var(--record-size) minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  min-height: 118px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.12);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.music-player.is-drag-over {
  border-color: rgba(125, 211, 252, 0.62);
  background: rgba(125, 211, 252, 0.1);
  box-shadow: 0 0 28px rgba(125, 211, 252, 0.18);
}

.music-player audio {
  display: none;
}

.record-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--record-size);
  height: var(--record-size);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  appearance: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px),
    rgba(255, 255, 255, 0.1);
  cursor: none;
  overflow: hidden;
  touch-action: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.record-dropzone:not(:disabled):hover,
.record-dropzone:focus-visible {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.18);
  outline: 0;
}

.record-dropzone:disabled {
  opacity: 0.62;
}

.record-dropzone.has-record {
  padding: 0;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.24);
  opacity: 1;
}

.record-dropzone.is-dragging-record {
  opacity: 0.24;
}

.drop-hint {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.05),
    0 0 18px rgba(125, 211, 252, 0.12);
}

.record-disc {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 22%, transparent 23%),
    repeating-radial-gradient(circle at 50% 50%, #161922 0 2px, #07090f 3px 5px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 0 22px rgba(0, 0, 0, 0.74),
    0 8px 22px rgba(0, 0, 0, 0.36);
}

.record-disc::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.record-disc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(247, 251, 255, 0.92);
  box-shadow: 0 0 9px rgba(247, 251, 255, 0.42);
  transform: translate(-50%, -50%);
}

.record-art {
  position: absolute;
  inset: 28%;
  z-index: 1;
  display: block;
  width: 44%;
  height: 44%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.record-fallback {
  position: absolute;
  inset: 30%;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(125, 211, 252, 0.72), rgba(251, 113, 133, 0.62)),
    rgba(255, 255, 255, 0.16);
  color: rgba(7, 10, 18, 0.82);
  font-size: 0.74rem;
  font-weight: 800;
}

.record-dropzone.is-playing .record-disc {
  animation: record-spin 2.8s linear infinite;
}

.record-dock {
  position: absolute;
  left: clamp(18px, 5vw, 42px);
  right: clamp(18px, 5vw, 42px);
  bottom: -44px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: clamp(7px, 1.6vw, 12px);
  pointer-events: none;
}

.record-card {
  --record-tilt: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--record-size);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: transparent;
  color: var(--text);
  cursor: none;
  pointer-events: auto;
  touch-action: none;
  transform: translateY(36px) rotate(var(--record-tilt));
  transition: transform 210ms ease, opacity 180ms ease, filter 180ms ease;
}

.record-card:nth-child(1) {
  --record-tilt: -10deg;
}

.record-card:nth-child(2) {
  --record-tilt: 7deg;
}

.record-card:nth-child(3) {
  --record-tilt: -4deg;
}

.record-card:nth-child(4) {
  --record-tilt: 9deg;
}

.record-card:nth-child(5) {
  --record-tilt: -7deg;
}

.record-card:hover,
.record-card:focus-visible,
.record-card.is-drag-source {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.36));
  outline: 0;
  transform: translateY(2px) rotate(0) scale(1.04);
}

.record-card.is-active-source {
  opacity: 0;
  pointer-events: none;
}

.record-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  pointer-events: none;
  transition: none;
  transform-origin: center;
}

.record-ghost.is-snapping {
  transition: transform 170ms ease;
}

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

.track-copy {
  min-width: 0;
}

.track-copy p {
  margin: 0 0 4px;
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
}

.track-copy > span {
  display: block;
  overflow: hidden;
  font-size: 0.9rem;
  white-space: nowrap;
}

.track-copy .marquee-text {
  display: inline-block;
  max-width: none;
  will-change: transform;
}

.track-copy .is-overflowing .marquee-text {
  animation: track-marquee 5.8s ease-in-out infinite alternate;
}

@keyframes track-marquee {
  to {
    transform: translateX(calc(var(--scroll-distance, 0px) * -1));
  }
}

.music-visualizer {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(28, minmax(3px, 1fr));
  align-items: end;
  gap: 3px;
  height: 32px;
  margin-top: 2px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.08), rgba(251, 113, 133, 0.04)),
    rgba(255, 255, 255, 0.045);
  overflow: hidden;
  pointer-events: none;
}

.music-visualizer::before {
  content: "";
  position: absolute;
  inset: auto 8px 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.7), transparent);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.42);
}

.visualizer-bar {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.95), rgba(125, 211, 252, 0.9) 48%, rgba(251, 113, 133, 0.78));
  box-shadow:
    0 0 10px rgba(125, 211, 252, 0.38),
    0 0 18px rgba(251, 113, 133, 0.14);
  opacity: 0.42;
  transform-origin: bottom;
  transform: scaleY(var(--level, 0.08));
  transition: transform 90ms ease, opacity 180ms ease;
}

.music-player[data-playing="true"] .visualizer-bar {
  opacity: 0.92;
}

.side-panel {
  padding-top: clamp(24px, 5vw, 42px);
}

.side-eyebrow {
  margin-bottom: 12px;
}

.page-links {
  display: grid;
  gap: 10px;
}

.glass-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: none;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.glass-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
}

.glass-tile.muted {
  opacity: 0.55;
  pointer-events: none;
}

.glass-tile span {
  font-size: 1rem;
  font-weight: 700;
}

.glass-tile small {
  margin-top: 2px;
}

.return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  cursor: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.return-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 760px) {
  :root {
    --record-size: clamp(42px, 16vw, 52px);
  }

  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .site-shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 560px);
    align-content: start;
    align-items: stretch;
    padding: 24px 0;
  }

  .profile-panel {
    min-height: auto;
    overflow: hidden;
  }

  .profile-top {
    align-items: flex-start;
  }

  .avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 2rem;
  }

  .side-panel {
    padding-top: 0;
  }

  .record-dock {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    justify-content: space-between;
    gap: 5px;
    margin: 18px -2px -4px;
    pointer-events: auto;
  }

  .record-card {
    min-width: 0;
    transform: none;
  }

  .music-visualizer {
    grid-template-columns: repeat(28, minmax(2px, 1fr));
    gap: 2px;
    height: 28px;
  }

  .record-card:hover,
  .record-card:focus-visible,
  .record-card.is-drag-source {
    transform: translateY(-4px) scale(1.03);
  }

  .page-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .profile-top {
    flex-direction: column;
  }

  .page-links {
    grid-template-columns: 1fr;
  }
}

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