/* Phone layouts: keep the photographic character without desktop offsets. */
@media (max-width: 640px) {
  :root { --mobile-gutter: 20px; }
  .subpage .wrap { width: calc(100% - 2 * var(--mobile-gutter)); }
  .subpage :is(h1, h2, h3, p, a, dd) { overflow-wrap: break-word; }
  .subpage .page-intro {
    display: block;
    padding-block: 32px 30px;
  }
  .subpage .page-intro > .eyebrow { margin-bottom: 24px; font-size: 11px; letter-spacing: 1.3px; }
  .subpage .page-intro h1 { font-size: clamp(48px, 13.2vw, 62px); line-height: 1.02; }
  .subpage .page-intro > p { margin-top: 22px; font-size: 16px; line-height: 1.65; max-width: 40ch; }
  .subpage .text-link { font-size: 12px; gap: 20px; }
  .subpage .cta-section { margin-top: 48px; padding: 37px 23px 40px; gap: 24px; }
  .subpage .cta-section h2 { font-size: clamp(39px, 11.5vw, 52px); }
  .subpage .cta-section .button { justify-content: space-between; width: 100%; font-size: 12px; }

  /* A single compact introduction leaves the contact action within reach. */
  .page-pricing .price-examples-intro { padding-block: 30px 34px; gap: 25px; }
  .page-pricing .price-intro-copy h1 { font-size: clamp(43px, 12vw, 57px); line-height: 1.05; }
  .page-pricing .price-intro-copy h1 br { display: none; }
  .page-pricing .price-intro-copy h1 em { margin-left: .14em; }
  .page-pricing .price-intro-copy > .eyebrow { font-size: 11px; margin-bottom: 20px; }
  .page-pricing .price-intro-copy > .body-copy { margin-top: 18px; font-size: 16px; line-height: 1.65; }
  .page-pricing .price-intro-copy > .text-link { font-size: 11px; margin-top: 15px; }
  .page-pricing .hourly-rate-panel { padding: 23px; }
  .page-pricing .hourly-kicker { font-size: 11px; letter-spacing: 1.1px; }
  .page-pricing .hourly-rate-panel.is-pending .hourly-rate-value strong { font-size: 32px; line-height: 1.1; }
  .page-pricing .hourly-rate-value small { font-size: 13px; }
  .page-pricing .hourly-rate-panel .button { width: 100%; justify-content: center; font-size: 13px; min-height: 52px; padding-inline: 16px; }
  .page-pricing .project-budget-overview { padding-top: 35px; scroll-margin-top: 16px; }
  .page-pricing .budget-section-head { gap: 20px; }
  .page-pricing .budget-section-head .eyebrow { font-size: 11px; margin-bottom: 20px; }
  .page-pricing .budget-section-head h2 { font-size: clamp(40px, 11.5vw, 52px); }
  .page-pricing .budget-section-head > .body-copy { line-height: 1.65; }
  .page-pricing .pricing-demo-note { margin-top: 22px; padding-top: 18px; font-size: 13px; line-height: 1.65; }
  .page-pricing .price-jump-links { gap: 4px 18px; padding-top: 19px; }
  .page-pricing .price-jump-links a { min-height: 48px; font-size: 14px; }
  .page-pricing .price-case { padding-block: 28px 38px; gap: 23px; scroll-margin-top: 16px; }
  .page-pricing .price-case-visual { position: static; top: auto; }
  .page-pricing .price-case-visual > img { aspect-ratio: 3 / 2; height: auto; }
  .page-pricing .price-case-visual figcaption { padding-top: 12px; font-size: 10px; letter-spacing: .5px; }
  .page-pricing .price-area { display: flex; align-items: baseline; gap: 15px; margin-top: 15px; padding-top: 14px; font-size: 40px; }
  .page-pricing .price-area small { margin: 0; font-size: 11px; letter-spacing: 1px; }
  .page-pricing .case-kicker { font-size: 11px; letter-spacing: 1px; margin-bottom: 17px; }
  .page-pricing .case-title { font-size: clamp(37px, 10.6vw, 49px); line-height: 1.06; }
  .page-pricing .case-summary { font-size: 16px; line-height: 1.65; margin-top: 17px; }
  .page-pricing .price-case-total { margin-block: 22px; }
  .page-pricing .price-case-total > div > span { font-size: 11px; letter-spacing: .8px; }
  .page-pricing .price-case-total strong { font-size: clamp(39px, 11.8vw, 52px); }
  .page-pricing .case-details > summary { min-height: 58px; font-size: 16px; }
  .page-pricing .price-case-specs > div { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 14px; padding-block: 13px; }
  .page-pricing .price-case-specs dt { font-size: 13px; line-height: 1.5; }
  .page-pricing .price-case-specs dd { font-size: 15px; line-height: 1.6; }
  .page-pricing .case-exclusions { font-size: 13px; line-height: 1.65; }
  .page-pricing .price-case-story > .text-link { width: 100%; justify-content: space-between; margin-top: 19px; }
  .page-pricing .pricing-included { padding-block: 38px 40px; gap: 28px; }
  .page-pricing .pricing-included > h2 { font-size: 42px; }
  .page-pricing .price-included-grid { gap: 24px 22px; }
  .page-pricing .price-included-grid p { font-size: 15px; line-height: 1.65; }

  /* The gallery begins earlier and no longer inherits staggered page spreads. */
  .subpage .gallery-note { margin-bottom: 16px; font-size: 13px; }
  .subpage .gallery-toolbar { margin-bottom: 27px; padding-bottom: 15px; }
  .subpage .filter-button { min-width: 44px; min-height: 48px; padding-inline: 8px; font-size: 13px; }
  .subpage .project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 33px; }
  .subpage .project-grid .project-card:nth-child(n) { grid-column: auto; grid-row: auto; margin: 0; width: 100%; max-width: none; }
  .subpage .project-grid .project-card:nth-child(n) .project-image img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .subpage .project-card h3 { margin-top: 8px; font-size: 27px; line-height: 1.2; }
  .subpage.page-project .page-intro h1 { font-size: clamp(40px, 11.8vw, 56px); }
  .subpage .project-detail-hero { height: clamp(285px, 92vw, 390px); }
  .image-zoom-label { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; min-height: 44px; padding: 10px 13px; font-size: 12px; }
  .subpage .project-detail-grid { gap: 27px; padding-block: 28px 35px; }
  .subpage .project-facts { gap: 25px; }
  .subpage .project-facts dt { font-size: 11px; }
  .subpage .project-facts dd { font-size: 16px; }
  .subpage .project-story .body-copy { font-size: 16px; line-height: 1.7; }
  .project-scope { margin-top: 25px; padding-top: 20px; }
  .project-story-actions { width: 100%; align-items: stretch; }
  .project-story-actions .text-link { justify-content: space-between; width: 100%; }
  .project-pagination strong { font-size: 18px; }

  /* Keep the portrait and service area usable at a phone's scale. */
  .page-about .page-intro h1 { font-size: clamp(55px, 16vw, 72px); }
  .page-about .about-profile { gap: 30px; padding-bottom: 45px; }
  .page-about .profile-portrait figcaption { flex-wrap: wrap; gap: 6px 14px; font-size: 10px; line-height: 1.6; letter-spacing: .45px; }
  .page-about .profile-story { width: 100%; margin: 0; }
  .page-about .profile-story > .eyebrow { font-size: 11px; }
  .page-about .profile-name { font-size: clamp(37px, 10.8vw, 49px); }
  .page-about .profile-lead { margin-top: 23px; font-size: 21px; }
  .page-about .profile-facts dt { font-size: 11px; }
  .page-about .area-section { padding-block: 43px 45px; scroll-margin-top: 16px; }
  .page-about .area-copy > .eyebrow { font-size: 11px; }
  .page-about .area-copy h2 { font-size: clamp(43px, 12.6vw, 58px); }
  .page-about .service-map { width: calc(100% + 2 * var(--mobile-gutter)); margin-left: calc(-1 * var(--mobile-gutter)); }
  .page-about .map-office { width: 22px; height: 22px; }
  .page-about .map-office::after { content: ''; position: absolute; inset: -11px; }
  .page-about .map-office-label { width: 136px; padding: 9px 12px; }
  .page-about .map-office-label > span { font-size: 10px; letter-spacing: .6px; }
  .page-about .map-office-label strong { font-size: 16px; }
  .map-actions { width: 100%; gap: 7px; }
  .map-actions .text-link { justify-content: space-between; width: 100%; text-align: left; }
  .map-lightbox-viewport { -webkit-overflow-scrolling: touch; }
  .page-about .map-lightbox .service-map { margin: 0; width: max(900px, 100%); }
}

@media (max-width: 360px) {
  :root { --mobile-gutter: 16px; }
  .page-pricing .price-included-grid { grid-template-columns: minmax(0, 1fr); }
  .page-pricing .price-included-grid p { max-width: 38ch; }
  .page-pricing .price-case-specs > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .page-pricing .hourly-rate-panel { padding: 21px; }
  .page-pricing .hourly-rate-panel.is-pending .hourly-rate-value strong { font-size: 29px; }
  .project-pagination { flex-direction: column; align-items: stretch; }
  .project-pagination a { max-width: 100%; }
  .project-pagination a:last-child { border-top: 1px solid var(--line); padding-top: 20px; }
}
