/* ===========================
   MERCER WILDE — PREMIUM SITE
   Dark alt-pop · Black + Gold
   Full cinematic treatment
   =========================== */

:root {
  --black: #000000;
  --near-black: #0D0D0D;
  --dark: #111111;
  --charcoal: #161616;
  --gold: #D4A843;
  --gold-bright: #E8C35A;
  --gold-dim: #8A6820;
  --off-white: #F0EDE6;
  --warm-gray: #8A8378;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --nav-h: 64px;
  --max-w: 1140px;
  --section-pad: 120px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === GLOBAL GRAIN OVERLAY === */
.global-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ===========================
   NAV
   =========================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  background: rgba(0,0,0,0);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(212,168,67,0.1);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--warm-gray);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--off-white); }
.nav-links a.nav-cta {
  color: var(--gold);
  border: 1px solid rgba(212,168,67,0.35);
  padding: 6px 18px;
  transition: all 0.25s;
}
.nav-links a.nav-cta:hover {
  border-color: var(--gold);
  background: rgba(212,168,67,0.08);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 16px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 30px rgba(212,168,67,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(240,237,230,0.25);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(212,168,67,0.1);
}

/* ===========================
   HERO — Full Cinematic
   =========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-h) 40px 80px;
  background: var(--black);
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.07) 0%, rgba(212,168,67,0.02) 40%, transparent 70%);
  z-index: 0;
}
.hero-glow-secondary {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,0.05) 0%, transparent 60%);
  z-index: 0;
  animation: heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.03) 3px,
    rgba(0,0,0,0.03) 4px
  );
  z-index: 1;
  pointer-events: none;
}

/* Clock SVG with pulse */
.hero-clock-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  z-index: 1;
  animation: clockPulse 4s ease-in-out infinite;
}
@keyframes clockPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.02); }
}
.hero-clock-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
}
.hero-clock-svg {
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

/* Hero text */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 140px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.06em;
  color: var(--off-white);
  margin-bottom: 24px;
  text-shadow: 0 0 80px rgba(212,168,67,0.08);
}

/* TYME Glitch */
.hero-album-title {
  margin-bottom: 24px;
}
.tyme-glitch {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--gold);
  position: relative;
  display: inline-block;
}
.tyme-glitch::before,
.tyme-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--gold);
  opacity: 0;
}
.tyme-glitch::before {
  animation: glitchSlice1 8s ease-in-out infinite;
}
.tyme-glitch::after {
  animation: glitchSlice2 8s ease-in-out infinite;
}
@keyframes glitchSlice1 {
  0%, 93%, 93.5% { opacity: 0; clip-path: none; transform: none; }
  93.1% { opacity: 0.8; clip-path: inset(20% 0 60% 0); transform: translateX(-4px); }
  93.2% { opacity: 0.8; clip-path: inset(50% 0 20% 0); transform: translateX(3px); }
  93.3% { opacity: 0.8; clip-path: inset(10% 0 70% 0); transform: translateX(-2px); }
  93.4% { opacity: 0; clip-path: none; transform: none; }
  100% { opacity: 0; }
}
@keyframes glitchSlice2 {
  0%, 93%, 93.5% { opacity: 0; clip-path: none; transform: none; }
  93.1% { opacity: 0.6; clip-path: inset(60% 0 10% 0); transform: translateX(4px); }
  93.2% { opacity: 0.6; clip-path: inset(30% 0 40% 0); transform: translateX(-3px); }
  93.3% { opacity: 0.6; clip-path: inset(70% 0 5% 0); transform: translateX(2px); }
  93.4% { opacity: 0; clip-path: none; transform: none; }
  100% { opacity: 0; }
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--warm-gray);
  margin-bottom: 48px;
  opacity: 0.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(212,168,67,0.5), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.15); }
}

/* ===========================
   SHARED SECTION STYLES
   =========================== */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) 40px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.8;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--off-white);
  margin-bottom: 24px;
}
.section-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--warm-gray);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ===========================
   SCROLL FADE-IN
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ===========================
   MUSIC
   =========================== */
#music {
  background: var(--charcoal);
}
.spotify-embed {
  border: 1px solid rgba(212,168,67,0.1);
  margin-bottom: 48px;
  overflow: hidden;
  border-radius: 2px;
}
.tracklist {
  margin-bottom: 48px;
}
.tracklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid rgba(240,237,230,0.06);
}
.track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(240,237,230,0.06);
  border-right: 1px solid rgba(240,237,230,0.06);
  transition: all 0.25s ease;
  border-left: 2px solid transparent;
}
.track:hover {
  background: rgba(212,168,67,0.04);
  border-left-color: var(--gold);
}
.track-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  min-width: 22px;
}
.track-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--off-white);
}
.platform-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.platform-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  border-bottom: 1px solid rgba(138,131,120,0.2);
  padding-bottom: 2px;
  transition: all 0.25s;
}
.platform-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* ===========================
   GOLD DIVIDER
   =========================== */
.divider-gold {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
  opacity: 0.35;
}

/* ===========================
   MERCH — CSS/SVG Product Previews
   =========================== */
#merch {
  background: var(--black);
}
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
  background: transparent;
  border: 1px solid rgba(212,168,67,0.06);
}
.merch-card {
  background: #111111;
  border: 1px solid rgba(212,168,67,0.15);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
}
.merch-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.merch-card:hover {
  background: #161616;
  border-color: rgba(212,168,67,0.4);
  box-shadow: 0 0 40px rgba(212,168,67,0.1), 0 0 80px rgba(212,168,67,0.04);
}
.merch-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(212,168,67,0.1);
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1a1a14 0%, #0D0D0D 70%);
  padding: 24px;
}
.merch-garment {
  width: 65%;
  max-width: 180px;
  transition: transform 0.35s ease;
}
.merch-card:hover .merch-garment {
  transform: scale(1.03);
}
.garment-svg {
  width: 100%;
  height: auto;
}
.merch-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.merch-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--off-white);
}
.merch-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}
.merch-cta { text-align: center; }
.merch-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  opacity: 0.5;
}

/* ===========================
   ABOUT
   =========================== */
#about {
  background: var(--near-black);
  border-top: 1px solid rgba(212,168,67,0.06);
  border-bottom: 1px solid rgba(212,168,67,0.06);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  max-width: 480px;
}
.about-visual-container {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(212,168,67,0.08);
  background: var(--dark);
}
.about-artwork {
  position: relative;
  z-index: 2;
  width: 75%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}
.about-tyme-texture {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}
.about-tyme-texture span {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.03;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.about-bio {
  font-size: 15px;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  border: 1px solid rgba(138,104,32,0.25);
  padding: 5px 12px;
  transition: all 0.25s;
}
.tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===========================
   MAILING LIST
   =========================== */
#mailing {
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.mailing-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.mailing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.mailing-inner .section-sub {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.mailing-form {
  max-width: 480px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  gap: 0;
  border: 1px solid rgba(212,168,67,0.2);
  transition: border-color 0.3s;
}
.form-row:focus-within {
  border-color: rgba(212,168,67,0.5);
  box-shadow: 0 0 20px rgba(212,168,67,0.05);
}
.form-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--off-white);
}
.form-row input::placeholder {
  color: var(--warm-gray);
  opacity: 0.4;
}
.form-row .btn {
  flex-shrink: 0;
  border: none;
  padding: 16px 28px;
}
.form-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  opacity: 0.35;
}

/* ===========================
   FOOTER
   =========================== */
#footer {
  background: var(--near-black);
  border-top: 1px solid rgba(212,168,67,0.08);
  padding: 48px 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-img {
  height: 20px;
  width: auto;
  opacity: 0.7;
}
.footer-logo span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.footer-social {
  display: flex;
  gap: 32px;
}
.footer-social a {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  transition: color 0.25s;
}
.footer-social a:hover { color: var(--gold); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--warm-gray);
  opacity: 0.3;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual { max-width: 100%; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-clock-wrap {
    width: min(70vw, 400px);
    height: min(70vw, 400px);
  }
}
@media (max-width: 640px) {
  :root { --section-pad: 80px; }
  #nav { padding: 0 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .section-inner { padding-left: 24px; padding-right: 24px; }
  .tracklist-grid { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-social { flex-wrap: wrap; gap: 20px; }
  .form-row { flex-direction: column; }
  .form-row input, .form-row .btn { width: 100%; }
  .hero-name { font-size: clamp(44px, 14vw, 100px); }
  .tyme-glitch { font-size: clamp(32px, 10vw, 60px); }
  .about-tyme-texture span { font-size: 60px; }
}
