/* Playing Backwards homepage video — v2. Mobile: true 4:5 stage, edge-to-edge.
   Desktop: quote anchored in the dark lower-left of the photograph. */
body[data-page="home"] .home-video-stage {
  position:relative;
  width:100%;
  height:100vh;
  height:100dvh;
  min-height:340px;
  overflow:hidden;
  background:#101010;
  isolation:isolate;
}
body[data-page="home"] .home-video {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
body[data-page="home"] .home-quote {
  position:absolute;
  z-index:2;
  left:32px;
  top:auto;
  bottom:9%;
  max-width:calc(100% - 64px);
  color:#c4c4c4;
  font-family:Manrope,sans-serif;
  font-weight:400;
  text-align:left;
  opacity:0;
  transition:opacity 1s ease;
  pointer-events:none;
}
body[data-page="home"] .home-quote.is-visible {opacity:1;}
body[data-page="home"] .home-quote-text {
  font-size:clamp(14px,1.05vw,16px);
  line-height:1.75;
  letter-spacing:0;
  margin:0;
}
body[data-page="home"] .home-quote-author {
  margin:16px 0 0;
  font-size:10px;
  line-height:1.5;
  font-weight:500;
  letter-spacing:.11em;
  color:#aaa;
}
body[data-page="home"] .quote-mobile {display:none;}


/* Mobile 9:16: quote is OVER the existing black lower part of the video,
   not underneath the video. No forced min-height or additional black panel. */
@media (max-width:1024px) and (orientation:portrait) {
  body[data-page="home"],
  body[data-page="home"] .content { background:#000; }
  body[data-page="home"] .content { min-height:0; }
  body[data-page="home"] .home-video-stage {
    position:relative;
    display:block;
    width:100%;
    height:auto;
    min-height:0;
    aspect-ratio:9 / 16;
    overflow:hidden;
    background:#000;
  }
  body[data-page="home"] .home-video {
    display:block;
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    aspect-ratio:9 / 16;
    object-fit:contain;
    object-position:center;
    background:#000;
  }
  body[data-page="home"] .home-quote {
    position:absolute;
    left:5%;
    right:5%;
    bottom:7%;
    top:auto;
    /* Move the entire quote, including attribution, up by its own height. */
    transform:translateY(-100%);
    width:auto;
    max-width:90%;
    margin:0;
    text-align:left;
    color:#c4c4c4;
  }
  body[data-page="home"] .home-quote-text {
    font-size:clamp(12px,3.25vw,16px);
    line-height:1.65;
    letter-spacing:0;
  }
  body[data-page="home"] .home-quote-author {
    margin-top:12px;
    font-size:9px;
    line-height:1.5;
  }
  body[data-page="home"] .quote-desktop {display:none;}
  body[data-page="home"] .quote-mobile {display:inline;}
}
@media (max-width:768px) and (orientation:portrait) {
  body[data-page="home"] .home-video-stage {
    width:100vw;
    max-width:none;
    margin-left:calc(50% - 50vw);
  }
}
@media (prefers-reduced-motion:reduce) {
  body[data-page="home"] .home-quote {transition:none;}
}
