/* =====================================================================
   Charlotte Aurisch — Interactive Artist Experience
   Design System & Home Page Styles
   Plain CSS · No build step · Mobile-first · Scalable
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Design Tokens                                                    */
/* ------------------------------------------------------------------ */
:root {
  /* Core palette — nighttime city / stage lighting */
  --midnight: #070a1f;
  --midnight-2: #0d1130;
  --deep-purple: #2a1257;
  --purple: #5b2aa5;
  --magenta: #c026d3;
  --neon-pink: #ff4fb6;
  --amber: #ffb347;
  --silver: #d7dbe7;

  /* Functional colors */
  --bg: var(--midnight);
  --bg-soft: var(--midnight-2);
  --text: #eef0fa;
  --text-muted: #a4a9c4;
  --line: rgba(215, 219, 231, 0.12);

  /* Gradients */
  --grad-aurora: linear-gradient(120deg, var(--neon-pink), var(--magenta) 40%, var(--purple) 75%, var(--deep-purple));
  --grad-stage: radial-gradient(80% 120% at 50% -10%, rgba(192, 38, 211, 0.35), transparent 60%);
  --grad-amber: linear-gradient(120deg, var(--amber), var(--neon-pink));

  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  /* Spacing & sizing */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;

  /* Reactive variable driven by the audio analyser (0–1) */
  --audio-level: 0;
}

/* ------------------------------------------------------------------ */
/* 2. Reset & Base                                                     */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.08; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p  { margin: 0 0 1rem; color: var(--text-muted); }

.script { font-family: var(--font-script); color: var(--neon-pink); }

/* ------------------------------------------------------------------ */
/* 3. Layout helpers                                                   */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section__eyebrow {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--neon-pink);
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.section__lead { max-width: 60ch; }

.text-gradient {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ */
/* 4. Buttons                                                          */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-aurora);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--magenta);
}
.btn--primary:hover { box-shadow: 0 18px 40px -12px var(--neon-pink); }

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--neon-pink); }

/* ------------------------------------------------------------------ */
/* 5. Global animated background canvas                                */
/* ------------------------------------------------------------------ */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(192, 38, 211, 0.22), transparent 60%),
    radial-gradient(50% 60% at 85% 10%, rgba(91, 42, 165, 0.25), transparent 60%),
    radial-gradient(80% 80% at 50% 110%, rgba(255, 79, 182, 0.18), transparent 60%),
    var(--bg);
}

/* page content sits above the canvas */
.page { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ */
/* 6. Header / Navigation                                              */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(7, 10, 31, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand span { color: var(--neon-pink); }

.nav__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  transition: color .3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad-aurora);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}

/* ------------------------------------------------------------------ */
/* 7. Hero                                                             */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem var(--gutter) 4rem;
  overflow: hidden;
}

/* Faded cinematic portrait fading into the night sky (upper-right) */
.hero__portrait {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(52vw, 620px);
  z-index: 0;
  background-image: url("../images/20250607_122349.jpg");
  background-size: cover;
  background-position: center 16%;
  background-repeat: no-repeat;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(130% 85% at 72% 26%, #000 0%, rgba(0,0,0,0.55) 44%, transparent 72%);
  mask-image: radial-gradient(130% 85% at 72% 26%, #000 0%, rgba(0,0,0,0.55) 44%, transparent 72%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .hero__portrait {
    width: 100%;
    opacity: 0.3;
    background-position: center 14%;
    -webkit-mask-image: radial-gradient(120% 60% at 50% 18%, #000 0%, rgba(0,0,0,0.5) 42%, transparent 70%);
    mask-image: radial-gradient(120% 60% at 50% 18%, #000 0%, rgba(0,0,0,0.5) 42%, transparent 70%);
  }
}

/* Animated city skyline silhouette */
.hero__skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38vh;
  z-index: 0;
  background:
    linear-gradient(transparent, rgba(7, 10, 31, 0.9) 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='300'><g fill='%23120a2e'><rect x='40' y='150' width='60' height='150'/><rect x='110' y='100' width='40' height='200'/><rect x='160' y='180' width='70' height='120'/><rect x='240' y='120' width='50' height='180'/><rect x='300' y='90' width='38' height='210'/><rect x='350' y='160' width='80' height='140'/><rect x='440' y='130' width='46' height='170'/><rect x='500' y='70' width='42' height='230'/><rect x='555' y='150' width='64' height='150'/><rect x='630' y='110' width='40' height='190'/><rect x='685' y='175' width='74' height='125'/><rect x='770' y='95' width='44' height='205'/><rect x='825' y='150' width='58' height='150'/><rect x='895' y='120' width='48' height='180'/><rect x='955' y='80' width='40' height='220'/><rect x='1005' y='160' width='78' height='140'/><rect x='1095' y='130' width='50' height='170'/></g></svg>") repeat-x bottom / auto 100%;
  opacity: 0.9;
  transform: translateY(var(--parallax-skyline, 0));
}

.hero__lyrics {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__lyrics span {
  position: absolute;
  font-family: var(--font-script);
  color: rgba(255, 79, 182, 0.35);
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  white-space: nowrap;
  animation: floatLyric linear infinite;
}
@keyframes floatLyric {
  from { transform: translateY(20vh); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  to   { transform: translateY(-90vh); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero__kicker {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--neon-pink);
  margin-bottom: 0.5rem;
}
.hero h1 {
  filter: drop-shadow(0 12px 40px rgba(192, 38, 211, calc(0.25 + var(--audio-level) * 0.5)));
}
.hero__sub {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--silver);
  max-width: 38ch;
  margin: 1.2rem auto 2rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 42px;
  background: linear-gradient(var(--neon-pink), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ------------------------------------------------------------------ */
/* 8. Featured Song spotlight                                          */
/* ------------------------------------------------------------------ */
.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.spotlight__art {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grad-aurora);
  box-shadow: 0 30px 80px -30px var(--magenta);
}
.spotlight__art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 30% 20%, rgba(255, 179, 71, 0.5), transparent 60%),
    radial-gradient(50% 60% at 80% 80%, rgba(7, 10, 31, 0.7), transparent 60%);
  mix-blend-mode: screen;
}
.spotlight__art .windows {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 220, 150, 0.9) 1px, transparent 2px);
  background-size: 26px 30px;
  opacity: 0.35;
  animation: twinkle 4s steps(2) infinite;
}
@keyframes twinkle { 50% { opacity: 0.15; } }

.spotlight__art .pulse-ring {
  position: absolute; inset: 0;
  border: 2px solid rgba(255, 79, 182, 0.5);
  border-radius: inherit;
  transform: scale(calc(1 + var(--audio-level) * 0.06));
  transition: transform .1s linear;
}

/* Variant: real cover artwork */
.spotlight__art--photo { background: var(--midnight-2); }
.spotlight__art--photo::before { display: none; }
.spotlight__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(calc(1 + var(--audio-level) * 0.04));
  transition: transform .12s linear;
}

.player {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.player__btn {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--grad-aurora);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--neon-pink);
}
.player__btn svg { width: 22px; height: 22px; }
.player__meta { flex: 1; min-width: 0; }
.player__title { font-weight: 600; color: var(--text); }
.player__time { font-size: 0.8rem; color: var(--text-muted); }
.player__bar {
  margin-top: 0.4rem;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.player__progress {
  height: 100%;
  width: 0%;
  background: var(--grad-aurora);
  transition: width .15s linear;
}

/* ------------------------------------------------------------------ */
/* 9. Cards & grids                                                    */
/* ------------------------------------------------------------------ */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color .3s, box-shadow var(--dur);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 79, 182, 0.5);
  box-shadow: 0 24px 60px -30px var(--magenta);
}
.card__media {
  aspect-ratio: 9 / 12;
  background: var(--grad-aurora);
  position: relative;
}
.card__media[data-genre]::after {
  content: attr(data-genre);
  position: absolute;
  left: 12px; top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 10, 31, 0.6);
  backdrop-filter: blur(6px);
}
.card__body { padding: 1.1rem 1.2rem 1.3rem; }
.card__body h3 { margin-bottom: 0.25rem; }
.card__body p { margin: 0; font-size: 0.92rem; }
.card__date { font-size: 0.8rem; color: var(--neon-pink); letter-spacing: 0.05em; }

/* Performance cards use a taller, portrait-friendly aspect for full headroom */
.card--perf .card__media { aspect-ratio: 3 / 4; }

/* ------------------------------------------------------------------ */
/* 10. Timeline                                                        */
/* ------------------------------------------------------------------ */
.timeline {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--neon-pink), var(--purple), transparent);
}
.timeline__item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 182, 0.18);
}
.timeline__year { font-family: var(--font-serif); color: var(--amber); font-size: 1.1rem; }

/* ------------------------------------------------------------------ */
/* 11. Instagram / social strip                                        */
/* ------------------------------------------------------------------ */
.social-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.social-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--grad-aurora);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
  font-size: 0.82rem;
  transition: transform .5s var(--ease);
}
.social-card:hover { transform: scale(1.03); }
.social-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(7, 10, 31, 0.85));
}
.social-card span { position: relative; z-index: 1; }

/* Instagram embeds sit side by side (wrap to stacked on mobile) */
.social-card--embeds {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 0.4rem;
}
.social-card--embeds .instagram-media {
  flex: 1 1 300px;
  max-width: 380px !important;
  box-shadow: 0 24px 60px -30px var(--magenta) !important;
}

/* ------------------------------------------------------------------ */
/* 12. Footer / managed contact                                        */
/* ------------------------------------------------------------------ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5rem);
  background: rgba(7, 10, 31, 0.6);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--text-muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}
.field input:focus,
.field textarea:focus { outline: 2px solid var(--neon-pink); outline-offset: 1px; }
.note-safe {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
}
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ */
/* 13. Scroll-reveal utility                                           */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ------------------------------------------------------------------ */
/* 14. Responsive                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    background: rgba(13, 17, 48, 0.96);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1.2rem; }
  .nav__toggle { display: flex; z-index: 60; }

  .spotlight { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ------------------------------------------------------------------ */
/* 15. Accessibility & performance                                     */
/* ------------------------------------------------------------------ */
:focus-visible { outline: 2px solid var(--neon-pink); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem; top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--neon-pink);
  color: #fff;
  transition: top .3s;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
