/* Mobile case studies and contact details; loaded after the shared controls. */
@media (max-width: 809.98px) {
  .hx-project-page { --project-gutter: 16px; }
  .hx-project-heading { padding: clamp(128px, 20vh, 176px) 0 24px; }
  .hx-project-heading h1 { font-size: clamp(44px, 13vw, 56px); line-height: 1.02; overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; }
  .hx-project-cover { aspect-ratio: auto; }
  .hx-project-cover img { width: 100%; height: auto; max-height: none; object-fit: contain; }
  .hx-project-information { gap: 32px; padding: 40px 0 56px; }
  .hx-project-information-with-story { padding-bottom: 48px; }
  .hx-project-overview { gap: 18px; }
  .hx-project-overview > p, .hx-project-details dd { font-size: 18px; line-height: 1.5; }
  .hx-project-details { gap: 20px; }
  .hx-project-visit { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
  .hx-project-story { gap: 32px; padding-bottom: 56px; }
  .hx-project-chapter h2 { max-width: 100%; margin-bottom: 14px; font-size: 28px; line-height: 1.16; }
  .hx-project-chapter p { font-size: 18px; line-height: 1.6; }
  .hx-project-images { gap: 24px; padding-bottom: 72px; }
  .hx-project-caption, .hx-project-image-wide .hx-project-caption { gap: 6px; padding: 14px 0 8px; }
  .hx-project-caption h3 { font-size: 18px; line-height: 1.4; }
  .hx-project-caption p { font-size: 18px; line-height: 1.5; }
  .hx-project-image-mobile .hx-project-image-media { height: auto; max-height: none; padding: clamp(20px, 6vw, 28px); }
  .hx-project-image-mobile img { width: min(100%, 300px); height: auto; max-width: 100%; max-height: none; }
  .hx-project-related { gap: 28px; padding: 0 0 72px; }
  .hx-project-related-heading { flex-wrap: wrap; align-items: center; gap: 20px; }
  .hx-project-related-heading h2 { font-size: 40px; }
  .hx-project-view-all { min-height: 44px; max-width: 100%; }
  .hx-project-related-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hx-project-related-media { aspect-ratio: 3 / 2; }
  .hx-project-related-caption { padding-top: 14px; }
  .hx-project-related-caption h3, .hx-project-related-caption p { font-size: 18px; line-height: 1.4; }

  .hx-end { gap: 48px; padding: 0 16px max(24px, env(safe-area-inset-bottom)); }
  .hx-end-opening { gap: 32px; padding-top: 32px; }
  .hx-end h2 { max-width: 100%; font-size: 40px; line-height: 1.08; text-wrap: balance; }
  .hx-end-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: clamp(18px, 5.5vw, 24px); line-height: 1.4; }
  .hx-end-pixels { margin-top: 20px; }
  .hx-end .contact-row, .hx-contact-page .contact-row { display: block; }
  .hx-end .contact-field, .hx-contact-page .contact-field { gap: 8px; margin-bottom: 20px; font-size: 18px; line-height: 1.4; }
  .hx-end .contact-field :is(input, textarea), .hx-contact-page .contact-field :is(input, textarea) { min-width: 0; min-height: 52px; padding: 13px 14px; font-size: 18px; line-height: 1.5; }
  .hx-contact-page .contact-field input { height: 52px; }
  .hx-end .contact-field textarea, .hx-contact-page .contact-field textarea { height: 152px; min-height: 152px; }
  .hx-end .send-button, .hx-contact-page .send-button { width: 100%; min-height: 52px; }
  .hx-end .form-status, .hx-contact-page .form-status { margin-top: 16px; font-size: 16px; line-height: 1.5; }
  .hx-contact-page .hx-contact-grid { gap: 24px; padding-top: 24px; padding-bottom: 72px; }
  .hx-end-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 24px; }
  .hx-end-links nav, .hx-end-location { gap: 8px; }
  .hx-end-link-list a, .hx-end-link-list > span { display: inline-flex; align-items: center; min-height: 44px; }
  .hx-end-bottom { margin-top: 32px; }
  .hx-end-copyright { margin-top: 8px; font-size: 16px; line-height: 1.5; }
  .hx-end-motion { min-height: 44px; margin-bottom: 0; font-size: 14px; }
}
