/* Story scenes: the photo owns one side and fades into the text side, so text never covers the person.
   .film.is-pinned turns a group of scenes into one scroll-driven sequence. */
.scene { position: relative; display: flex; align-items: center; min-height: calc(100svh - var(--header-h)); overflow: hidden; background: var(--night); color: var(--white); }
.scene-media {
  position: absolute; top: 0; bottom: 0; right: 0; width: var(--media-width, 62%); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%); mask-image: linear-gradient(90deg, transparent 0, #000 32%);
}
.scene--right .scene-media { right: auto; left: 0; -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 32%); mask-image: linear-gradient(270deg, transparent 0, #000 32%); }
/* Scaled from the top edge so heads are never cropped by the motion. */
.scene-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50%) var(--focus-y, 15%); transform: scale(1.04); transform-origin: 50% 0; }
.scene-copy { position: relative; z-index: 2; width: min(34rem, 40vw); margin-left: clamp(1.5rem, 6vw, 6rem); padding-block: 2rem; }
.scene--right .scene-copy { margin-left: auto; margin-right: clamp(1.5rem, 6vw, 6rem); }
.scene h1 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); margin-bottom: 1.4rem; }
.scene h1 span, .scene h1 em { display: block; }
.scene h1 em { font-style: normal; color: var(--accent); }
.scene h2 { font-size: clamp(2.1rem, 3.8vw, 3.6rem); margin-bottom: 1.2rem; }
.scene p:not(.kicker) { font-size: 1.125rem; color: #eceef4; max-width: 34rem; }
.scene .button { margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.5rem; margin-top: 1.6rem; }
.hero-actions .button { margin-top: 0; }
.scene .text-link { color: var(--white); }
.scroll-cue { display: flex; align-items: center; gap: 0.6rem; width: fit-content; min-height: 2.75rem; margin-top: 0.8rem; color: #d3d6e2; font-size: 0.9375rem; text-decoration: none; }
.scroll-cue:hover { text-decoration: underline; }
.scroll-cue-arrow { font-size: 1.4rem; line-height: 1; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue-arrow { animation: scroll-invitation 1.8s ease-in-out 3; }
}
@keyframes scroll-invitation { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

.scene--break { justify-content: space-between; gap: 3rem; background: var(--paper); color: var(--night); }
.scene--break .scene-copy { width: min(46rem, 55vw); }
.scene--break h2 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.scene--break h2 span { display: block; }
.scene--break h2 span:last-child { color: var(--logo-blue-text); }
.scene--break p:not(.kicker) { color: var(--muted); font-size: 1.25rem; max-width: 38rem; }
.offer-index { list-style: none; margin: 0 clamp(1.5rem, 6vw, 6rem) 0 0; padding: 0; min-width: 18rem; border-top: 1px solid var(--night); }
.offer-index a { display: flex; align-items: baseline; gap: 1.2rem; padding: 1rem 0.25rem; border-bottom: 1px solid var(--night); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.offer-index a span:first-child { font-size: 0.9375rem; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; color: var(--muted); }
.offer-index a:hover { background: rgb(40 43 66 / 0.05); }

/* Horizontal focus per photo: desktop keeps the person in the visible part of the faded panel, mobile centres them. */
#start { --media-width: 66%; --focus: 82%; --focus-mobile: 87%; }
/* Portrait-format photo: the vertical focus decides the crop. */
#fassade { --focus: 50%; --focus-y: 35%; --focus-mobile: 40%; --focus-y-mobile: 30%; }
#hinsehen { --focus: 0%; --focus-mobile: 33%; }
#haltung { --media-width: 56%; --focus: 41%; --focus-mobile: 43%; }
#vortraege { --media-width: 58%; --focus: 66%; --focus-mobile: 77%; }
#workshops { --focus: 100%; --focus-mobile: 55%; }
#begleitung { --focus: 0%; --focus-mobile: 12%; }

.film.is-pinned { height: calc(var(--film-steps) * (100svh - var(--header-h))); }
.film.is-pinned .film-pin { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; background: var(--night); }
.film.is-pinned .film-frame { position: absolute; inset: 0; min-height: 0; opacity: 0; pointer-events: none; }
.film.is-pinned .film-frame:first-child { opacity: 1; pointer-events: auto; }
.film-trace { display: none; }
.film.is-pinned .film-trace {
  display: flex; align-items: center; gap: 0.8rem; position: absolute; z-index: 5; right: 1.5rem; bottom: 1.2rem;
  width: min(24vw, 240px); padding: 0.45rem 0.9rem; border-radius: 999px; background: rgb(27 29 46 / 0.88); color: var(--white); pointer-events: none;
}
.film-trace-number { font-size: 0.8125rem; font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.film-trace-line { flex: 1; height: 1px; background: rgb(255 255 255 / 0.3); }
.film-trace-line span { display: block; height: 2px; background: var(--logo-blue); transform: scaleX(0); transform-origin: left; }

@media (max-width: 1000px) {
  .scene { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .scene-media, .scene--right .scene-media {
    position: relative; inset: auto; width: auto; flex: 1 1 0; min-height: 14rem;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .scene-media img { object-position: var(--focus-mobile, 50%) var(--focus-y-mobile, var(--focus-y, 15%)); }
  .scene-copy, .scene--right .scene-copy { width: auto; max-width: 38rem; margin: -2.5rem 1.25rem 3.5rem; padding: 0; }
  .scene--break { justify-content: center; gap: 1.6rem; padding-block: 2rem; }
  .scene--break .scene-copy { width: auto; margin: 0 1.25rem; }
  .offer-index { margin: 0 1.25rem; min-width: 0; max-width: 38rem; }
  .offer-index a { padding-block: 0.7rem; }
  .scene h1 { font-size: clamp(2.5rem, 10vw, 4rem); margin-bottom: 0.9rem; }
  .scene h2 { font-size: clamp(1.9rem, 6.5vw, 2.8rem); margin-bottom: 0.8rem; }
  .scene--break h2 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .scene p:not(.kicker) { font-size: 1.0625rem; line-height: 1.55; }
  .scene .button, .hero-actions { margin-top: 1.1rem; }
  .hero-actions .button { margin-top: 0; }
  .scroll-cue { margin-top: 0.3rem; }
  .kicker { margin-bottom: 0.8rem; }
  .film.is-pinned .film-trace { right: 1.25rem; bottom: 1rem; width: 6.5rem; }
}
/* On phones the progress pill would collide with the last line of copy. */
@media (max-width: 600px) {
  .film.is-pinned .film-trace { display: none; }
}
@media (max-width: 600px) and (max-height: 740px) {
  .scene-copy, .scene--right .scene-copy { margin-bottom: 2.6rem; }
  .scene h1 { font-size: 2.3rem; }
  .scene h2 { font-size: 1.7rem; }
  .scene p:not(.kicker) { font-size: 1rem; line-height: 1.45; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-media img { transform: none; }
}
