/* Biography page specific styles */

.nav-brand__name {
  font-family: "Bebas Neue", var(--font-sans);
}

.bio-hero {
  position: relative;
}

.bio-hero__scene {
  height: 100svh;
  position: relative;
  overflow: visible;
  background-color: var(--color--light);
  isolation: isolate;
  padding-right: var(--gap-xl);
  padding-left: var(--gap-xl);
  box-sizing: border-box;
}

.bio-hero__img-wrap {
  position: absolute;
  top: 0;
  right: var(--gap-xl);
  bottom: 0;
  left: auto;
  width: min(62vw, 98rem);
  transform-origin: top right;
  will-change: transform;
  overflow: hidden;
}

.bio-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.bio-hero__info {
  position: absolute;
  left: var(--gap-xl);
  top: calc(var(--gap-xl) + 16rem);
  width: calc(100% - (var(--gap-xl) * 2));
  z-index: 2;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  -webkit-mix-blend-mode: difference;
}

.bio-hero__title {
  letter-spacing: -0.03em;
  display: flex;
  font-size: 30rem;
  line-height: 0.88;
  font-weight: 400;
  font-family: "DM Sans", sans-serif;
  margin: 0;
}

.bio-hero__title-char {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.bio-hero__intro {
  position: absolute;
  left: 50rem;
  top: 58rem;
  max-width: 54rem;
  color: #fff;
  mix-blend-mode: normal;
  -webkit-mix-blend-mode: normal;
}

.bio-hero__intro p {
  margin: 0;
  font-size: 3rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.bio-hero__intro p + p {
  margin-top: 1.3rem;
}

.bio-page-content {
  position: relative;
  z-index: 1;
  background-color: var(--color--light);
  padding-top: 2rem;
}

.bio-page-content .container {
  padding-top: var(--gap-m);
  padding-left: var(--gap-m);
  padding-right: var(--gap-m);
}

.bio-story-section {
  position: relative;
  overflow: clip;
}

.bio-story-section.anfang {
  background: #937bc7;
  color: #20153b;
}

.bio-story-section.orchester {
  background: #fff;
  color: #121212;
}

.bio-story-section.solist {
  background: #e8641a;
  color: var(--color--light);
}

.bio-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: none;
}

.bio-story-media {
  margin: 0;
  border-radius: 1.6rem;
  overflow: hidden;
}

.bio-story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition:
    transform 0.7s ease,
    clip-path 0s;
}

@media (hover: hover) {
  .bio-story-section:hover .bio-story-media img {
    transform: scale(1.035);
  }
}

.bio-story-text {
  font-family: var(--font-sans);
  max-width: none;
  position: relative;
  padding-top: 4.4rem;
}

.bio-story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.45em 0.95em 0.45em 0.8em;
  font-size: clamp(1.2rem, 1.1vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0.5px solid currentColor;
  border-radius: 0;
}

.bio-story-kicker::before {
  content: "";
  display: inline-block;
  flex: 0 0 1.1em;
  width: 1.1em;
  height: 1px;
  background-color: currentColor;
  opacity: 0.7;
}

.bio-story-section:first-child .bio-story-text {
  color: #f4f1ff;
}

.bio-story-lead {
  display: block;
  font-size: clamp(5rem, 5.8vw, 9.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 21rem;
  margin-top: 3rem;
}

.bio-story-section.solist .bio-story-lead .lw-wrap,
.bio-story-section.lehre .bio-story-lead .lw-wrap {
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.bio-story-text > p {
  margin: 0;
}

.bio-story-rest {
  display: block;
  max-width: 74rem;
}

.bio-story-section:first-child .bio-story-rest {
  position: relative;
  transform: translate(0%, 120%);
  animation: bio-story-rest-reveal 0.9s ease-out forwards;
}

.bio-story-detail {
  margin-top: clamp(3rem, 4vw, 6rem);
  display: grid;
  grid-template-columns: minmax(32rem, 52rem) auto;
  align-items: start;
  gap: 0.8rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.bio-story-media {
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.bio-story-media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.bio-story-text p {
  margin: 0;
  font-size: clamp(2.1rem, 2vw, 2.9rem);
  line-height: 1.75;
}

.bio-story-text p + p {
  margin-top: 1.8rem;
}

/* Orchester: resim üstte, metin altta dikey yığın */
.bio-story-section.orchester .bio-story-detail {
  grid-template-columns: 1fr;
  max-width: 113rem;
  margin-inline: 0;
  gap: 2.4rem;
  margin: 0 auto;
}

.bio-story-section.orchester .bio-story-media img {
  aspect-ratio: 3 / 2;
}

.bio-story-section.orchester .bio-story-rest {
  max-width: 100%;
}

/* Dark mode — orchester hardcoded white fix */
html.dark .bio-story-section.orchester {
  background: #181818;
  color: #e4e0dc;
}

/* Dark mode — anfang: koyu filtre + siyah text */
html.dark .bio-story-section.anfang {
  background: #5e4e80;
  color: #fff;
}

html.dark .bio-story-section:first-child .bio-story-text {
  color: #fff;
}

/* Dark mode — solist: koyu filtre */
html.dark .bio-story-section.solist {
  background: #7a3008;
  color: #ffeede;
}

/* Footer — sticky davranışı style.css'ten geliyor, burada override yok */

@keyframes bio-story-rest-reveal {
  from {
    transform: translate(0%, 120%);
  }
  to {
    transform: translate(0px, 0px);
  }
}

/* ── CSS Scroll-Driven Animations ─────────────────────────────────────── */

@keyframes fade-up-in {
  from {
    opacity: 0;
    translate: 0 4rem;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes img-reveal {
  from {
    opacity: 0;
    scale: 1.04;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.bio-story-lead {
  animation: fade-up-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

.bio-story-media {
  animation: img-reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}

.bio-story-rest {
  animation: fade-in linear both;
  animation-timeline: view();
  animation-range: entry 10% entry 55%;
}

/* anfang :first-child override — JS animasyonunu devre dışı bırak, CSS devralır */
.bio-story-section:first-child .bio-story-rest {
  animation: fade-in linear both;
  animation-timeline: view();
  animation-range: entry 10% entry 55%;
  transform: none;
}
