/* iPhone/iPad WebKit safety path. Desktop and non-WebKit mobile styling stays
   unchanged. Paper readability must not depend on an external SVG mask paint. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 1100px) {
    html:root body :is(.home-story, .desk-examples, .section:where(#availability), .footer,
      .feature-section, .support-main, .legal-main, .product-hero > div,
      .buy-card:where(#product-purchase > .buy-card), .product-detail-grid article, .use-cases,
      .support-card, .support-contact, .faq details, .feature-section details,
      .audio-column .audio-track, .reviews-section, .review-form, .review-card, .reviews-empty, .feature-nav),
    html:root body:not(.reference-home) .header,
    html:root body.reference-home :is(.header, .hero-copy, .hero-media) {
      /* An actual, unmasked backing remains even if a decorative layer fails
         or its image has not finished loading. It does not move any content. */
      background-color: #f3e4c6;
      background-image: var(--sheet-fibre);
      background-position: center top;
      background-size: 560px auto;
      background-repeat: repeat;
      filter: none;
      box-shadow: 0 1px 1px #704b2740, 2px 8px 12px -6px #49301c52;
    }

    html:root body :is(.home-story, .desk-examples, .section:where(#availability), .footer,
      .feature-section, .support-main, .legal-main, .product-hero > div,
      .buy-card:where(#product-purchase > .buy-card), .product-detail-grid article, .use-cases,
      .support-card, .support-contact, .faq details, .feature-section details,
      .audio-column .audio-track, .reviews-section, .review-form, .review-card, .reviews-empty, .feature-nav)::before,
    html:root body:not(.reference-home) .header::before,
    html:root body.reference-home :is(.header, .hero-copy, .hero-media)::before {
      /* Keep the existing fibre, inset, highlights and page geometry. Native
         CSS clipping replaces SVG filter/mask-border compositing on iOS. */
      -webkit-mask: none !important;
      mask: none !important;
      -webkit-mask-box-image: none !important;
      mask-border-source: none !important;
      filter: none;
      clip-path: polygon(
        0 2px, 6% 1px, 13% 2px, 21% 0, 30% 2px, 39% 1px, 48% 2px,
        58% 0, 67% 2px, 76% 1px, 86% 2px, 94% 0, 100% 2px,
        calc(100% - 1px) 14%, 100% 29%, calc(100% - 2px) 46%, 100% 64%,
        calc(100% - 1px) 81%, 100% calc(100% - 2px),
        93% calc(100% - 1px), 84% 100%, 74% calc(100% - 2px), 64% 100%,
        53% calc(100% - 1px), 43% 100%, 32% calc(100% - 2px), 22% 100%,
        11% calc(100% - 1px), 0 calc(100% - 2px),
        1px 83%, 0 65%, 2px 47%, 0 30%, 1px 14%
      );
    }

    html:root body .footer.footer::before {
      /* Only the top is exposed. Sides and bottom remain attached, at every
         zoom level, without transparent notches into the desk photograph. */
      clip-path: polygon(0 2px, 6% 1px, 13% 2px, 21% 0, 30% 2px, 39% 1px,
        48% 2px, 58% 0, 67% 2px, 76% 1px, 86% 2px, 94% 0, 100% 2px,
        100% 100%, 0 100%);
    }
  }
}
