/* Progressive refinements only: retain desktop composition and all gallery columns. */
.portrait-frame { display: contents; }
.portrait-frame > source { display: none; }
@media (min-width: 768px) and (max-width: 1199px) {
  html { scroll-padding-top: 60px; }
  .contact-nav { min-height: 44px; }
  .invitation { font-size: max(10px, calc(26 * var(--u))); }
  .contact-button { font-size: max(9px, calc(21.1568 * var(--u))); min-width: 44px; }
  /* Keep the same name width, column gap and vertical reference as the desktop. */
  .profession { font-size: max(10px, calc(26 * var(--u))); }
  address { font-size: max(8px, calc(20 * var(--u))); }
  /* Match the separator's full row height; picture sources protect the face. */
  .biography > .portrait-frame { display: block; position: relative; width: calc(100% - 6px); height: auto; min-height: 0; align-self: stretch; overflow: hidden; border-radius: calc(10 * var(--u)); }
  .portrait-frame > .portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .biography-copy, .case-description, .results-list { font-size: max(12px, calc(24 * var(--u))); line-height: 1.35; }
  .case-description { font-size: max(12px, calc(25 * var(--u))); }
  .skills li { font-size: max(9.5px, calc(24 * var(--u))); height: auto; min-height: calc(93.1 * var(--u)); padding: max(5px, calc(18 * var(--u) - 1px)) max(5px, calc(24 * var(--u) - 1px)); }
  .ai h3 { font-size: max(10px, calc(24 * var(--u))); }
  .ai p { font-size: max(9.5px, calc(18 * var(--u))); }
  .category-row { max-width: 100%; flex-wrap: wrap; }
  .category-row li { font-size: max(10px, calc(24 * var(--u))); line-height: 1.3; }
  .gallery-trigger, .contact-button, .back-to-top, .lightbox-control { touch-action: manipulation; }
  .lightbox-info { min-height: 56px; padding-inline: 44px; }
  .portfolio-lightbox .lightbox-prev, .portfolio-lightbox .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); }
  .portfolio-lightbox .lightbox-prev { left: 12px; }
  .portfolio-lightbox .lightbox-next { right: 12px; }
  .portfolio-lightbox .lightbox-media { grid-column: 2; }
  /* Support photography only. Preserve section margins and all portfolio grids. */
  .case-body { max-width: calc(1047.5 * var(--u)); grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); }
  .facade-photo { width: 100%; height: auto; aspect-ratio: auto; min-height: 0; align-self: stretch; }
  .case-results { grid-template-columns: minmax(0, 1fr) minmax(0, .42fr); }
  .interior-photo { width: 100%; height: auto; min-height: 0; align-self: stretch; }
  .case-body > .facade-photo > img, .case-results > .interior-photo > img {
    width: 100% !important; height: 100% !important; left: 0 !important; top: 0 !important;
    object-fit: cover;
  }
  .facade-photo > img { object-position: 50% 34%; }
  .interior-photo > img { object-position: 60% 50%; }
}
@media (min-width: 768px) and (max-width: 1199px) and (hover: none) {
  .contact-button:hover:not(:active) { transform: none; background: var(--blue); color: white; box-shadow: calc(3 * var(--u)) calc(3 * var(--u)) 0 var(--ink); }
  .contact-button:hover:not(:active)::before { transform: none; }
}
