/* ─────────────────────────────────────────────────────────────
   w8i — Portfolio
   Design system: dark, minimal, premium
   Inspired by perpetualcare.club's sophistication
───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'MoneySickAgain';
  src: url('MONEY-SICKAGAIN.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AvaladoSick';
  src: url('AVALADO-Sick.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Saggi';
  src: url('Saggiv0.2DEMO-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --bg:         #080808;
  --bg2:        #0d0d0d;
  --surface:    #111111;
  --border:     #1c1c1c;
  --text:       #f0ede8;
  --muted:      #484845;
  --accent:     #ff85b3;
  --accent-dim: #8acc35;

  --font-display: 'Syne', sans-serif;
  --font-mono:    'Fragment Mono', monospace;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.55, 0, 1, 0.45);

  --nav-h:    72px;
  --status-h: 44px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── GRAIN ──────────────────────────────────────────────────── */
#grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.055;
  width: 100%;
  height: 100%;
}

/* ─── CUSTOM CURSOR ──────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: background 0.2s, transform 0.1s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(240, 237, 232, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width  0.35s var(--ease-out),
    height 0.35s var(--ease-out),
    border-color 0.3s,
    background 0.3s;
}

.cursor-ring.expand {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: rgba(196, 241, 53, 0.06);
}

.cursor-ring.press {
  width: 22px;
  height: 22px;
  background: rgba(196, 241, 53, 0.15);
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-logo {
  font-family: 'AvaladoSick', var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after { width: 100%; }

/* hamburger */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-menu-btn.open span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-menu-btn.open span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul { list-style: none; text-align: center; }

.mobile-menu li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.mobile-menu.open li { opacity: 1; transform: translateY(0); }
.mobile-menu.open li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open li:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.open li:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu.open li:nth-child(4) { transition-delay: 0.34s; }

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: 8px 0;
  transition: color 0.3s;
}

.mobile-link:hover { color: var(--accent); }

/* ─── STATUS BAR ─────────────────────────────────────────────── */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--status-h);
  padding: 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(16px);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.status-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── SECTION BASE ───────────────────────────────────────────── */
section {
  padding: calc(var(--nav-h) + 60px) 40px calc(var(--status-h) + 60px);
  position: relative;
}

/* ─── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.section-title {
  font-family: 'Saggi', var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: normal;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: block;
}

.hero-title {
  font-family: 'AvaladoSick', var(--font-display);
  font-size: clamp(96px, 18vw, 240px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 44px;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-word {
  display: inline-block;
  animation: slideUp 1.1s var(--ease-out) var(--d, 0ms) both;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 360px;
}

.hero-scroll {
  position: absolute;
  bottom: calc(var(--status-h) + 28px);
  left: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll-line {
  width: 36px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--muted);
  animation: scrollLine 2s ease-in-out 1.6s infinite;
}

.hero-index {
  position: absolute;
  bottom: calc(var(--status-h) + 28px);
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* REVEAL ANIMATIONS */
.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s var(--ease-out) var(--d, 0ms) both;
}

/* ─── MARQUEE ────────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--bg2);
}

.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 24s linear infinite;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-dot { color: var(--accent); }

/* ─── MUSIC / TRACKS ─────────────────────────────────────────── */
#music { background: var(--bg); }

.track-list { display: flex; flex-direction: column; }

.track-item {
  display: grid;
  grid-template-columns: 36px 40px 1fr auto 72px 44px;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.track-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.track-item:hover::before { transform: scaleX(1); }

.track-item > * { position: relative; z-index: 1; }

.track-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  transition: color 0.3s;
}

.track-item:hover .track-num { color: var(--accent); }

.track-cover {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: transform 0.3s;
  object-fit: cover;
  display: block;
}

.track-item:hover .track-cover { transform: scale(1.08); }

.track-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.track-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.track-item:hover .track-title { color: var(--accent); }

.track-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* waveform bars */
.track-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 22px;
  opacity: 0;
  transition: opacity 0.3s;
}

.track-item:hover .track-bars { opacity: 1; }

.track-bars span {
  width: 2.5px;
  background: var(--accent);
  border-radius: 1px;
  animation: barDance 0.9s ease-in-out infinite;
}

.track-bars span:nth-child(1) { height: 35%; animation-delay: 0.00s; }
.track-bars span:nth-child(2) { height: 80%; animation-delay: 0.10s; }
.track-bars span:nth-child(3) { height: 55%; animation-delay: 0.20s; }
.track-bars span:nth-child(4) { height: 90%; animation-delay: 0.15s; }
.track-bars span:nth-child(5) { height: 60%; animation-delay: 0.05s; }

.track-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.track-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.2s;
}

.track-play svg {
  width: 11px;
  height: 11px;
  margin-left: 1px;
}

.track-item:hover .track-play {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196, 241, 53, 0.08);
  transform: scale(1.1);
}

/* ─── 3D PREVIEW SECTION ─────────────────────────────────────── */
#preview { background: var(--bg); }

.preview-wrap {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

#previewCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Floating info card */
.preview-card {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%) translateX(20px);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 28px;
  min-width: 240px;
  max-width: 280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.preview-card.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-50%) translateX(0);
}

.preview-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}

.preview-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.preview-card-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.preview-card-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}

.preview-card-play {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  width: 100%;
  justify-content: center;
}

.preview-card-play:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196, 241, 53, 0.07);
}

.preview-card-play:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.preview-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .preview-wrap { height: 55vh; }
  .preview-card {
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: 100%;
    transform: translateY(10px);
  }
  .preview-card.visible { transform: translateY(0); }
}

/* ─── UPCOMING TRACKLIST ─────────────────────────────────────── */
.upcoming-list {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.upcoming-track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.2s;
}

.upcoming-track:hover { background: rgba(196, 241, 53, 0.03); }

.upcoming-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  min-width: 24px;
}

.upcoming-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  flex: 1;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.upcoming-track:hover .upcoming-title { color: var(--accent); }

.upcoming-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}

.upcoming-track.playing .upcoming-bars { opacity: 1; }

.upcoming-bars span {
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  animation: none;
  height: 4px;
}

.upcoming-track.playing .upcoming-bars span:nth-child(1) { animation: bar 0.8s ease-in-out infinite alternate; }
.upcoming-track.playing .upcoming-bars span:nth-child(2) { animation: bar 0.6s ease-in-out 0.1s infinite alternate; }
.upcoming-track.playing .upcoming-bars span:nth-child(3) { animation: bar 0.9s ease-in-out 0.2s infinite alternate; }
.upcoming-track.playing .upcoming-bars span:nth-child(4) { animation: bar 0.7s ease-in-out 0.05s infinite alternate; }
.upcoming-track.playing .upcoming-bars span:nth-child(5) { animation: bar 1.0s ease-in-out 0.15s infinite alternate; }

.upcoming-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.upcoming-play svg { width: 10px; height: 10px; margin-left: 2px; }
.upcoming-play .pause-icon { display: none; }
.upcoming-track.playing .upcoming-play .play-icon  { display: none; }
.upcoming-track.playing .upcoming-play .pause-icon { display: block; }

.upcoming-track:hover .upcoming-play,
.upcoming-track.playing .upcoming-play {
  border-color: var(--accent);
  color: var(--accent);
}

.upcoming-track.playing .upcoming-play { background: rgba(196, 241, 53, 0.08); }

/* ─── SOUNDCLOUD EMBED ───────────────────────────────────────── */
.sc-embed-wrap {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.sc-embed-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.sc-embed {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.92;
  transition: opacity 0.3s;
}

.sc-embed:hover { opacity: 1; }

/* ─── ARTWORK / GALLERY ──────────────────────────────────────── */
#artwork { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s;
  filter: brightness(0.85) saturate(0.7);
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.05);
  filter: brightness(0.95) saturate(1);
}

.gallery-video .gallery-thumb {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.gallery-video { cursor: default; }
.gallery-video:hover .gallery-thumb { transform: none; }

/* YouTube embed gallery items */
.gallery-youtube { cursor: default; overflow: hidden; }
.gallery-youtube:hover .gallery-thumb { transform: none; }

.gallery-yt-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  overflow: hidden;
}

.gallery-yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Performance video — controls always visible, overlay sits at top */
.gallery-performance .gallery-thumb { cursor: auto; }
.gallery-performance video::-webkit-media-controls { display: flex !important; }

.gallery-overlay--top {
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.82) 0%, transparent 45%);
  justify-content: flex-start;
  padding: 20px;
  opacity: 1;
  pointer-events: none;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease-out);
  display: block;
}

.gallery-item:hover .gallery-item-title { transform: translateY(0); }

.gallery-item-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 5px;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease-out) 0.04s;
  display: block;
}

.gallery-item:hover .gallery-item-meta { transform: translateY(0); }

.gallery-item-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(240, 237, 232, 0.25);
  transition: color 0.3s;
}

.gallery-item:hover .gallery-item-num { color: rgba(240, 237, 232, 0.5); }

/* ─── ABOUT ──────────────────────────────────────────────────── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text-large {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.about-text-large em {
  font-style: italic;
  color: var(--accent);
}

.about-body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.about-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 241, 53, 0.3);
  transition: border-color 0.3s;
}

.about-link:hover { border-color: var(--accent); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.about-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
  cursor: default;
}

.about-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── LINKS ──────────────────────────────────────────────────── */
#links {
  background: var(--bg);
  padding-bottom: calc(var(--status-h) + 100px);
}

.links-list { display: flex; flex-direction: column; }

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}

.link-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.link-item:hover::before { transform: scaleX(1); }
.link-item > * { position: relative; z-index: 1; }
.link-item:hover { color: var(--accent); }

.link-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.link-arrow {
  font-size: 28px;
  font-weight: 300;
  transition: transform 0.4s var(--ease-out);
  color: var(--muted);
}

.link-item:hover .link-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 48px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(8, 8, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: none;
  transition: color 0.3s;
}

.lightbox-close:hover { color: var(--text); }

.lightbox-inner {
  width: min(70vw, 900px);
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.4s var(--ease-out);
}

.lightbox.open .lightbox-inner { transform: scale(1); }

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out) var(--stagger, 0ms),
    transform 0.8s var(--ease-out) var(--stagger, 0ms);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* tracks slide from left */
.track-item.scroll-reveal {
  transform: translateX(-18px);
}

.track-item.scroll-reveal.visible {
  transform: translateX(0);
}

/* links slide from left */
.link-item.scroll-reveal {
  transform: translateX(-18px);
}

.link-item.scroll-reveal.visible {
  transform: translateX(0);
}

/* ─── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(108%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

@keyframes barDance {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.35); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════
   MOBILE — tablet + phone  (≤ 900px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --nav-h: 60px; }

  /* ── Hide desktop-only elements ── */
  .cursor-dot, .cursor-ring { display: none !important; }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .mobile-menu { display: flex; }
  .status-right { display: none; }

  /* ── Layout base ── */
  #nav { padding: 0 20px; }
  section { padding: calc(var(--nav-h) + 48px) 20px calc(var(--status-h) + 48px); }
  #hero { padding: 0 20px; }
  .status-bar { padding: 0 20px; }

  /* ── Hero ── */
  .hero-title { font-size: clamp(80px, 24vw, 140px); }
  .hero-subtitle { font-size: 11px; letter-spacing: 0.12em; }
  .hero-desc { font-size: 14px; max-width: 100%; }
  .hero-scroll { left: 20px; font-size: 10px; }
  .hero-index { left: auto; right: 20px; font-size: 10px; }

  /* ── Section headers ── */
  .section-header { margin-bottom: 28px; }
  .section-num { font-size: 11px; }
  .section-count { font-size: 11px; }
  .section-title { font-size: clamp(36px, 11vw, 56px); }

  /* ── Upcoming / particle canvas ── */
  .preview-wrap { height: 46vh; min-height: 280px; border-radius: 12px; }
  .preview-hint { font-size: 9px; letter-spacing: 0.14em; bottom: 12px; }
  .preview-card {
    top: auto; bottom: 12px;
    right: 12px; left: 12px;
    max-width: 100%;
    padding: 14px 16px;
    transform: translateY(8px);
  }
  .preview-card.visible { transform: translateY(0); }
  .preview-card-title { font-size: 16px; }
  .preview-card-play { font-size: 11px; padding: 7px 14px; }

  /* ── Upcoming tracklist ── */
  .upcoming-list { margin-top: 28px; }
  .upcoming-track { gap: 12px; padding: 11px 0; }
  .upcoming-num { font-size: 10px; min-width: 22px; }
  .upcoming-title { font-size: 13px; letter-spacing: 0; }
  .upcoming-bars { display: none; }
  .upcoming-play {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 50%;
  }
  .upcoming-play svg { width: 11px; height: 11px; }

  /* ── Music tracks ── */
  .track-item {
    grid-template-columns: 24px 40px 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }
  .track-cover { width: 40px; height: 40px; border-radius: 4px; }
  .track-num { font-size: 10px; }
  .track-title { font-size: 14px; }
  .track-meta { font-size: 10px; }
  .track-duration { font-size: 11px; }
  .track-bars, .track-play { display: none; }

  /* SoundCloud embed */
  .sc-embed-wrap { margin-top: 32px; }
  .sc-embed { height: 200px; }

  /* ── Gallery ── */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  /* Single column for featured items; 2-col for the rest */
  .gallery-item { grid-column: span 1 !important; }
  .gallery-item:first-child,
  .gallery-video,
  .gallery-youtube { grid-column: span 2 !important; }

  .gallery-item-title { font-size: 13px; }
  .gallery-item-meta { font-size: 10px; }
  .gallery-item-num { font-size: 10px; top: 10px; right: 10px; }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-text-large { font-size: clamp(22px, 7vw, 32px); line-height: 1.2; }
  .about-body { font-size: 13px; line-height: 1.75; }
  .about-tags { gap: 6px; margin-top: 20px; }
  .about-tag { font-size: 10px; padding: 5px 12px; }

  /* ── Links ── */
  .links-list { margin-top: 24px; }
  .link-item { padding: 18px 0; }
  .link-name { font-size: clamp(28px, 9vw, 44px); }
  .link-arrow { font-size: 20px; }

  /* ── Footer ── */
  footer { flex-direction: column; gap: 6px; text-align: center; font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — small phones only  (≤ 480px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  section { padding: calc(var(--nav-h) + 36px) 16px calc(var(--status-h) + 36px); }
  #hero { padding: 0 16px; }

  /* Hero */
  .hero-title { font-size: clamp(72px, 22vw, 100px); }
  .hero-desc { font-size: 13px; }

  /* Section title */
  .section-title { font-size: clamp(32px, 10vw, 48px); }

  /* Canvas shorter on small phones */
  .preview-wrap { height: 42vh; min-height: 240px; }

  /* Upcoming tracks tighter */
  .upcoming-title { font-size: 12px; }
  .upcoming-play { width: 30px; height: 30px; }

  /* Music */
  .track-cover { width: 36px; height: 36px; }
  .track-title { font-size: 13px; }

  /* Gallery single column on very small phones */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .gallery-item,
  .gallery-video,
  .gallery-youtube { grid-column: span 1 !important; }

  /* About */
  .about-text-large { font-size: clamp(20px, 6.5vw, 28px); }

  /* Links */
  .link-name { font-size: clamp(26px, 8.5vw, 38px); }
}
