/* Scale the first scene's native text boxes together. Keeping the DOM at
   viewport coordinates also keeps the text lens aligned with the letters. */
@media (min-width:901px) {
  #s1,
  .scene-scroll-prompt[data-scene="0"] {
    /* One reference pixel in the 1920 × 1080 composition. Use the smaller
       available dimension so short or narrow windows cannot enlarge the copy. */
    --hero-unit:min(.0520833333vw,.0925925926svh);
    --hero-top:max(100px,19svh);
  }

  #s1 .copy {
    left:9vw;
    top:var(--hero-top);
    bottom:auto;
    width:max-content;
    max-width:85.5vw;
  }
  #s1 .copy .eyebrow {
    font-size:calc(22 * var(--hero-unit))!important;
    line-height:1.5;
    margin:0 0 calc(27 * var(--hero-unit))!important;
  }
  #s1 .copy h1 {
    font-size:calc(84 * var(--hero-unit));
    line-height:1.015;
    width:max-content;
    max-width:none;
    margin:0 0 calc(27 * var(--hero-unit));
    white-space:nowrap;
  }
  /* Override the old >=1360px single-line subtitle, retaining the original
     paragraph column and the same line lengths as the text scales. */
  #s1 .copy > p:not(.eyebrow) {
    font-size:calc(26 * var(--hero-unit));
    line-height:1.55;
    width:calc(530 * var(--hero-unit));
    max-width:100%;
    margin:0;
    white-space:normal;
  }
  /* Keep the English subtitle on exactly the two authored lines. */
  html[lang="en"] #s1 .copy > p:not(.eyebrow) {
    width:max-content;
    max-width:none;
    white-space:nowrap;
  }
  #s1 .hero-aside {
    right:5.5vw;
    top:max(100px,18svh);
    width:calc(190 * var(--hero-unit));
  }
  #s1 .hero-aside p {
    font-size:calc(18 * var(--hero-unit));
    line-height:2.15;
  }

  .scene-scroll-prompt[data-scene="0"] {
    left:9vw;
    right:auto;
    /* Preserve the original bottom anchor; clear the paragraph if it grows. */
    top:max(calc(100svh - 250 * var(--hero-unit)),calc(var(--hero-copy-bottom,calc(var(--hero-top) + 378.5 * var(--hero-unit))) + 32 * var(--hero-unit)));
    bottom:auto;
    gap:calc(12 * var(--hero-unit));
  }
  .scene-scroll-prompt[data-scene="0"] .scroll-mark {
    width:calc(40 * var(--hero-unit));
    height:calc(44 * var(--hero-unit));
  }
  .scene-scroll-prompt[data-scene="0"] b {
    font-size:calc(15 * var(--hero-unit));
    line-height:1.3;
  }
}
