/* Insomnia Music — shared design tokens & base components (matches insomniaentertainmentgroup.com) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #060608;
  --deep: #0d0d10;
  --surface: #121216;
  --border: #1e1e24;
  --red: #c8001a;
  --red-bright: #ff001f;
  --white: #f0ede8;
  --muted: #6b6875;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
  cursor: none;
}

/* CUSTOM CURSOR — sleepy blinking eye */
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(200, 0, 26, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
}
.cursor-eye-wrap {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 34px; height: 34px;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease;
}
.cursor-eye-wrap.hovering { width: 48px; height: 48px; }
.eye-photo {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.11s ease;
}
.eye-closed {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.11s ease;
}
.eye-closed .lash { fill: none; stroke: #d9a884; stroke-width: 3; stroke-linecap: round; }
.cursor-eye-wrap.blinking .eye-photo { opacity: 0; }
.cursor-eye-wrap.blinking .eye-closed { opacity: 1; }

/* Z-TRAIL — faint sleepy z's drifting off the cursor as it moves */
.z-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  font-family: 'DM Mono', monospace;
  color: var(--red-bright);
  opacity: 0.65;
  animation: zFloat 0.9s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes zFloat {
  0% { opacity: 0.6; transform: translate(-50%, -50%) translate(0, 0) scale(1) rotate(var(--zrot, 0deg)); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--zdx, 10px), -32px) scale(0.5) rotate(var(--zrot, 0deg)); }
}

/* NAV */
nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 60px;
  background: linear-gradient(to bottom, rgba(6,6,8,0.97), rgba(6,6,8,0.85));
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  border: 1px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--red);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--black);
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-links a.active { color: var(--white); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s;
}
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* BUTTONS */
.btn-primary, .btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  display: inline-block;
  transition: all 0.3s;
}
.btn-primary { color: var(--white); background: var(--red); border: none; }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); }
.btn-ghost { color: var(--muted); background: transparent; border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* MARQUEE */
.marquee-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 16px 0; background: var(--deep); }
.marquee-track { display: flex; animation: marquee 26s linear infinite; white-space: nowrap; }
.marquee-item { display: flex; align-items: center; gap: 30px; padding: 0 30px; font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.marquee-dot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTION HEADER (generic) */
.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--red); }
.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 60px;
}
.section-heading em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; color: var(--muted); }

/* RELEASE BLOCK (used on album detail pages) */
.release {
  padding: 110px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}
.release-visual { position: sticky; top: 110px; }
.release-cover {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.release-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.release-album {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.release-album::before { content: ''; width: 30px; height: 1px; background: var(--red); }
.release-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 8px;
}
.release-artist { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 32px; }
.release-desc { font-size: 1.05rem; font-weight: 300; color: var(--muted); line-height: 1.9; margin-bottom: 36px; }
.release-embed { margin-bottom: 36px; }
.release-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

/* VIDEO MODULE (per-album) */
.video-module { border-top: 1px solid var(--border); padding-top: 36px; }
.video-module-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
}
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.video-thumb {
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.3s;
}
.video-thumb:hover { border-color: var(--red); color: var(--white); }
.video-thumb .play {
  width: 34px; height: 34px;
  border: 1px solid var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 0.7rem;
}
.video-empty {
  border: 1px dashed var(--border);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.video-empty-text { font-size: 0.95rem; font-weight: 300; color: var(--muted); line-height: 1.7; max-width: 380px; }
.video-empty-text strong { color: var(--white); font-style: italic; }

/* ALBUM CATALOG GRID (homepage) */
.catalog { padding: 110px 60px; border-top: 1px solid var(--border); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.catalog-card {
  background: var(--deep);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.4s;
}
.catalog-card:hover { background: var(--surface); }
.catalog-cover { aspect-ratio: 1; overflow: hidden; border-bottom: 1px solid var(--border); }
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.catalog-card:hover .catalog-cover img { transform: scale(1.04); }
.catalog-info { padding: 32px; }
.catalog-eyebrow { font-family: 'DM Mono', monospace; font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.catalog-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: 1.6rem; color: var(--white); margin-bottom: 8px; }
.catalog-meta { font-family: 'DM Mono', monospace; font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

/* HERO (album detail pages use a shorter header, not the big homepage hero) */
.page-header {
  padding: 180px 60px 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 20%, rgba(200,0,26,0.08) 0%, transparent 60%), var(--black);
}
.page-header-content { position: relative; z-index: 2; }

/* ABOUT / MANIFESTO */
.manifesto {
  padding: 120px 60px;
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
  align-items: center;
}
.manifesto-quote { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 300; font-style: italic; line-height: 1.5; color: var(--white); }
.manifesto-quote strong { font-style: normal; font-weight: 600; color: var(--red); }
.manifesto-body p { font-size: 1.05rem; font-weight: 300; color: var(--muted); line-height: 1.9; margin-bottom: 24px; }
.manifesto-body p:last-child { margin-bottom: 0; }

/* JOURNEY GALLERY (About) */
.gallery { padding: 120px 60px; border-top: 1px solid var(--border); }
.gallery-category { margin-top: 70px; }
.gallery-category:first-of-type { margin-top: 60px; }
.gallery-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gallery-subtitle::before { content: ''; width: 18px; height: 1px; background: var(--red); flex-shrink: 0; }
.gallery-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery-photo {
  aspect-ratio: 4/3;
  width: 100%;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.gallery-photo:hover img { transform: scale(1.04); }
.gallery-photo.needs-photo {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.gallery-photo.needs-photo span {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

/* CONTACT */
.contact { padding: 120px 60px; text-align: center; }
.contact-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.contact-eyebrow::before, .contact-eyebrow::after { content: ''; width: 60px; height: 1px; background: var(--border); }
.contact-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.8rem, 6vw, 6rem); line-height: 0.95; letter-spacing: 0.03em; margin-bottom: 44px; }
.contact-title em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; color: var(--muted); display: block; }
.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  transition: all 0.3s;
  display: inline-block;
  margin: 0 20px 20px;
}
.contact-email:hover { border-color: var(--red); color: var(--red); }

/* FOOTER */
footer { padding: 40px 60px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.25em; color: var(--muted); }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 0.55rem; letter-spacing: 0.15em; color: var(--muted); }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-family: 'DM Mono', monospace; font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }

@media (max-width: 900px) {
  nav, .hero, .section, .manifesto, .contact, .release, .catalog, .page-header, footer { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  .release, .manifesto { grid-template-columns: 1fr; gap: 40px; }
  .release-visual { position: static; }
  .catalog-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}
