/* Performance boost layer: safe, subtle, and design-preserving */
:root {
  --rd-fast-ease: cubic-bezier(.22, .61, .36, 1);
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
}

img {
  image-rendering: auto;
  backface-visibility: hidden;
}

video {
  object-fit: cover;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

/* Stable video rendering: prevents Chrome/mobile flicker during scroll. */
.hero-video,
.mid-gap-video {
  transform: none !important;
  filter: none !important;
  will-change: auto !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

.hero-video-wrap,
.mid-gap-video-wrap {
  isolation: isolate;
  contain: paint;
}

button,
a,
.card,
.card-link,
.diamond-loop-card,
.product-image-card,
.info-box,
.process-box,
.founder-card,
.important-buyer-note,
.address-section,
.request-price-btn,
.quote-action,
.hero-buttons a,
.cta-row a {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover,
  .card-link:hover,
  .diamond-loop-card:hover,
  .product-image-card:hover,
  .info-box:hover,
  .process-box:hover,
  .founder-card:hover,
  .important-buyer-note:hover,
  .address-section:hover,
  .request-price-btn:hover,
  .quote-action:hover,
  .hero-buttons a:hover,
  .cta-row a:hover,
  button:hover {
    will-change: transform;
  }
}

@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }

  a,
  button,
  .card,
  .card-link,
  .diamond-loop-card,
  .product-image-card,
  .info-box,
  .process-box,
  .founder-card,
  .important-buyer-note,
  .address-section,
  .request-price-btn,
  .quote-action,
  .hero-buttons a,
  .cta-row a {
    transition-duration: 220ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}
