/* Mobile cinema fills the visible viewport; each shot has its own focal crop. */
.mobile-film-link{display:none}
@media(max-width:650px){
  html{scroll-padding-top:100px}
  .site-header{padding:8px 11px;gap:8px;inset:calc(10px + env(safe-area-inset-top,0px)) 10px auto}
  .site-header .brand{font-size:21px;min-height:44px;display:flex;align-items:center}
  .language-toggle,.menu-toggle{min-height:44px;min-width:44px}
  .header-right{gap:6px}
  .header-nav[data-header-portal=mobile]{max-height:calc(100svh - 100px);overflow-y:auto;overscroll-behavior:contain}
  .header-nav a,.work-menu>summary{min-height:44px;display:flex;align-items:center}
  .footer-links a,.footer-motion,.text-link,.media-open-button{min-height:44px;display:inline-flex;align-items:center}
  .footer-links{gap:5px}
  .footer-top{gap:28px 20px}
  .footer-links a{overflow-wrap:anywhere}
  .media-viewer{inset:0;margin:auto;max-height:calc(100dvh - 20px);overflow:auto;overscroll-behavior:contain}
  .media-viewer-close,.media-viewer-bottom a{min-height:44px;display:inline-flex;align-items:center;font-size:12px}
  .media-viewer-bottom p{font-size:11px}
  input,textarea,select{font-size:16px!important}
  .contact-options{display:grid;grid-template-columns:1fr!important;gap:8px!important}
  .contact-options label{display:block}
  .contact-options label>span{min-height:48px;display:flex;align-items:center;padding:12px 16px}
  .contact-actions{display:grid;grid-template-columns:1fr!important;gap:12px}
  .contact-actions a,.contact-actions button{min-height:48px;width:100%;justify-content:space-between}
  .contact-message p{overflow-wrap:anywhere}
  .contact-email{min-height:44px;display:inline-flex;align-items:center}
  .edited-home .home-statement{min-height:0;padding-block:58px}
  .edited-home .statement{font-size:clamp(27px,7.8vw,34px);line-height:1.13}
  .edited-home .studio-method{display:flex;flex-wrap:wrap;gap:12px 20px}
  .edited-home .studio-integrations{grid-template-columns:1fr}
  .edited-chapter-links a{min-height:44px;display:inline-flex;align-items:center;font-size:11px}
  .edited-case-link{min-height:48px}
  .edited-projects-intro nav{gap:16px;font-size:11px}
  .edited-projects-intro nav a{min-height:44px;display:inline-flex;align-items:center}
  .case-refine section[id]{scroll-margin-top:0}
  .case-refine [data-case-view]{min-height:44px;font-size:12px}
  .case-refine button,.case-refine summary,.case-refine .case-hero a{min-height:44px}
  .case-refine summary,.case-refine .case-hero a{display:flex;align-items:center}
  .case-refine .case-note,.case-refine figcaption{font-size:11px}
  .case-trip .trr-back,.case-trip .trr-reset{min-height:44px;display:inline-flex;align-items:center}
  .case-trip .trr-solid-button,.case-trip .trr-agenda-link,.case-trip .trr-create-first{min-height:48px}
  .case-trip .trr-resource-explanation>.case-eyebrow,.case-trip .trr-resource-transfer,.case-trip .trr-activity-state{font-size:10px}
  .case-trip .trr-activity-top>.case-eyebrow{font-size:9px}
  .case-trip .trr-activity-buttons button small{font-size:10px}
  .case-trip .trr-activity-buttons button{flex-direction:column;align-items:flex-start;gap:10px}
  .case-trip .trr-activity-buttons button>span{width:100%}
  .case-trip .trr-activity-buttons button small{font-family:var(--font-body);overflow-wrap:normal;word-break:normal;hyphens:none}
  .case-trip .trr-pass p,.case-trip .trr-pass-state,.case-trip .trr-boarding-path b{font-size:11px}
  .case-trip .trr-pass-state{width:fit-content;overflow-wrap:anywhere}
  .case-trip .trr-boarding-path{flex-wrap:wrap}
  .case-trip .trr-board-bottom{flex-direction:column;gap:8px}
  .case-trip .trr-pass .case-eyebrow{font-size:10px;overflow-wrap:anywhere}
  .case-trip .trr-choice-row button>span,.case-trip .trr-choice-row small,.case-trip legend{font-size:10px}
  .case-trip .trr-catalog-nav>p,.case-trip .trr-activity-resource p{font-size:12px}
  .edited-home .refine-stage{height:100svh;height:100dvh;min-height:0;max-height:none}
  .edited-home .refine-film{inset:0;height:100%;width:100%;background:#080a0c}
  .edited-home .refine-film img,.edited-home .refine-film video{object-fit:cover;object-position:var(--mobile-film-position,62%) 50%}
  .edited-home .refine-stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgb(3 6 8 / .24),transparent 24%,transparent 72%,rgb(3 6 8 / .76))}
  .edited-home .refine-stage .cp2-copy{left:auto;top:auto;transform:none;max-width:calc(100% - 32px)}
  .edited-home .refine-stage .cp2-title{font-size:clamp(25px,7.8vw,35px)}
  .edited-home .refine-stage .cp2-support{font-size:13px;line-height:1.6;margin:18px auto 0;max-width:27ch;color:#e1e5dd;text-shadow:0 1px 5px #080a0c}
  .edited-home .refine-stage .cp2-cta{display:none}
  .edited-home .refine-controls{left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:44px 44px minmax(0,1fr);gap:8px}
  .edited-home .refine-controls button,.edited-home .refine-controls a{min-height:44px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:12px;padding:10px 12px;background:#0c1213e6;border-color:#76817e;color:#f4f5ef}
  .edited-home .refine-controls button,.edited-home .refine-controls .mobile-film-link{padding:0;font-size:0}
  .edited-home .refine-controls button::before{content:'▶︎';font-size:15px}
  .edited-home .refine-controls button[aria-pressed=true]::before{content:'Ⅱ';font-size:20px;font-weight:600}
  .edited-home .refine-controls .mobile-film-link::before{content:'⤢';font-size:24px;line-height:1}
  .edited-home .mobile-film-link{display:flex}
  .edited-home .refine-credit{top:auto;bottom:calc(66px + env(safe-area-inset-bottom,0px));left:auto;right:14px;font-size:8px;max-width:calc(100% - 28px)}
  .edited-home .v2-reference-note{top:auto;bottom:calc(66px + env(safe-area-inset-bottom,0px));left:14px;font-size:9px;max-width:calc(100% - 28px)}
}
@media(max-width:360px){.site-header .brand{font-size:19px}.language-toggle,.menu-toggle{padding-inline:8px}.site-header{padding-inline:10px}.header-right{gap:5px}.case-trip .trr-activity-buttons button{min-height:124px}}
@media(max-height:500px) and (orientation:landscape){
  main a,main button,main summary,.footer-links a,.footer-motion,.media-open-button{min-height:44px}
  .edited-chapter-links a,.edited-projects-intro nav a,.contact-email,.case-refine .case-hero a{display:inline-flex;align-items:center}
  .edited-chapter-links a,.edited-projects-intro nav a{font-size:11px}
  .header-nav[data-header-portal=mobile]{max-height:calc(100svh - 90px)}
  .case-refine .case-hero{padding-top:112px;padding-bottom:35px;min-height:0}
  .edited-home .refine-stage{height:100svh;height:100dvh;min-height:0}
  .edited-home .refine-film{inset:0;height:100%;width:100%}
  .edited-home .refine-film video,.edited-home .refine-film img{object-fit:cover;object-position:center}
  .edited-home .refine-stage .cp2-copy{transform:none;left:auto;top:auto}
  .edited-home .refine-stage .cp2-support{display:none}
  .edited-home .refine-stage .cp2-cta{display:none}
  .edited-home .refine-controls{display:flex;bottom:calc(14px + env(safe-area-inset-bottom,0px));left:14px;right:auto}
  .edited-home .refine-controls a,.edited-home .refine-controls button{min-height:44px;display:inline-flex;align-items:center}
  .edited-home .refine-controls button,.edited-home .refine-controls .mobile-film-link{min-width:44px}
  .edited-home .mobile-film-link{display:inline-flex}
  .edited-home .refine-controls a[href='#projects']{display:none}
  .edited-home .refine-credit{top:auto;bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  .edited-home .v2-reference-note{top:auto;bottom:calc(66px + env(safe-area-inset-bottom,0px))}
}
