/* MANYMEN — /backstage/ page.
   Values from the Montoya theme as used on manymen.ch/backstage (reference/used-css/backstage-*.css
   and reference/dumps/backstage-*.json). Breakpoints: 1466, 1024, 767, 479. */

/* side gutter of the theme below 1024 (site.css only has 80/60 so far) */
@media (max-width: 1024px) { .page-backstage #main-page-content { --gutter: 40px; } }
@media (max-width: 767px) { .page-backstage #main-page-content { --gutter: 20px; } }

.page-backstage .bs-text { margin: 0; font-size: 16px; line-height: 28px; color: #aaa; }

/* ---------- clipped image with video (pinned, circle opens while scrolling) */
.bs-video { padding: 10px 0; background: var(--page); }
.clipped-image-wrapper { position: relative; width: 100%; overflow: hidden; }
.clipped-image-pin { position: relative; display: block; }
.clipped-image {
  position: relative; z-index: 0; display: block; overflow: hidden;
  width: 100%; height: 100vh; margin: 0 auto; clip-path: circle(22%);
}
.clipped-image > img { position: relative; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.content-video-wrapper { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; overflow: hidden; }
.content-video-wrapper video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.clipped-image-gradient {
  position: absolute; bottom: 0; left: 0; z-index: 10; width: 100%; height: 30%; opacity: 0;
  background-color: var(--page);
  -webkit-mask-image: linear-gradient(transparent, black 85%); mask-image: linear-gradient(transparent, black 85%);
}
/* empty on this page: half a viewport + 80px of scroll while the image is pinned */
.clipped-image-content { position: relative; z-index: 10; width: 100%; padding: calc(50vh + 40px) var(--gutter) 40px; }

/* ---------- moving thumbs grid "Unsere Werte" */
.bs-values { padding: 10px 0; background: var(--page); }
.move-thumbs-wrapper { position: relative; width: 100%; }
.start-thumbs-caption { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 50vh; }
.start-thumbs-caption p { color: #999; }
.start-thumbs-wrapper { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; padding: 0 40px; }
.start-move-thumb { position: relative; width: calc(25% - 80px); height: calc(25vw - 40px); margin: 0 40px 40px; }
.start-move-thumb:nth-of-type(3n+2) { width: calc(15% - 80px); height: calc(15vw - 40px); margin-top: 50vh; }
.start-move-thumb:nth-of-type(3n+3) { width: calc(35% - 80px); height: calc(35vw - 40px); margin-top: 25vh; }
.move-thumb-inner { overflow: hidden; border-radius: 12px; }
.move-thumb-inner .section-image { position: relative; height: 100%; }
.move-thumb-inner .item-image { height: 100%; border-radius: 0; z-index: 100; }
/* built by backstage.js on desktop: the row the thumbs fly into */
.end-thumbs-wrapper { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 100vh; padding: 0 40px; }
.end-move-thumb { position: relative; display: flex; align-items: center; justify-content: center; width: calc(33.33% - 80px); height: calc(33.33vw - 80px); margin: 40px; }
.end-move-thumb .move-thumb-inner { position: absolute; top: 0; width: 100%; height: 100%; }

/* ---------- "Der Weg zu MANYMEN" */
.bs-way { padding: 0 0 9vw; background: var(--page); }
.bs-way__inner { display: flex; flex-direction: column; gap: 20px; width: min(100% - 20px, 1140px); margin: 0 auto; padding: 10px 0; }

/* ---------- white card "Shaping Futures" (clip-path opens on scroll, see site.css .clip-effects) */
.bs-shaping { padding: 9vw var(--gutter); background: #fff; }
.bs-shaping__inner { display: flex; flex-direction: row; gap: 20px; width: min(100%, 1140px); margin: 0 auto; padding: 10px 0; }
.bs-shaping .accordion-content a { color: #000; }

/* ---------- team */
.bs-team { display: flex; flex-direction: column; gap: 20px; padding: 9vw var(--gutter) 10px; background: var(--page); }
.bs-team h1 { margin-bottom: 20px; }
.team-members-list { position: relative; overflow: hidden; width: 100%; margin: 0 auto; padding: 0; pointer-events: none; }
.team-members-list li {
  position: relative; display: inline-block; width: 100%; margin: 0; padding: 40px 80px;
  cursor: pointer; pointer-events: initial; line-height: 20px;
  border-bottom: 1px solid rgb(255 255 255 / .15);
}
.team-members-list li:last-child { border-bottom: 0; }
.team-member {
  position: relative; z-index: 10; display: table; width: 100%; margin-bottom: 0; vertical-align: top;
  font-size: calc(1rem + 8vw); font-weight: 500; line-height: calc(1rem + 7.5vw); color: #fff;
}
.team-member > div {
  position: relative; display: table; width: auto; margin: 0 auto;
  -webkit-text-fill-color: rgb(255 255 255 / .1);
  background-image: linear-gradient(#fff, #fff); background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  transition: all .3s ease;
}
.team-member > span {
  position: absolute; top: 0; left: 0; display: block;
  font-size: 16px; font-weight: 500; line-height: inherit; color: #fff; transition: all .3s ease;
}
.team-member > span:last-child { right: 0; left: auto; }
.team-members-list:hover li .team-member > div { background-size: 0% 100%; transition: all .15s ease; }
.team-members-list:hover li:hover .team-member > div { background-size: 100% 100%; transition: all .3s ease; }
.team-members-list:hover li .team-member, .team-members-list:hover li .team-member > span { opacity: .3; }
.team-members-list li:hover .team-member, .team-members-list:hover li:hover .team-member > span { opacity: 1; }
.hover-reveal { position: fixed; z-index: 0; width: 300px; height: 400px; overflow: hidden; border-radius: 8px; opacity: 0; pointer-events: none; }
.hover-reveal__inner, .hover-reveal__img { position: absolute; width: 100%; height: 100%; }
.hover-reveal__inner { overflow: hidden; }
.hover-reveal__img { position: relative; display: block; background: center / cover no-repeat; }

/* ---------- "Cutting hair – shaping futures" + moving gallery */
.bs-gallery { padding: 0 var(--gutter); }
.bs-gallery__inner { display: flex; flex-direction: column; gap: 20px; width: min(100%, 1140px); margin: 0 auto; padding: 10px 0; }
.bs-gallery__intro { display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.bs-gallery__intro h4 { margin: 0; font-size: calc(1rem + 1vw); line-height: 1; font-weight: 500; color: #fff; }
.bs-gallery__row { padding: 10px 0 10px 10px; background-color: #0e0e0e; }
.fw-gallery .wrapper-gallery { display: inline-flex; align-items: flex-end; margin: 0; padding: 0; }
.moving-gallery li { position: relative; flex-shrink: 0; width: 25vw; margin: 10px 0; padding: 0 10px; line-height: 20px; }
.moving-gallery li img { display: inline; width: 100%; height: auto; margin: 0; border: 1px solid rgb(255 255 255 / .15); border-radius: 12px; }

/* ---------- ≤1466 */
@media (max-width: 1466px) {
  .start-thumbs-wrapper { padding: 0 30px; }
  .start-move-thumb { width: calc(25% - 60px); height: calc(25vw - 30px); margin: 0 30px 30px; }
  .start-move-thumb:nth-of-type(3n+2) { width: calc(15% - 60px); height: calc(15vw - 30px); margin-top: 50vh; }
  .start-move-thumb:nth-of-type(3n+3) { width: calc(35% - 60px); height: calc(35vw - 30px); margin-top: 25vh; }
  .end-thumbs-wrapper { padding: 0 30px; }
  .end-move-thumb { width: calc(33.33% - 60px); height: calc(33.33vw - 60px); margin: 30px; }
  .team-members-list li { padding: 40px 60px; }
  .hover-reveal { width: 250px; height: 333px; }
}

/* ---------- ≤1024 (theme: touch layout, thumbs stay a static grid) */
@media (max-width: 1024px) {
  .start-thumbs-wrapper { padding: 0 20px; }
  .start-move-thumb, .start-move-thumb:nth-of-type(3n+2), .start-move-thumb:nth-of-type(3n+3) { width: calc(33.33% - 40px); height: calc(33.33vw - 40px); margin: 25px 20px; }
  .end-thumbs-wrapper { display: none; }
  .bs-way .flex-list { padding: 30px 40px; }
  .team-members-list li { padding: 40px; }
  .hover-reveal { width: 200px; height: 266px; }
}

/* ---------- ≤767 */
@media (max-width: 767px) {
  .start-thumbs-wrapper { padding: 0 15px; }
  .start-move-thumb, .start-move-thumb:nth-of-type(3n+2), .start-move-thumb:nth-of-type(3n+3) { width: calc(50% - 30px); height: calc(50vw - 30px); margin: 10px 15px; }
  .bs-way { padding-bottom: 12vw; }
  .bs-way .flex-list { flex-direction: column; padding: 30px; }
  .bs-way .flex-list > span { width: 100%; line-height: 30px; text-align: left; }
  .bs-shaping { padding-top: 12vw; padding-bottom: 12vw; }
  .bs-shaping__inner { flex-direction: column; }
  .bs-shaping .split__col { flex: 0 0 auto; padding-right: 0; padding-left: 0; }
  .bs-team { padding-top: 12vw; }
  .team-members-list li { padding: 30px; }
  .team-member > div { float: none; margin: 10px 0 4px; }
  .team-member > span { position: relative; float: none; line-height: 24px; }
  .hover-reveal { width: 150px; height: 200px; }
  .bs-gallery__intro { padding: 10px 0; }
  .bs-gallery__row { padding: 10px 0; }
  .moving-gallery li { width: 50vw; }
}

/* ---------- ≤479 */
@media (max-width: 479px) {
  .start-thumbs-wrapper { padding: 0 10px; }
  .start-move-thumb, .start-move-thumb:nth-of-type(3n+2), .start-move-thumb:nth-of-type(3n+3) { width: calc(50% - 20px); height: calc(50vw - 20px); margin: 5px 10px; }
  .bs-way .flex-list { padding: 20px; }
  .team-members-list li { padding: 30px 20px; }
  .hover-reveal { width: 100px; height: 133px; }
  .moving-gallery li { width: 60vw; }
}
.page-backstage .text-align-left { text-align: left; }
