/* Keep the regular page sections readable and reachable on touch screens. */
@media (max-width: 900px) {
  .mobile-menu {
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .menu-open .site-header { z-index: 110; }
  .mobile-menu a { min-height: 48px; }
}

@media (max-width: 1100px) {
  #promise .aftercare-steps button { min-height: 44px; }
  #promise .aftercare-steps span { font-size: 13px; }
  #promise .aftercare-context,
  #promise .aftercare-answer p { font-size: 14px; line-height: 1.85; }
  #promise .aftercare-eyebrow,
  #promise .aftercare-case-label,
  #promise .aftercare-answer > span,
  #promise .case-evidence-meta,
  #promise .case-evidence-action,
  #promise .aftercare-footer p { font-size: 12px; }
  #promise .aftercare-footer a { min-height: 44px; font-size: 13px; }
  #promise .case-evidence-action { min-height: 44px; }

  #work .section-kicker,
  #services .section-kicker,
  #plans .section-kicker,
  #process .section-kicker,
  #contact .section-kicker { font-size: 12px; line-height: 1.5; }

  #work .section-heading > p a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
  #work .project-meta,
  #work .project-view,
  #work .work-foot { font-size: 12px; }
  #work .project-card p { font-size: 14px; line-height: 1.8; }
  #work .work-direction::before { font-size: 12px; }
  #work .project-view { min-height: 44px; display: inline-flex; align-items: center; }

  #services .service-tabs button { min-height: 64px; }
  #services .service-tabs button > span,
  #services .panel-keyword,
  #services .service-panel small { font-size: 12px; }
  #services .service-tabs b { font-size: 14px; line-height: 1.5; }
  #services .service-panel p { font-size: 14px; line-height: 1.85; }

  #plans .heading-aside,
  #plans .plan-top,
  #plans .plan-price small { font-size: 12px; }
  #plans .plan-summary,
  #plans .plan li { font-size: 14px; }
  #plans .plan-bottom p { font-size: 13px; line-height: 1.85; }
  #plans .plan-bottom a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
  #plans .text-button { min-height: 44px; font-size: 14px; }

  #process .process-heading .lead,
  #process .process-steps p,
  #process .process-bottom > p { font-size: 14px; line-height: 1.85; }
  #process .process-steps small { font-size: 12px; }
  #process .text-button { min-height: 44px; font-size: 14px; }

  #contact .contact-copy > .lead,
  #contact .contact-questions details p { font-size: 14px; line-height: 1.85; }
  #contact .contact-preparation,
  #contact .contact-questions > .eyebrow { font-size: 13px; }
  #contact .contact-questions summary { min-height: 48px; font-size: 15px; }
  #contact .quiet-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
  #contact .landing-footer { font-size: 12px; }
  #contact .landing-footer nav { flex-wrap: wrap; gap: 0 20px; }
  #contact .landing-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }

  .case-dialog-header [data-case-zoom] { min-height: 44px; font-size: 12px; }
  .case-dialog-header [data-case-dialog-close] { width: 44px; height: 44px; }
}

@media (max-width: 600px) {
  .mobile-menu { max-height: calc(100dvh - 87px - env(safe-area-inset-bottom, 0px)); }
  #promise .aftercare-steps { gap: 8px; }
  #promise .aftercare-steps span { font-size: 12px; }
  #promise .aftercare-steps button { padding: 8px 0; }
  #promise .aftercare-footer { gap: 8px; }
  #work .work-foot { flex-direction: column; gap: 10px; }
  #work .work-foot > span:first-child { max-width: none; }
  #work .work-direction { align-self: flex-end; }
  #services .service-tabs { gap: 0 12px; }
  #services .service-tabs button { gap: 6px; }
  #services .service-tabs button > span { font-size: 11px; }
  #services .service-tabs i { width: 22px; height: 22px; }
  #contact .landing-footer nav { margin-top: 12px; }
}

/* Landscape menus remain within the screen, above the persistent contact links. */
@media (max-width: 900px) and (max-height: 500px) {
  .mobile-menu { padding: 8px 22px; }
  .hero-stage { min-height: 100svh; }
  .hero-stage .hero-copy { padding-top: 76px; padding-bottom: 82px; justify-content: flex-start; }
  .hero-copy .hero-service { margin-bottom: 8px; }
  .hero-scene .hero-title { line-height: 1.25; }
  .hero-copy .hero-ownership-summary { width: 100%; max-width: 680px; margin-top: 8px; line-height: 1.5; }
  .hero-ownership-summary span { display: inline; }
  .hero-ownership-summary span + span::before { content: " "; }
}
