/* iPhone composition: content owns its height; visual stages never resize during browser-chrome changes. */
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
  body { overflow-wrap: break-word; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  button, select, input, textarea { touch-action: manipulation; }
  input, select, textarea { font-size: 16px; }
  header, .site-header { padding-top: max(18px, env(safe-area-inset-top)); }
  footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  dialog { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  .screen { min-height: 0; height: 100svh; }
  .shutter { display: none; }
  .hero-title { left: 6%; right: 6%; top: 30%; }
  h1 { font-size: clamp(46px, 13.2vw, 60px); line-height: 1.08; letter-spacing: -.04em; }
  .hero-title .eyebrow { font-size: 11px; letter-spacing: .035em; }
  .hero-foot { bottom: max(20px, env(safe-area-inset-bottom)); font-size: 11px; }
  .hero-foot > a { min-height: 44px; display: flex; align-items: center; }
  .frame-note { display: none; }
  .manifesto > p { font-size: clamp(32px, 9vw, 44px); line-height: 1.25; }
  .manifesto-aside { margin-left: 0; font-size: 17px; line-height: 1.6; }
  .manifesto-aside span { font-size: 13px; }
  .filmstrip { display: grid; overflow: visible; gap: 36px; padding: 0 6vw; }
  .work { width: 100%; min-width: 0; }
  .work[hidden] { display: none; }
  .work-image { height: auto; aspect-ratio: 4/5; }
  .work-info { font-size: 13px; }
  .work-info > span:last-child { font-size: 12px; }
  .filters button { min-height: 44px; font-size: 14px; }
  .contact h2 { font-size: clamp(52px, 16vw, 72px); }
  .contact textarea, .contact select { font-size: 16px; }
  .contact > div p, .contact form > p, #brief-status, footer > div { font-size: 13px; line-height: 1.6; }
  .contact form > button { min-height: 48px; font-size: 15px; }
  #viewer { width: 94vw; max-height: 90dvh; }
  #close-viewer { position: sticky; display: block; right: auto; top: 12px; margin: 12px 12px -56px auto; z-index: 3; }
  #viewer-image { height: auto; max-height: 43dvh; object-fit: contain; }
  .viewer-copy h2 { font-size: 36px; }
  .viewer-copy > p { font-size: 16px; line-height: 1.6; }
}
@media (max-height: 500px) and (pointer: coarse) {
  .opening { height: 150svh; }
  .hero-title { top: 25%; }
  h1 { font-size: 46px; }
  .hero-title .eyebrow { font-size: 11px; }
  .filmstrip { grid-template-columns: 1fr 1fr; }
  .work-image { aspect-ratio: 4/3; }
}
