
/* Opening frames from the same fitted renderer. The homepage draws its own UI. */
.stage {background-image:url('/posters/poster-desktop.webp')}
@media (min-aspect-ratio: 2.15) {
  .stage {background-image:url('/posters/poster-wide.webp')}
}
@media (max-width:1366px) and (min-height:600px) {
  .stage {background-image:url('/posters/poster-laptop.webp')}
}
@media (aspect-ratio < 1) {
  .stage {background-image:url('/posters/poster-tabletPortrait.webp')}
}
@media (width < 600px), (aspect-ratio < .63) {
  .stage {background-image:url('/posters/poster-phone.webp')}
}
@media (width < 600px) and (min-aspect-ratio:.53), (min-aspect-ratio:.53) and (aspect-ratio < .63) {
  .stage {background-image:url('/posters/poster-smallPhone.webp')}
}

/* Keep both visitor controls available alongside the brand on narrow phones. */
#skip-animation {display:inline-flex;align-items:center;min-height:36px;padding:8px 14px;border:1px solid #f2eed43b;border-radius:22px;font-size:9px;white-space:nowrap}
#skip-animation:hover {background:#f4eed515}
@media (max-width:700px) { .topbar .tools {gap:5px} .topbar .tools button, #skip-animation {font-size:8px;padding-inline:9px} }
@media (max-width:370px) { .topbar {padding-inline:5%;gap:7px} .topbar .brand {font-size:12px;gap:5px} .topbar .tools button, #skip-animation {font-size:7px;padding-inline:7px} }

/* Phone composition: the berth occupies the sky between the copy and hero.
   Keep this breakpoint paired with skyport.mjs; desktop and landscape retain v37. */
@media (max-width:700px) and (max-aspect-ratio: 4/5) {
  .chaptercopy {top:100px;left:6.67%;width:88%;}
  .chaptercopy .eyebrow {font-size:9px;letter-spacing:3px;margin-bottom:10px;}
  .chaptercopy h1 {font-weight:600;font-size:clamp(32px,10.26vw,40px);line-height:1.02;letter-spacing:-.0425em;text-wrap:nowrap;}
  .chaptercopy h1 br {display:none;}
  .chaptercopy .subline {font-size:12px;line-height:1.5;max-width:150px;margin-top:12px;}
  .stage {background-image:url('/posters/poster-mobile-berth.webp');}
}
@media (max-width:700px) and (max-aspect-ratio: 4/5) and (max-height:720px) {
  .chaptercopy {top:78px;}
  .chaptercopy h1 {font-size:clamp(30px,9.07vw,34px);}
  .chaptercopy .eyebrow {margin-bottom:7px;}
  .chaptercopy .subline {font-size:11px;margin-top:9px;max-width:138px;}
  .stage {background-image:url('/posters/poster-mobile-berth-short.webp');}
}
