:root {
  --bg: #f2f6fa;
  --bg-alt: #e6edf5;
  --surface: #ffffff;
  --border: #d3dfea;
  --text: #26313d;
  --text-dim: #67788c;

  --blue: #1f6fb4;
  --blue-pale: #d6e9f6;
  --blue-line: #8cbde0;

  --pink: #b15fa8;
  --pink-pale: #f4dff1;
  --pink-line: #dda6d6;

  --accent: var(--blue);
  --accent-dim: var(--blue-line);

  --font-display: 'Playfair Display', serif;
  --font-caps: 'Playfair Display', serif;
  --font-body: 'Lora', serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.1rem, 4vw, 2.7rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: var(--font-caps);
  letter-spacing: .04em;
  font-size: 1.15rem;
  color: var(--blue);
  margin: 0 0 .7rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 246, 250, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: .01em;
}

.logo span { color: var(--pink); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.nav-links a {
  color: var(--text-dim);
  transition: color .2s ease;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 1rem 24px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 2rem 0 2rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(242, 246, 250, .94) 0%, rgba(242, 246, 250, .82) 45%, var(--bg) 100%),
    url('../assets/images/ep-cover.jpg');
  background-size: cover;
  background-position: center 20%;
  filter: grayscale(1) contrast(.9) brightness(1.15);
  opacity: .5;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.2rem, 6.5vw, 5.4rem);
  margin-bottom: .2em;
}

.hero .tagline {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 46ch;
  margin-bottom: 1.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-portrait {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 9/11;
  box-shadow: 0 18px 40px -20px rgba(38, 49, 61, .3);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 340px; margin: 0 auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .01em;
  padding: .8rem 1.7rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover { transform: translateY(-2px) rotate(-.5deg); }

.btn-primary { background: var(--blue-pale); color: var(--text); border-color: var(--blue-line); }
.btn-primary:hover { background: var(--blue); color: var(--bg); border-color: var(--blue); }

.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- Sections ---------- */

section.block {
  padding: 2rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-head p {
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0;
}

/* ---------- Music ---------- */

.tracks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
}

.track-info h3 {
  font-size: 1.35rem;
  margin-bottom: .15rem;
}

.track-info p {
  margin: 0 0 .8rem;
  color: var(--text-dim);
  font-size: .95rem;
}

.track audio {
  width: 100%;
  height: 34px;
  border-radius: 4px;
}

@media (max-width: 620px) {
  .track { grid-template-columns: 1fr; padding: 1rem; gap: 1rem; }
  .track-info h3 { font-size: 1.1rem; overflow-wrap: break-word; word-break: break-word; }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1/1;
  transition: transform .2s ease, border-color .2s ease;
}

.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery a:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: var(--pink);
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Contact ---------- */

.contact-block .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
}

.socials {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.socials a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.2rem;
  transition: border-color .2s ease, color .2s ease;
}

.socials a:nth-child(odd):hover { border-color: var(--blue); color: var(--blue); }
.socials a:nth-child(even):hover { border-color: var(--pink); color: var(--pink); }

@media (max-width: 780px) {
  .contact-block .wrap { grid-template-columns: 1fr; }
}

/* ---------- Portfolio ---------- */

.page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(2.8rem, 5vw, 3.6rem); }
.page-hero p { color: var(--text-dim); max-width: 60ch; font-size: 1.15rem; }

/* ---------- Cursor ---------- */

body, a, button, audio, input, label, select { cursor: none !important; }

.cursor {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor.hover {
  width: 22px;
  height: 22px;
  border-color: var(--pink);
}

.cursor.on-dark { border-color: white; }
.cursor.on-dark.hover { border-color: white; }

@media (hover: none) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ---------- Now playing ---------- */

.track-title {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.track-title h3 { margin: 0; }

.now-playing {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.now-playing.active { opacity: 1; }

.now-playing span {
  display: block;
  width: 3px;
  background: var(--blue);
  border-radius: 2px;
  animation: bar 0.7s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.now-playing span:nth-child(1) { height: 10px; animation-delay: 0s; }
.now-playing span:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.now-playing span:nth-child(3) { height: 7px; animation-delay: 0.35s; }

.now-playing.paused span { animation-play-state: paused; }

@keyframes bar {
  from { transform: scaleY(0.35); }
  to   { transform: scaleY(1); }
}

/* ---------- Album / Solar ---------- */

.solar-block {
  border-bottom: 1px solid var(--border);
  padding-top: 2rem;
}

@media (max-width: 620px) {
  .solar-block .section-head p:not(.eyebrow) { display: none; }
  .solar-block .section-head { flex-wrap: wrap; }
}

.solar-section {
  background: #07090f;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.solar-section canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  touch-action: manipulation;
}

.tooltip {
  position: fixed;
  background: rgba(7,9,15,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: .65rem 1rem;
  pointer-events: none;
  font-family: var(--font-body);
  font-size: .9rem;
  color: #e2e8f0;
  display: none;
  z-index: 9999;
  max-width: 200px;
}

.tooltip-title { font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.tooltip-stage {
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  margin-bottom: .4rem;
}
.tooltip-bar-bg { background: rgba(255,255,255,.1); border-radius: 4px; height: 4px; overflow: hidden; }
.tooltip-bar-fill { height: 100%; border-radius: 4px; }
.tooltip-progress { font-size: .78rem; color: #94a3b8; margin-top: .3rem; }

@media (max-width: 520px) {
  .tooltip { padding: .45rem .7rem; font-size: .8rem; max-width: 160px; }
  .tooltip-title { font-size: .85rem; }
  .tooltip-stage { font-size: .7rem; }
  .tooltip-progress { font-size: .72rem; }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: center;
  padding: 1.5rem 1rem .5rem;
  background: #07090f;
  font-family: var(--font-body);
  font-size: .82rem;
  color: #94a3b8;
}

.legend-item { display: flex; align-items: center; gap: .45rem; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.empty-state {
  text-align: center;
  color: #4b5563;
  font-family: var(--font-body);
  padding: 4rem 1rem;
  font-size: 1rem;
}

/* ---------- Newsletter ---------- */

.newsletter-form { max-width: 480px; }

.newsletter-row {
  display: flex;
  gap: .6rem;
}

.newsletter-row input[type="email"] {
  flex: 1;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: text !important;
}

.newsletter-row input[type="email"]::placeholder { color: var(--text-dim); }
.newsletter-row input[type="email"]:focus { outline: none; border-color: var(--blue-line); }

.newsletter-msg { margin-top: .8rem; color: var(--text-dim); font-size: .95rem; }

@media (max-width: 480px) {
  .newsletter-row { flex-direction: column; }
}

/* ---------- Footer ---------- */

footer.site-footer {
  padding: 2.5rem 0;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.site-footer a:hover { color: var(--pink); }
