/* Runtime rendering optimizations. Loaded after each page bundle. */
html {
  scroll-behavior: auto !important;
}

.site-header {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* These color grades are baked into the supplied WebP assets closely enough
   that live GPU filters only add repaint cost while scrolling. */
img,
.map-frame iframe {
  filter: none !important;
}

.hero-media {
  animation: none !important;
  object-position: 56% center;
}

/* Client-approved focal points for the new team photography. */
.intro-photo img {
  object-position: 56% center;
}

.team-photo img {
  object-position: 56% 32% !important;
}

.person-photo img[alt^="William Leonardo Kesuma"],
.portrait-frame img[alt^="William Leonardo Kesuma"],
.person-photo img[alt^="Rifqi Ananda Gelora Sitompul"],
.portrait-frame img[alt^="Rifqi Ananda Gelora Sitompul"] {
  object-position: center 12% !important;
}

/* Long-form legal copy is intentionally set flush left and right. */
.practice-copy p,
.practice-content p,
.tab-panel p {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
}

.practice-photo img,
.detail-photo img {
  transition-property: transform !important;
}

/* Use a pre-rendered white/transparent pattern instead of recoloring and
   blending a full-size bitmap on every frame. */
.hero::after,
.about-hero::before,
.quote-section::before,
.practice-section::before,
.team-hero::before,
.contact-hero::before,
.portrait-field::before,
footer::before {
  background-image: url("../pattern-exactus-light-v2.webp") !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

@media (max-width: 780px) {
  .site-header {
    will-change: transform;
  }

  .hero-media,
  .intro-photo img {
    object-position: 54% center;
  }

  .team-photo img {
    object-position: 54% center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
