/* The single warm turn uses the same camera window as its resting portrait. */
.studio-home .turn-frame {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}
.studio-home .stage:not([data-pose]) .turn-frame > video {
  width: 100% !important;
  height: 100% !important;
}

.studio-home .intro .music-quote {
  position: static;
  width: fit-content;
  text-align: left;
  color: #685045;
  font: 600 clamp(20px, 2.05vw, 31px)/1.16 var(--serif);
  letter-spacing: -.02em;
}
.studio-home .location { margin-top: clamp(18px, 2.1vw, 32px); }

@media (min-width: 651px) {
  .studio-home .hero {
    display: grid;
    grid-template-columns: minmax(0, 47%) 1fr;
    height: auto;
    min-height: min(100vh, 62.5vw);
    min-height: min(100svh, 62.5vw);
    max-height: none;
    padding: clamp(52px, 7vw, 110px) var(--edge) clamp(25px, 3.5vw, 60px);
  }
  .studio-home .intro {
    grid-column: 1;
    width: auto;
    padding: 0;
  }
  .studio-home .hero h1 {
    font-size: clamp(48px, min(7.6vw, 13svh), 132px);
    line-height: .92;
    margin: clamp(12px, 1.45vw, 24px) 0 clamp(12px, 1.25vw, 20px);
  }
  .studio-home .hero .actions { margin-top: clamp(20px, 2vw, 32px); }

  /* Keep the mirror, key and turn at their native 8:5 proportions. Extend
     the empty left wall into the space available on wider, shorter windows. */
  .studio-home .scene {
    display: flex;
    justify-content: flex-end;
  }
  .studio-home .scene::before {
    content: "";
    flex: 1 1 0;
    background: url("revisions/prima/box-desktop.webp") left center / 500% 100% no-repeat;
    /* the same file as the <picture> above picks, so the wall is not fetched twice */
    background-image: image-set(url("revisions/prima/box-desktop.avif") type("image/avif"), url("revisions/prima/box-desktop.webp") type("image/webp"));
    transform: scaleX(-1);
  }
  .studio-compare .scene::before {      /* the comparison page keeps the former figure's wall (its <picture> is that still) */
    background-image: url("revisions/classic-warm/box-desktop.webp");
    background-image: image-set(url("revisions/classic-warm/box-desktop.avif") type("image/avif"), url("revisions/classic-warm/box-desktop.webp") type("image/webp"));
  }
  .studio-home .scene .stage {
    position: relative;
    inset: auto;
    flex: none;
    width: auto;
    height: 100%;
    aspect-ratio: 8 / 5;
  }
  .studio-home .scene .key span {
    right: calc(50% + max(29px, 2.65cqw));
    line-height: 1.12;
  }
}

@media (min-width: 651px) and (max-width: 900px) {
  .studio-home .hero {
    min-height: min(calc(100svh - 67px), 62.5vw);
    padding-block: 26px;
  }
  .studio-home .hero .actions { flex-wrap: wrap; gap: 6px 16px; }
}

@media (max-width: 650px) {
  .studio-home .hero h1 { margin-bottom: 11px; }
  .studio-home .intro .music-quote { font-size: 22px; }
  .studio-home .location { margin-top: 14px; }
}

@media (min-width: 651px) {
  .studio-compare .hero {
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: clamp(14px, 2vh, 24px);
  }
  .studio-compare .intro { grid-row: 1; }
  .studio-compare .hero > .pose-controls {
    grid-area: 2 / 1;
    position: relative;
    inset: auto;
    justify-self: start;
  }
  .studio-compare .pose-controls button { min-width: clamp(76px, 9vw, 98px); }
}

/* The home page's turn mask (it was an inline style attribute; the page's policy allows no inline styles). */
.stage.pose-warm { --pose-mask: url("revisions/classic-warm/mask.webp"); }
.stage.pose-prima { --pose-mask: url("revisions/prima/mask.webp"); }
