/* A phone composition, not overrides to the desktop design. Every rule is
   restricted to portrait phones; the original DOM is restored on exit. */
@media (max-width:600px), (max-width:1024px) and (max-height:600px) and (orientation:landscape) {
  body.cinema-page.cinema-phone{--pad:24px;background:#080d0b}
  .cinema-phone .site-header{min-height:74px;padding-block:12px;gap:20px}
  .cinema-phone .site-header .brand{width:174px;max-width:62%}
  .cinema-phone .site-header .menu-toggle{font-size:13px;min-height:48px}
  .cinema-phone #main>.cinema-phone-chapter{display:block;padding:0;margin:0 0 14px;border:0;min-height:0;scroll-margin-top:0}
  .cinema-phone-stage{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:28px;min-height:100svh;padding:36px 24px max(25px,env(safe-area-inset-bottom));background:#111915;color:#f8f3e9;box-sizing:border-box}
  #arrival .cinema-phone-stage{min-height:calc(100svh - 74px)}
  .cinema-phone-cover{position:absolute;inset:0;z-index:0;overflow:hidden;background:#19221c}
  .cinema-phone-stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(5,11,9,.85) 0%,rgba(5,11,9,.66) 24%,rgba(5,11,9,.10) 52%,rgba(5,11,9,.25) 65%,rgba(5,11,9,.92) 100%)}
  .cinema-phone-copy{position:relative;z-index:2;pointer-events:none}
  body.cinema-phone .cinema-phone-copy .section-eyebrow{--section-accent:#d4bb8e;width:100%;margin:0 0 19px;color:#f3ead7;font-size:12px!important;line-height:1.65;letter-spacing:.12em}
  .cinema-phone .cinema-phone-copy :is(h1,h2){font-size:clamp(34px,9.3vw,45px);line-height:1.08;letter-spacing:-.035em;max-width:17ch;margin:0;text-wrap:balance;color:#faf5ec}
  .cinema-phone .cinema-phone-copy :is(h1,h2) br{display:none}
  .cinema-phone .cinema-phone-copy :is(.cinema-caption,.cinema-hero-caption){font:20px/1.5 var(--serif);color:#eee7d9;margin:22px 0 0;max-width:28ch}
  .cinema-phone .cinema-phone-copy .cinema-body{font:16px/1.75 var(--sans);color:#eee7db;margin:24px 0 0;max-width:38ch}
  .cinema-phone-bottom{position:relative;z-index:2;display:flex;flex-direction:column;gap:14px;margin-top:auto;padding-top:170px;pointer-events:none}
  .cinema-phone-bottom>*{pointer-events:auto}
  .cinema-phone-bottom .cinema-button{pointer-events:auto;margin:0;width:100%;max-width:none;min-height:56px;padding:17px 20px;font-size:14px;line-height:1.5}
  .cinema-phone-more{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:52px;padding:15px 0 1px;border-top:1px solid #dbc69980;text-align:left;font:14px/1.5 var(--sans);color:#f0e2c5}
  .cinema-phone-more>span:last-child{font-size:26px;font-weight:300;flex:none}
  .cinema-phone-photos{display:flex;position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
  .cinema-phone-photos::-webkit-scrollbar{display:none}
  .cinema-phone-photo{position:relative;flex:0 0 100%;height:100%;scroll-snap-align:start;min-width:0}
  .cinema-phone-cover .cinema-phone-photo>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--phone-focus);aspect-ratio:auto}
  .cinema-phone-gallery-controls{display:flex;flex-direction:column;gap:14px}
  .cinema-phone-photo-label{font:italic 24px/1.4 var(--serif);color:#faf0dd}
  .cinema-phone-gallery-actions{display:flex;align-items:center;gap:12px}
  .cinema-phone-photo-count{font:14px/1.5 var(--sans);font-variant-numeric:tabular-nums;letter-spacing:.1em;color:#d9c397;margin-right:auto}
  .cinema-phone-bottom .cinema-arrow{background:#111a1499;border-color:#d7be8f88;color:#edd8af}
  /* Existing gallery/scene nodes are moved here, keeping their original listeners. */
  .cinema-phone-cover #cinema-hero-slides,.cinema-phone-cover #lighting-images{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
  .cinema-phone-cover .cinema-hero-slide{position:absolute;inset:0}
  .cinema-phone-cover .cinema-hero-slide img,.cinema-phone-cover .cinema-lighting-image{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:var(--phone-focus)}
  .cinema-phone-bottom .cinema-hero-controls{display:flex;flex-wrap:wrap;padding:0;gap:9px;min-height:0;border:0;background:none}
  .cinema-phone-bottom .cinema-hero-status{width:100%;font-size:13px;gap:15px;color:#f4e9d3}
  .cinema-phone-bottom .cinema-carousel-actions{width:100%}
  .cinema-phone-bottom .cinema-lighting-controls{border-color:#d3b98788;background:#0e1812b8}
  .cinema-phone-bottom .cinema-lighting-controls button{font:15px/1.5 var(--sans);min-height:52px;padding:13px 6px}
  .cinema-phone-bottom .cinema-lighting-caption{font:italic 20px/1.4 var(--serif);color:#f3e8cf;min-height:2.8em}
  .cinema-phone-cover #cinema-room-gallery{position:absolute;inset:0;display:flex;width:100%;height:100%;padding:0;gap:0;scroll-padding:0}
  .cinema-phone-cover .cinema-room-card{position:relative;flex:0 0 100%;height:100%;padding:0;scroll-snap-align:start}
  .cinema-phone-cover .cinema-room-card img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;object-position:55% 50%;aspect-ratio:auto}
  .cinema-phone-room-notes{min-height:155px;pointer-events:none}
  .cinema-phone-room-notes figcaption{display:block;padding:0;color:#f7eddd}
  .cinema-phone-room-notes h3{font:29px/1.2 var(--serif);margin:0 0 10px}
  .cinema-phone-room-notes figcaption p{font:16px/1.6 var(--sans);color:#f3eadc;max-width:36ch}
  #your-cinema .cinema-phone-bottom{padding-top:130px}
  #your-cinema .cinema-phone-stage::after{background:linear-gradient(180deg,#060d0be8 0%,#060d0b9e 29%,#060d0b19 48%,#060d0bc9 70%,#060d0bf0 100%)}
  .cinema-phone-bottom .cinema-gallery-controls{padding:0;margin:0;gap:12px;width:100%}
  #cinema-consultation .cinema-phone-stage::after{background:linear-gradient(180deg,#07110ee8 0%,#07110ecf 38%,#07110e30 72%,#07110ede 100%)}
  #cinema-consultation .cinema-phone-bottom{padding-top:150px}
  /* Expanded editorial content is in normal flow, never inside a fixed-height panel. */
  .cinema-phone-detail{padding:32px 24px 36px;background:#111a16;color:#f4eee1;border-top:1px solid #c7ae7e55;overflow-wrap:break-word}
  .cinema-light>.cinema-phone-detail{background:#f3eee3;color:#19201d}
  .cinema-phone-detail :is(.cinema-opening,.cinema-hero-copy,.cinema-section-heading,.cinema-section-intro,.cinema-human-story,.cinema-picture-layout,.cinema-picture-story,.cinema-sound-workspace,.cinema-acoustics-heading,.cinema-acoustic-composition,.cinema-acoustics-copy,.cinema-seating-heading,.cinema-seating-photos,.cinema-materials-heading,.cinema-lighting-below,.cinema-storyboard,.cinema-beyond-heading,.cinema-beyond-essay,.cinema-beyond-story,.cinema-engineering-layout,.cinema-engineering-copy,.cinema-calibration-composite,.cinema-calibration-detail,.cinema-collaboration-heading,.cinema-collaboration-photos){display:block;position:static;width:auto;max-width:none;min-height:0;margin:0;padding:0;pointer-events:auto}
  .cinema-phone-detail :is(.cinema-hero-media,.cinema-opening-note,.cinema-breadcrumb){display:none}
  .cinema-phone-detail .cinema-gallery-bottom{padding:22px 0 0}
  .cinema-phone-detail .cinema-room-selectors{margin:24px 0}
  .cinema-phone-detail :is(.cinema-body,.cinema-story){font-size:17px;line-height:1.8;margin:0 0 24px;padding:0;max-width:none;color:inherit}
  .cinema-phone-detail .cinema-story{font-family:var(--serif);font-size:21px;line-height:1.6}
  .cinema-phone-detail :is(h3,h4){font-size:26px;line-height:1.3;margin:20px 0 12px}
  .cinema-phone-detail figure{position:relative;width:100%;max-width:none;padding:0!important;margin:26px 0!important;grid-area:auto}
  .cinema-phone-detail figure img{position:static;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
  .cinema-phone-detail figure figcaption{position:static;padding:15px 0 0;font-size:14px;line-height:1.7;color:inherit}
  .cinema-phone-detail .cinema-rule{margin:24px 0}
  .cinema-phone-detail .cinema-sound-toolbar{padding:0 0 25px}
  .cinema-phone-detail .cinema-sound-study{padding:22px 15px;color:#f3eee3}
  .cinema-phone-detail .cinema-sound-diagrams svg{max-height:none}
  .cinema-phone-detail :is(.cinema-seating-study,.cinema-infrastructure-study){display:block;padding:25px 0;margin:25px 0}
  .cinema-phone-detail .cinema-seating-study{padding:25px 15px;color:#19201d}
  .cinema-phone-detail .cinema-eq-study{padding:22px 15px!important;color:#eee7d4}
  .cinema-phone-detail .cinema-project-stages{margin:28px 0 28px 0}
  .cinema-phone-detail .cinema-control-note,.cinema-phone-detail .cinema-materials-note,.cinema-phone-detail .cinema-acoustics-conclusion{font-size:23px;line-height:1.55;margin:25px 0 0;padding:0;border:0}
  .cinema-phone-detail .cinema-context-link{font-size:13px}
  .cinema-phone-close{display:block;min-height:48px;margin:30px 0 0;padding:12px 0;border-top:1px solid currentColor;font:14px/1.5 var(--sans);text-align:left;color:inherit}
  body.cinema-phone footer.cinema-footer{min-height:100svh;padding-top:42px}
  .cinema-phone .cinema-footer-content{gap:30px 20px}
}
