/* Internal composition comparison. The buttons and copy are real HTML;
   no controls are taken from the static mockup images. */
.b9-switch { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:20px 0 0; }
.b9-switch[hidden] { display:none; }
.b9-switch__label { color:#ebc1b5; font-size:11px; letter-spacing:.08em; margin-right:4px; }
.b9-switch button { border:1px solid #f4d1c47d; background:#14090ebe; color:#f8e9e3; padding:8px 12px; min-height:40px; font:inherit; font-size:12px; }
.b9-switch button[aria-pressed="true"] { background:#a8243e; border-color:#ffd1ba; color:#fff; }
.b9-switch button:focus-visible { outline:3px solid #f0cb97; outline-offset:3px; }

@media(min-width:801px) {
  /* B0 keeps the established composition: copy left, portrait right. */
  /* B2 gives the same independent image layer the left side and copy the right. */
  html[data-b9-composition="b2"] .hero { justify-content:flex-end; }
  html[data-b9-composition="b2"] .hero-portrait-v3 {
    left:-14%; right:auto; width:min(75%,1150px); object-position:left bottom;
  }
  html[data-b9-composition="b2"] .hero-content {
    width:min(48%,700px); margin-left:auto; padding:130px 6% 135px 1%;
  }
  html[data-b9-composition="b2"] .hero-grid { opacity:1; background:none; }
  html[data-b9-composition="b2"] .hero-grid::before {
    content:"";position:absolute;left:36%;top:9%;width:clamp(100px,12vw,180px);aspect-ratio:1;border-radius:50%;
    background:radial-gradient(circle at 40% 35%,#ffb0a4 0%,#d34753 30%,#801a35 62%,#3b0c1c 90%);
    box-shadow:0 0 50px #e0364544;opacity:.65;pointer-events:none;
  }
  html[data-b9-composition="b2"] .hero-vignette {
    background:linear-gradient(270deg,#10070df7 0%,#10070dd9 30%,#10070d55 61%,transparent 82%),linear-gradient(0deg,#10090f 0%,transparent 26%);
  }
  html[data-b9-composition="b2"] .hero-bg::after {
    background:linear-gradient(180deg,#0a080bb8,transparent 20%),linear-gradient(270deg,#0d090de8 0%,#0d090d9a 33%,transparent 68%),linear-gradient(0deg,#100c10 0%,transparent 24%);
  }
  html[data-b9-composition="b2"] .hero-side { left:2%;right:auto; }
  html[data-b9-composition="b2"] .scroll-cue { left:auto;right:6%; }
  html[data-b9-composition="b2"] .hero-credit { left:3%;right:auto;text-align:left; }
  html[data-b9-composition="b2"] .red2-stage__copy { margin-left:auto;margin-right:clamp(1.5rem,7vw,8rem); }
  html[data-b9-composition="b2"] .red2-stage__wash { background:linear-gradient(270deg,#0e090ef7 0%,#0e090ee8 28%,#0e090e7d 50%,transparent 77%),linear-gradient(0deg,#100b10 0%,transparent 25%),linear-gradient(180deg,#100b10b3 0%,transparent 18%); }
  html[data-b9-composition="b2"] .world-text { left:auto;right:6%;text-align:right; }
  html[data-b9-composition="b2"] .world-shade { background:linear-gradient(270deg,#0c101bf5,#1113209c 53%,#11111c27),linear-gradient(0deg,#0b0b13f0,transparent 58%); }
  html[data-b9-composition="b2"] .companion-stage { background:radial-gradient(ellipse at 50% 39%,#64303a,#27141e 58%,#110b12 100%); }
}

/* Portrait remains above the text in both mobile layouts; the wider switch
   changes typography and scene atmosphere without moving the face offscreen. */
@media(max-width:800px) {
  .b9-switch { margin-top:12px; }
  html[data-b9-composition="b2"] .hero-tag { color:#ffc2b2; }
  html[data-b9-composition="b2"] .hero-portrait-v3 {
    left:clamp(-260px,-55vw,-150px);right:auto;object-position:left bottom;
  }
  html[data-b9-composition="b2"] .hero-content { text-align:right; }
  html[data-b9-composition="b2"] .hero-actions,
  html[data-b9-composition="b2"] .b9-switch { justify-content:flex-end; }
  html[data-b9-composition="b2"] .hero-route { margin-left:auto; }
  html[data-b9-composition="b2"] .companion-stage { background:radial-gradient(ellipse at 50% 39%,#64303a,#27141e 58%,#110b12 100%); }
}

/* In short, wide windows the hero may be taller than the viewport. Anchor the
   face to the first screen rather than the bottom of the expanded section. */
@media(min-width:801px) and (max-height:600px) {
  .hero-portrait-v3 { top:96px; bottom:auto; height:clamp(180px,calc(100vh - 96px),504px); object-position:right top; }
  html[data-b9-composition="b2"] .hero-portrait-v3 { object-position:left top; }
}

@media(min-width:501px) and (max-width:800px) and (max-height:500px) and (orientation:landscape) {
  html[data-b9-composition="b2"] .hero-portrait-v3 { left:clamp(-220px,-28vw,-110px);right:auto; }
  html[data-b9-composition="b2"] .hero-content { width:min(48%,400px);margin-left:auto;padding:0 6% 125px 0; }
}
