/* Mobile composition: shared text gutters, edge-to-edge photography and bands.
 * Desktop and print retain their existing contained layouts.
 */
@media screen and (max-width: 800px) {
  .container {
    --page-gutter: 22px;
    width: calc(100% - 2 * var(--page-gutter));
  }

  .relationship-flow > li,
  .relationship-flow > li:first-child,
  .relationship-flow > li:last-child,
  .relationship-flow > .relationship-company {
    padding-inline: 0;
  }
  .relationship-flow > .relationship-company {
    isolation: isolate;
  }
  .relationship-flow > .relationship-company::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline: calc(-1 * var(--page-gutter));
    background: var(--ink);
    z-index: -1;
    pointer-events: none;
  }

  /* Retained dividers extend without moving text outside the shared gutter. */
  .legal-heading { position: relative; }
  .legal-heading::after {
    content: '';
    position: absolute;
    inset-inline: calc(-1 * var(--page-gutter));
    bottom: 0;
    border-bottom: inherit;
    transform: translateY(100%);
    pointer-events: none;
  }
}

@media screen and (max-width: 580px) {
  .container { --page-gutter: 20px; }

  /* Expand the photo frames, not their accompanying copy. */
  .hero-visual,
  .capability-image {
    margin-inline: calc(-1 * var(--page-gutter));
    border-radius: 0;
  }
  .hero-photo,
  .capability-image img { border-radius: 0; }
  .hero-photo-caption {
    left: var(--page-gutter);
    right: var(--page-gutter);
  }
  .capability-image > span { left: var(--page-gutter); }

  .quality-introduction > img,
  .manufacturing-gallery img {
    inline-size: calc(100% + 2 * var(--page-gutter));
    max-inline-size: none;
    margin-inline: calc(-1 * var(--page-gutter));
    border-radius: 0;
  }
  .manufacturing-gallery figure { min-inline-size: 0; }

  .development-priorities > div,
  .product-briefs dl > div,
  .quality-checkpoints dl > div { position: relative; }
  .development-priorities > div:not(:first-child)::before,
  .product-briefs dl > div:not(:first-child)::before {
    content: '';
    position: absolute;
    inset-inline: calc(-1 * var(--page-gutter));
    top: 0;
    border-top: inherit;
    transform: translateY(-100%);
    pointer-events: none;
  }
  .quality-checkpoints dl > div:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-inline: calc(-1 * var(--page-gutter));
    bottom: 0;
    border-bottom: inherit;
    transform: translateY(100%);
    pointer-events: none;
  }
}
