:root {
  --bg: #081426;
  --bg-deep: #060f1d;
  --ink: #e9f6ff;
  --muted: #b6c9d8;
  --line: #16324d;
  --line-hover: #1d3e5d;
  --accent: #ffc46b;
  --accent-2: #61d5ff;
  --chip: #0d2238;
  --near-white: #86c7df;
  --dark-blue: #1a2a44;
  --muted-dark: #4a5a74;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 70% -10%, #0a2441 0%, var(--bg) 55%, var(--bg-deep) 100%);
  line-height: 1.55;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .06;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".7" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  mix-blend-mode: soft-light;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

/* Brand container */
.brand {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  color: #ffffff;
}

/* Title text */
.brand-title {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 12px;
}

.nav a:hover {
  color: var(--ink);
  border: 1px solid var(--line-hover);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  padding: 12px 0;
}

.hero-art img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .55);
}

.hero-copy h2 {
  font-size: 38px;
  line-height: 1.1;
  margin: .2em 0;
}

.hero-copy p {
  color: var(--muted);
  margin-top: 1.5em;
  margin-bottom: 2em;
}

.chips {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: left;
}

.chip {
  background: var(--chip);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.cta {
  margin: 24px;
}

.btn {
  background: linear-gradient(135deg, var(--accent), #ffd99a);
  border: none;
  color: #04121f;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  margin: 6px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.section {
  padding: 20px 0;
}

.section h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 24px;
}

.tracks {
  display: grid;
  gap: 14px;
}

.track-card {
  display: grid;
  grid-template-columns: 30% 1fr;
  /* ^- 30% for image, rest for content */
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(2px);
  align-items: stretch;
  overflow-wrap: anywhere;
}

.track-art {
  width: 100%;
  /* Fill the 20% column width */
  height: auto;
  /* Maintain aspect ratio */
  max-height: 100%;
  /* Never exceed parent card height */
  object-fit: contain;
  /* Maintain aspect, show full image */
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.mood {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 6px;
}

.liner {
  margin: 0 0 10px;
  color: #d6e6f3;
}

.links {
  display: flex;
  gap: 8px;
}

.pill {
  text-decoration: none;
  color: #04121f !important;
  background: linear-gradient(135deg, var(--accent), #ffd99a);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.bullets {
  padding-left: 16px;
  color: #dceafb;
}

.bullets li {
  margin: 10px 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  background: rgba(97, 213, 255, .08);
  color: #bfeeff;
  border: 1px solid rgba(97, 213, 255, .25);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.card {
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.card .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card a {
  color: #bfeeff;
}

.footer {
  padding: 28px 0 48px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }
}

.collapse {
  display: none;
  margin-top: 16px;
}

.collapse.show {
  display: grid;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.more-toggle {
  text-align: center;
  margin-top: 16px;
}

/* DARK MODE AUDIO PLAYER – WebKit only */
.track-preview::-webkit-media-controls-panel {
  background-color: #0d1b2b !important;
  color: #e9f6ff;
  border-radius: 10px;
}

.track-preview::-webkit-media-controls-play-button,
.track-preview::-webkit-media-controls-mute-button,
.track-preview::-webkit-media-controls-time-remaining-display,
.track-preview::-webkit-media-controls-current-time-display,
.track-preview::-webkit-media-controls-timeline {
  filter: invert(1) brightness(0.8);
}

.track-preview {
  margin: 8px 0 12px;
  width: 100%;
  max-width: 360px;
  background: #0d1b2b;
  border-radius: 12px;
}

/* Portrait / narrow screens — stack vertically */
@media (max-aspect-ratio: 3/4),
(max-width: 700px) {

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    /* row-gap col-gap */
  }

  .nav a {
    margin: 0;
    /* let gap handle spacing */
  }

  .track-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    /* art | text */
    grid-template-rows: auto auto auto;
    /* top, liner, controls */
    gap: 10px 14px;
    align-items: start;
  }

  .track-art {
    grid-column: 1;
    grid-row: 1;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Allow direct grid participation */
  .track-body {
    display: contents;
  }

  /* Title + mood beside art */
  .track-body h4 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .track-body .mood {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
  }

  /* Description below full width */
  .track-body .liner {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    color: #d6e6f3;
  }

  /* Audio and links below description */
  .track-body .track-preview {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 6px 0 0;
  }

  .track-body .links {
    grid-column: 1 / -1;
    grid-row: 4;
    /* optional separate row for buttons */
    margin-top: 6px;
    z-index: 1;
    /* safety, in case of overlap */
  }

  .links {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .tags {
    margin-top: 1.5em;
  }
}

@media (max-width: 960px) and (orientation: landscape) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 10px;
  }

  .nav a {
    margin: 0;
  }
}
