/* ── BEATS PAGE ── */
#page-music .subpage-bg {
  position: fixed;
}

/* ── HEADER TWO-COLUMN LAYOUT ── */
.beats-header-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.beats-header-text {
  display: flex;
  flex-direction: column;
}


/* ── BIO TEXT ── */
.beats-bio-area {
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}

.beats-bio {
  font-family: var(--font-prose);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--cream);
  opacity: 0.6;
  margin: 0;
}

.beats-bio-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding-top: 0.6em;
}

/* ── STUDIO PHOTO GRID ── */
.beats-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.beats-photo-tile {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.beats-photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.beats-photo-tile:hover img {
  transform: scale(1.05);
}

/* ── WALL GRID ── */
.beats-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  width: 100%;
  margin-top: 0.5rem;
}

/* ── TILE ── */
.beat-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: rgba(var(--cream-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  outline: none;
}

.beat-tile:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.beat-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.beat-tile:hover .beat-art,
.beat-tile--active .beat-art {
  transform: scale(1.04);
}

/* ── OVERLAY ── */
.beat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--ink-rgb), 0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.beat-tile:hover .beat-overlay,
.beat-tile--active .beat-overlay {
  background: rgba(var(--ink-rgb), 0.38);
}

/* ── PLAY / PAUSE BUTTON ── */
.beat-play-btn {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--cream-rgb), 0.55);
  background: rgba(var(--ink-rgb), 0.45);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s, color 0.25s;
}

.beat-play-btn svg {
  width: 11px;
  height: 13px;
  flex-shrink: 0;
}

.beat-tile:hover .beat-play-btn {
  opacity: 1;
  transform: scale(1);
}

.beat-tile--active .beat-play-btn {
  opacity: 1;
  transform: scale(1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── PLAYING STATE — accent ring ── */
.beat-tile--playing::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  pointer-events: none;
  z-index: 2;
}

/* ── LABEL — appears on hover / active ── */
.beat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 0.65rem 0.55rem;
  background: linear-gradient(to top, rgba(var(--ink-rgb),0.82) 0%, transparent 100%);
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.beat-tile:hover .beat-label,
.beat-tile--active .beat-label {
  opacity: 1;
  transform: translateY(0);
}

/* ── EQ animation on playing tile ── */
.beat-eq {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.beat-eq-bar {
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  height: 16px;
  transform: scaleY(0.1875);   /* 3/16 — animated via transform, not height (no layout) */
  transform-origin: bottom;
}

.beat-tile--playing .beat-eq               { opacity: 1; }
.beat-tile--playing:hover .beat-eq         { opacity: 0; }
.beat-tile--playing .beat-play-btn         { opacity: 0; transform: scale(0.88); }
.beat-tile--playing:hover .beat-play-btn   { opacity: 1; transform: scale(1); }

@keyframes beat-eq {
  0%, 100% { transform: scaleY(0.1875); }
  50%       { transform: scaleY(1); }
}

.beat-tile--playing .beat-eq-bar:nth-child(1) { animation: beat-eq 0.75s ease-in-out infinite; }
.beat-tile--playing .beat-eq-bar:nth-child(2) { animation: beat-eq 0.55s ease-in-out 0.15s infinite; }
.beat-tile--playing .beat-eq-bar:nth-child(3) { animation: beat-eq 0.9s ease-in-out 0.04s infinite; }

/* ── ENTRY REVEAL SEQUENCE ── */

#page-music .beats-bio-area {
  transition: opacity 0.8s ease;
}

#page-music .breadcrumb {
  transition: opacity 0.5s ease;
}

#page-music .subpage-bg-img {
  opacity: 0.38;
  transition: opacity 1.8s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .beats-header-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 700px) {
  .beats-wall { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}

@media (max-width: 440px) {
  .beats-wall { grid-template-columns: repeat(2, 1fr); }
}
