:root {
  --bg: #070b1c;
  --bg-2: #0b1230;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .08);
  --line: rgba(190, 210, 255, .14);
  --ink: #eef3ff;
  --mute: #9eabd0;
  --sky: #a9d6f7;
  --blue: #4c7cff;
  --warm: #f4e4c4;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 40px);
  --player-h: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--player-h);
}
body::before { /* the night sky the whole page sits on */
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60vw 50vh at 85% -5%, rgba(76, 124, 255, .34), transparent 70%),
    radial-gradient(50vw 45vh at -10% 30%, rgba(90, 70, 220, .22), transparent 70%),
    radial-gradient(70vw 50vh at 60% 110%, rgba(40, 120, 200, .2), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; fill: currentColor; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 380; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h1 em, h2 em { font-style: italic; font-weight: 340; color: var(--sky); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn-solid { background: var(--ink); color: #0a1030; box-shadow: 0 10px 40px -10px rgba(169, 214, 247, .6); }
.btn-solid:hover { transform: translateY(-2px); background: #fff; }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); }
.btn-ghost:hover { border-color: var(--sky); background: var(--panel-2); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(var(--pad), calc((100vw - var(--wrap)) / 2));
  background: rgba(7, 11, 28, .62);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.stuck { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { height: 38px; width: auto; }
.brand em { font-style: normal; color: var(--sky); }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--mute); font-weight: 600; font-size: .92rem; transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav-cta { min-height: 40px; padding: 0 18px; font-size: .88rem; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 7vw, 90px) var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 60px); align-items: center;
}
.hero-copy > * + * { margin-top: 22px; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--mute); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.mosaic {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1.05; max-height: 560px; justify-self: end; width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.mosaic-inner {
  position: absolute; inset: -6%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(7, 1fr); gap: 14px;
  transform: rotate(-9deg);
  animation: drift 26s ease-in-out infinite alternate;
}
.m { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .8); }
.m1 { grid-area: 2 / 1 / 4 / 2; } .m2 { grid-area: 4 / 1 / 6 / 2; }
.m3 { grid-area: 1 / 2 / 3 / 3; } .m4 { grid-area: 3 / 2 / 5 / 3; } .m5 { grid-area: 5 / 2 / 7 / 3; }
.m6 { grid-area: 2 / 3 / 4 / 4; } .m7 { grid-area: 4 / 3 / 6 / 4; }
@keyframes drift { from { transform: rotate(-9deg) translateY(-2.5%); } to { transform: rotate(-9deg) translateY(2.5%); } }

.stats {
  grid-column: 1 / -1; margin-top: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats div { padding: 22px 20px 22px 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -.02em; }
.stats dd { color: var(--mute); font-size: .9rem; margin-top: 6px; }

/* ---------- sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 10vw, 130px) var(--pad) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-top: 14px; }
.section-lede { color: var(--mute); font-size: 1.08rem; margin-top: 20px; max-width: 40em; }

/* ---------- styles ---------- */
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.col {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto auto; column-gap: 12px;
  min-height: 196px; padding: 18px 18px 18px 20px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  cursor: pointer; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.col:hover { transform: translateY(-3px); border-color: rgba(169, 214, 247, .4); }
.col.active { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky), 0 24px 60px -28px rgba(76, 124, 255, .8); }
.col-no { grid-column: 1; font-family: var(--serif); font-style: italic; color: var(--sky); font-size: .95rem; }
.col h3 { grid-column: 1 / -1; align-self: end; margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.32rem; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.col-blurb { grid-column: 1 / -1; margin-top: 6px; color: var(--mute); font-size: .86rem; line-height: 1.4; }
.col-count { grid-column: 1; align-self: end; margin-top: 12px; color: var(--mute); font-size: .85rem; font-variant-numeric: tabular-nums; }
.col-play {
  grid-column: 2; grid-row: 4; align-self: end; position: relative;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 21px;
  box-shadow: 0 10px 24px -8px rgba(76, 124, 255, .9); transition: transform .2s, background .2s;
}
.col:hover .col-play { transform: scale(1.07); background: #6590ff; }
.col-play::after { content: ""; position: absolute; inset: -8px; } /* comfortable tap area */
.col-play:disabled { opacity: .35; }
.col.loading .col-play { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.i-pause { display: none; }
.playing .i-play { display: none; } .playing .i-pause { display: block; }
.col.playing .col-no::after { content: " · playing"; font-style: normal; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.samples-off { margin-top: 18px; padding: 16px 20px; border-radius: 16px; border: 1px dashed var(--line); color: var(--mute); }

/* ---------- artists & playlists ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.2vw, 26px); }
.grid-artists { grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.grid-artists .card-name { font-size: .95rem; }
.grid-artists .card-meta { font-size: .8rem; }
.card { text-decoration: none; display: block; }
.cover { display: block; position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cover::after {
  content: "Open in Spotify ↗"; position: absolute; left: 10px; bottom: 10px;
  padding: 6px 12px; border-radius: 999px; background: rgba(7, 11, 28, .82); backdrop-filter: blur(6px);
  font-size: .76rem; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.card:hover .cover img, .card:focus-visible .cover img { transform: scale(1.06); }
.card:hover .cover::after, .card:focus-visible .cover::after { opacity: 1; transform: none; }
.card-name { display: block; margin-top: 14px; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.card-meta { display: block; color: var(--mute); font-size: .88rem; font-variant-numeric: tabular-nums; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 70px); align-items: start; }
.about .section-head { margin-bottom: 0; }
.about-body p { color: #c9d3ef; font-size: 1.1rem; }
.about-body p + p { margin-top: 1.1em; }

/* ---------- contact ---------- */
.contact {
  max-width: var(--wrap); margin: clamp(64px, 10vw, 130px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 70px); align-items: start;
}
.contact::before {
  content: ""; grid-column: 1 / -1; height: 1px; margin-bottom: clamp(20px, 4vw, 44px);
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.contact-copy h2 { margin-top: 14px; }
.contact-copy > p:not(.eyebrow) { color: var(--mute); margin-top: 18px; font-size: 1.05rem; max-width: 30em; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: clamp(18px, 3vw, 30px); border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
}
.field { display: grid; gap: 7px; min-width: 0; }
.wide { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; }
.field label span { font-weight: 400; color: var(--mute); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(7, 11, 28, .55); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(169, 214, 247, .2); }
.field .bad { border-color: #ff9c9c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-status { font-size: .95rem; color: var(--mute); flex: 1; min-width: 12em; }
.form-status.ok { color: #a8ecc4; }
.form-status.err { color: #ffb4b4; }
.form.sent .field, .form.sent .btn { display: none; }
.form.sent .form-status { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; padding: 18px 4px; }

.foot {
  max-width: var(--wrap); margin: clamp(64px, 9vw, 110px) auto 0; padding: 26px var(--pad) 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--mute); font-size: .88rem;
}
.foot .brand { color: var(--ink); font-size: 1rem; }
.foot .brand img { height: 30px; }

/* ---------- player ---------- */
.player {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr) auto auto; align-items: center; gap: 22px;
  padding: 12px 14px 12px 20px; border-radius: 22px;
  background: rgba(13, 20, 50, .86); border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  animation: rise .35s cubic-bezier(.2, .8, .2, 1);
}
.player[hidden] { display: none; }
@keyframes rise { from { transform: translateY(120%); } }
.p-now { display: flex; align-items: center; gap: 14px; min-width: 0; text-align: left; border-radius: 12px; }
.p-text { min-width: 0; line-height: 1.3; }
.p-text strong, .p-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-text span { color: var(--mute); font-size: .82rem; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; flex: none; }
.eq i { width: 3px; height: 100%; background: var(--sky); border-radius: 2px; transform-origin: bottom; transform: scaleY(.25); }
.player.playing .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.p-ctl { display: flex; align-items: center; gap: 6px; }
.p-ctl button, .p-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--mute); transition: color .2s, background .2s; }
.p-ctl button:hover, .p-close:hover { color: var(--ink); background: var(--panel-2); }
.p-ctl .p-main { background: var(--ink); color: #0a1030; font-size: 24px; }
.p-ctl .p-main:hover { background: #fff; color: #0a1030; }
.p-seek { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.p-seek span { min-width: 2.6em; } .p-seek span:first-child { text-align: right; }
.p-vol { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 20px; }
.p-vol input { width: 90px; }

input[type=range] { --fill: 0%; flex: 1; min-width: 0; height: 24px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sky) var(--fill), rgba(255, 255, 255, .18) var(--fill)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--sky); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .mosaic { order: 3; max-height: 380px; aspect-ratio: 16 / 10; justify-self: stretch; }
  .mosaic-inner { inset: -30% -4%; }
  .stats { order: 4; }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-artists { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .player { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 10px; padding: 10px 10px 6px 16px; }
  .p-seek { grid-column: 1 / -1; grid-row: 2; }
  .p-vol { display: none; }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { padding: 18px 12px 18px 0; }
  .stats div + div { padding-left: 0; border-left: 0; }
  .stats div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .p-ctl #p-prev { display: none; }
  .col { min-height: 180px; padding: 14px 14px 14px 16px; }
  .col h3 { font-size: 1.14rem; }
  .col-blurb { font-size: .8rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
