:root {
  --bg: #050505;
  --fg: #ffffff;
  --accent: #444;
  --neon: #0f0;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

/* PAGE TRANSITIONS — on wrapper, NOT body, so fixed nav is unaffected */
.page-wrap {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

body.fade-out .page-wrap {
  animation: fadeOut 0.3s ease forwards;
}

/* GRAIN OVERLAY */
.noise {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.05; pointer-events: none; z-index: 9999;
}

/* NAVIGATION */
.top-bar {
  position: fixed; top: 0; left: 0; width: 100%; padding: 20px 30px;
  display: flex; justify-content: space-between; z-index: 1000; align-items: center;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo { height: 22px; width: auto; display: block; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--fg); text-decoration: none; font-size: 10px;
  letter-spacing: 2px; opacity: 0.5; transition: 0.3s; font-weight: bold;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }

.nav-info { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; background: var(--neon); border-radius: 50%; box-shadow: 0 0 10px var(--neon); }

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.5;
  display: block;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.1) 0%,
    rgba(5, 5, 5, 0.2) 40%,
    rgba(5, 5, 5, 0.85) 75%,
    rgba(5, 5, 5, 1) 100%
  );
}

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

.hero-logo { width: 100%; max-width: 320px; height: auto; margin-bottom: 20px; }
.hero-title { font-size: clamp(3rem, 12vw, 10rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.8; }
.sub-text { margin-top: 15px; font-size: 12px; letter-spacing: 4px; color: var(--accent); text-transform: uppercase; }

/* DISCOGRAPHY GRID */
.work-grid { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; }
.work-item { flex: 1 1 300px; position: relative; background: #111; cursor: pointer; transition: 0.4s ease; }
.work-item.large { flex: 2 1 600px; }
.img-box { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.large .img-box { aspect-ratio: 16/9; }
.img-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.5s; }
.work-item:hover img { opacity: 1; transform: scale(1.02); }

.label {
  position: absolute; bottom: 15px; left: 15px; right: 15px;
  display: flex; justify-content: space-between; font-size: 10px; font-weight: bold; color: rgba(255,255,255,0.4);
}

/* COLLECTIVE / GHOST TEXT */
.collective { padding: 180px 20px; text-align: center; position: relative; }
.ghost-text {
  font-size: 20vw; font-weight: 900; color: rgba(255,255,255,0.02);
  letter-spacing: -0.05em; pointer-events: none;
}

.quote { padding: 100px 40px; text-align: center; font-style: italic; color: var(--accent); font-size: 18px; }

/* LOG / ARCHIVE PAGE STYLES */
.log-container { padding: 150px 40px 60px; max-width: 1000px; margin: 0 auto; }
.log-header { margin-bottom: 80px; }
.log-header small { color: var(--neon); font-family: monospace; letter-spacing: 2px; }
.log-header h1 { font-size: clamp(3rem, 10vw, 8rem); font-weight: 900; letter-spacing: -4px; }
.log-list { display: flex; flex-direction: column; border-top: 1px solid #111; }
.log-entry { display: flex; padding: 40px 0; border-bottom: 1px solid #111; gap: 40px; }
.log-date { font-size: 11px; font-weight: bold; color: var(--accent); min-width: 100px; padding-top: 5px; }
.log-content h3 { font-size: 18px; letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }
.log-content p { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 600px; }

/* STORE / STATION PAGE STYLES */
.center-content { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.status-msg h1 { font-size: 10vw; font-weight: 900; letter-spacing: -5px; line-height: 1; }
.blink { animation: blink 1.5s infinite; color: var(--neon); font-family: monospace; letter-spacing: 2px; text-transform: uppercase; margin-top: 10px; }
@keyframes blink { 50% { opacity: 0; } }

/* FOOTER */
.site-footer { padding: 100px 40px 40px; border-top: 1px solid #111; margin-top: 100px; background: #000; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 60px; margin-bottom: 100px; }
.footer-col { display: flex; flex-direction: column; gap: 15px; }
.footer-col small { color: var(--accent); letter-spacing: 3px; font-size: 9px; }
.footer-col a { color: var(--fg); text-decoration: none; font-size: 13px; transition: 0.3s; }
.footer-col a:hover { opacity: 0.6; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 9px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; }

/* MODAL / MUSIC POPUP */
.modal {
  position: fixed; inset: 0; background: #000; z-index: 2000;
  display: flex; padding: 40px; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-close { position: absolute; top: 40px; right: 40px; cursor: pointer; font-size: 11px; letter-spacing: 2px; }
.modal-content { display: flex; width: 100%; max-width: 1000px; gap: 50px; align-items: center; flex-wrap: wrap; }
.modal-content img { width: 450px; max-width: 100%; border-radius: 2px; }
.modal-text { flex: 1; min-width: 300px; }
.modal-text h2 { font-size: clamp(2rem, 8vw, 5rem); line-height: 1; margin-bottom: 10px; }
.modal-text p { color: var(--accent); font-size: 12px; letter-spacing: 2px; margin-bottom: 30px; }
.links a { display: block; color: #fff; text-decoration: none; font-size: 14px; padding: 15px 0; border-bottom: 1px solid #111; transition: 0.3s; }
.links a:hover { border-color: #fff; padding-left: 10px; }

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
  .top-bar { padding: 15px 20px; }
  .nav-links { gap: 15px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .modal-content { flex-direction: column; text-align: center; }
  .modal-content img { width: 100%; }
  .log-entry { flex-direction: column; gap: 10px; }
  .hero { padding: 30px; }
}