/* Experiment-only responsive image delivery.
   Layout, timing, opacity, transforms, and rootMargin remain unchanged. */

@media (max-width: 767px) {
  .driveView {
    background-image:
      linear-gradient(#06110e52, #06110e52),
        image-set(
          url("./images/japanese-city-road-960.webp") 1x type("image/webp"),
          url("./images/japanese-city-road-1440.webp") 2x type("image/webp")
        ) !important;
  }

  .walkView {
    background-image:
      linear-gradient(#031b1640, #031b1640),
      image-set(
        url("./images/treasure-lane-1024.webp") 1x type("image/webp"),
        url("./images/treasure-lane-1440.webp") 2x type("image/webp")
      ) !important;
  }

  .requestLetterArtwork {
    background-image: image-set(
      url("./images/request-letter-cutout-1024.webp") 1x type("image/webp"),
      url("./images/request-letter-cutout-1440.webp") 2x type("image/webp")
    );
  }

  .requestLetterPaper {
    background-image: image-set(
      url("./images/request-letter-clean-body-overlay-1024.webp") 1x type("image/webp"),
      url("./images/request-letter-clean-body-overlay-1440.webp") 2x type("image/webp")
    );
  }

  .requestLetterArtwork::after {
    -webkit-mask-image: image-set(
      url("./images/request-letter-cutout-1024.webp") 1x type("image/webp"),
      url("./images/request-letter-cutout-1440.webp") 2x type("image/webp")
    );
    mask-image: image-set(
      url("./images/request-letter-cutout-1024.webp") 1x type("image/webp"),
      url("./images/request-letter-cutout-1440.webp") 2x type("image/webp")
    );
  }
}

@media (min-width: 768px) and (max-width: 1440px) {
  .requestLetterArtwork {
    background-image: url("./images/request-letter-cutout-1440.webp");
  }

  .requestLetterPaper {
    background-image: url("./images/request-letter-clean-body-overlay-1440.webp");
  }

  .requestLetterArtwork::after {
    -webkit-mask-image: url("./images/request-letter-cutout-1440.webp");
    mask-image: url("./images/request-letter-cutout-1440.webp");
  }
}

/* Experiment-only supplied magnifier logo.
   Keep the existing wrapper widths, margins, and responsive rules; only
   swap the artwork and use its native transparent aspect ratio. */
.walkBrand .heroBrandLockup {
  aspect-ratio: 1043 / 643 !important;
}

.walkBrand .heroBrandLockup::before {
  background-image: url("./images/sagasu-logo-magnifier-cropped.png") !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.footerLogo {
  aspect-ratio: 1043 / 643 !important;
}

.footerLogo::before {
  background-image: url("./images/sagasu-logo-magnifier-cropped.png") !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  -webkit-mask: none !important;
  mask: none !important;
  filter: brightness(0) !important;
}

/* Keep the footer logo anchored in place while reducing only its display size. */
@media (min-width: 701px) {
  .footerLogo {
    width: 142.8px !important;
  }
}

@media (max-width: 700px) {
  .footerLogo {
    width: 117.3px !important;
  }
}

/* Align the first visible S to the footer container at every responsive width.
   The active cropped logo has about 1.15% transparent space on its left edge. */
.footerLogo {
  transform: translateX(-1.15%) !important;
}

/* FAQ contact email: keep the existing copy styling while ensuring the
   clickable address stays on its own line and remains inside narrow screens. */
.faqGrid > div:first-child > p:last-child .faqContactEmail {
  display: block;
  margin-top: 0.75em;
  font-size: 0.9em;
  line-height: 1.6;
  color: #111;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

/* Keep the requested second sentence line intact instead of splitting the
   final word at narrow desktop/tablet grid widths. */
.faqGrid > div:first-child > p:last-child > span:nth-of-type(2) {
  display: inline-block;
  white-space: nowrap;
}

@media (min-width: 701px) {
  .faqGrid > div:first-child > p:last-child {
    min-width: 240px;
  }
}
