/* =========================================================
   L'UNIVEUW — Design system
   Display: Unbounded (900) — body: Manrope — accent: IBM Plex Mono
   Palette: noir profond / blanc cassé / violet
   ========================================================= */

:root {
  --black: #060607;
  --black-soft: #0c0c10;
  --panel: #111116;
  --panel-2: #16161d;
  --white: #f5f4ef;
  --grey: #97969f;
  --grey-dim: #57565f;
  --violet-950: #150a26;
  --violet-800: #331457;
  --violet-600: #5b21b6;
  --violet-500: #7c3aed;
  --violet-400: #9b6bf2;
  --violet-300: #b79cf5;
  --border: rgba(245, 244, 239, 0.09);
  --border-strong: rgba(245, 244, 239, 0.18);

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 144px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius: 2px;
  --radius-lg: 16px;
  --container: 1360px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--black);
  color-scheme: dark;
  scrollbar-width: none; /* Firefox */
}

html, body {
  min-height: 100%;
}

/* The visible scrollbar track lets a click/drag jump instantly to any
   page position, bypassing Lenis entirely — on a page built around a
   deliberate scroll-driven sequence, that's a way to skip past it
   unintentionally. Wheel/trackpad/keyboard scrolling is untouched. */
::-webkit-scrollbar {
  display: none;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--violet-500);
  color: var(--white);
}

.u-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 768px) {
  .u-container { padding: 0 var(--space-5); }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-300);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Background grain + glow, used on every page */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  width: 140vw;
  height: 90vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

/* =========================================================
   Nav
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  mix-blend-mode: normal;
}

@media (min-width: 768px) {
  .site-nav { padding: var(--space-3) var(--space-5); }
}

.site-nav__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav__mark span {
  color: var(--violet-400);
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  min-height: 44px;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  border-color: var(--violet-400);
  background: rgba(124, 58, 237, 0.1);
}

.menu-btn__bars {
  width: 18px;
  height: 12px;
  position: relative;
}

.menu-btn__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-in-out), opacity 0.2s;
}

.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 50%; margin-top: -0.75px; }
.menu-btn__bars span:nth-child(3) { bottom: 0; }

.nav-open .menu-btn__bars span:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}
.nav-open .menu-btn__bars span:nth-child(2) {
  opacity: 0;
}
.nav-open .menu-btn__bars span:nth-child(3) {
  transform: translateY(-5.25px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-in-out);
}

.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

.nav-overlay__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-overlay__item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.nav-overlay__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 10vw, 76px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.nav-overlay__link:hover,
.nav-overlay__link:focus-visible {
  color: var(--violet-400);
  transform: translateX(var(--space-2));
}

.nav-overlay__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-dim);
}

.nav-overlay__link[aria-disabled="true"] {
  color: var(--grey-dim);
  pointer-events: none;
  cursor: default;
}

.nav-overlay__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 8px;
}

.nav-overlay__foot {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.nav-overlay__foot a:hover { color: var(--violet-300); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  padding: var(--space-6) var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .site-footer {
    padding: var(--space-6) var(--space-5) var(--space-4);
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.site-footer__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 96px);
  text-transform: uppercase;
  line-height: 0.9;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.site-footer__meta a:hover { color: var(--violet-300); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vmax;
  height: 80vmax;
  transform: translate(-50%, -50%) scale(1);
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.35), rgba(124, 58, 237, 0) 68%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero__eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-2);
}

.hero__word {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(52px, 15vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.hero__word .word-line-wrap {
  overflow: hidden;
  display: block;
}

.hero__word .word-line {
  display: block;
}

.hero__word em {
  font-style: normal;
  color: var(--violet-400);
}

.hero__tag {
  position: relative;
  z-index: 1;
  margin-top: var(--space-3);
  max-width: 46ch;
  color: var(--grey);
  font-size: 15px;
}

@media (min-width: 768px) {
  .hero__tag { font-size: 17px; }
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero__scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--violet-400), transparent);
  animation: scrollCue 1.8s var(--ease-in-out) infinite;
}

@keyframes scrollCue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =========================================================
   Carousel (horizontal track selector + scroll-to-flip detail)
   ========================================================= */
.carousel {
  position: relative;
  z-index: 1;
}

.carousel__pin {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4) 0 var(--space-3);
}

.carousel__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

@media (min-width: 700px) {
  .carousel__inner { gap: var(--space-6); }
}

.carousel__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out), opacity 0.3s var(--ease-out);
}

.carousel__arrow:hover, .carousel__arrow:focus-visible {
  border-color: var(--violet-400);
  background: rgba(124, 58, 237, 0.14);
  transform: scale(1.06);
}

.carousel__arrow:active { transform: scale(0.96); }
.carousel__arrow svg { width: 18px; height: 18px; }
.carousel__arrow:disabled { opacity: 0; pointer-events: none; }

.carousel__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: min(52vw, 290px);
}

/* Hidden: each card now shows its own title (see .carousel__player), so
   this duplicate title/index header above the carousel was redundant.
   display:none rather than deleting the markup — render() still writes
   to these elements harmlessly, and the visually-hidden a11y index
   announcement right above it is untouched. */
.carousel__browse-ui {
  display: none;
}

.carousel__slots {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

/* Info-reveal layout: a real two-column flex row instead of transform
   percentages guessed against an unrelated center point — that kept
   drifting off-center because the two panels weren't actually the same
   size. Toggled by JS right as the first info field's step plays/reverses;
   GSAP Flip animates the actual position/size jump this causes into a
   smooth slide instead of an instant cut. */
.carousel__slots.is-split {
  aspect-ratio: auto;
  width: min(96vw, 1500px);
  gap: clamp(20px, 5vw, 96px);
}

.carousel__slots.is-split .carousel__card {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: auto;
  height: min(66vh, 640px);
  aspect-ratio: 3 / 5;
}

.carousel__slots.is-split .carousel__info-panel {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  align-self: center;
  width: auto;
  max-width: min(36vw, 560px);
  height: auto;
}

/* Coverflow fan: every slot is the same base size as the active card,
   centered at the same point (left/top 50%) as a resting position, then
   pushed out to its spot in the arc entirely via transform — translateX
   for the horizontal spread, translateZ for depth (paired with the
   perspective on .carousel__slots), rotateY for the coverflow tilt,
   rotateZ for the slight fan lean, scale for the size falloff. Values
   are fixed per depth level rather than computed in JS because there
   are only ever 4 side positions in play (±1, ±2) — JS just swaps which
   track's markup sits in which slot. */
.carousel__slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  filter: brightness(0.55);
  z-index: 1;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s var(--ease-in-out);
}

.carousel__slot .cover-art,
.carousel__slot .cover-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.carousel__slot[data-slot="prev"] {
  transform: translate(-50%, -50%) translateX(-240px) translateZ(-240px) rotateY(12deg) rotateZ(-8deg) scale(0.84);
  z-index: 2;
}
.carousel__slot[data-slot="prev2"] {
  transform: translate(-50%, -50%) translateX(-480px) translateZ(-480px) rotateY(24deg) rotateZ(-16deg) scale(0.68);
  z-index: 1;
}
.carousel__slot[data-slot="next"] {
  transform: translate(-50%, -50%) translateX(240px) translateZ(-240px) rotateY(-12deg) rotateZ(8deg) scale(0.84);
  z-index: 2;
}
.carousel__slot[data-slot="next2"] {
  transform: translate(-50%, -50%) translateX(480px) translateZ(-480px) rotateY(-24deg) rotateZ(16deg) scale(0.68);
  z-index: 1;
}

.carousel__slot:hover { filter: brightness(0.8); }

/* Inert copies of the player chrome shown on preview cards — same
   markup as the active player for visual consistency with the
   reference, but not wired to any audio: only the active card actually
   plays anything. */
.carousel__slot .carousel__player-controls button { pointer-events: none; }

.carousel__card {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 3;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
}

.carousel__card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  transform-origin: center;
}

.carousel__card-face--cover { z-index: 2; }

.carousel__card-face--lyrics {
  z-index: 1;
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  transform: scaleY(0.04);
}

.carousel__lyrics-track {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--violet-300);
  animation: lyricsScroll 16s linear infinite;
  padding-left: 100%;
}

@keyframes lyricsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Mini audio player — lives inside .carousel__card-face--cover, replacing
   the plain cover image. It fills the same face the flip crossfade
   already animates (opacity/scaleY on the face itself), so no changes
   were needed there — only what's inside that face changed. Structure
   matches the reference coverflow-audio-carousel.html: a square cover
   inset with a margin at the top, a dark panel below it holding
   title/slider/time/controls. The card itself is now a tall 3:5
   rectangle (see .carousel__slots) specifically to give that panel
   real room, instead of being squeezed against a square card. */
.carousel__player {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel__player-cover {
  position: relative;
  width: calc(100% - 20px);
  margin: 10px 10px 0;
  aspect-ratio: 1;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  flex-shrink: 0;
}

.carousel__player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__player-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) var(--space-2) var(--space-3);
  flex: 1;
  min-height: 0;
}

.carousel__player-title {
  width: 100%;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(14px, 1.6vw, 18px);
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel__player-slider {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.carousel__player-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: var(--violet-300);
}

.carousel__player-time-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-dim);
}

.carousel__player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}

.carousel__player-play,
.carousel__player-prev,
.carousel__player-next {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.carousel__player-play,
.carousel__player-prev,
.carousel__player-next { width: 46px; height: 46px; }

.carousel__player-play:hover, .carousel__player-play:focus-visible,
.carousel__player-prev:hover, .carousel__player-prev:focus-visible,
.carousel__player-next:hover, .carousel__player-next:focus-visible {
  border-color: var(--violet-400);
  background: rgba(124, 58, 237, 0.14);
}

.carousel__player-play:active,
.carousel__player-prev:active,
.carousel__player-next:active { transform: scale(0.92); }

.carousel__player-play svg,
.carousel__player-prev svg,
.carousel__player-next svg { width: 18px; height: 18px; }

.carousel__now {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.carousel__now-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-300);
}

.carousel__now-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-400);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.carousel__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1;
  text-align: center;
}

.carousel__type {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
}

.carousel__audio-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--grey-dim);
  text-align: center;
  max-width: 40ch;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-4);
  transition: opacity 0.3s var(--ease-out);
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.carousel__dot[aria-current="true"] {
  background: var(--violet-400);
  transform: scale(1.4);
}

.carousel__scroll-cue {
  margin-top: var(--space-5);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-dim);
  transition: opacity 0.3s var(--ease-out);
}

/* Info panel — revealed one field at a time by the scroll stepper.
   Absolutely positioned (not flow) so its content never adds height
   to .carousel__pin while browsing (before .is-split repositions it). */
.carousel__info-panel {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  pointer-events: none;
}

.carousel__info-type {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-300);
  opacity: 0;
}

.carousel__info-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1;
  opacity: 0;
}

.carousel__info-fields {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: var(--space-2);
}

.carousel__info-field {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(14px, 1.3vw, 18px);
  opacity: 0;
}

.carousel__info-field dt {
  font-family: var(--font-mono);
  font-size: 0.7em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

.carousel__info-field dd {
  color: var(--white);
}

.carousel__info-field dd.is-pending {
  color: var(--grey-dim);
  font-style: italic;
}

.carousel__info-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.carousel__info-links > * {
  opacity: 0;
}

.carousel__info-links .btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 13px;
}

/* Mobile-only tap affordance that reveals the info panel with a
   transition (see @media max-width:767.98px below and home.js'
   openMobileInfo/closeMobileInfo) — hidden on tablet/desktop, where the
   scroll-stepper's Flip animation reveals info instead. */
.carousel__mobile-info-toggle {
  display: none;
}

/* Cover art placeholders (real files drop into assets/covers/) */
.cover-art {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2);
}

.cover-art__word {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  font-size: clamp(28px, 7vw, 44px);
}

.cover-art--ep {
  background: var(--black);
}
.cover-art--ep .cover-art__word { color: var(--violet-500); }

.cover-art--core {
  background: var(--black);
}
.cover-art--core .cover-art__word { color: var(--white); }

.cover-art--noirw {
  background: var(--white);
}
.cover-art--noirw .cover-art__word {
  color: var(--black);
  font-size: clamp(30px, 8vw, 52px);
}

.cover-art--noirw .advisory-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: var(--black);
  color: var(--white);
}

.cover-art--photo {
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.5), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(124, 58, 237, 0.35), transparent 55%),
    linear-gradient(155deg, #1a1a1f, #0a0a0d 60%);
  flex-direction: column;
  gap: 10px;
}

.cover-art--photo .cover-art__pending {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 6px 10px;
}

.advisory-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid currentColor;
}

.discog-intro {
  position: relative;
  z-index: 1;
  padding: var(--space-6) 0 var(--space-4);
  text-align: center;
}

/* Utility buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn:hover, .btn:focus-visible {
  border-color: var(--violet-400);
  background: rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--violet-500);
  border-color: var(--violet-500);
  color: var(--white);
}

.btn--solid:hover, .btn--solid:focus-visible {
  background: var(--violet-400);
  border-color: var(--violet-400);
}

/* =========================================================
   Simple page header (Discographie / Réseaux)
   ========================================================= */
.page-hero {
  padding: calc(var(--space-6) + var(--space-3)) 0 var(--space-5);
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 9vw, 92px);
  line-height: 0.92;
  margin-top: var(--space-2);
}

.page-hero__tag {
  margin-top: var(--space-2);
  max-width: 56ch;
  color: var(--grey);
}

/* =========================================================
   Discography list
   ========================================================= */
.discog-list {
  display: flex;
  flex-direction: column;
  padding-bottom: var(--space-6);
}

.discog-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  align-items: center;
}

.discog-row:last-child {
  border-bottom: 1px solid var(--border);
}

@media (min-width: 860px) {
  .discog-row {
    grid-template-columns: 72px 1.4fr 2fr auto;
    gap: var(--space-3);
  }
}

.discog-row__cover {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .discog-row__cover { width: 72px; height: 72px; }
}

.discog-row__cover .cover-art,
.discog-row__cover .cover-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discog-row__cover .cover-art__word { font-size: 10px; letter-spacing: 0; }
.discog-row__cover .cover-art--noirw .advisory-tag { display: none; }

.discog-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: -0.005em;
}

.discog-row__type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-300);
  margin-top: 4px;
  display: block;
}

.discog-row__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-2);
}

@media (min-width: 860px) {
  .discog-row__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
  }
}

.discog-row__meta dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 2px;
}

.discog-row__meta dd {
  font-size: 13px;
  color: var(--white);
}

.discog-row__meta dd.is-pending {
  color: var(--grey-dim);
  font-style: italic;
}

.discog-row__links {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
  grid-column: 1 / -1;
}

@media (min-width: 860px) {
  .discog-row__links {
    grid-column: auto;
    margin-top: 0;
    justify-self: end;
  }
}

.discog-row__links .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 11px;
}

/* =========================================================
   Réseaux page
   ========================================================= */
.social-group {
  margin-bottom: var(--space-6);
}

.social-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.social-group__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.social-group__avatar img,
.social-group__avatar .cover-art {
  position: absolute;
  inset: 0;
}

.social-group__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1;
}

.social-group__handle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey);
  margin-top: 4px;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); }
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.social-card:hover, .social-card:focus-visible {
  border-color: var(--violet-400);
  background: rgba(124, 58, 237, 0.06);
  transform: translateY(-2px);
}

.social-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-card__icon svg { width: 18px; height: 18px; }

.social-card__label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
}

.social-card__handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--border);
}

.contact-block__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.contact-block__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-dim);
  width: 140px;
  flex-shrink: 0;
}

.contact-block__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-transform: none;
}

.contact-block__value:hover { color: var(--violet-300); }

/* =========================================================
   Mobile (< 768px) — carousel fallback

   Desktop pins the carousel and drives it through a locked GSAP
   ScrollTrigger + Observer step sequence (home.js); that sequence
   is skipped entirely below this breakpoint (see isMobile in
   home.js), so none of it ever runs here. What follows replaces
   the coverflow + scroll-revealed info panel with a plain stacked
   layout that works with normal touch scrolling: one card, its
   info shown inline below instead of revealed step by step, and
   the prev/next arrows moved under the card so they never share
   horizontal space with it. Everything here is scoped to this
   query only — none of it touches >=768px, which keeps rendering
   exactly as before.
   ========================================================= */
@media (max-width: 767.98px) {
  .carousel__pin {
    min-height: auto;
    padding: var(--space-5) 0 var(--space-4);
  }

  .carousel__inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--space-3);
  }

  .carousel__stage {
    order: 1;
    flex-basis: 100%;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .carousel__arrow--prev { order: 2; }
  .carousel__arrow--next { order: 3; }

  /* Coverflow side cards only make sense with the horizontal-fan
     transforms and the pinned/Observer navigation they're tied to —
     both desktop-only. Hidden here rather than adapted: browsing is
     swipe/arrows/dots instead (all still wired up in home.js outside
     the disabled stepper block). */
  .carousel__slot[data-slot="prev"],
  .carousel__slot[data-slot="prev2"],
  .carousel__slot[data-slot="next"],
  .carousel__slot[data-slot="next2"] {
    display: none;
  }

  .carousel__slots {
    flex-direction: column;
    align-items: stretch;
    aspect-ratio: auto;
    perspective: none;
    gap: var(--space-3);
  }

  .carousel__card {
    height: auto;
    aspect-ratio: 3 / 5;
  }

  /* Desktop reveals this content via the scroll-stepper's Flip
     timelines; those never run here. home.js' openMobileInfo/
     closeMobileInfo animate the same reveal instead (a squash/swap on
     the card faces + a height/opacity tween on the panel itself),
     triggered by a tap on the toggle button below or on the card. The
     panel starts collapsed — height:0 rather than display:none so its
     real (per-track) height can still be measured on open — and JS
     sets it back to "auto" once an open finishes so re-rendered
     content (a different track) isn't clipped. */
  .carousel__info-panel {
    position: static;
    inset: auto;
    overflow: hidden;
    height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }

  .carousel__info-type,
  .carousel__info-title,
  .carousel__info-field,
  .carousel__info-links > * {
    opacity: 1;
  }

  /* Spacing that used to live on .carousel__info-panel's own padding —
     moved onto the first child instead, since the panel's box is what
     home.js animates from height:0 and a nonzero padding there would
     stop it ever truly collapsing. */
  .carousel__info-type {
    margin-top: var(--space-3);
  }

  .carousel__mobile-info-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 9999px;
    border: 1px solid var(--border-strong);
    background: rgba(124, 58, 237, 0.1);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  }

  .carousel__mobile-info-toggle:hover,
  .carousel__mobile-info-toggle:focus-visible {
    border-color: var(--violet-400);
    background: rgba(124, 58, 237, 0.18);
  }

  .carousel__mobile-info-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s var(--ease-out);
  }

  .carousel__mobile-info-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  /* "Scroller pour les infos du morceau" describes the locked-step
     sequence that's disabled here — the toggle button above replaces it. */
  .carousel__scroll-cue {
    display: none;
  }
}
