/*
 * Secret Heaven Productions — Music First / V4.1
 * Original, dependency-free CSS. Interactive details only.
 * No change to .atmosphere, body backgrounds, player embeds,
 * checkout, licensing or commerce API styles.
 */
:root {
  --shp-mf-cyan: #72d8e6;
  --shp-mf-violet: #b493e7;
  --shp-mf-pink: #dd83e8;
  --shp-mf-ease: cubic-bezier(.22, 1, .36, 1);
}

/* A quiet, compositor-driven reading progress under the existing header.
   Unsupported browsers simply retain the original header. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after {
      content: '';
      position: absolute;
      inset: auto 0 0 0;
      height: 1px;
      z-index: 1;
      pointer-events: none;
      background: linear-gradient(90deg, var(--shp-mf-cyan), var(--shp-mf-violet), var(--shp-mf-pink));
      opacity: .66;
      transform: scaleX(0);
      transform-origin: left center;
      animation: shp-mf-progress 1s linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes shp-mf-progress { to { transform: scaleX(1); } }
  }
}

/* Section editorial accent: never hides content, never shifts a block.
   On unsupported JS, titles remain unchanged. */
html[data-shp-music-first='ready'] .shp-mf-kicker {
  position: relative;
}
html[data-shp-music-first='ready'] .shp-mf-kicker::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(114,216,230,.9), rgba(221,131,232,.28));
  transform: scaleX(0);
  transform-origin: left;
  opacity: .75;
  transition: transform .72s var(--shp-mf-ease);
}
html[data-shp-music-first='ready'] .shp-mf-kicker.shp-mf-seen::after {
  transform: scaleX(1);
}

/* More legible micro-copy without changing the content or the line lengths. */
#artists .artist-panel p,
#productions .section-intro,
#instrumentals .section-intro,
#soundcloud .shp-sc-copy,
#support .shp-support-copy {
  line-height: 1.9;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* 01 — Artists: a soft colored rule, not a distracting card motion. */
  #artists .artist-panel::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 14px;
    width: min(124px, 40%);
    height: 1px;
    background: linear-gradient(90deg, var(--shp-mf-cyan), rgba(221,131,232,.25));
    opacity: .7;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .56s var(--shp-mf-ease);
    pointer-events: none;
  }
  #artists .artist-panel:hover::after,
  #artists .artist-panel:focus-within::after {
    transform: scaleX(1);
  }

  /* 02 — Releases: gentle artwork depth. No player or iframe transforms. */
  #release-art img,
  #release-art .release-cover img {
    transform: translateZ(0) scale(1);
    transition: transform .65s var(--shp-mf-ease);
  }
  #release-panel:hover #release-art img,
  #release-panel:focus-within #release-art img {
    transform: translateZ(0) scale(1.025);
  }

  /* 03 — Instrumentals: the thumbnail is the stage; controls stay still. */
  #beats-grid .beat-play img {
    transform: translateZ(0) scale(1);
    transition: transform .65s var(--shp-mf-ease), filter .45s ease;
  }
  #beats-grid .beat-card:hover .beat-play img,
  #beats-grid .beat-card:focus-within .beat-play img {
    transform: translateZ(0) scale(1.024);
    filter: brightness(1.045);
  }
  #beats-grid .beat-card {
    transition: border-color .3s ease;
  }
  #beats-grid .beat-card:hover,
  #beats-grid .beat-card:focus-within {
    border-color: rgba(114,216,230,.40);
  }

  /* 04 — Visual archive: premium lightbox preview without cropping art. */
  #portfolio .artwork-open img {
    transform: translateZ(0) scale(1);
    transition: transform .68s var(--shp-mf-ease), filter .3s ease;
  }
  #portfolio .artwork-open:hover img,
  #portfolio .artwork-open:focus-visible img {
    transform: translateZ(0) scale(1.028);
  }

  /* 05 — Services: one restrained accent line, no extra CTA/card. */
  #services .service-grid article {
    position: relative;
  }
  #services .service-grid article::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(114,216,230,.65), rgba(221,131,232,.17), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--shp-mf-ease);
  }
  #services .service-grid article:hover::after {
    transform: scaleX(1);
  }

  /* Listening and contact buttons remain legible, no looping shimmer. */
  #home .hero-actions .micro-button:hover,
  #contact .hero-actions .micro-button:hover,
  #productions .platform-switch button:hover,
  #soundcloud .shp-sc-primary:hover,
  #soundcloud .shp-sc-secondary:hover,
  #support .shp-support-action:not(.shp-support-disabled):hover {
    box-shadow: 0 4px 22px rgba(88,203,211,.10);
  }
}

/* Focus is visible for keyboard/touch; never depend on hover alone. */
#beats-grid .beat-card:focus-within,
#portfolio .artwork-open:focus-visible,
#soundcloud .shp-sc-primary:focus-visible,
#support .shp-support-action:focus-visible {
  outline-offset: 4px;
}

/* Respect reduced motion / power constrained browsing. */
@media (prefers-reduced-motion: reduce) {
  html[data-shp-music-first='ready'] .shp-mf-kicker::after {
    transform: scaleX(1);
    transition: none;
  }
  #release-art img,
  #beats-grid .beat-play img,
  #portfolio .artwork-open img {
    transform: none !important;
    transition: none !important;
  }
}
