@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("/Fonts and Logos/AlteHaasGroteskRegular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("/Fonts and Logos/AlteHaasGroteskBold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --bg: #efecdf;
  --bg-elevated: #1c1a17;
  --card: #24221e;
  --card-border: rgba(255, 248, 236, 0.075);
  --panel-border: rgba(255, 248, 236, 0.08);
  --text: #f4efe5;
  --muted: rgba(244, 239, 229, 0.68);
  --subtle: rgba(244, 239, 229, 0.34);
  --accent: #dfd08a;
  --accent-2: #d3c18f;
  --accent-progress: #f0dd91;
  --cool-wave: rgba(229, 229, 229, 0.86);
  --brown: rgba(116, 78, 45, 0.44);
  --shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(37, 37, 34, 0.055), transparent 32%),
    linear-gradient(180deg, #efecdf 0%, #e9e5d7 100%);
  background-attachment: fixed, fixed;
  color: var(--text);
  font-family: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif;
}

body {
  min-height: 100vh;
}

a,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px 24px 18px;
}

.ambient {
  pointer-events: none;
  position: absolute;
}

.ambient-stain {
  top: -132px;
  left: -178px;
  width: 430px;
  height: 430px;
  opacity: 0.42;
  object-fit: contain;
  filter: brightness(0) saturate(1) opacity(0.9);
  mix-blend-mode: normal;
  z-index: -1;
}

.ambient-wash {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.018), transparent 22%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.018) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 82vh);
}

.masthead {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(920px, 100%);
  min-height: 72px;
  margin: 0 auto 14px;
}

.brand-lockup {
  position: relative;
  width: clamp(228px, 25vw, 286px);
  display: flex;
  justify-content: center;
}

.brand-wordmark {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    brightness(0)
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
  opacity: 0.94;
}

.delivery {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 24px 24px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(28, 26, 23, 0.22);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: visible;
}

.delivery::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(35, 33, 30, 0.94);
  z-index: 0;
}

.delivery > section,
.delivery > footer {
  position: relative;
  z-index: 1;
}

.delivery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.head-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.delivery-head h1 {
  margin: 0 0 8px;
  max-width: 100%;
  padding-right: 14px;
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--title-size, clamp(26px, 3.2vw, 34px));
  font-weight: 700;
  line-height: 1;
}

.delivery-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.head-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 12px;
}

.asset-stack {
  display: grid;
  gap: 10px;
}

.asset-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.012)),
    var(--card);
}

.asset-card.compact {
  grid-template-columns: 34px minmax(0, 1fr) auto 34px;
  min-height: 58px;
  padding: 11px 14px;
}

.icon-button,
.download-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 248, 236, 0.08);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.018);
  color: var(--text);
}

.asset-card.compact .icon-button,
.asset-card.compact .download-button {
  width: 34px;
  height: 34px;
}

.play-button {
  box-shadow: inset 0 0 0 1px rgba(223, 208, 138, 0.1);
}

.play-button.is-active {
  border-color: rgba(116, 165, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(116, 165, 255, 0.2),
    0 0 0 2px rgba(116, 165, 255, 0.08);
}

.play-triangle {
  margin-left: 2px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--accent-progress);
}

.play-button.is-active .play-triangle {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  width: 9px;
  height: 10px;
  background:
    linear-gradient(90deg, var(--accent-progress) 0 3px, transparent 3px 6px, var(--accent-progress) 6px 9px);
}

.download-glyph {
  position: relative;
  width: 16px;
  height: 16px;
}

.download-glyph::before,
.download-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
}

.download-glyph::before {
  top: 2px;
  width: 2px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.download-glyph::after {
  bottom: 1px;
  width: 12px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 3px -4px / 6px 8px no-repeat,
    linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 3px -4px / 6px 8px no-repeat;
  transform: translateX(-50%);
}

.asset-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.asset-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.asset-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.asset-card.compact .asset-name {
  font-size: 15px;
}

.asset-format,
.asset-duration,
.foot,
.text-download,
.stems-toggle span:last-child {
  color: var(--muted);
}

.asset-format,
.asset-duration {
  font-size: 12px;
  white-space: nowrap;
}

.wave-shell {
  position: relative;
  min-width: 0;
  height: 20px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(255, 255, 255, 0.012);
  overflow: hidden;
}

.asset-card.compact .wave-shell {
  height: 14px;
}

.wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 236, 0.02);
  pointer-events: none;
}

.asset-card.compact .asset-duration {
  justify-self: end;
}

.stems {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 248, 236, 0.07);
  padding-top: 16px;
}

.stems-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.stems-toggle,
.text-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.stems-toggle {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 140ms ease;
}

.stems-toggle[aria-expanded="false"] .chevron {
  transform: rotate(-45deg) translate(-1px, 1px);
}

.text-download {
  font-size: 13px;
  text-decoration: none;
}

.stems-panel[hidden] {
  display: none;
}

.foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 248, 236, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .shell {
    padding: 18px 16px 16px;
  }

  .brand-lockup {
    width: clamp(234px, 38vw, 282px);
  }

  .delivery {
    padding: 20px 18px 16px;
  }

  .delivery-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .head-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .asset-card {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .asset-card.compact {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .asset-duration {
    display: none;
  }

  .asset-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .foot {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .masthead {
    justify-content: flex-start;
    min-height: 72px;
  }

  .brand-lockup {
    width: 220px;
  }

  .delivery-head h1 {
    font-size: 24px;
  }

  .ambient-stain {
    width: 260px;
    height: 260px;
    top: 82px;
    left: -128px;
    opacity: 0.2;
  }
}
