/* Muzikantenpagina
   ========================================================================== */

.musicians-page {
  color: var(--color-text);
  background: var(--color-background);
}

.musicians-page__inner {
  width: min(1180px, 88%);
  margin-inline: auto;
}

/* Introductie
   -------------------------------------------------------------------------- */

.musicians-intro {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: var(--lichtblauw);
  color: var(--donkerblauw);
}

.musicians-intro__layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.musicians-intro h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--donkerpaars);
}

.musicians-intro__text {
  max-width: 46rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.7;
}

.musicians-intro__text p + p {
  margin-top: 1.4em;
}

/* Profielen
   -------------------------------------------------------------------------- */

.musicians-profiles {
  position: relative;
  isolation: isolate;

  padding: clamp(5rem, 10vw, 10rem) 0;
  overflow: hidden;
}

.musicians-profiles::before {
  position: absolute;
  top: 11rem;
  left: 50%;
  z-index: 0;

  width: clamp(20rem, 44vw, 40rem);
  aspect-ratio: 653 / 663;

  content: "";

  background-image: url("../images/20260405_Stijlelement_Halftone Donkergroen_Piano_RGB.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.2;
  pointer-events: none;
  transform: translateX(-50%) rotate(-15deg);
  transform-origin: center;
}

.musician-profile:nth-child(1) {
  --profile-background: var(--rood);
}

.musician-profile:nth-child(2) {
  --profile-background: var(--geel);
  opacity: 0.8;
}

.musician-profile:nth-child(3) {
  --profile-background: var(--lichtgeel);
  opacity: 0.8;
}

.musician-profile:nth-child(4) {
  --profile-background: var(--lichtgroen);
  opacity: 0.8;
}

.musician-profile:nth-child(5) {
  --profile-background: var(--koelbruin);
  opacity: 0.8;
}

.musician-profile:nth-child(6) {
  --profile-background: var(--creme);
}

.musician-profile:nth-child(7) {
  --profile-background: var(--donkerblauw);
}

.musician-profile:nth-child(8) {
  --profile-background: var(--donkerroze);
}

.musician-profile:nth-child(9) {
  --profile-background: var(--lichtroze);
}

.musician-profile {
  --profile-accent: var(--roze);
  --profile-background: var(--lichtblauw);

  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;

  position: relative;
  z-index: 1;
  isolation: isolate;

  min-height: clamp(38rem, 72vh, 52rem);
  padding-block: clamp(4rem, 8vw, 8rem);
}

.musician-profile::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;

  width: 100vw;

  content: "";

  background: var(--profile-background);
  opacity: 0.13;
  transform: translateX(-50%);
}

.musician-profile + .musician-profile {
  margin-top: 0;
}

.musician-profile:nth-child(even) .musician-profile__visual {
  order: 2;
}

.musician-profile--two {
  --profile-accent: var(--lichtgeel);
}

.musician-profile--three {
  --profile-accent: var(--lichtblauw);
}

.musician-profile--four {
  --profile-accent: var(--lichtgroen);
}

.musician-profile__visual {
  position: sticky;
  top: clamp(6.5rem, 11vh, 9rem);

  margin: 0;
  padding: clamp(0.4rem, 1vw, 0.75rem);

  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(7rem, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: clamp(0.5rem, 1.2vw, 0.9rem);

  aspect-ratio: auto;
  overflow: visible;
}

.musician-profile:nth-child(even) .musician-profile__visual {
  border-radius: 0;
}

.musician-profile__photo {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;

  aspect-ratio: 1;

  object-fit: cover;

  box-sizing: border-box;
  background: var(--creme);
  border: clamp(0.55rem, 1.1vw, 0.9rem) solid var(--profile-accent);
  box-shadow:
    0 0.9rem 2rem var(--color-shadow),
    0 0 0 1px rgba(25, 41, 49, 0.08);
}

.musician-profile__photo--main {
  grid-row: 1 / -1;
  align-self: center;
  border-radius: 0;
}

.musician-profile__photo--detail {
  border-radius: 0;
}

.musician-profile__photo--detail:last-child {
  border-radius: 0;
}

.musician-profile:nth-child(even) .musician-profile__photo--main {
  border-radius: 0;
}

.musician-profile:nth-child(even) .musician-profile__photo--detail:last-child {
  border-radius: 0;
}

/* Nina: drie vierkante lijsten met klassieke silhouetten */

.musician-profile__photo--frame-arch {
  padding: clamp(0.25rem, 0.6vw, 0.45rem);

  background: var(--roze);
  border-color: var(--donkerpaars);
  border-radius: 0;

  clip-path: polygon(
    10% 0,
    90% 0,
    90% 4%,
    96% 4%,
    96% 10%,
    100% 10%,
    100% 90%,
    96% 90%,
    96% 96%,
    90% 96%,
    90% 100%,
    10% 100%,
    10% 96%,
    4% 96%,
    4% 90%,
    0 90%,
    0 10%,
    4% 10%,
    4% 4%,
    10% 4%
  );
}

.musician-profile__photo--frame-ticket {
  padding: clamp(0.2rem, 0.5vw, 0.4rem);

  background: var(--lichtgeel);
  border-color: var(--oranje);
  border-radius: 0;

  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 0 12%, #000 12.5%),
    radial-gradient(circle at 100% 50%, transparent 0 12%, #000 12.5%);
  -webkit-mask-composite: source-in;

  mask:
    radial-gradient(circle at 0 50%, transparent 0 12%, #000 12.5%),
    radial-gradient(circle at 100% 50%, transparent 0 12%, #000 12.5%);
  mask-composite: intersect;
}

.musician-profile__photo--frame-round {
  padding: clamp(0.2rem, 0.5vw, 0.4rem);

  background: var(--lichtblauw);
  border-color: var(--donkerblauw);
  border-radius: 0;

  clip-path: polygon(
    14% 0,
    86% 0,
    86% 5%,
    94% 5%,
    94% 14%,
    100% 14%,
    100% 86%,
    94% 86%,
    94% 95%,
    86% 95%,
    86% 100%,
    14% 100%,
    14% 95%,
    6% 95%,
    6% 86%,
    0 86%,
    0 14%,
    6% 14%,
    6% 5%,
    14% 5%
  );
}

/* Lijstfamilie A: postzegel, verguld museum en hoekornament
   Muzikanten 2, 5 en 8. */

.musician-profile:nth-child(3n + 2) .musician-profile__photo--main {
  padding: clamp(0.25rem, 0.7vw, 0.55rem);
  background: var(--creme);
  border-color: var(--donkerpaars);

  clip-path: polygon(
    5% 0, 10% 3%, 15% 0, 20% 3%, 25% 0, 30% 3%, 35% 0,
    40% 3%, 45% 0, 50% 3%, 55% 0, 60% 3%, 65% 0, 70% 3%,
    75% 0, 80% 3%, 85% 0, 90% 3%, 95% 0,
    100% 5%, 97% 10%, 100% 15%, 97% 20%, 100% 25%,
    97% 30%, 100% 35%, 97% 40%, 100% 45%, 97% 50%,
    100% 55%, 97% 60%, 100% 65%, 97% 70%, 100% 75%,
    97% 80%, 100% 85%, 97% 90%, 100% 95%,
    95% 100%, 90% 97%, 85% 100%, 80% 97%, 75% 100%,
    70% 97%, 65% 100%, 60% 97%, 55% 100%, 50% 97%,
    45% 100%, 40% 97%, 35% 100%, 30% 97%, 25% 100%,
    20% 97%, 15% 100%, 10% 97%, 5% 100%,
    0 95%, 3% 90%, 0 85%, 3% 80%, 0 75%, 3% 70%,
    0 65%, 3% 60%, 0 55%, 3% 50%, 0 45%, 3% 40%,
    0 35%, 3% 30%, 0 25%, 3% 20%, 0 15%, 3% 10%, 0 5%
  );
}

.musician-profile:nth-child(3n + 2) .musician-profile__photo:nth-child(2) {
  padding: 0.25rem;
  background: var(--lichtgeel);
  border: 0.7rem double var(--oranje);
  outline: 0.2rem solid var(--donkerpaars);
  outline-offset: -0.45rem;

  clip-path: polygon(
    12% 0, 88% 0, 88% 5%, 96% 5%, 96% 12%, 100% 12%,
    100% 88%, 96% 88%, 96% 95%, 88% 95%, 88% 100%,
    12% 100%, 12% 95%, 4% 95%, 4% 88%, 0 88%,
    0 12%, 4% 12%, 4% 5%, 12% 5%
  );
}

.musician-profile:nth-child(3n + 2) .musician-profile__photo:last-child {
  background: var(--roze);
  border-color: var(--donkerpaars);
  clip-path: polygon(
    15% 0, 85% 0, 85% 7%, 93% 7%, 93% 15%, 100% 15%,
    100% 85%, 93% 85%, 93% 93%, 85% 93%, 85% 100%,
    15% 100%, 15% 93%, 7% 93%, 7% 85%, 0 85%,
    0 15%, 7% 15%, 7% 7%, 15% 7%
  );
}

/* Lijstfamilie B: museumportret, halve manen en plaquette
   Muzikanten 3, 6 en 9. */

.musician-profile:nth-child(3n + 3) .musician-profile__photo--main {
  padding: clamp(0.3rem, 0.8vw, 0.65rem);
  background: var(--lichtgeel);
  border: clamp(0.7rem, 1.25vw, 1rem) double var(--oranje);
  box-shadow:
    inset 0 0 0 0.25rem var(--donkerpaars),
    0 1rem 2rem var(--color-shadow);

  clip-path: polygon(
    10% 0, 90% 0, 100% 10%, 100% 90%,
    90% 100%, 10% 100%, 0 90%, 0 10%
  );
}

.musician-profile:nth-child(3n + 3) .musician-profile__photo:nth-child(2) {
  background: var(--lichtblauw);
  border-color: var(--donkerblauw);

  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 0 13%, #000 13.5%),
    radial-gradient(circle at 100% 50%, transparent 0 13%, #000 13.5%);
  -webkit-mask-composite: source-in;

  mask:
    radial-gradient(circle at 0 50%, transparent 0 13%, #000 13.5%),
    radial-gradient(circle at 100% 50%, transparent 0 13%, #000 13.5%);
  mask-composite: intersect;
}

.musician-profile:nth-child(3n + 3) .musician-profile__photo:last-child {
  padding: 0.25rem;
  background: var(--lichtgroen);
  border-color: var(--warmdonkergroen);

  clip-path: polygon(
    20% 0, 80% 0, 80% 6%, 91% 6%, 91% 15%, 100% 25%,
    100% 75%, 91% 85%, 91% 94%, 80% 94%, 80% 100%,
    20% 100%, 20% 94%, 9% 94%, 9% 85%, 0 75%,
    0 25%, 9% 15%, 9% 6%, 20% 6%
  );
}

/* Lijstfamilie C: rijk hoeksilhouet, postzegel en ruitlijst
   Muzikanten 4 en 7. */

.musician-profile:nth-child(3n + 4) .musician-profile__photo--main {
  padding: clamp(0.25rem, 0.7vw, 0.55rem);
  background: var(--roze);
  border: clamp(0.7rem, 1.2vw, 1rem) double var(--donkerpaars);

  clip-path: polygon(
    18% 0, 82% 0, 82% 4%, 92% 4%, 92% 10%, 97% 10%,
    97% 18%, 100% 18%, 100% 82%, 97% 82%, 97% 90%,
    92% 90%, 92% 96%, 82% 96%, 82% 100%, 18% 100%,
    18% 96%, 8% 96%, 8% 90%, 3% 90%, 3% 82%, 0 82%,
    0 18%, 3% 18%, 3% 10%, 8% 10%, 8% 4%, 18% 4%
  );
}

.musician-profile:nth-child(3n + 4) .musician-profile__photo:nth-child(2) {
  background: var(--creme);
  border-color: var(--oranje);
  clip-path: polygon(
    8% 0, 16% 4%, 24% 0, 32% 4%, 40% 0, 48% 4%,
    56% 0, 64% 4%, 72% 0, 80% 4%, 88% 0, 100% 8%,
    96% 16%, 100% 24%, 96% 32%, 100% 40%, 96% 48%,
    100% 56%, 96% 64%, 100% 72%, 96% 80%, 100% 88%,
    92% 100%, 84% 96%, 76% 100%, 68% 96%, 60% 100%,
    52% 96%, 44% 100%, 36% 96%, 28% 100%, 20% 96%,
    12% 100%, 0 92%, 4% 84%, 0 76%, 4% 68%, 0 60%,
    4% 52%, 0 44%, 4% 36%, 0 28%, 4% 20%, 0 12%
  );
}

.musician-profile:nth-child(3n + 4) .musician-profile__photo:last-child {
  padding: 0.2rem;
  background: var(--lichtblauw);
  border-color: var(--donkerblauw);
  clip-path: polygon(
    50% 0, 62% 8%, 86% 8%, 92% 14%, 92% 38%, 100% 50%,
    92% 62%, 92% 86%, 86% 92%, 62% 92%, 50% 100%,
    38% 92%, 14% 92%, 8% 86%, 8% 62%, 0 50%,
    8% 38%, 8% 14%, 14% 8%, 38% 8%
  );
}

.musician-profile__content {
  max-width: 38rem;
  align-self: center;
}

/* Sara: robuuste symmetrische museumlijst */

.musician-profile:nth-child(4) .musician-profile__photo--main {
  padding: clamp(0.25rem, 0.7vw, 0.55rem);

  background: var(--lichtgeel);
  border: clamp(0.65rem, 1.1vw, 0.95rem) solid var(--donkerpaars);
  outline: none;
  box-shadow:
    inset 0 0 0 0.25rem var(--oranje),
    0 1rem 2rem var(--color-shadow);

  clip-path: polygon(
    12% 0,
    88% 0,
    88% 4%,
    96% 4%,
    96% 12%,
    100% 12%,
    100% 88%,
    96% 88%,
    96% 96%,
    88% 96%,
    88% 100%,
    12% 100%,
    12% 96%,
    4% 96%,
    4% 88%,
    0 88%,
    0 12%,
    4% 12%,
    4% 4%,
    12% 4%
  );
}

.musician-profile__number,
.musician-profile__role {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.musician-profile__number {
  color: var(--oranje);
}

.musician-profile__role {
  margin-top: 2rem;
  color: var(--color-interactive);
}

.musician-profile h2 {
  margin: 0.5rem 0 1.5rem;
  font-family: var(--font-subtitle);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--donkerpaars);
}

.musician-profile__content > p:last-child {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.7;
}

/* Afsluitende uitnodiging
   -------------------------------------------------------------------------- */

.musicians-cta {
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: var(--creme);
  background: var(--donkerpaars);
}

.musicians-cta__inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
}

.musicians-cta h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-subtitle);
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  line-height: 1;
  color: var(--creme);
}

/* Donkere modus
   -------------------------------------------------------------------------- */

html[data-theme="dark"] .musicians-intro {
  color: var(--creme);
  background: var(--donkerpaars);
}

html[data-theme="dark"] .musicians-intro h2,
html[data-theme="dark"] .musician-profile h2 {
  color: var(--lichtblauw);
}

html[data-theme="dark"] .musicians-profiles::before {
  opacity: 0.2;
  filter: brightness(1.7);
}

html[data-theme="dark"] .musician-profile::before {
  opacity: 0.2;
}

/* Responsive en grotere tekst
   -------------------------------------------------------------------------- */

@media (max-width: 850px) {
  .musicians-intro__layout,
  .musician-profile {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: 0;
    padding-block: 4rem;
  }

  .musician-profile:nth-child(even) .musician-profile__visual {
    order: initial;
  }

  .musician-profile__visual {
    position: static;

    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .musician-profile__content {
    max-width: 100%;
  }

  .musicians-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .musicians-profiles::before {
    top: -1rem;
    width: 28rem;
    opacity: 0.08;
  }

  .musician-profile {
    padding: 1.25rem;
  }

  .musician-profile__visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(15rem, 1.7fr) minmax(7rem, 0.7fr);
    aspect-ratio: auto;
  }

  .musician-profile__photo--main {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 15rem;
  }

  .musician-profile__photo--detail {
    grid-row: 2;
    min-height: 7rem;
  }
}

html:is(
  [data-font-size="125"],
  [data-font-size="150"],
  [data-font-size="175"],
  [data-font-size="200"]
) .musicians-intro__layout,
html:is(
  [data-font-size="125"],
  [data-font-size="150"],
  [data-font-size="175"],
  [data-font-size="200"]
) .musician-profile {
  grid-template-columns: 1fr;
}

html:is(
  [data-font-size="125"],
  [data-font-size="150"],
  [data-font-size="175"],
  [data-font-size="200"]
) .musician-profile:nth-child(even) .musician-profile__visual {
  order: initial;
}

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

  .musician-profile__photo--frame-round {
    transform: none;
  }
}
