:root {
  --ink: #eef2f6;
  --ink-dim: #a8b4c2;
  --ink-faint: #6b7787;
  --bg-void: #05070a;
  --bg-deep: #0a0f16;
  --bg-panel: #0d131b;
  --steel: #3a4a5c;
  --ice: #9fd4e8;
  --ice-dim: #4d6b78;
  --line: rgba(159, 212, 232, 0.14);
  --gold: #c7a15a;
  --gold-dim: #6b5a35;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg-void);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

/* ---------- grain + vignette ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 45%, rgba(0,0,0,0.55) 100%);
}

/* ---------- rain overlay ---------- */
.rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      100deg,
      transparent 0,
      transparent 38px,
      rgba(159, 212, 232, 0.05) 39px,
      transparent 40px
    );
  background-size: 100% 240px;
  animation: rainfall 9s linear infinite;
}
@keyframes rainfall {
  from { background-position: 0 0; }
  to { background-position: 0 240px; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: linear-gradient(to bottom, rgba(5,7,10,0.75), transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
}
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.site-nav a:hover { color: var(--ice); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Procedural stand-in for the glacier/night/rain scene — no photographic
   asset was supplied. Swap this block for a full-bleed image at
   assets/images/hero-glacier.jpg (see .hero-bg-photo, disabled below). */
.hero-bg {
  position: absolute;
  inset: -12%;
  z-index: 0;
  background:
    radial-gradient(ellipse 42% 55% at 12% 30%, rgba(130, 185, 210, 0.20), transparent 62%),
    radial-gradient(ellipse 30% 40% at 22% 55%, rgba(160, 205, 220, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 5%, rgba(70, 110, 140, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 55% at 90% 85%, rgba(15, 28, 42, 0.65), transparent 65%),
    radial-gradient(ellipse 60% 50% at 0% 95%, rgba(10, 18, 28, 0.7), transparent 60%),
    linear-gradient(165deg, #0b131c 0%, #070d14 40%, #04070b 75%, #030507 100%);
  animation: bgdrift 46s ease-in-out infinite alternate;
}
.hero-bg::before {
  /* faint ice-shard silhouettes, lower left — abstract, not photographic */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0%, transparent 62%, rgba(159, 212, 232, 0.05) 63%, transparent 64%),
    linear-gradient(112deg, transparent 0%, transparent 30%, rgba(159, 212, 232, 0.04) 31%, transparent 33%),
    linear-gradient(98deg, transparent 0%, transparent 45%, rgba(200, 225, 235, 0.05) 46%, transparent 48%);
  opacity: 0.8;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 35% 45% at 14% 32%, rgba(159, 212, 232, 0.18), transparent 70%);
  animation: auroraPulse 15s ease-in-out infinite;
}
@keyframes bgdrift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.07) translate(-1.5%, -1%); }
}
@keyframes auroraPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 8vw;
  max-width: 640px;
}
.hero-mark {
  width: clamp(150px, 20vw, 280px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(199, 161, 90, 0.1));
}
.hero-wordmark {
  margin: 1.5rem 0 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 2.5rem;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-faint);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.scroll-cue:hover { color: var(--ice); }
.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .hero-bg::after { animation: none; }
  .rain { animation: none; opacity: 0.2; }
}

@media (max-width: 720px) {
  .hero-content { align-items: center; text-align: center; padding: 0 1.75rem; }
  .scroll-cue { right: 50%; transform: translateX(50%); bottom: 2rem; }
}

/* ---------- sections ---------- */
main { position: relative; z-index: 2; background: var(--bg-void); }

section {
  padding: 6rem 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  margin: 0 0 2.5rem;
  color: var(--ink);
}

/* ---------- music ---------- */
.music-section { border-top: 1px solid var(--line); }

.player-stage {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.25rem;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.stage-art {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #000;
}
.stage-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}
.now-playing-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.stage-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
  transition: opacity 0.3s ease;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.play-btn {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ice-dim);
  background: transparent;
  color: var(--ice);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.play-btn:hover { border-color: var(--ice); background: rgba(159, 212, 232, 0.08); transform: scale(1.04); }
.icon-glyph { position: absolute; }
.icon-glyph.is-hidden { display: none; }
#iconPlay { margin-left: 2px; }

.progress-wrap { flex: 1; min-width: 0; }
.seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--steel);
  border-radius: 2px;
  cursor: pointer;
  margin: 0;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ice);
  cursor: pointer;
  margin-top: -5px;
}
.seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--ice);
  cursor: pointer;
}
.seek::-moz-range-track { height: 2px; background: var(--steel); border-radius: 2px; }

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.track-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 0.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.track-row:hover { color: var(--ink); }
.track-row.active { color: var(--gold); }
.track-num {
  width: 1.6rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.track-row.active .track-num { color: var(--gold); }
.track-name { flex: 1; min-width: 0; }
.track-dur {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.more-soon {
  margin: 2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- about ---------- */
.about-section { border-top: 1px solid var(--line); max-width: 1040px; }
.about-body {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-portrait {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--gold-dim);
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 48ch;
}
.about-copy p { margin: 0; }
.about-copy p:first-child { color: var(--ink); }

/* ---------- listen ---------- */
.listen-section { border-top: 1px solid var(--line); }
.listen-note {
  margin: -1.5rem 0 1.5rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.platform-link {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.platform-link.disabled { cursor: default; }

/* ---------- contact ---------- */
.contact-section { border-top: 1px solid var(--line); }
.contact-email {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  word-break: break-word;
}
.contact-email a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid var(--ice-dim);
  transition: border-color 0.25s ease;
}
.contact-email a:hover { border-color: var(--ice); }
.contact-note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  background: var(--bg-void);
}
.site-footer p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .site-header { padding: 1.1rem 1.25rem; }
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: 0.75rem; }
}

@media (max-width: 460px) {
  .site-header { padding: 0.9rem 1rem; }
  .brand { font-size: 0.95rem; gap: 0.4rem; }
  .brand-mark { width: 24px; height: 24px; }
  .site-nav { gap: 0.7rem; }
  .site-nav a { font-size: 0.65rem; letter-spacing: 0.04em; }

  section { padding: 4rem 1.25rem; }

  .player-stage {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .stage-art { max-width: 200px; margin: 0 auto; }
  .stage-info { text-align: center; }
  .player-controls { justify-content: center; }
  .progress-wrap { max-width: 260px; }

  .about-body { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-portrait { max-width: 280px; margin: 0 auto; }
  .about-copy { text-align: left; max-width: none; }

  .contact-email { font-size: 1.2rem; }
}
