:root {
  --bg: #0f0f0f;
  --fg: #e5e5e5;
  --red: #e30613;
  --blue: #0066ff;
  --accent: var(--red);
  --card-bg: #1a1a1a;
  --muted: #888;
  --font-display: 'Anton', system-ui, -apple-system, sans-serif;
  --font-body: 'Spline Sans', system-ui, -apple-system, sans-serif;
}

[data-theme="liminal"] {
  --red: #e30613;
  --blue: #0066ff;
  --accent: var(--red);
}

[data-theme="after-hours"] {
  --red: #cc0033;
  --blue: #3399ff;
  --accent: var(--blue);
}

[data-theme="film-burn"] {
  --red: #ff3d00;
  --blue: #0055aa;
  --accent: var(--red);
}

[data-theme="static"] {
  --red: #ff0000;
  --blue: #00aaff;
  --accent: var(--blue);
  --bg: #000000;
  --card-bg: #111;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Real film grain via SVG noise - replaces fake grid */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
  opacity: 0.06;
}

/* Typography */
h1, h2, .wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.wordmark {
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.theme-switcher {
  display: flex;
  gap: 0.5rem;
}

.theme-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, border-color 0.2s;
}

.theme-btn:hover {
  transform: scale(1.15);
  border-color: var(--accent);
}

.theme-btn.liminal { background: linear-gradient(135deg, #e30613, #0066ff); }
.theme-btn.after-hours { background: linear-gradient(135deg, #cc0033, #3399ff); }
.theme-btn.film-burn { background: linear-gradient(135deg, #ff3d00, #0055aa); }
.theme-btn.static { background: #000; border-color: #444; }

/* Hero - photo leads, dark neutral overlay only */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  background: url('assets/hero.jpg') center/cover no-repeat;
  background-position: center;
}

/* Subtle dark overlay for legibility - no red/blue tint, no ::before wash */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,8,10,.88) 0%, rgba(8,8,10,.6) 45%, rgba(8,8,10,.15) 100%);
  z-index: 0;
}

/* Extra soft bottom fade to page bg */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 92%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

/* Subtle vertical accent line for flavor */
.hero-content::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 3.5rem;
  bottom: 3.5rem;
  width: 3px;
  background: linear-gradient(var(--red), var(--blue));
  opacity: 0.7;
  border-radius: 3px;
}

.revamp-ribbon {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.kicker {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.hero-subhead {
  font-size: 1.25rem;
  max-width: 42ch;
  color: #f0f0f0;
  margin: 1.25rem 0 2rem;
  line-height: 1.5;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.cta.primary {
  background: var(--accent);
  color: #fff;
}

.cta.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cta.secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.3);
}

.cta.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Genre Marquee */
.marquee {
  overflow: hidden;
  padding: 2.5rem 0;
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marquee-inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: #666;
  animation: marquee 25s linear infinite;
}

.marquee:hover .marquee-inner {
  animation-play-state: paused;
}

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

/* Section common */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

/* Editorial ghosted number behind title */
.section-title::before {
  content: attr(data-num);
  position: absolute;
  font-family: var(--font-display);
  font-size: 7.5rem;
  line-height: 1;
  top: -2.8rem;
  left: -0.35rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.07);
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, var(--accent), transparent);
}

/* Music - tilted track cards kept */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.track-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s;
}

.track-card:nth-child(1) { transform: rotate(-1.2deg); }
.track-card:nth-child(2) { transform: rotate(1.8deg) translateY(10px); }
.track-card:nth-child(3) { transform: rotate(-0.8deg) translateX(8px); }

.track-card:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 2;
}

.track-art {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #222 0%, #111 100%);
  margin-bottom: 1.25rem;
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.track-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
  opacity: 0.12;
  mix-blend-mode: multiply;
}

.track-art.stubbed { background-image: url('assets/track-stubbed-toe.jpg'); }
.track-art.broken { background-image: url('assets/track-broken-leg.jpg'); }
.track-art.if-i { background-image: url('assets/track-if-i-was-you.jpg'); }

.track-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.track-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.track-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.track-mood {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.track-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(#222, #111);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  background-image: url('assets/portrait.jpg');
}

.about-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.facts {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fact {
  background: var(--card-bg);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

/* Beats & Studio - de-squared panels */
.beats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.panel {
  background: var(--card-bg);
  padding: 2.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 0.2s ease;
}

.panel:nth-child(even) {
  transform: translateY(12px);
}

.panel:hover {
  transform: translateY(-4px);
}

.panel::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 92px;
  height: 5px;
  background: var(--accent);
  z-index: 1;
}

/* Subtle radial glow accent in corner */
.panel::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.panel h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.panel p {
  color: #bbb;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.panel a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

/* Listen & Follow - angled link cards */
.listen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.link-card {
  background: var(--card-bg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s cubic-bezier(0.23, 1.0, 0.32, 1);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.link-card:nth-child(even) {
  transform: translateY(8px);
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px) rotate(0.6deg);
  box-shadow: 0 15px 30px rgba(0,0,0,0.35);
}

/* Top accent bar alternating red/blue */
.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  opacity: 0.85;
}

.link-card:nth-child(odd)::before {
  background: var(--red);
}

.link-card:nth-child(even)::before {
  background: var(--blue);
}

.link-card .platform {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
  display: block;
  letter-spacing: 0.02em;
}

.link-card .handle {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
  .track-card { transition: none; }
  .panel, .link-card { transition: none; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { gap: 1.25rem; font-size: 0.9rem; }
  .about-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2.1rem; }
  .section-title::before { font-size: 5.5rem; top: -2.1rem; }
  .hero-content::before { display: none; }
}