/* =====================================================================
   B / F / G — Releases, Kontakt, Abspann
   + HUD und Lightbox
   ===================================================================== */

/* ---------------------------------------------------------------------
   B — RELEASES
   Oben die zwei aktuellen Singles groß mit Cover, darunter die Diskografie
   als Index-Liste. Cover monochrom, Farbe bei Berührung — wie im Archiv.
   --------------------------------------------------------------------- */

.releases__featured {
  display: grid;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}

.release { display: grid; gap: var(--s-1); align-content: start; }

.release__cover {
  display: block;
  overflow: hidden;
  margin-bottom: var(--s-2);
  background: var(--c-graphite);
}
.release__cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  transition: filter var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}
.release:hover .release__cover img,
.release:focus-within .release__cover img,
.release.is-focus .release__cover img {
  filter: none;
  transform: scale(1.025);
}

.release__meta { display: flex; justify-content: space-between; gap: var(--s-2); color: var(--c-silver); }
.release__meta span:first-child { color: var(--c-white); }

.release__title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 1.4rem + 7vw, 9rem);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.82;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--c-white);
  padding: var(--s-1) 0 var(--s-1);
}

.release__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-4);
  padding-top: var(--s-2);
  margin-top: var(--s-1);
  border-top: 1px solid var(--c-line);
}
.release__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  color: var(--c-white);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 12px) / 0 1px no-repeat;
  transition: background-size var(--d-mid) var(--ease-out);
}
.release__links a:hover,
.release__links a:focus-visible { background-size: 100% 1px; }

@media (min-width: 900px) {
  .releases__featured {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--s-3);
  }
  .release:nth-child(1) { grid-column: 1 / 7; }
  /* zweite Single versetzt und kleiner — gebrochenes Raster */
  .release:nth-child(2) { grid-column: 8 / 13; margin-top: 14vw; }
  .release:nth-child(2) .release__title { font-size: clamp(3rem, 1.4rem + 5vw, 7rem); }
}

/* ---- Diskografie -------------------------------------------------- */

.releases__list { border-bottom: 1px solid var(--c-line); }

.release-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  grid-template-areas:
    'year title'
    '.    type';
  column-gap: var(--s-2);
  row-gap: 0.25rem;
  align-items: baseline;
  padding: var(--s-2) 0;
  border-top: 1px solid var(--c-line);
  isolation: isolate;
}
.release-row__year { grid-area: year; }
.release-row__title { grid-area: title; }
.release-row__type { grid-area: type; }
.release-row__go { display: none; }

.release-row__title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.75rem);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.95;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--c-white);
}
.release-row__with {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-paper);
}
.release-row__link { color: inherit; }
.release-row__link::after { content: ''; position: absolute; inset: 0; }

/* Invertierender Balken beim Hover */
.release-row::before {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  z-index: -1;
  background: var(--c-paper);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform var(--d-mid) var(--ease-out);
}
.release-row:hover::before,
.release-row:focus-within::before { transform: scaleY(1); }
.release-row:hover,
.release-row:focus-within,
.release-row:hover :is(.release-row__title, .meta),
.release-row:focus-within :is(.release-row__title, .meta) { color: var(--c-void); }
.release-row:hover .release-row__with,
.release-row:focus-within .release-row__with { color: var(--c-steel); }

/* Cover-Vorschau, folgt dem Cursor (nur feine Zeiger) */
.work__preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: clamp(11rem, 15vw, 17rem);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50% 0 50% 0);
  transition: opacity var(--d-fast), clip-path var(--d-mid) var(--ease-out);
  display: none;
}
.work__preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.work__preview.is-visible { opacity: 1; clip-path: inset(0 0 0 0); }

@media (hover: hover) and (pointer: fine) {
  .work__preview { display: block; }
}

@media (min-width: 900px) {
  .release-row {
    grid-template-columns: 6rem minmax(0, 1fr) 8rem 8rem;
    grid-template-areas: 'year title type go';
    align-items: center;
    padding: var(--s-1) 0;
  }
  .release-row__go { display: block; grid-area: go; text-align: right; }
}

/* ---------------------------------------------------------------------
   F — CONNECT
   --------------------------------------------------------------------- */

.connect__list { border-bottom: 1px solid var(--c-line); }

.connect__item { border-top: 1px solid var(--c-line); }

.connect__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
  padding: var(--s-2) 0 var(--s-1);
}
.connect__label {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 1rem + 7.5vw, 9rem);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.9;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--c-white);
  transition: letter-spacing var(--d-mid) var(--ease-out);
}
a.connect__link:hover .connect__label {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.005em;
}
.connect__state { white-space: nowrap; }
a.connect__link .connect__state { color: var(--c-silver); }
a.connect__link:hover .connect__state { color: var(--c-white); }

.connect__item.is-pending .connect__label {
  color: transparent;
  -webkit-text-stroke: 1px var(--c-stroke);
}

.connect__booking {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-6);
}
.connect__mail {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 1rem + 3.5vw, 4.5rem);
  line-height: 1.05;
  color: var(--c-paper);
  overflow-wrap: anywhere;
  justify-self: start;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--d-mid) var(--ease-out);
}
a.connect__mail:hover { background-size: 100% 1px; }
.connect__mail.is-pending { color: var(--c-ash); }

@media (min-width: 900px) {
  .connect__list, .connect__booking { margin-left: calc((100% + var(--s-2)) / 12 * 2); }
}

/* ---------------------------------------------------------------------
   G — CREDITS / FINAL SCREEN
   --------------------------------------------------------------------- */

.credits {
  position: relative;
  padding: var(--section-y) var(--gutter) 0;
  overflow: clip;
}

.credits__roll {
  display: grid;
  gap: var(--s-2);
  max-width: 44rem;
  margin: 0 auto;
}
.credits__roll > div {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  gap: 0.25rem;
}
.credits__roll dt {
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--c-ash);
}
.credits__roll dd { color: var(--c-white); font-size: var(--t-small); }
.credits__roll a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color var(--d-fast);
}
.credits__roll a:hover { color: var(--c-paper); }

@media (min-width: 600px) {
  .credits__roll > div { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .credits__roll dt { text-align: right; }
  .credits__roll dd { text-align: left; }
}

.credits__mark {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin: var(--s-7) calc(-1 * var(--gutter)) 0;
  font-family: var(--f-display);
  font-size: 19.5vw;
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.74;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: var(--chrome);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.credits__slash {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.3em;
  letter-spacing: 0;
  margin: 0 0.15em;
  align-self: center;
}

.credits__base {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) 0 calc(var(--s-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-line);
}
.credits__top { color: var(--c-silver); }
.credits__top:hover { color: var(--c-white); }

/* ---------------------------------------------------------------------
   HUD — technische Zeile unten rechts (nur Desktop)
   --------------------------------------------------------------------- */

.hud {
  position: fixed;
  right: var(--gutter);
  bottom: var(--s-2);
  z-index: var(--z-hud);
  display: none;
  gap: var(--s-3);
  font-size: 0.625rem;
  color: var(--c-white);
  mix-blend-mode: difference;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  transition: opacity var(--d-mid);
}
.hud.is-hidden { opacity: 0; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .js .hud { display: flex; }
}

/* ---------------------------------------------------------------------
   LIGHTBOX
   --------------------------------------------------------------------- */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--gutter);
  border: 0;
  background: var(--c-void);
  color: var(--c-silver);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; gap: var(--s-2); }
.lightbox::backdrop { background: var(--c-void); }

.lightbox__figure {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  gap: var(--s-1);
}
.lightbox__img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  border-top: 1px solid var(--c-line);
  padding-top: var(--s-1);
}
.lightbox__controls button {
  min-height: 44px;
  padding: 0 0.25rem;
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--c-silver);
}
.lightbox__controls button:hover { color: var(--c-white); }
.lightbox__close { margin-left: auto; }
@media (min-width: 600px) { .lightbox__controls { justify-content: flex-start; gap: var(--s-4); } }
