@font-face {
  font-family: Inter;
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  font-optical-sizing: auto;
  color: #fff;
  background: #000;
  --page-width: 970px;
  --gutter: 3vw;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 2px;
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.artwork {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.artwork__image {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: breathe 18s ease-in-out infinite alternate;
}
.artwork::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 52%, rgb(0 0 0 / 76%) 0%, rgb(0 0 0 / 62%) 25%, transparent 66%),
    radial-gradient(ellipse at center, transparent 35%, rgb(0 0 0 / 55%) 80%, #000 100%),
    linear-gradient(#000b, transparent 20%, transparent 85%, #0008);
}

.header {
  width: min(100%, calc(var(--page-width) + 2 * var(--gutter)));
  margin-inline: auto;
  padding: max(clamp(12px, 3vw, 24px), env(safe-area-inset-top)) var(--gutter) clamp(12px, 3vw, 24px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}
.brand__mark { display: block; width: 34px; height: 34px; flex-shrink: 0; }
.header { color: #f3f1ef; animation: brand-colors 20s ease-in-out infinite; }
.brand__fill { color: inherit; }
.header__work, .header__language {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(.875rem, .875rem + ((1vw - .2rem) * .308), .9rem);
  line-height: 1.4;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}
.header__language { justify-self: end; }

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vh, 96px) 8vw;
  padding-bottom: max(clamp(40px, 7vh, 96px), env(safe-area-inset-bottom));
  text-align: center;
}
.hero__content { width: 100%; max-width: 970px; }
.hero__eyebrow {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.2;
  color: rgb(255 255 255 / 78%);
}
h1 {
  margin: 0;
  font-size: clamp(2.418rem, 2.418rem + ((1vw - .2rem) * 5.125), 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 span { white-space: nowrap; }
.hero__description {
  max-width: 970px;
  margin: clamp(24px, 3.2vw, 40px) auto 0;
  font-size: clamp(1.39rem, 1.39rem + ((1vw - .2rem) * 1.132), 1.85rem);
  line-height: 1.2;
  font-weight: 400;
  color: rgb(255 255 255 / 88%);
  text-wrap: pretty;
}
.hero__description span { display: block; }
.platforms {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0 var(--gutter) max(48px, env(safe-area-inset-bottom));
  text-align: center;
}
.platforms__label {
  margin: 0 0 16px;
  font-size: .9375rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 78%);
}
.platforms__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.platforms__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 46px;
  opacity: .82;
  transition: opacity 180ms ease, transform 180ms ease;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}
.platforms__link img { display: block; width: 32px; height: 32px; object-fit: contain; }
.platforms__link--suno img { width: 28px; height: 28px; }
.platforms__link--soundcloud img { width: 38px; height: 38px; }
.platforms__link:focus-visible { opacity: 1; }
.platforms__item { position: relative; }
.platforms__link[aria-disabled="true"] { opacity: .35; cursor: default; }
.platforms__link[aria-disabled="true"]:hover { opacity: .35; transform: none; }
.platforms__link[aria-disabled="true"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 2px;
}
.platforms__tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 10px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #171717;
  color: #fff;
  font-size: .875rem;
  line-height: 1.4;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.platforms__item:hover .platforms__tooltip,
.platforms__item:focus-within .platforms__tooltip {
  visibility: visible;
  opacity: 1;
}

@media (hover: hover) {
  .header a:hover { text-decoration: underline; }
  .brand:hover { text-decoration: none !important; }
  .platforms__link:hover { opacity: 1; transform: scale(1.05); }
}
@media (max-width: 600px) {
  .header { grid-template-columns: auto 1fr auto; gap: 8px; }
  .header__work { display: inline-flex; justify-self: center; white-space: nowrap; }
  .brand__mark { width: 34px; height: 34px; }
  .hero__description { max-width: 34ch; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .header { padding-block: 12px; }
  .hero { padding-block: 24px; }
  h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); }
  .hero__description { margin-top: 20px; }
}
@media (max-width: 400px) {
  .platforms__links { gap: 12px; }
  .platforms__link { width: 48px; }
  .platforms__tooltip { left: auto; right: 0; transform: none; }
}
@keyframes breathe {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}
@keyframes brand-colors {
  0%, 100% { color: #f3f1ef; }
  14% { color: #efd3de; }
  28% { color: #e2d4ef; }
  42% { color: #d1def0; }
  56% { color: #cce8ea; }
  70% { color: #d8e7d6; }
  84% { color: #eddfce; }
}
@media (prefers-reduced-motion: reduce) {
  .header { animation: none; }
  .artwork__image { animation: none; transform: none; }
  .platforms__link { transition: none; }
  .platforms__link:hover { transform: none; }
}
