/* Touch surfaces use normal document flow. The desktop film and service scenes keep their own choreography. */
@media (max-width:1024px), (hover:none) and (pointer:coarse) {
  :root {--folio-gutter:clamp(18px,4.2vw,52px);--touch-mast:64px}
  html {scroll-padding-top:calc(var(--touch-mast) + 12px)}
  body[data-surface="inner"] {padding-top:var(--touch-mast)}
  .ag-header,.ag-header.on-inner,.ag-header.past-intro {
    height:var(--touch-mast);grid-template-columns:minmax(0,1fr) auto;
    gap:10px;padding-inline:max(var(--folio-gutter),env(safe-area-inset-left)) max(var(--folio-gutter),env(safe-area-inset-right))
  }
  .ag-header .folio-nav {display:none}
  .ag-header .ag-logo {min-width:0;gap:5px}
  .ag-header .ag-logo b {font-size:23px}
  .ag-header .ag-pills {gap:clamp(5px,1.8vw,18px)}
  .ag-header .ag-pills :is(.cea-proposal-link,.ag-contact,.ag-menu-open) {
    display:inline-flex;align-items:center;justify-content:center;min-height:44px;
    line-height:1.2;padding:0 5px;font-size:14px;white-space:nowrap
  }
  .ag-header .ag-pills .cea-proposal-link {min-width:44px}
  .ag-header .ag-pills .ag-menu-open {width:44px;padding:0}
  #ag-menu {height:100dvh}
  .ag-menu-field {height:100%;overflow-y:auto;overscroll-behavior:contain;padding-inline:var(--folio-gutter);grid-template-columns:1fr;grid-template-rows:var(--touch-mast) minmax(min-content,1fr) auto}
  .ag-menu-top {height:var(--touch-mast)}
  .ag-menu-top button,.dialog-head button {min-width:44px;min-height:44px}
  .ag-menu-field .folio-menu-art {display:none}
  .ag-menu-field nav {margin:18px 0}
  .ag-menu-field nav a {min-height:48px}
  .ag-menu-foot {padding-bottom:max(16px,env(safe-area-inset-bottom))}
  body[data-surface] :is(#movie-dialog,#contact-dialog){width:min(95vw,840px);max-height:calc(100dvh - 16px);overflow:auto;padding:clamp(16px,3vw,28px)}
  body[data-surface] #movie-dialog video{width:100%;max-height:70dvh;object-fit:contain;background:#111}
  .cinema-stage.ag-stage {height:auto;min-height:0}
  .cinema-frame {position:relative;height:clamp(480px,82svh,840px);min-height:0;top:0}
  .cinema-content {top:37%;opacity:1;transform:none}
  .cinema-foot {bottom:max(21px,env(safe-area-inset-bottom))}
  .cinema-foot .cinema-link {min-height:44px;display:inline-flex;align-items:center}
  .screen-program>* {min-width:0}
  .screen-actions :is(a,button),.screen-preview-toggle,.screen-index .screen-tab,.screen-heading .screen-all {min-height:44px}
  .screen-actions a,.screen-heading .screen-all {display:inline-flex;align-items:center}
  .ab-services .ab-service-stage {position:relative;height:auto;min-height:0;padding:40px 0;text-align:left}
  .ab-services .ab-service-stage>.folio-heading {position:static;width:auto;transform:none;margin-bottom:22px}
  .ab-services .ab-deck {
    position:static;transform:none;display:grid;width:100%;max-width:none;
    height:auto;min-height:0;margin:0;gap:12px;
  }
  .ab-services .ab-deck .ab-sheet {
    position:relative;inset:auto;display:flex;justify-content:center;
    min-height:clamp(205px,25vw,280px);padding:clamp(18px,3vw,36px);
    border-radius:2px;box-shadow:none
  }
  .ab-services .service-photo {inset:0 0 0 auto;width:37%;height:100%;border-radius:0}
  .ab-services .ab-sheet h3,.ab-services .ab-sheet p {max-width:59%}
  .ab-services .ab-sheet h3 {margin:0 0 7px;font-size:clamp(20px,3vw,30px)}
  .ab-services .ab-sheet p {font-size:clamp(13px,1.65vw,17px);line-height:1.52}
  .ab-services .ab-sheet p+a {margin:6px 0 0;min-height:44px;display:inline-flex;align-items:center;padding:0}
  .ab-services .ab-services-more {position:static;min-height:44px;margin-top:16px;align-items:center}
  .ag-inquiry {height:auto;min-height:0}
  .ag-inquiry .ag-inquiry-line {grid-template-columns:minmax(0,1fr) minmax(220px,1fr);gap:18px 30px;padding:clamp(36px,6vw,68px) var(--folio-gutter)}
  .ag-inquiry .folio-heading {align-self:start}
  .ag-inquiry .ag-reel {height:auto;display:grid;align-items:stretch;justify-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
  .ag-inquiry .ag-reel::before,.ag-inquiry .ag-reel::after {display:none}
  .ag-inquiry .ag-reel button {
    position:static;transform:none;width:100%;min-height:48px;border-bottom:1px solid #53585a;
    white-space:normal;line-height:1.35;font-size:clamp(16px,2vw,20px)
  }
  .ag-inquiry .ag-reel button[aria-pressed=true]::after {content:" ✓";margin-left:4px}
  .ag-inquiry #ag-next {min-height:44px;width:max-content;grid-column:2}
  .ag-footer {padding-bottom:max(24px,env(safe-area-inset-bottom))}
  .ag-footer nav {gap:0}
  .ag-footer nav :is(a,button),.ag-footer-contact a,.ag-footer-end a {
    display:inline-flex;align-items:center;min-height:44px;
  }
}
@media (min-width:641px) and (max-width:1024px) and (orientation:portrait) {
  .cinema-plate {left:-27%}
}
@media (max-width:640px) {
  .ag-header .ag-logo b{font-size:21px}
  .ag-header .studio-sign{width:28px;height:30px}
  .ag-header .ag-pills .ag-contact{gap:5px}
  .folio-nav {display:none}
  .ag-menu-field nav span {font-size:clamp(32px,9vw,49px)}
  .ag-menu-field nav em {font-size:15px}
  .ag-menu-foot {gap:10px;flex-wrap:wrap}
  .cinema-frame {min-height:500px;height:min(87svh,780px);background:#d1d1d0}
  .cinema-plate {inset:25% 0 0 -84%;background-position:center;mask-image:linear-gradient(to bottom,transparent,#000 18%)}
  .cinema-content {top:17%;translate:0 0;max-width:90%}
  .cinema-content h1 {font-size:clamp(58px,15vw,90px)}
  .cinema-kicker {margin-top:8px}
  .screen-program {display:flex;flex-direction:column}
  .screen-program .screen-panels,.screen-program .screen-index {width:100%}
  .screen-caption h3 {font-size:clamp(26px,6.8vw,39px)}
  .screen-actions {gap:18px}
  .screening-deck .screen-index {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .screen-index .screen-tab {padding:9px 0;grid-template-columns:minmax(0,1fr);font-size:15px}
  .screen-index .screen-tab:first-child {padding-top:9px}
  .screen-index .screen-tab img,.screen-index .screen-tab small {display:none}
  .ag-inquiry .ag-inquiry-line {grid-template-columns:1fr}
  .ag-inquiry .ag-reel {max-width:none}
  .ag-inquiry #ag-next {grid-column:1}
  body[data-surface] #contact-dialog .contact-options {display:grid;grid-template-columns:1fr;gap:16px}
  .ag-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ag-footer-contact {grid-column:1/-1}
  .ag-footer-end {display:flex;flex-wrap:wrap;gap:4px 16px}
}
@media (orientation:landscape) and (max-height:550px) {
  .cinema-frame {height:100svh;min-height:300px}
  .cinema-content {top:42%}
  .cinema-content h1 {font-size:clamp(55px,7.5vw,85px)}
  .ag-menu-field nav a {padding-block:6px}
  body[data-surface] #movie-dialog video {max-height:calc(100dvh - 124px)}
}
