/* ============================================================
   MECHE — style.css
   Theme: EDM / Milk+Leche — black, cream-white, UV-purple, cyan
   ============================================================ */

/* ---- FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&family=Space+Mono:wght@400;700&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #080808;
  color: #e8e4dc;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: none; }
ul { list-style: none; }

/* ---- CUSTOM CURSOR ---- */
.cursor-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, background 0.2s ease;
  will-change: transform;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(200, 180, 255, 0.6);
  border-radius: 50%;
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.18s cubic-bezier(0.16,1,0.3,1), width 0.18s ease, height 0.18s ease, border-color 0.2s ease;
  will-change: transform;
}
body.cursor-hover .cursor-ring {
  width: 52px; height: 52px;
  border-color: rgba(180, 120, 255, 0.8);
}

/* ---- CSS VARIABLES ---- */
:root {
  --black: #080808;
  --surface: #0f0f0f;
  --surface-2: #141414;
  --border: rgba(255,255,255,0.08);
  --cream: #f0ead8;
  --cream-dim: rgba(240, 234, 216, 0.55);
  --purple: #b87eff;
  --purple-glow: rgba(168, 100, 255, 0.35);
  --cyan: #4fe5d8;
  --cyan-glow: rgba(79, 229, 216, 0.3);
  --accent: var(--purple);
  --transition: 180ms cubic-bezier(0.16,1,0.3,1);
  --ease-out: cubic-bezier(0.16,1,0.3,1);
}

/* ---- NOISE OVERLAY ---- */
.noise {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
}
.scanlines {
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
}

/* ---- BG CANVAS ---- */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ---- HEADER ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.scrolled {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto;
  padding: 1.25rem 2rem;
}
.logo-link { display: flex; align-items: center; }
.logo-svg { width: 120px; height: 36px; color: var(--cream); }
.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,234,216,0.7);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  border: 1px solid rgba(184, 126, 255, 0.5) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  color: var(--purple) !important;
  transition: background var(--transition), color var(--transition), border-color var(--transition) !important;
}
.nav-cta:hover {
  background: var(--purple-glow) !important;
  border-color: var(--purple) !important;
  color: #fff !important;
}

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--cream); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- MOBILE NAV ---- */
.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8,8,8,0.97);
  z-index: 490;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav ul { text-align: center; }
.mobile-nav li { margin: 1.5rem 0; }
.mobile-link {
  font-size: 2.5rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--cream); text-transform: uppercase;
  transition: color 0.2s ease;
}
.mobile-link:hover { color: var(--purple); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.hero-image-wrap {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: slowzoom 20s ease-in-out infinite alternate;
}
@keyframes slowzoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: 
    linear-gradient(to right, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.3) 50%, rgba(8,8,8,0.6) 100%),
    linear-gradient(to top, rgba(8,8,8,0.95) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem;
}
.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.hero-name {
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  margin-bottom: 1.25rem;
  color: var(--cream);
  position: relative;
  display: inline-flex;
}
.hero-name span {
  display: inline-block;
  animation: letterFloat 6s ease-in-out infinite;
}
.name-m  { animation-delay: 0s; }
.name-e1 { animation-delay: 0.15s; }
.name-c  { animation-delay: 0.3s; }
.name-h  { animation-delay: 0.45s; }
.name-e2 { animation-delay: 0.6s; }
@keyframes letterFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: 14px; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240,234,216,0.45);
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--purple);
  color: #080808;
  font-weight: 700;
  box-shadow: 0 0 24px var(--purple-glow);
}
.btn-primary:hover {
  background: #c99cff;
  box-shadow: 0 0 40px rgba(168,100,255,0.6);
}
.btn-ghost {
  border: 1px solid rgba(240,234,216,0.25);
  color: var(--cream-dim);
}
.btn-ghost:hover {
  border-color: var(--cream);
  color: var(--cream);
  background: rgba(255,255,255,0.04);
}
.btn-full { width: 100%; text-align: center; }

/* ---- SCROLL HINT ---- */
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(184,126,255,0.8), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
  margin: 0 auto;
}
@keyframes scrollpulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ---- FADE-IN ON LOAD ---- */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- SCROLL REVEALS ---- */
.reveal-fade {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .reveal-fade {
    opacity: 0;
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
    animation-delay: var(--delay, 0s);
  }
  @keyframes revealFade {
    to { opacity: 1; }
  }
}

/* ---- MARQUEE ---- */
.marquee-wrap {
  position: relative; z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240,234,216,0.4);
}
.marquee-track .dot {
  color: var(--purple);
  font-size: 10px;
  letter-spacing: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- SECTIONS ---- */
.section {
  position: relative; z-index: 2;
  padding: clamp(5rem, 8vw, 9rem) 0;
}
.section-header { margin-bottom: 3.5rem; }
.section-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cream);
}

/* ---- TRACKS ---- */
.music-section { background: var(--surface); }
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.track-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation-delay: var(--delay, 0s);
}
.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 20px var(--purple-glow);
  border-color: rgba(184,126,255,0.3);
}
.track-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.track-art-visual {
  position: absolute; inset: 0;
  opacity: 0.7;
}
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,8,0.3);
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.play-btn svg { width: 32px; height: 32px; color: #fff; filter: drop-shadow(0 0 8px rgba(184,126,255,0.8)); }
.track-card:hover .play-btn { opacity: 1; }
.track-card:hover .play-btn { background: rgba(8,8,8,0.5); }
.track-info { padding: 1.25rem; }
.track-name { font-size: 15px; font-weight: 700; color: var(--cream); margin-bottom: 0.25rem; }
.track-meta { font-size: 12px; color: rgba(240,234,216,0.4); font-family: 'Space Mono', monospace; letter-spacing: 0.08em; margin-bottom: 1rem; }
.track-waveform { height: 32px; overflow: hidden; }
.wave-bars { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.wave-bars span {
  flex: 1; min-width: 2px;
  background: rgba(184,126,255,0.5);
  border-radius: 1px;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}
@keyframes wavePulse {
  from { transform: scaleY(0.3); opacity: 0.5; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* ---- ABOUT ---- */
.about-section { background: var(--black); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text .section-label { margin-bottom: 0.5rem; }
.about-text .section-title { margin-bottom: 2rem; }
.about-body { color: rgba(240,234,216,0.65); line-height: 1.75; margin-bottom: 1.25rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid rgba(184,126,255,0.35);
  color: var(--purple);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  transition: background var(--transition), border-color var(--transition);
}
.tag:hover { background: var(--purple-glow); border-color: var(--purple); }
.about-visual { display: flex; flex-direction: column; gap: 2rem; }
.about-visual-inner {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
#vis-canvas { width: 100%; height: 100%; display: block; }
.about-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
}
.about-stat-block { display: flex; gap: 2rem; }
.stat { text-align: center; flex: 1; }
.stat-num {
  display: block;
  font-size: 3rem; font-weight: 700;
  color: var(--cream);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(240,234,216,0.4); font-family: 'Space Mono', monospace; }

/* ---- SHOWS ---- */
.shows-section { background: var(--surface); }
.shows-list { display: flex; flex-direction: column; gap: 0; }
.show-item {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  animation-delay: var(--delay, 0s);
  transition: background var(--transition);
  position: relative;
}
.show-item::before {
  content: '';
  position: absolute; left: -2rem; top: 0; bottom: 0; width: 0;
  background: linear-gradient(to right, var(--purple-glow), transparent);
  transition: width var(--transition);
}
.show-item:hover::before { width: calc(100% + 4rem); }
.show-date {
  min-width: 56px; text-align: center;
  flex-shrink: 0;
}
.show-month { display: block; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.15em; color: var(--purple); text-transform: uppercase; }
.show-day { display: block; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--cream); }
.show-info { flex: 1; min-width: 0; }
.show-name { font-size: 18px; font-weight: 700; color: var(--cream); }
.show-location { font-size: 13px; color: rgba(240,234,216,0.45); font-family: 'Space Mono', monospace; }
.show-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.show-tag {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--border);
  color: rgba(240,234,216,0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  font-family: 'Space Mono', monospace;
}
.show-tag:last-child:nth-child(2) { border-color: rgba(255, 100, 80, 0.4); color: rgba(255,140,120,0.7); }
.show-ticket {
  font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--cyan);
  transition: color var(--transition), text-shadow var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.show-ticket:hover { color: #fff; text-shadow: 0 0 12px var(--cyan); }

/* ---- CONTACT ---- */
.contact-section { background: var(--black); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-body { color: rgba(240,234,216,0.55); margin: 1rem 0 2rem; font-size: 15px; }
.contact-email {
  font-family: 'Space Mono', monospace;
  font-size: 14px; letter-spacing: 0.08em;
  color: var(--purple);
  transition: color var(--transition), text-shadow var(--transition);
}
.contact-email:hover { color: #fff; text-shadow: 0 0 16px var(--purple); }
.contact-links { margin-bottom: 2rem; }
.social-row { display: flex; gap: 1rem; }
.social-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: rgba(240,234,216,0.4);
  transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { color: var(--cream); border-color: var(--purple); background: var(--purple-glow); box-shadow: 0 0 16px var(--purple-glow); }

/* ---- FORM ---- */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-family: 'Space Mono', monospace; color: rgba(240,234,216,0.45); }
input, textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: rgba(240,234,216,0.25); }
input:focus, textarea:focus {
  border-color: rgba(184,126,255,0.6);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
textarea { min-height: 120px; }

/* ---- FOOTER ---- */
.site-footer {
  position: relative; z-index: 2;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--cream);
  transition: color var(--transition);
}
.footer-logo:hover { color: var(--purple); }
.footer-copy { font-size: 12px; color: rgba(240,234,216,0.3); font-family: 'Space Mono', monospace; }
.footer-tag { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(184,126,255,0.4); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .show-tags { display: none; }
}
@media (max-width: 600px) {
  .tracks-grid { grid-template-columns: 1fr 1fr; }
  .hero-name { font-size: clamp(5rem, 22vw, 8rem); }
  .show-item { gap: 1rem; }
}
@media (max-width: 400px) {
  .tracks-grid { grid-template-columns: 1fr; }
}

/* ---- PULSE GLOW (global beat pulse) ---- */
@keyframes beatPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
