/* ============ Design Tokens ============ */
:root {
  --bg: #0a0806;
  --bg-2: #14100a;
  --fg: #f5ecd7;
  --muted: #a89880;
  --primary: #d4a94a;
  --primary-2: #b8862c;
  --border: rgba(212,169,74,0.2);
  --glass: rgba(255,255,255,0.03);
  --shadow-gold: 0 8px 30px -8px rgba(212,169,74,0.3);
}
body.light {
  --bg: #f5efe1;
  --bg-2: #ebe2ce;
  --fg: #1c150a;
  --muted: #6b5a3d;
  --primary: #b8862c;
  --primary-2: #8a5f13;
  --border: rgba(184,134,44,0.3);
  --glass: rgba(255,255,255,0.5);
  --shadow-gold: 0 8px 30px -8px rgba(184,134,44,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============ Layout ============ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-2); }

/* ============ Typography ============ */
.display, .display-2 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.05;
}
.display { font-size: clamp(3.5rem, 10vw, 7rem); }
.display-2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2.5rem; }
.subhead {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1.25rem;
}
.eyebrow {
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.gold-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #f0d17a 50%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Glass Card ============ */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  transition: all 0.35s ease;
}

/* ============ Navbar ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10,8,6,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.6s ease;
}
body.light .navbar { background: rgba(245,239,225,0.8); }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; }
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; opacity: 0.85; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); opacity: 1; }
@media (max-width: 640px) {
  .nav-links a:not(#theme-toggle) { display: none; }
}
.theme-toggle {
  background: transparent; border: 1px solid var(--border);
  color: var(--primary); border-radius: 999px;
  width: 40px; height: 40px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover { background: rgba(212,169,74,0.1); transform: rotate(20deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 3rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; animation: zoomIn 2s ease-out; }
@keyframes zoomIn { from { transform: scale(1.15); } to { transform: scale(1); } }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,8,6,0.6), rgba(10,8,6,0.4), var(--bg));
}
body.light .hero-overlay { background: linear-gradient(to bottom, rgba(245,239,225,0.5), rgba(245,239,225,0.4), var(--bg)); }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 480px; margin: 1.5rem auto 0; }
.hero-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.reveal > * { opacity: 0; animation: fadeUp 0.9s ease forwards; }
.reveal > *:nth-child(1) { animation-delay: 0.2s; }
.reveal > *:nth-child(2) { animation-delay: 0.4s; }
.reveal > *:nth-child(3) { animation-delay: 0.8s; }
.reveal > *:nth-child(4) { animation-delay: 1.1s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #12100b;
}
.btn-primary:hover { transform: scale(1.06); box-shadow: 0 0 30px rgba(212,169,74,0.5); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(212,169,74,0.1); border-color: var(--primary); transform: scale(1.06); }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 2px solid var(--border); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 6px;
  animation: bob 2s ease-in-out infinite;
}
.scroll-indicator span {
  width: 4px; height: 8px; background: var(--primary); border-radius: 999px;
  animation: dot 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(8px);} }
@keyframes dot { 0%,100%{transform:translateY(0);opacity:1;} 50%{transform:translateY(6px);opacity:0.4;} }

/* ============ About ============ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.stat { padding: 1.75rem 1rem; text-align: center; }
.stat:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-gold); }
.stat-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.bio { padding: 2.5rem; }
.bio p + p { margin-top: 1rem; }
.bio-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* ============ Music ============ */
.spotify-wrap { padding: 1rem; margin-bottom: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.video-card { overflow: hidden; cursor: pointer; display: block; }
.video-card .thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.video-card:hover img { transform: scale(1.1); }
.video-card:hover { box-shadow: var(--shadow-gold); }
.video-card .overlay {
  position: absolute; inset: 0;
  background: rgba(10,8,6,0.6);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 2rem;
}
.video-card:hover .overlay { opacity: 1; }
.video-card p { text-align: center; padding: 0.6rem; font-size: 0.9rem; font-weight: 500; }

/* ============ Gallery Masonry ============ */
.masonry { column-count: 2; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { column-count: 3; } }
@media (min-width: 1024px) { .masonry { column-count: 4; } }
.masonry img {
  width: 100%; margin-bottom: 1rem; border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer; transition: transform 0.5s, box-shadow 0.5s;
  break-inside: avoid;
}
.masonry img:hover { transform: scale(1.03); box-shadow: var(--shadow-gold); }

/* ============ Social ============ */
.social-grid .social {
  padding: 1.75rem 1rem; text-align: center; font-weight: 500;
  transition: all 0.3s ease;
}
.social-grid .social:hover { transform: translateY(-6px) scale(1.03); border-color: var(--primary); box-shadow: var(--shadow-gold); }
.social-grid .social span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

/* ============ Contact ============ */
.contact-wrap { max-width: 640px; }
.email-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.email-card:hover { border-color: var(--primary); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.email-icon { font-size: 1.5rem; color: var(--primary); }
.email-label { font-size: 0.8rem; color: var(--muted); }
.email-value { font-weight: 600; }
.contact-form { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.75rem 1rem; border-radius: 8px;
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
body.light .contact-form input, body.light .contact-form textarea { background: rgba(255,255,255,0.6); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form button { margin-top: 0.5rem; align-self: flex-start; }

/* ============ Footer ============ */
.footer { padding: 2rem 0; text-align: center; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1.25rem; left: 1.25rem;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--primary); color: #12100b;
  border: none; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: transform 0.2s;
}
.lightbox-close:hover { transform: scale(1.1) rotate(90deg); }

/* Cursor canvas */
#cursor-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ============ Reveal on scroll ============ */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
