/* =============================================================
   X — Independent Label. Ambient, black & white editorial.
   Catalogue-first: dense indexed lists over photo cards.
   ============================================================= */

:root {
  --bg: #070709;
  --bg-elev: #0e0e12;
  --ink: #f6f6f8;
  --muted: #9a9aa3;
  --faint: #5b5b65;
  --line: rgba(255, 255, 255, 0.09);
  --inkline: rgba(255, 255, 255, 0.22);
  --accent: #ffffff;
  --sans: "Fraunces", Georgia, ui-serif, serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --t: 900ms var(--ease);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-family: var(--sans);
  font-variation-settings: "opsz" 60;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

ol,
ul {
  list-style: none;
}

/* ── Background ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

/* ── Loading screen (Cloudflare-like) ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 600ms var(--ease), visibility 600ms;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 0 1.5rem;
  text-align: center;
}
.loader__spinner {
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}
@keyframes loader-spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
.loader__kicker {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.loader__domain {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .loader__spinner {
    animation: none;
  }
}

.bg__aurora {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
        clamp(520px, 60vw, 900px) clamp(420px, 50vh, 720px) at 78% 12%,
        rgba(255, 255, 255, 0.07),
        transparent 62%
      ),
      radial-gradient(
        clamp(480px, 52vw, 820px) clamp(380px, 46vh, 680px) at 12% 88%,
        rgba(200, 215, 240, 0.06),
        transparent 62%
      ),
      radial-gradient(
        clamp(420px, 46vw, 720px) clamp(380px, 46vh, 680px) at 48% 52%,
        rgba(160, 180, 220, 0.035),
        transparent 60%
      );
}

/* Fluid scroll-linked "breathing": translate + scale follow page scroll. */
html[data-scroll] .bg__aurora {
  transform: translate3d(
    calc(var(--scrl) * -60px),
    calc(var(--scrl) * -40px),
    0
  ) scale(calc(1.05 + var(--scrl) * 0.12));
}

html[data-scroll-start] .bg__aurora {
  transition: transform 2000ms var(--ease);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html[data-scroll] .bg__aurora,
  html[data-scroll-start] .bg__aurora {
    transition: none;
    transform: none;
  }
}

/* Slow idle "breath" when not scrolling. */
.bg__aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  animation: breathe 28s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

.bg__orb {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  will-change: transform, opacity;
}

.bg__orb--1 {
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
  animation: orbDrift1 26s ease-in-out infinite;
}

.bg__orb--2 {
  width: 420px;
  height: 420px;
  margin: -210px 0 0 360px;
  background: radial-gradient(circle, rgba(180, 200, 230, 0.045), transparent 70%);
  animation: orbDrift2 34s ease-in-out infinite;
}

.bg__orb--3 {
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -120px;
  background: radial-gradient(circle, rgba(120, 140, 190, 0.03), transparent 70%);
  animation: orbDrift3 42s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate3d(-40px, -30px, 0); opacity: 0.7; }
  50%      { transform: translate3d(60px, 40px, 0);  opacity: 1; }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate3d(30px, -50px, 0);  opacity: 0.5; }
  50%      { transform: translate3d(-50px, 60px, 0);   opacity: 0.85; }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate3d(50px, 30px, 0);  opacity: 0.4; }
  50%      { transform: translate3d(-60px, -40px, 0); opacity: 0.7; }
}

/* Scroll-linked parallax overrides the idle drift. */
html[data-scroll] .bg__orb--1 {
  animation: none;
  transform: translate3d(
    calc(var(--scrl) * 40px),
    calc(var(--scrl) * -30px),
    0
  );
}

html[data-scroll] .bg__orb--2 {
  animation: none;
  transform: translate3d(
    calc(var(--scrl) * -30px),
    calc(var(--scrl) * 24px),
    0
  );
}

html[data-scroll] .bg__orb--3 {
  animation: none;
  transform: translate3d(
    calc(var(--scrl) * -20px),
    calc(var(--scrl) * 18px),
    0
  );
}

html[data-scroll-start] .bg__orb--1,
html[data-scroll-start] .bg__orb--2,
html[data-scroll-start] .bg__orb--3 {
  transition: transform 2200ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .bg__orb--1,
  .bg__orb--2,
  .bg__orb--3,
  html[data-scroll] .bg__orb--1,
  html[data-scroll] .bg__orb--2,
  html[data-scroll] .bg__orb--3 {
    animation: none;
    transition: none;
    transform: none;
  }
  .bg__aurora::after {
    animation: none;
    opacity: 1;
  }
}

.bg__grain {
  display: none;
}

/* ── Ambient wave ── */
.bg__wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg__wave::before,
.bg__wave::after {
  content: "";
  position: absolute;
  width: 200%;
  aspect-ratio: 3 / 1;
  left: -50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 65%
  );
  border-radius: 50%;
}

.bg__wave::before {
  top: 14%;
  animation: waveDrift 40s ease-in-out infinite;
}

.bg__wave::after {
  bottom: 22%;
  animation: waveDrift 54s ease-in-out infinite reverse;
}

@keyframes waveDrift {
  0%,
  100% {
    transform: translateX(-7%) scaleX(1);
    opacity: 0.3;
  }
  50% {
    transform: translateX(7%) scaleX(1.1);
    opacity: 0.55;
  }
}

/* Scroll-linked motion */
html[data-scroll] .bg__wave::before {
  transform: translateX(calc(-6% + var(--scrl) * 8%))
    scaleX(calc(1 + var(--scrl) * 0.08));
}

html[data-scroll] .bg__wave::after {
  transform: translateX(calc(6% - var(--scrl) * 10%))
    scaleX(calc(1 + var(--scrl) * 0.06));
}

html[data-scroll-start] .bg__wave::before,
html[data-scroll-start] .bg__wave::after {
  transition: transform 2200ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .bg__wave::before,
  .bg__wave::after,
  html[data-scroll] .bg__wave::before,
  html[data-scroll] .bg__wave::after {
    animation: none;
    transition: none;
    transform: none !important;
  }
}

/* ── Layout ── */
main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6rem 2rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .section {
    padding: 4.5rem 1.5rem;
  }
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 7, 9, 0.97);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
}

.wordmark {
  font-family: var(--mono);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 300ms var(--ease);
}

.nav__link:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

/* ── Masthead (compact editorial) ── */
.masthead {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(4rem + 4vh) 2rem 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

.masthead__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.masthead__kicker,
.section__kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__title {
  margin-top: 1.8rem;
  font-family: var(--mono);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.masthead__title--serif,
.section__title--serif {
  font-family: var(--sans);
  font-style: normal;
  font-weight: inherit;
  color: var(--ink);
}

.masthead__title--serif {
  font-size: 1.2em;
  margin-left: 0.05em;
}

.masthead__intro {
  margin-top: 1.8rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ── Masthead photo stack (footer-style, protected) ── */
.masthead__shots {
  position: absolute;
  z-index: 3;
  right: 2rem;
  bottom: -2.5rem;
  width: clamp(250px, 30vw, 400px);
  height: clamp(180px, 22vw, 280px);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.masthead__shots::after {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 5;
  background: transparent;
  pointer-events: auto;
  cursor: default;
}

.shot {
  position: absolute;
  border-radius: 2px;
  background: #fff;
  padding: 9px 9px 38px 9px;
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
  -webkit-user-drag: none;
}

/* Polaroid frame: the image sits inside the white mat, inset like an instant print. */
.shot::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  bottom: 38px;
  left: 9px;
  background-color: #1a1a1c;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Handwritten caption in the white Polaroid footer. */
.shot::after {
  content: attr(data-shot);
  position: absolute;
  left: 9px;
  right: 9px;
  top: calc(100% - 37px);
  bottom: 2px;
  text-align: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(10px, 1.15vw, 15px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #3a3a3f;
  overflow-wrap: break-word;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot--1 {
  width: 74%;
  height: 92%;
  left: 0;
  top: 18%;
  transform: rotate(-8deg) scale(1.04);
  z-index: 1;
}

.shot--1::before {
  background-image: url("../img/studio/studio-1.jpg");
}

.shot--2 {
  width: 66%;
  height: 86%;
  left: 26%;
  top: -2%;
  transform: rotate(3deg) scale(1.06) translateY(-3px);
  z-index: 2;
}

.shot--2::before {
  background-image: url("../img/studio/studio-2.jpg");
}

.shot--3 {
  width: 66%;
  height: 94%;
  right: 0;
  left: auto;
  top: 8%;
  transform: rotate(9deg) scale(1.04);
  z-index: 3;
}

.shot--3::before {
  background-image: url("../img/studio/studio-3.jpg");
  background-position: 50% 20%;
}

@media (max-width: 720px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
  }

  .masthead__shots {
    right: 1.25rem;
    bottom: -1.5rem;
    width: 200px;
    height: 160px;
  }
}

/* ── Section heads ── */
.section__head {
  margin-bottom: 2.6rem;
}

.section__title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-top: 1.2rem;
}

.section__desc {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 30rem;
  font-size: 0.95rem;
}

.index-count {
  font-family: var(--mono);
  color: var(--ink);
}

/* ── Editorial index lists ── */
.index-list {
  border-top: 1px solid var(--line);
}

.index-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 300ms var(--ease);
}

.index-list__row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.index-list__titles {
  min-width: 0;
}

.index-list__title {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.index-list__title a {
  transition: opacity 300ms var(--ease);
}

.index-list__title a:hover {
  opacity: 0.55;
}

.index-list__art {
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.index-list__loading {
  color: var(--muted);
}

/* ── Album grid ── */
.album-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.4rem 1.8rem;
}

@media (max-width: 900px) {
  .album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
  }
}

.album-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t), transform var(--t);
}

.album-card.is-inview {
  opacity: 1;
  transform: none;
}

.album-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.album-card__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--bg-elev) 20%,
    rgba(255, 255, 255, 0.04) 40%,
    var(--bg-elev) 60%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.album-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.album-card__cover img.is-loaded {
  opacity: 1;
  transform: none;
}

.album-card__cover:hover img {
  transform: scale(1.03);
}

.album-card__meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.album-card__title {
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.album-card__title a {
  transition: opacity 300ms var(--ease);
}

.album-card__title a:hover {
  opacity: 0.55;
}

.album-card__art {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .album-card__placeholder {
    animation: none;
  }
}

.album-more {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.album-more__btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease),
    color 300ms var(--ease);
}

.album-more__btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: width 360ms var(--ease);
}

.album-more__btn:hover {
  border-color: var(--inkline);
}

.album-more__btn:hover::after {
  width: 58%;
}

.album-more__arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 300ms var(--ease);
}

.album-more__btn:hover .album-more__arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .album-more__arrow {
    transition: none;
  }
}

/* Roster carousel */
.roster {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 1.2rem;
}

.roster-viewport {
  /* Clips the overflowing track to exactly the middle grid column width,
     so no part of a 4th slide peeks into the arrow column. */
  overflow: hidden;
}

.roster-track {
  /* The track fills its viewport (width: 100%); its 8 flex children
     overflow to the right and are clipped by .roster-viewport.
     translateX(-step) shifts left. */
  display: flex;
  width: 100%;
  gap: 1.2rem;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Fluid basis: exactly `--visible` slides fill the track (== grid column).
   --visible is set by JS from the visible() breakpoint. */
.roster-slide {
  flex: 0 0 calc((100% - (var(--visible, 3) - 1) * 1.2rem) / var(--visible, 3));
  opacity: 1;
  transform: none;
}

.roster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.roster-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: block;
}

.roster-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-card__name {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.roster__arrow {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  /* Au-dessus des slides de la piste (qui peut déborder de sa colonne grid). */
  z-index: 2;
  transition: background-color 300ms var(--ease), color 300ms var(--ease),
    border-color 300ms var(--ease), opacity 300ms var(--ease);
}

.roster__arrow:hover:not(:disabled) {
  background: var(--ink);
  color: #0b0b0d;
  border-color: var(--ink);
}

.roster__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 560px) {
  .roster-slide {
    flex-basis: 100%;
  }
}

/* ── Events ── */
.events__note {
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  border-left: 1px solid var(--line);
  padding-left: 1.6rem;
}

/* ── News rows ── */
.index-list--news .index-list__row {
  grid-template-columns: minmax(0, 1.4fr) 1fr minmax(120px, auto);
}

.news__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.news__date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-align: right;
}

.news__body {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 56ch;
}

/* ── Buttons ── */
.btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background-color 300ms var(--ease), color 300ms var(--ease),
    border-color 300ms var(--ease), transform 300ms var(--ease), opacity 300ms var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: width 360ms var(--ease);
}

.btn:not([disabled]):hover {
  transform: translateY(-1px);
  border-color: var(--inkline);
}

.btn:not([disabled]):hover::after {
  width: 62%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn--solid {
  background: var(--ink);
  color: #0b0b0d;
  border-color: var(--ink);
}

.btn--solid::after {
  display: none;
}

.btn--solid:hover {
  background: var(--accent);
  color: #0b0b0d;
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ── Demo ── */
.section--demo {
  border-top: 1px solid var(--line);
}

.demo__form {
  margin-top: 2.4rem;
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.demo__form input,
.demo__form textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 300ms var(--ease);
}

.demo__form input:focus,
.demo__form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.demo__form input::placeholder,
.demo__form textarea::placeholder {
  color: var(--faint);
}

.demo__submit {
  justify-self: start;
  margin-top: 0.5rem;
}

.demo__aside {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-sent {
  min-height: 1.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.form-sent--ok {
  color: var(--accent);
}

.form-sent--warn {
  color: #ff7a6b;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 9, 0.97);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.2rem 2rem 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 1;
  transform: none;
}

.footer__legal {
  display: inline-flex;
  gap: 1.2rem;
}

.footer__legal a {
  transition: color 300ms var(--ease);
}

.footer__legal a:hover {
  color: var(--ink);
}

.footer__copy {
  color: var(--faint);
}

/* ── Reveal base (JS adds .is-inview) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .index-list__row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Full catalogue overlay ── */
body.no-scroll {
  overflow: hidden;
}

.catalogue-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(7, 7, 9, 0.94);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 360ms var(--ease);
}

.catalogue-overlay.is-open {
  opacity: 1;
}

.catalogue-overlay__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  position: relative;
}

.catalogue-overlay__close {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  z-index: 2;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 0.6;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}

.catalogue-overlay__close:hover {
  background: var(--ink);
  color: #0b0b0d;
  border-color: var(--ink);
}

.catalogue-overlay__title {
  margin-top: 1.2rem;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 2.6rem;
}

.album-grid--full {
  grid-auto-flow: dense;
}

/* ── Merch (vinyls) ── */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem 1.8rem;
}

@media (max-width: 900px) {
  .merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .merch-grid {
    grid-template-columns: 1fr;
  }
}

.merch-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t), transform var(--t);
}

.merch-card.is-inview {
  opacity: 1;
  transform: none;
}

/* ── Vinyl visual: jacket + record peeking out ── */
.vinyl {
  position: relative;
  display: block;
  aspect-ratio: 1.15 / 1;
  margin-bottom: 1.4rem;
}

/* Black disc, sitting behind and to the right of the sleeve. */
.vinyl__disc {
  position: absolute;
  top: 5%;
  right: 0;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at 50% 50%,
      #111114 0 1px,
      #0a0a0c 1px 3px
    ),
    radial-gradient(circle at 50% 42%, #1a1a1e 0%, #0b0b0d 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 28px rgba(0, 0, 0, 0.75),
    0 14px 36px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.vinyl__disc::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.07) 0 0.5px,
    transparent 0.5px 2.5px
  );
  opacity: 0.55;
  pointer-events: none;
}

.vinyl__label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #2a2a2e, #0e0e11 72%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.35);
}

/* Jacket — full album cover. */
.vinyl__sleeve {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  aspect-ratio: 1;
  z-index: 2;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 320ms var(--ease);
}

.vinyl__art {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.vinyl__art::before {
  content: "";
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  opacity: 0.5;
}

.vinyl__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms var(--ease);
  -webkit-user-drag: none;
  pointer-events: none;
}

.merch-card.has-art .vinyl__art img {
  opacity: 1;
}

.merch-card.has-art .vinyl__art::before {
  display: none;
}

.vinyl:hover .vinyl__sleeve {
  transform: translate(-4px, -4px);
}

.vinyl:hover .vinyl__disc {
  transform: translateX(4px) rotate(6deg);
  transition: transform 320ms var(--ease);
}

.vinyl__disc {
  transition: transform 320ms var(--ease);
}

.merch-card__meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.merch-card__name {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.merch-card__note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 30ch;
}

.merch-card__price {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.06em;
}

/* ── Login popup (demo) ── */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 7, 9, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms var(--ease), visibility 360ms var(--ease);
}

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

.login-modal {
  width: min(400px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 2rem 1.9rem 2.2rem;
  position: relative;
  transform: translateY(14px);
  transition: transform 360ms var(--ease);
}

.login-overlay.is-open .login-modal {
  transform: none;
}

.login-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  width: 30px;
  height: 30px;
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 300ms var(--ease);
}

.login-modal__close:hover {
  color: var(--ink);
}

.login-modal__kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-modal__title {
  margin: 0.6rem 0 0.3rem;
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.login-modal__intro {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 300ms var(--ease);
}

.login-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.login-form input::placeholder {
  color: var(--faint);
}

.login-form .btn {
  justify-self: start;
  margin-top: 0.3rem;
}

.login-form .form-sent {
  min-height: 1.4rem;
}

/* ── Newsletter toast (bottom-left) ── */
.nl-toast {
  position: fixed;
  bottom: 1.4rem;
  left: 1.4rem;
  z-index: 60;
  width: min(300px, calc(100vw - 2.8rem));
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  padding: 1.3rem 1.3rem 1.4rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

.nl-toast.is-open {
  opacity: 1;
  transform: none;
}

.nl-toast__close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  width: 28px;
  height: 28px;
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 300ms var(--ease);
}

.nl-toast__close:hover {
  color: var(--ink);
}

.nl-toast__kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 1.5rem;
}

.nl-toast__text {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}

.nl-toast__form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.nl-toast__form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  transition: border-color 300ms var(--ease);
}

.nl-toast__form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.nl-toast__form input::placeholder {
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .merch-card,
  .nl-toast {
    transition: none;
  }
}