.artist-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(540px, calc(100svh - 64px), 900px);
  background: #141219;
  margin-bottom: clamp(24px, 5vw, 72px);
}
.hobos .artist-stage { background: #1c1510 }
.artist-stage-images,
.artist-stage-images::after,
.artist-stage-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.artist-stage-images {
  z-index: -1;
  overflow: hidden;
}
.artist-stage-images::after {
  content: "";
  background:
    linear-gradient(90deg, rgb(12 11 17 / .96), rgb(12 11 17 / .82) 29%, rgb(12 11 17 / .12) 74%),
    linear-gradient(0deg, rgb(12 11 17 / .92), transparent 51%);
}
.artist-stage-images img {
  object-fit: cover;
  object-position: center 37%;
  opacity: 0;
  transition: opacity .38s ease;
}
.artist-stage-images .is-active { opacity: 1 }
.artist-stage-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-block: clamp(40px, 8vh, 100px);
}
.artist-stage .artist-hero-copy { max-width: 37rem }
.artist-stage .back { display: inline-block; margin-bottom: 12px }
.artist-stage .artist-logo { margin-block: 12px 16px }
.artist-stage .artist-logo img { max-height: clamp(132px, 25svh, 238px) }
.artist-stage .lede { color: #f5f0e8 }
.artist-stage .button.secondary { background: var(--panel) }
.artist-stage .button.secondary:hover { background: var(--text); color: var(--bg) }
.artist-stage-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.artist-stage-thumbs[hidden] { display: none }
.artist-stage-thumbs button {
  padding: 0;
  background: #211c21;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .78;
}
.artist-stage-thumbs button:is(:hover, :focus-visible, [aria-pressed="true"]) {
  border-color: var(--accent);
  opacity: 1;
}
.artist-stage-thumbs img {
  width: clamp(44px, 5vw, 64px);
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}
@media (max-width: 760px) {
  .artist-stage {
    --mobile-photo-height: clamp(180px, 69vw, 360px);
    min-height: 0;
    padding-top: var(--mobile-photo-height);
  }
  .artist-stage-inner {
    grid-template-columns: 1fr;
    padding-block: 12px 28px;
  }
  .artist-stage-images { height: var(--mobile-photo-height) }
  .artist-stage-images img {
    object-fit: contain;
    object-position: center;
  }
}

.artist-stage {
  --stage-ink: 1 20 15;
  --stage-tint: 4 66 62;
  --stage-floor: 2 10 10;
  background: rgb(var(--stage-floor));
}
.hobos .artist-stage {
  --stage-ink: 22 18 5;
  --stage-tint: 100 75 12;
  --stage-floor: 10 8 3;
  background: rgb(var(--stage-floor));
}
.artist-stage-images::after {
  background:
    linear-gradient(90deg, rgb(var(--stage-ink) / .98), rgb(var(--stage-tint) / .7) 31%, transparent 78%),
    linear-gradient(0deg, rgb(var(--stage-floor) / .98), transparent 64%);
}
@media (max-width: 760px) {
  .artist-stage-images::after {
    background: linear-gradient(0deg, rgb(var(--stage-floor)), transparent 24%);
  }
}
.hobos-gallery { margin-block: clamp(32px, 6vw, 70px) }
.hobos-gallery h3 { margin-block: 28px 12px }
.hobos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}
.hobos-gallery-grid a { overflow: hidden; background: var(--panel) }
.hobos-gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hobos-gallery-grid a:hover img { opacity: .82 }

.bonestorm .release-feature .kicker, .bonestorm .artist-stage .kicker {
  color: #a4fa6a;
}
.artist-brand img {
  width: clamp(92px, 14vw, 138px);
  height: 44px;
  object-fit: contain;
  filter: none;
}
.artist-stage-thumbs .stage-rotation {
  align-self: end;
  min-width: 38px;
  min-height: 38px;
  color: var(--text);
}
.artist-profile-content [data-tilt] {
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .16s ease-out, background-color .2s, box-shadow .2s;
}
.artist-profile-content [data-tilt]:is(:hover, :focus-within) {
  box-shadow: 0 12px 30px #0005;
}
.artist-profile-content .follow-link {
  margin-block: 5px;
  padding: 7px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--service) 10%, var(--bg));
}
.artist-profile-content .follow-icon {
  width: 36px;
  height: 36px;
  background: var(--service);
  color: #081012;
}
.artist-profile-content .follow-link:is(:hover, :focus-visible) .follow-icon {
  background: var(--service);
}
.follow-x { --service: #f2f5f6 }
.follow-bandsintown { --service: #55f5df }
.follow-bandcamp { --service: #70deef }
.follow-spotify { --service: #60f280 }
.follow-tiktok { --service: #63f7f0 }

.artist-stage-socials:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.artist-stage-social {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--service) 19%, #0a0e10);
  transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.artist-stage-social .follow-icon {
  width: 34px;
  height: 34px;
  color: var(--service);
  background: transparent;
  transition: transform .22s ease;
}
.artist-stage-social:is(:hover, :focus-visible) {
  transform: translateY(-5px);
  background: color-mix(in srgb, var(--service) 28%, #0a0e10);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--service) 40%, transparent);
}
.artist-stage-social:is(:hover, :focus-visible) .follow-icon {
  transform: rotate(-9deg) scale(1.13);
}
.artist-stage-social:active { transform: scale(.94) }
@media (prefers-reduced-motion: reduce) {
  .artist-stage-social, .artist-stage-social .follow-icon {
    transform: none !important;
    transition: none;
  }
}

.hobos-gallery .gallery-back,
.hobos-gallery-page .gallery-view-all,
.hobos-gallery-page .artist-stage,
.hobos-gallery-page .artist-profile-content > :not(.hobos-gallery) {
  display: none;
}
.hobos-gallery-page .hobos-gallery .gallery-back {
  display: inline-flex;
}

.top .artist-primary-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px clamp(10px, 2vw, 28px);
}
.top .artist-primary-nav a {
  display: inline-block;
  padding-block: 5px;
}
.top .artist-primary-nav a:is(:hover, :focus-visible) {
  color: var(--accent);
}
.hobos-gallery-page .artist-primary-nav a:not([href="#photos"]) {
  display: none;
}
body.hobos {
  --bg: #000;
  --panel: #101010;
  --ink: #080808;
  --line: #282828;
}
@media (max-width: 540px) {
  .top .artist-primary-nav {
    flex: 1;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  /* Keep the full image in view while giving the frame a subtle drift. */
  .artist-stage-images img:is(.is-active, .is-leaving) {
    animation: artist-mobile-pan 4s ease-in-out both;
  }
  .stage-paused .artist-stage-images img { animation-play-state: paused }
}
@keyframes artist-mobile-pan {
  from { transform: translateX(-2px) scale(1.012) }
  to { transform: translateX(2px) scale(1.012) }
}

@media (max-width: 760px) {
  .artist-stage .artist-logo {
    position: absolute;
    top: calc(var(--mobile-photo-height) - 10px);
    left: 50%;
    width: min(55%, 245px);
    margin: 0;
    transform: translate(-50%, -100%);
    z-index: 1;
  }
  .artist-stage .artist-logo img {
    margin-inline: auto;
    width: auto;
    max-width: 100%;
    max-height: clamp(60px, 20vw, 108px);
    filter: drop-shadow(0 2px 8px #000e);
  }
}

/* Profiles share the Hobos framing. Cover art keeps its edges on wide screens. */
@media (min-width: 761px) {
  .artist-stage-images .stage-artwork {
    object-fit: contain;
    object-position: right center;
  }
}

/* Set an act's mark on its profile without affecting the stage palette. */
.bonestorm { --profile-mark: url("media/profile/bonestorm-logo.webp"); }
.hobos { --profile-mark: url("media/profile/stonecoldhobo-logo.webp"); }
.artist-profile-content { position: relative; isolation: isolate; }
.artist-profile-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: var(--profile-mark) right 1rem top 2rem / min(70%, 42rem) auto no-repeat;
  opacity: .09;
}

.bonestorm .artist-stage .artist-logo img {
  width: auto;
  max-width: 100%;
  max-height: clamp(198px, 37.5svh, 357px);
}
@media (max-width: 760px) {
  .bonestorm .artist-stage .artist-logo {
    width: min(82.5%, 367.5px);
  }
  .bonestorm .artist-stage .artist-logo img {
    max-height: clamp(90px, 30vw, 162px);
  }
}

/* Blend dark artwork margins into the stage, keeping the subject in frame. */
.bonestorm .artist-stage-images { background: rgb(var(--stage-floor)); }
.bonestorm .artist-stage-images .stage-artwork {
  mix-blend-mode: lighten;
  mask-image: linear-gradient(to bottom, #000 84%, transparent);
}

/* Keep the artwork clear of the hero copy and thumbnail controls. */
@media (min-width: 761px) {
  .bonestorm .artist-stage-images .stage-artwork {
    inset: 0 0 auto auto;
    width: 61%;
    height: calc(100% - clamp(115px, 18vh, 185px));
    object-fit: contain;
    object-position: center;
  }
  .bonestorm .artist-stage-images::after {
    background:
      linear-gradient(90deg, rgb(var(--stage-ink) / .95), rgb(var(--stage-tint) / .22) 34%, transparent 58%),
      linear-gradient(0deg, rgb(var(--stage-floor)) 9%, transparent 30%);
  }
  .bonestorm .artist-stage-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .bonestorm .artist-stage-thumbs { justify-content: flex-end; }
  .bonestorm .artist-stage-thumbs img { width: clamp(32px, 3.2vw, 58px); }
}
@media (max-width: 760px) {
  .bonestorm .artist-stage-images .stage-artwork {
    animation: none;
    height: calc(100% - 34px);
  }
  .bonestorm .artist-stage .artist-logo { top: calc(var(--mobile-photo-height) + 10px); }
  .bonestorm .artist-stage .artist-logo img { max-height: clamp(42px, 13vw, 76px); }
  .bonestorm .artist-stage-inner { padding-top: 20px; }
}
