/* Product-led mobile composition. Its height follows content, never the viewport. */
@media (max-width:800px) and (orientation:portrait), (max-width:960px) and (max-height:600px) and (orientation:landscape) and (pointer:coarse) {
  .hero { min-height:0; padding-inline:5vw; }
  .stage { display:grid; min-height:0; grid-template-columns:minmax(0,1fr) auto; padding-top:8px; }
  .stage-copy, .product-copy, .counter { display:contents; }
  .author-credit, .counter-line { display:none; }
  #headline { grid-area:1 / 1 / 2 / 3; width:auto; max-width:100%; margin:0 0 12px; font-size:clamp(1.125rem,5.3vw,1.4375rem); line-height:1.25; letter-spacing:-.035em; text-wrap:initial; }
  #headline br { display:none; }
  .stage-art { grid-area:2 / 1 / 3 / 3; flex:none; align-self:center; width:calc(100% + 24px); max-width:664px; height:auto; aspect-ratio:1.24; margin:0 -12px; perspective:1400px; }
  .exhibit-object { width:106%; height:auto; aspect-ratio:4/3; left:-3%; top:0; transform:rotateY(-4deg) rotateZ(-1.5deg); }
  .exhibit-object:has(.browser-exhibit:hover) { transform:rotateY(-4deg) rotateZ(-1.5deg); }
  .energy-label { width:31%; height:82%; top:9%; right:0; }
  .browser-bar { height:24px; font-size:.5625rem; padding-inline:7px; gap:6px; }
  .browser-address { padding:3px 5px; }
  .window-dots { gap:3px; }
  .window-dots i { width:5px; height:5px; }
  .product-screen { height:calc(100% - 24px); }
  .screen-action, .screen-caption { display:none; }
  #product-name { grid-area:3 / 1 / 4 / 2; min-width:0; font-size:clamp(1.3125rem,6.4vw,1.6875rem); letter-spacing:-.03em; line-height:1.15; margin:0; overflow-wrap:break-word; }
  #product-counter { grid-area:4 / 1 / 5 / 2; display:block; font-size:.6875rem; font-variant-numeric:tabular-nums; color:#cfcdc3; line-height:1.6; margin-top:2px; }
  .scene-navigation { grid-area:3 / 2 / 5 / 3; gap:6px; }
  .scene-navigation button { width:44px; height:44px; padding:10px; }
  .stage-actions { grid-area:5 / 1 / 6 / 3; display:flex; flex-direction:row; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:8px; min-height:44px; }
  .primary-link { min-height:44px; max-width:100%; padding:.625rem .875rem; font-size:.875rem; gap:20px; }
  .primary-link span { width:19px; height:19px; }
  .text-button { min-height:44px; max-width:100%; font-size:.8125rem; gap:6px; padding:8px 0; }
  #product-description { grid-area:6 / 1 / 7 / 3; font-size:1rem; line-height:1.5; margin:24px 0 12px; }
  .product-domain { display:none; }

  /* Enhancement keeps keyboard/reading order aligned with the visual order.
     The grid above already leads with the exhibit before JavaScript arrives. */
  .stage[data-mobile-stage] { display:flex; flex-direction:column; padding:0; }
  .mobile-opening { display:flex; flex-direction:column; width:100%; max-width:640px; min-width:0; min-height:0; margin-inline:auto; padding-top:8px; }
  .mobile-project { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; min-height:52px; margin-top:4px; }
  .mobile-identity { min-width:0; max-width:100%; flex:1 1 auto; }
  .mobile-project .counter { display:flex; margin:0 0 0 auto; gap:0; flex:none; }
  .hero > .collection-cue { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; max-width:640px; min-height:44px; margin:16px auto 0; padding:12px 0 20px; font-size:.8125rem; color:#cfcdc3; }
  .collection-cue .private-note { display:none; }
  .stage[data-mobile-stage] .product-copy { display:block; width:100%; max-width:640px; margin-inline:auto; padding:16px 0 0; }
  .stage[data-mobile-stage] #product-description { max-width:60ch; font-size:1rem; line-height:1.5; margin:0 0 12px; }
  .product-copy .screen-caption { display:table; position:static; margin:12px 0 0; font-size:.6875rem; line-height:1.5; max-width:100%; color:#cfcdc3; }
  .capture-release { display:none; }
  .product-rail { display:none; }
  .collection { padding-top:32px; }
  .collection-heading { margin-bottom:32px; }
  .collection-heading > p { margin-top:16px; }
  .collection .product-wall { row-gap:48px; }
  @media (prefers-reduced-motion:reduce) {
    .exhibit-object { transform:none; }
    .exhibit-object:has(.browser-exhibit:hover) { transform:none; }
  }
}

/* A rotated phone keeps the exhibit beside the controls, with prose below. */
@media (max-width:960px) and (max-height:600px) and (orientation:landscape) and (pointer:coarse) {
  .stage[data-mobile-stage] { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); grid-template-rows:max-content max-content max-content 1fr max-content; column-gap:24px; padding-top:12px; }
  .mobile-opening { display:contents; }
  #headline { grid-area:1 / 2 / 2 / 3; }
  .stage-art { grid-area:1 / 1 / 5 / 2; align-self:start; width:calc(100% + 16px); margin:0 -8px; }
  .mobile-project { grid-area:2 / 2 / 3 / 3; align-self:start; margin-top:0; }
  .mobile-project #product-name { font-size:clamp(1.3125rem,3vw,1.6875rem); }
  .stage-actions { grid-area:3 / 2 / 4 / 3; align-self:start; }
  .stage[data-mobile-stage] .product-copy { grid-area:5 / 1 / 6 / 3; max-width:none; padding-top:16px; }
  .hero > .collection-cue { max-width:none; }
}
