@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist);
  --font-heading: var(--font-geist);
  --color-border: var(--border);
  --color-ring: var(--ring);
}

:root {
  --background: #020b19;
  --foreground: #f6fbff;
  --border: rgba(183, 224, 255, 0.18);
  --ring: #6ad8ff;
  --radius: 1.4rem;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist), Arial, Helvetica, sans-serif;
}

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

.profile-page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.profile-page::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: '';
  background:
    linear-gradient(180deg, rgba(2, 10, 25, 0.15), rgba(0, 7, 21, 0.78)),
    radial-gradient(circle at 50% 15%, rgba(70, 204, 255, 0.16), transparent 45%),
    #03152c;
}

.profile-page::after {
  position: fixed;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.portrait-backdrop {
  position: fixed;
  z-index: -3;
  inset: -8%;
  background-image: url('/benjeromusic/ben-jero.jpg');
  background-position: 50% 40%;
  background-size: cover;
  filter: blur(20px) saturate(1.15) brightness(0.68);
  transform: scale(1.08);
  animation: backdrop-drift 18s ease-in-out infinite alternate;
}

.atmosphere {
  position: fixed;
  z-index: -1;
  width: min(62vw, 52rem);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.22;
}

.atmosphere--one {
  top: -24rem;
  right: -18rem;
  background: #4ddcff;
  animation: atmosphere-one 15s ease-in-out infinite alternate;
}

.atmosphere--two {
  bottom: -28rem;
  left: -20rem;
  background: #076ce4;
  animation: atmosphere-two 17s ease-in-out infinite alternate;
}

.profile-shell {
  position: relative;
  width: min(100%, 35rem);
  overflow: hidden;
  border: 1px solid rgba(191, 229, 255, 0.19);
  border-radius: 2rem;
  background:
    linear-gradient(145deg, rgba(16, 50, 82, 0.73), rgba(2, 15, 34, 0.86)),
    rgba(3, 21, 44, 0.8);
  box-shadow:
    0 2rem 7rem rgba(0, 4, 17, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(26px) saturate(1.18);
}

.profile-shell::before {
  position: absolute;
  top: -35%;
  left: -85%;
  width: 58%;
  height: 170%;
  content: '';
  pointer-events: none;
  transform: rotate(17deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: glass-sheen 10s ease-in-out infinite;
}

.profile-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.55rem 1.55rem 1.2rem;
}

.portrait-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 5.75rem;
  height: 5.75rem;
  padding: 3px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #dff8ff, #36bde9 52%, #06345e);
  box-shadow:
    0 0 0 6px rgba(89, 211, 255, 0.08),
    0 0 2.5rem rgba(33, 185, 237, 0.24);
}

.profile-portrait {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 57% 31%;
}

.artist-copy { min-width: 0; }

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 8vw, 2.65rem);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.artist-role {
  margin: 0.56rem 0 0;
  color: rgba(225, 243, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.4;
}

.links-stack {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 0.2rem 1rem 1rem;
}

.featured-link,
.link-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 4.75rem;
  gap: 0.86rem;
  border: 1px solid rgba(194, 230, 255, 0.16);
  border-radius: 1.15rem;
  padding: 0.8rem 0.9rem;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.featured-link {
  grid-template-columns: 4.35rem minmax(0, 1fr) auto;
  min-height: 5.55rem;
  overflow: hidden;
  border-color: rgba(224, 197, 151, 0.48);
  background:
    linear-gradient(110deg, rgba(193, 149, 88, 0.28), rgba(7, 43, 80, 0.72)),
    rgba(7, 39, 72, 0.8);
  box-shadow:
    0 0.8rem 2.4rem rgba(0, 12, 34, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.11);
}

.release-art {
  position: relative;
  z-index: 1;
  width: 4.35rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 242, 218, 0.35);
  border-radius: 0.8rem;
  object-fit: cover;
  box-shadow: 0 0.55rem 1.35rem rgba(0, 5, 18, 0.34);
}

.featured-link::before {
  position: absolute;
  right: -2.4rem;
  width: 7.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  content: '';
  background: rgba(72, 209, 255, 0.13);
  filter: blur(2px);
  animation: release-pulse 4s ease-in-out infinite;
}

.link-card { background: rgba(2, 17, 37, 0.54); }
.link-card--spotify { background: rgba(2, 27, 39, 0.62); }
.link-card--apple { background: rgba(15, 18, 38, 0.62); }

.link-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.link-copy strong {
  color: #f8fcff;
  font-size: 0.98rem;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.featured-link .link-copy strong { font-size: 1.12rem; }

.link-copy small {
  overflow: hidden;
  color: rgba(218, 239, 255, 0.62);
  font-size: 0.76rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-status {
  width: fit-content;
  color: #efd19b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.link-arrow {
  position: relative;
  z-index: 1;
  width: 1.1rem;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(218, 241, 255, 0.46);
  transition: color 180ms ease, transform 180ms ease;
}

.featured-link:hover,
.featured-link:focus-visible,
.link-card:hover,
.link-card:focus-visible {
  outline: none;
  border-color: rgba(133, 224, 255, 0.64);
  background-color: rgba(20, 96, 138, 0.22);
  box-shadow:
    0 0.8rem 2.6rem rgba(0, 12, 33, 0.3),
    0 0 0 4px rgba(90, 213, 255, 0.08);
  transform: translateY(-2px);
}

.featured-link:hover .link-arrow,
.featured-link:focus-visible .link-arrow,
.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow {
  color: #9fe8ff;
  transform: translate(2px, -2px);
}

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 1.5rem 1.35rem;
  color: rgba(207, 232, 249, 0.46);
  font-size: 0.72rem;
  font-weight: 580;
  letter-spacing: 0.04em;
}

@keyframes backdrop-drift {
  from { transform: scale(1.08) translate3d(-0.5%, -0.5%, 0); }
  to { transform: scale(1.13) translate3d(0.7%, 0.5%, 0); }
}

@keyframes atmosphere-one {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to { transform: translate3d(-8%, 9%, 0) scale(1.08); }
}

@keyframes atmosphere-two {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(9%, -8%, 0) scale(1.12); }
}

@keyframes glass-sheen {
  0%, 54% { left: -85%; opacity: 0; }
  65% { opacity: 1; }
  82%, 100% { left: 135%; opacity: 0; }
}

@keyframes release-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.6; }
  50% { transform: scale(1.16); opacity: 1; }
}

@media (max-width: 38rem) {
  .profile-page {
    align-items: start;
    overflow-y: auto;
    padding: 0;
  }

  .portrait-backdrop {
    inset: -5%;
    background-position: 58% 38%;
    filter: blur(16px) saturate(1.16) brightness(0.62);
  }

  .profile-shell {
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(2, 16, 36, 0.38), rgba(2, 13, 29, 0.92) 40%, #020d1e 100%);
    box-shadow: none;
  }

  .profile-header {
    min-height: 42svh;
    align-items: flex-end;
    padding: clamp(6rem, 24vh, 10rem) 1.25rem 1.35rem;
  }

  .portrait-wrap { width: 5rem; height: 5rem; }
  .artist-role { color: rgba(227, 243, 255, 0.74); }

  .links-stack {
    gap: 0.66rem;
    padding: 0.2rem 0.85rem 1rem;
  }

  .featured-link,
  .link-card {
    min-height: 4.8rem;
    border-radius: 1.05rem;
  }

  .featured-link { min-height: 5.55rem; }
  .featured-link { grid-template-columns: 4rem minmax(0, 1fr) auto; }
  .release-art { width: 4rem; border-radius: 0.72rem; }
}

@media (max-width: 23rem) {
  .profile-header { gap: 0.8rem; padding-inline: 1rem; }
  .portrait-wrap { width: 4.5rem; height: 4.5rem; }
  .links-stack { padding-inline: 0.7rem; }
  .link-copy small { max-width: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-backdrop,
  .atmosphere,
  .profile-shell::before,
  .featured-link::before { animation: none; }

  .featured-link,
  .link-card,
  .link-arrow { transition: none; }
}
