/* ---------- tokens ---------- */
:root {
  --fog: #eef1f5;
  --fog-2: #e3e8ee;
  --ink: #1c2230;
  --ink-2: #5b6473;
  --ink-3: #98a1ae;
  --line: rgba(28, 34, 48, 0.1);

  /* cool winter haze palette */
  --dusk-blue: #a9b7cb;
  --dusk-pink: #c3cdda;
  --golden: #fbfdfa;
  --moss: #b8c2cf;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.serif {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--ink-2);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

/* ---------- atmosphere ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(2%, 2%); }
  100% { transform: translate(0, 0); }
}

.haze {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* Keep the reference's broad blue wash stable across animation frames. */
  background:
    radial-gradient(ellipse 62vw 200vh at 6% 85%, #bac5d6 0%, #bac5d6 40%, rgba(186, 197, 214, 0) 85%),
    radial-gradient(ellipse 65vw 75vh at 96% 115%, #c3cdda 0%, rgba(195, 205, 218, 0) 85%),
    #fdfdfd;
}

.haze .blob {
  display: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}

.blob-a {
  width: 60vw;
  height: 60vw;
  background: var(--dusk-blue);
  bottom: -24vw;
  left: -25vw;
  opacity: 0.7;
  animation: drift-a 26s ease-in-out infinite alternate;
}

.blob-b {
  width: 55vw;
  height: 55vw;
  background: var(--dusk-pink);
  bottom: -25vw;
  right: -15vw;
  opacity: 0.75;
  animation: drift-b 32s ease-in-out infinite alternate;
}

.blob-c {
  width: 55vw;
  height: 55vw;
  background: var(--golden);
  top: 5vh;
  right: 22vw;
  opacity: 0.9;
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(14vw, 12vh) scale(1.1); }
}

@keyframes drift-b {
  to { transform: translate(-12vw, -16vh) scale(0.95); }
}

@keyframes drift-c {
  to { transform: translate(-18vw, 10vh) scale(1.15); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  background: linear-gradient(to bottom, rgba(238, 241, 245, 0.9), rgba(238, 241, 245, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-links a,
.nav-cta {
  position: relative;
  color: var(--ink-2);
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-cta:hover {
  color: var(--ink);
}

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 1;
}

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad);
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

/* ---------- hero ---------- */
.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(64px, 10vw, 160px);
}

.hero .eyebrow {
  color: var(--ink-3);
  margin-bottom: 36px;
}

.hero h1 {
  font-size: clamp(96px, 16vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0 0 40px -0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-icon .st {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon .fl {
  fill: currentColor;
  stroke: none;
}

/* Outlined social buttons retain a transparent interior. */
.btn-icon.btn-ghost {
  background: transparent;
  border-color: rgba(28, 34, 48, 0.18);
}

.btn-icon.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(28, 34, 48, 0.3);
}

.btn-icon:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(28, 34, 48, 0.3);
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #0e131d;
  border-color: #0e131d;
}

/* floating covers */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  perspective: 1200px;
}

.float {
  position: absolute;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(28, 34, 48, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(0.95);
}

.float-1 {
  width: 62%;
  top: 4%;
  left: 6%;
  z-index: 3;
  animation: bob 9s ease-in-out infinite;
}

.float-2 {
  width: 44%;
  top: 44%;
  left: 52%;
  z-index: 4;
  animation: bob 11s ease-in-out infinite 1s;
}

.float-3 {
  width: 36%;
  top: 60%;
  left: 2%;
  z-index: 2;
  animation: bob 13s ease-in-out infinite 2s;
}

.float-4 {
  width: 30%;
  top: 0;
  left: 70%;
  z-index: 1;
  opacity: 0.85;
  animation: bob 10s ease-in-out infinite 0.5s;
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-2);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- featured player ---------- */
.featured .section-head {
  text-align: center;
}

.featured .muted {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.player {
  --glow: transparent;
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 28px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 30px 60px -30px rgba(28, 34, 48, 0.3),
    0 0 140px -50px var(--glow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 1.2s var(--ease);
}

.np-art {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--fog-2);
  box-shadow: 0 20px 40px -24px rgba(29, 29, 31, 0.45);
}

.np-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: opacity 0.4s var(--ease), transform 1.6s var(--ease), filter 0.8s;
}

.np-art img.fade {
  opacity: 0;
}

.player.playing .np-art img {
  transform: scale(1.04);
  filter: saturate(1);
}

.np-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px 4px 2px 0;
}

.np-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.np-link {
  transition: color 0.3s;
}

.np-link:hover {
  color: var(--ink);
}

.np-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.05;
  margin-top: 14px;
}

.np-title.swap {
  animation: swap 0.6s var(--ease);
}

.np-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  margin-top: 6px;
}

.np-seek {
  margin-top: auto;
  padding: 24px 0 6px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.np-seek-track {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: rgba(29, 29, 31, 0.14);
  transition: height 0.2s;
}

.np-seek:hover .np-seek-track,
.np-seek.dragging .np-seek-track,
.np-seek:focus-visible .np-seek-track {
  height: 4px;
}

.np-seek-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 2px;
  background: var(--ink);
}

.np-seek-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(238, 241, 245, 0.9);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s var(--ease);
}

.np-seek:hover .np-seek-knob,
.np-seek.dragging .np-seek-knob,
.np-seek:focus-visible .np-seek-knob {
  transform: translate(-50%, -50%) scale(1);
}

.np-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.np-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.np-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}

.np-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.np-btn:hover {
  color: var(--ink);
  border-color: rgba(29, 29, 31, 0.3);
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.np-btn:active {
  transform: scale(0.96);
}

.np-play {
  width: 56px;
  height: 56px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--fog);
}

.np-play:hover {
  background: #000;
  color: #fff;
}

.np-play svg {
  width: 20px;
  height: 20px;
  stroke: none;
}

.np-play .ic-play {
  /* The SVG path already accounts for the triangle's optical alignment. */
  margin-left: 0;
}

.np-play .ic-pause,
.player.playing .np-play .ic-play {
  display: none;
}

.player.playing .np-play .ic-pause {
  display: block;
}

.player.loading .np-play {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.55; }
}

.np-vol {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
}

.np-vol svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.np-vol input[type="range"] {
  width: 90px;
  /* Give the native thumb and its shadow room beyond the track. */
  height: 20px;
  accent-color: var(--ink);
  cursor: pointer;
}

.np-frame {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* if the SoundCloud widget script fails to load, show the raw embed instead */
.player.fallback .np-frame {
  position: static;
  width: 100%;
  height: 166px;
  opacity: 1;
  pointer-events: auto;
  grid-column: 1 / -1;
  border-radius: 10px;
}

@keyframes swap {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

/* ---------- music grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

.card a {
  display: block;
}

.cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(29, 29, 31, 0.4);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(238, 241, 245, 0.25), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 1.2s var(--ease), filter 0.6s;
}

.card:hover .cover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 60px -24px rgba(29, 29, 31, 0.45),
    0 0 80px -20px var(--glow);
}

.card:hover .cover img {
  transform: scale(1.05);
  filter: saturate(1);
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 2px 0;
}

.title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}

.sub {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.more {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.more a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.more a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.about-img {
  border-radius: 999px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 40px 80px -40px rgba(29, 29, 31, 0.4);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.95);
}

.about-text h2 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 520px;
}

.stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
}

.stats li {
  display: flex;
  flex-direction: column;
}

.num {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}

.lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

.about-contact {
  margin-top: 36px;
  font-size: 14px;
  color: var(--ink-3);
}

.about-contact a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}

.about-contact a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 32px var(--pad) 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer .serif {
  font-size: 22px;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    filter 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 56px;
  }

  .hero-art {
    justify-self: center;
    max-width: 440px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-img {
    width: 220px;
  }
}

@media (max-width: 720px) {
  .player {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
  }

  .np-art {
    width: 100%;
    max-width: 280px;
    justify-self: center;
  }

  .np-controls {
    justify-content: center;
    gap: 20px;
    margin-top: 22px;
  }

  .np-btn {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .np-body {
    padding: 0 2px;
  }

  .np-seek {
    padding-top: 18px;
  }

  .np-vol {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: clamp(28px, 8vw, 40px);
  }

  /* Keep content clear of phone edges and landscape display cutouts. */
  section,
  .nav,
  .footer {
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
  }

  section {
    padding-top: 52px;
    padding-bottom: 52px;
    scroll-margin-top: 80px;
  }

  .hero {
    gap: 44px;
    padding-top: 48px;
  }

  .hero .eyebrow {
    margin-bottom: 24px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .hero-art {
    width: 90%;
    max-width: 340px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .np-head {
    font-size: 10px;
    letter-spacing: 0.1em;
    gap: 12px;
  }

  .np-title {
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1.15;
  }

  .card {
    min-width: 0;
  }

  .title {
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .about {
    gap: 32px;
  }

  .about-img {
    width: min(180px, 65%);
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.75;
  }

  .nav-links {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 30px;
  }

  .hero h1 {
    font-size: clamp(88px, 28vw, 140px);
    margin-bottom: 28px;
  }

  .stats {
    /* Wrap naturally instead of squeezing three labels onto a phone. */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .stats .lbl {
    letter-spacing: 0.08em;
    line-height: 1.5;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain,
  .blob,
  .float,
  .marquee-track {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
