:root {
  --bg: #05060f;
  --bg-2: #0b0e1f;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eef0f8;
  --muted: #9aa0bd;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-warm: #ff6b6b;
  --max: 1120px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(255, 107, 107, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  z-index: -2;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, .brand-text { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--panel-border);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; }
.brand-mark { color: var(--accent-2); font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--panel-border);
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--panel);
}
.nav-cta:hover { border-color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 5vw, 56px) 80px;
  position: relative;
}
.hero-inner { max-width: 780px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.hero-title {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(120deg, #fff 20%, #b9a8ff 55%, #7fe7f5 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .accent { color: var(--accent-warm); -webkit-text-fill-color: var(--accent-warm); }
.hero-sub { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.22rem); margin: 26px auto 34px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }
.hero-tags span {
  font-size: 0.78rem; color: var(--muted);
  padding: 5px 14px; border: 1px solid var(--panel-border);
  border-radius: 999px; background: var(--panel);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #9d7bff);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(124, 92, 255, 0.75); }
.btn-ghost { border: 1px solid var(--panel-border); background: var(--panel); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.center-btn { display: block; width: fit-content; margin: 40px auto 0; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 1.4rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 40px);
}
.section-head { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 600; }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin-bottom: 40px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; margin-top: 28px; }
.about-lead p { color: #cfd3e8; margin-bottom: 18px; font-size: 1.06rem; }
.about-lead strong { color: var(--text); font-weight: 600; }
.about-lead a { color: var(--accent-2); }
.about-lead a:hover { text-decoration: underline; }
.about-facts {
  list-style: none;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 8px 22px; align-self: start;
}
.about-facts li { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--panel-border); }
.about-facts li:last-child { border-bottom: none; }
.fact-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 4px; }
.fact-value { font-weight: 500; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  padding: 0;
  cursor: zoom-in;
  transition: transform 0.25s, border-color 0.25s;
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 4, 10, 0.92);
  backdrop-filter: blur(6px);
  padding: 40px;
  animation: fadeIn 0.2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: var(--panel); border: 1px solid var(--panel-border);
  color: var(--text); width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.lightbox-close:hover { border-color: var(--accent); transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Listen ---------- */
.listen-projects {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.listen-project-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  aspect-ratio: 1 / 1;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 14px 16px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.listen-project-card:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.listen-project-card:has(img):hover { border-color: rgba(255,255,255,0.3); }
.listen-project-card.is-disabled { cursor: default; opacity: 0.55; }
.listen-project-card.is-disabled:hover { transform: none; border-color: var(--panel-border); }
.listen-project-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform 0.35s ease;
}
.listen-project-card:hover img { transform: scale(1.06); }
.listen-project-card:has(img)::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,6,15,0) 35%, rgba(5,6,15,0.88) 100%);
}
.listen-project-name, .listen-project-meta { position: relative; z-index: 2; }
.listen-project-name {
  display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 1.1rem; line-height: 1.3; color: var(--text);
}
.listen-project-card:has(img) .listen-project-name { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.listen-project-meta { display: block; color: var(--muted); font-size: 0.84rem; }
.listen-project-card:has(img) .listen-project-meta { color: rgba(255,255,255,0.8); text-shadow: 0 1px 4px rgba(0,0,0,0.7); }

/* ---------- Page hero (About) ---------- */
.page-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  margin-bottom: 32px;
}
.page-hero img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 720px) {
  .page-hero { aspect-ratio: 4 / 5; }
}

/* ---------- Listen — project detail pages ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  margin-bottom: 26px; transition: color 0.2s;
}
.back-link:hover { color: var(--accent-2); }

.listen-hero {
  width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  margin-bottom: 32px;
}
.listen-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.listen-toolbar { margin: 28px 0 22px; }
.play-all-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: none; cursor: pointer; font-family: inherit;
}

.track-list { list-style: none; margin-top: 8px; }
.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px 22px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.track-item:hover { border-color: rgba(124,92,255,0.4); }
.track-item.playing { border-color: var(--accent); background: rgba(124,92,255,0.08); }

.track-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.track-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.track-artist { color: var(--muted); font-size: 0.86rem; }

.track-player {
  display: flex; align-items: center; gap: 14px;
  flex: 1 1 260px; max-width: 420px; min-width: 220px;
}
.track-play {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--panel-border); background: rgba(255,255,255,0.04);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; line-height: 1; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.track-play:hover { border-color: var(--accent-2); color: var(--accent-2); }
.track-item.playing .track-play { background: var(--accent); border-color: var(--accent); color: #fff; }

.track-progress {
  flex: 1; height: 5px; border-radius: 999px;
  background: rgba(255,255,255,0.1); cursor: pointer; position: relative;
}
.track-progress-fill {
  position: absolute; inset: 0; width: 0%; border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.track-time {
  flex-shrink: 0; min-width: 92px; text-align: right;
  font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--text);
}

@media (max-width: 640px) {
  .track-item { flex-direction: column; align-items: stretch; }
  .track-player { max-width: none; }
}

/* ---------- Shows ---------- */
.show-list { list-style: none; border-top: 1px solid var(--panel-border); }
.show-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6px; border-bottom: 1px solid var(--panel-border);
  transition: padding-left 0.2s, background 0.2s;
}
.show-list li:hover { padding-left: 18px; background: rgba(255,255,255,0.02); }
.venue { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 500; }
.city { color: var(--muted); font-size: 0.92rem; }
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.gallery-item.flyer { aspect-ratio: 3 / 4; }
.show-note { margin-top: 26px; color: var(--muted); }
.show-note a, .contact-lead a { color: var(--accent-2); }

/* ---------- Teaching ---------- */
.teach-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.teach-lead p { color: #cfd3e8; font-size: 1.08rem; margin-bottom: 26px; }
.teach-list { list-style: none; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 10px 24px; }
.teach-list li { padding: 13px 0; border-bottom: 1px solid var(--panel-border); color: #cfd3e8; }
.teach-list li:last-child { border-bottom: none; }
.teach-list li::before { content: '✦ '; color: var(--accent-2); }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .section-head { justify-content: center; }
.contact-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 26px; }
.contact-email {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  font-weight: 600;
  background: linear-gradient(120deg, #fff, #b9a8ff, #7fe7f5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.8; }
.contact-social { margin-top: 30px; display: flex; gap: 18px; justify-content: center; }
.contact-social a {
  color: var(--muted); font-weight: 500;
  padding: 8px 20px; border: 1px solid var(--panel-border); border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-social a:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 40px 20px 60px; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--panel-border); }

/* ---------- Reveal animation ---------- */
.section, .hero-inner { opacity: 1; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .teach-grid { grid-template-columns: 1fr; gap: 32px; }
  .listen-projects { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .listen-projects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: rgba(9, 11, 26, 0.97); backdrop-filter: blur(18px);
    padding: 40px; transform: translateX(100%); transition: transform 0.35s ease;
    border-left: 1px solid var(--panel-border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
