/* Full-width section colours; the original 1600px composition and 1440px
 * content grid stay centred. Load after the Figma layout styles. */
html { background: #fff; }
body { max-width: none; }
.hero-inner { max-width: 1600px; overflow: clip; }

/* Up to 1920 CSS pixels, retain the original desktop/mobile brush strips.
 * Their existing fixed heights stay unchanged; background-size: 100% 100%
 * stretches only their width (at most 20% beyond the 1600px source). */
@media (min-width: 1000px) {
  /* The scene is positioned against the capped composition, not the display. */
  .hero-scene { bottom: calc(100px - min(8.625vw, 138px)); }
}

/* The hero stays unmasked beyond 1600px: no white fade on the right. */

/* Large CSS viewports only: plain boundaries and bounded texture.
 * A Retina/4K display using a smaller logical viewport keeps the brushes. */
@media (width > 1920px) {
  /* Section boundaries are straight. Decorative cuts inside cards/buttons
   * remain part of their design. */
  .brush-section::before,
  .brush-section::after,
  .failure-section::before,
  .failure-section::after,
  .service-section::before,
  .closing-section::before,
  .closing-section::after { content: none; display: none; }
  .failure-section { background: var(--ink); clip-path: none; margin-bottom: 0; }

  /* With the brush strips gone, both sides of a boundary have equal breathing
   * room rather than retaining space reserved for an overlapping graphic. */
  .why-coat,
  .problem-section,
  .layers-section,
  .process-section,
  .ai-section,
  .pricing-section,
  .comparison-section,
  .warranty-section,
  .service-section { padding-block: 100px; }
  .fix-banner { padding-block: 100px; }
  .lower-content { margin-top: 0; padding-top: 100px; }
  .reviews-section { padding-bottom: 100px; }
  .faq-section { padding-block: 100px; }

  /* Keep the lava texture within the content grid. A black underlay fills its
   * transparent brush edges, and a side fade joins the surrounding solid colour. */
  .warranty-section { background: #000; isolation: isolate; }
  .warranty-section::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: min(100%, 1440px);
    margin-inline: auto;
    z-index: -1;
    pointer-events: none;
    background: #000 image-set(url('images/warranty-background-2048w.webp') 1x, url('images/warranty-background-3840w.webp') 2x) center / 100% 100% no-repeat;
    -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .closing-section { --closing-floor-top: 517px; min-height: 735px; }
  .closing-copy { padding-top: 100px; }
  .closing-vehicle { top: 355px; }
}
