:root {
  --ink: #f1eee4;
  --muted: rgba(241, 238, 228, 0.68);
  --line: rgba(241, 238, 228, 0.28);
  --deep: #080a08;
  --sage: #aebc98;
  --edge: clamp(10px, 1vw, 18px);
  --mx: 0px;
  --my: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: var(--deep);
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a,
button,
input {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-shell,
.hero {
  min-height: 100dvh;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -1.5vh -1.5vw;
  width: 103vw;
  height: 103dvh;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.08) brightness(0.64);
  transform: translate3d(calc(var(--mx) * -0.012), calc(var(--my) * -0.012), 0) scale(1.04);
  transition: transform 120ms linear;
  z-index: -4;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 5, 0.62) 0%, rgba(5, 7, 5, 0.2) 42%, rgba(5, 7, 5, 0.48) 100%),
    linear-gradient(180deg, rgba(5, 7, 5, 0.72) 0%, rgba(5, 7, 5, 0.06) 38%, rgba(5, 7, 5, 0.76) 100%);
  z-index: -3;
}

.hero__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px),
    linear-gradient(115deg, transparent 0%, rgba(174, 188, 152, 0.1) 46%, transparent 52%);
  mix-blend-mode: overlay;
  opacity: 0.3;
  z-index: -2;
}

.hero__frame {
  position: absolute;
  inset: var(--edge);
  border: 1px solid var(--line);
  border-radius: 8px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.24),
    0 0 72px rgba(0, 0, 0, 0.34);
  z-index: 6;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: var(--edge);
  left: var(--edge);
  right: var(--edge);
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(12, 15, 12, 0.64);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.topbar__left {
  display: flex;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.brand {
  width: clamp(148px, 12vw, 210px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  transition:
    background 240ms ease,
    color 240ms ease;
}

.brand img {
  width: 42px;
  height: 15px;
  object-fit: contain;
  object-position: center;
  opacity: 0.95;
}

.brand:hover,
.brand:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: 0;
}

.icon-cell {
  width: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: rgba(241, 238, 228, 0.82);
  transition:
    background 220ms ease,
    color 220ms ease;
}

.icon-cell:hover,
.icon-cell:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: 0;
}

.sound-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
}

.sound-bars i {
  width: 2px;
  height: 13px;
  display: block;
  border-radius: 20px;
  background: currentColor;
  opacity: 0.72;
  transform-origin: center;
  animation: barPulse 980ms ease-in-out infinite;
}

.sound-bars i:nth-child(2) {
  height: 22px;
  animation-delay: -280ms;
}

.sound-bars i:nth-child(3) {
  height: 18px;
  animation-delay: -520ms;
}

.sound-bars i:nth-child(4) {
  height: 10px;
  animation-delay: -760ms;
}

.sound-toggle:not(.is-on) .sound-bars i {
  animation-play-state: paused;
  opacity: 0.35;
}

.language {
  font-weight: 760;
}

.contact-icon {
  font-size: 18px;
  line-height: 1;
}

.nav-links {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px clamp(12px, 2.4vw, 34px);
}

.nav-links button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(13px, 1.35vw, 23px);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(241, 238, 228, 0.78);
  font-weight: 780;
  font-size: clamp(10px, 0.72vw, 13px);
  transition:
    transform 240ms ease,
    background 240ms ease,
    color 240ms ease;
}

.nav-links button:hover,
.nav-links button:focus-visible {
  background: rgba(174, 188, 152, 0.16);
  color: #fff;
  transform: translateY(-1px);
  outline: 0;
}

.top-cta {
  grid-column: 3 / 4;
  justify-self: end;
  align-self: stretch;
  width: max-content;
  min-width: 184px;
  margin: 7px 7px 7px 0;
  padding: 0 12px 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  background: var(--sage);
  color: #12160f;
  font-weight: 840;
  font-size: 12px;
  transition:
    transform 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}

.top-cta b {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: #11150f;
  color: var(--ink);
  font-size: 23px;
  line-height: 0.8;
  font-family: Georgia, serif;
}

.top-cta:hover,
.top-cta:focus-visible {
  background: #c0cbaa;
  box-shadow: 0 18px 38px rgba(9, 11, 8, 0.3);
  transform: translateY(-1px);
  outline: 0;
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 3vw, 54px);
  bottom: clamp(78px, 10.5vh, 126px);
  z-index: 5;
  width: min(430px, calc(100vw - 48px));
}

.hero-copy__body {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 19px);
  line-height: 1.34;
}

.bottom-credit {
  position: absolute;
  left: 50%;
  bottom: clamp(30px, 4.8vh, 56px);
  z-index: 5;
  width: min(360px, 78vw);
  margin: 0;
  transform: translateX(-50%);
  color: rgba(241, 238, 228, 0.78);
  font-size: clamp(9px, 0.68vw, 12px);
  font-weight: 760;
  line-height: 1.28;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(3, 5, 3, 0.42);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(500px, calc(100vw - 28px));
  max-height: min(82dvh, 680px);
  overflow: auto;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(241, 238, 228, 0.2);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.modal-card--wide {
  width: min(640px, calc(100vw - 28px));
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: rgba(241, 238, 228, 0.72);
  font-size: 22px;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #fff;
  outline: 0;
}

.modal-label {
  margin: 0;
  color: rgba(241, 238, 228, 0.54);
  font-size: 10px;
  font-weight: 840;
  text-transform: uppercase;
}

.modal-card h2 {
  margin: 8px 36px 14px 0;
  color: var(--ink);
  font-size: clamp(26px, 3.3vw, 44px);
  font-weight: 760;
  line-height: 0.95;
  text-transform: none;
}

.modal-overlay[data-modal-current="release"] .modal-card h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
}

.modal-body {
  color: rgba(241, 238, 228, 0.74);
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.42;
}

.modal-body p {
  margin: 0;
}

.text-link {
  display: inline-flex;
  padding: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 760;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--sage);
  outline: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(241, 238, 228, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  overflow-wrap: anywhere;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.contact-row:hover,
.contact-row:focus-visible,
.demo-card:hover,
.demo-card:focus-visible {
  border-color: rgba(174, 188, 152, 0.46);
  background: rgba(174, 188, 152, 0.08);
  transform: translateY(-1px);
  outline: 0;
}

.contact-icon-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 238, 228, 0.24);
  border-radius: 50%;
  color: var(--ink);
}

.email-mark::before {
  content: "";
  width: 18px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(35deg, transparent 46%, currentColor 47% 53%, transparent 54%),
    linear-gradient(-35deg, transparent 46%, currentColor 47% 53%, transparent 54%);
}

.demo-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  justify-content: center;
  gap: 14px;
}

.demo-card {
  min-height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 238, 228, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--sage);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.demo-logo {
  display: block;
  width: auto;
  max-width: 74%;
  max-height: 48px;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: sepia(0.18) saturate(0.75) brightness(1.05);
}

.trackstack-logo {
  max-height: 46px;
}

.soundcloud-logo {
  max-height: 48px;
}

.demo-form {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(241, 238, 228, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.14);
}

.demo-form label {
  display: grid;
  gap: 8px;
}

.demo-form label span {
  color: rgba(241, 238, 228, 0.54);
  font-size: 10px;
  font-weight: 840;
  text-transform: uppercase;
}

.demo-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(241, 238, 228, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.demo-form input:focus {
  border-color: rgba(174, 188, 152, 0.62);
  outline: 0;
}

.form-submit {
  justify-self: start;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--sage);
  color: #11150f;
  font-weight: 840;
}

.release-line strong {
  color: var(--ink);
}

.release-line span {
  color: rgba(241, 238, 228, 0.38);
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(241, 238, 228, 0.72);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition:
    opacity 180ms ease,
    width 160ms ease,
    height 160ms ease,
    background 160ms ease;
  mix-blend-mode: difference;
}

body.has-cursor .cursor {
  opacity: 1;
}

body.is-hovering .cursor {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
}

@keyframes barPulse {
  0%,
  100% {
    transform: scaleY(0.54);
  }

  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    width: 158px;
    padding: 0 14px;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .top-cta {
    min-width: 168px;
  }
}

@media (max-width: 900px) {
  .topbar {
    min-height: 48px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 48px;
  }

  .topbar__left {
    grid-column: 1 / 2;
    grid-row: 1;
    border-right: 1px solid var(--line);
  }

  .brand {
    width: 108px;
    min-width: 108px;
    font-size: 11px;
    gap: 7px;
    padding: 0 10px;
  }

  .brand img {
    width: 27px;
    height: 10px;
  }

  .sound-toggle,
  .icon-cell.language,
  .contact-icon {
    display: none;
  }

  .nav-links {
    position: static;
    transform: none;
    grid-column: 2 / 3;
    grid-row: 1;
    justify-content: center;
    overflow-x: auto;
    gap: 4px;
    padding: 6px 5px;
    border-top: 0;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links button {
    height: 34px;
    flex: 0 0 auto;
    padding: 0 8px;
    font-size: 8.5px;
    border-radius: 3px;
  }

  .icon-cell {
    width: 52px;
    min-height: 52px;
  }

  .top-cta {
    grid-column: 3 / 4;
    grid-row: 1;
    min-width: 104px;
    margin: 6px 6px 6px 0;
    font-size: 8.5px;
    gap: 6px;
    padding: 0 6px 0 9px;
  }

  .top-cta b {
    width: 23px;
    height: 23px;
    font-size: 17px;
  }

  .hero-copy {
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px));
    width: min(360px, calc(100vw - 48px));
  }

  .hero-copy__body {
    font-size: 14px;
    line-height: 1.32;
  }

  .bottom-credit {
    left: clamp(30px, 3.2vw, 68px);
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px));
    width: min(360px, calc(100vw - 60px));
    transform: none;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .hero__media {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    transform: none;
  }

  .hero__frame {
    inset: 7px;
  }

  .topbar {
    top: max(7px, env(safe-area-inset-top));
    left: 7px;
    right: auto;
    width: calc((100vw - 14px) / 0.78);
    min-height: 48px;
    transform: scale(0.78);
    transform-origin: top left;
  }

  .brand {
    width: 112px;
    min-width: 112px;
    gap: 5px;
    padding: 0 8px;
    font-size: 9.5px;
  }

  .brand img {
    width: 28px;
    height: 10px;
  }

  .nav-links {
    justify-content: center;
    gap: 4px;
    padding: 6px 5px;
  }

  .nav-links button {
    height: 34px;
    padding: 0 10px;
    font-size: 9.3px;
  }

  .top-cta {
    min-width: 116px;
    font-size: 9.3px;
    gap: 6px;
    padding-left: 9px;
  }

  .top-cta b {
    width: 23px;
    height: 23px;
    font-size: 17px;
  }

  .hero-copy {
    left: 24px;
    right: auto;
    bottom: max(78px, calc(env(safe-area-inset-bottom) + 60px));
    width: min(420px, calc((100vw - 36px) / 0.78));
    transform: scale(0.78);
    transform-origin: bottom left;
  }

  .hero-copy__body {
    max-width: 390px;
    font-size: 14px;
  }

  .bottom-credit {
    left: 24px;
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px));
    width: min(420px, calc((100vw - 36px) / 0.78));
    font-size: 10px;
    transform: scale(0.78);
    transform-origin: bottom left;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-card,
  .modal-card--wide {
    width: min(92vw, 390px);
    padding: 14px;
  }

  .modal-card h2 {
    margin-bottom: 12px;
    font-size: 22px;
  }

  .modal-body {
    font-size: 13px;
  }

  .demo-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .demo-card {
    min-height: 62px;
  }

  .demo-logo {
    max-width: 76%;
    max-height: 34px;
  }

  .trackstack-logo {
    max-height: 33px;
  }

  .soundcloud-logo {
    max-height: 34px;
  }

  .demo-form {
    padding: 10px;
  }

  .demo-form input,
  .form-submit {
    min-height: 38px;
  }

  .contact-row {
    align-items: flex-start;
  }
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }

  .nav-links button:hover,
  .top-cta:hover,
  .contact-row:hover,
  .demo-card:hover {
    transform: none;
  }
}

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

  .hero__media {
    transform: none;
  }
}
