/* Shared page-masthead treatment. Content starts visible so pages remain usable
   before the optional motion layer is ready. */
.lp-header-variant,
.lp-header-variant * {
  opacity: 1;
}

.lp-editorial-header {
  position: relative;
  overflow: hidden;
  padding: clamp(124px, 13vw, 190px) 0 clamp(52px, 6vw, 88px) !important;
  background: #4d4052;
  color: var(--color-white);
}

.lp-editorial-header::before {
  position: absolute;
  inset: auto -7% -45% auto;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgb(227 212 240 / 34%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.lp-editorial-header .post-container {
  position: relative;
  z-index: 1;
}

.lp-editorial-header__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: end;
}

.lp-editorial-header .section-label {
  margin: 0 0 24px;
  background: var(--color-orchid);
  color: var(--color-ink);
}

.lp-editorial-header .section-label::before {
  background: currentColor;
}

.lp-editorial-header h1 {
  max-width: 740px;
  margin: 0;
  color: inherit;
  font-size: var(--type-hero);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.blog-index-page .lp-editorial-header h1 + p {
  max-width: 540px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.lp-editorial-header__image {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 1px 1px 32px 1px;
  box-shadow: 18px 18px 0 rgb(227 212 240 / 92%);
}

.lp-editorial-header__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(0.72) contrast(1.04);
}

.blog-index-page .lp-editorial-header__feature {
  display: block;
  max-width: 620px;
  margin: 0;
}

.blog-index-page .lp-editorial-header__feature .blog-index-feature {
  --card-background: var(--color-white);
}

.blog-index-feature-section {
  padding: clamp(38px, 5vw, 68px) 0 clamp(12px, 2vw, 28px);
  background: var(--color-bone);
}

/* Photography and the same forest wash as the service headers. */
.lp-tools-header {
  position: relative;
  display: block;
  isolation: isolate;
  max-width: none;
  margin: 0 0 clamp(44px, 6vw, 76px) !important;
  padding: clamp(36px, 5vw, 76px);
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--color-plum-deep);
  color: var(--color-bone);
}
.lp-tools-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #2c232ef5 0%, #2c232ee6 42%, #2c232e70 100%),
    url("/assets/localpixel/editorial/working-together.webp") 70% center / cover;
}
.lp-tools-header__copy {
  position: relative;
  max-width: 690px;
}
.lp-tools-header .tool-kicker {
  width: fit-content;
  margin-bottom: var(--space-5, 24px);
  background: transparent;
  color: var(--color-orchid);
}
.lp-tools-header h1 {
  max-width: 15ch;
  color: var(--color-bone);
}
.lp-tools-header .tool-deck {
  color: var(--color-on-plum);
  max-width: 540px;
}
.lp-tools-header .tool-note {
  color: var(--color-on-plum-muted);
  max-width: 470px;
}

@media (max-width: 800px) {
  .lp-editorial-header {
    padding-top: 122px !important;
  }

  .lp-editorial-header__intro,
  .lp-tools-header {
    grid-template-columns: 1fr;
  }

  .lp-editorial-header__intro {
    gap: 34px;
  }
  .lp-editorial-header__image {
    min-height: 230px;
    max-width: 540px;
  }
  .blog-index-page .lp-editorial-header__feature {
    max-width: none;
  }
  .lp-tools-header {
    gap: 28px;
    padding: 28px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 520px) {
  .lp-editorial-header {
    padding-bottom: 48px !important;
  }
  .lp-editorial-header h1 {
    font-size: var(--type-hero);
  }
  .lp-editorial-header__image {
    min-height: 205px;
    box-shadow: 12px 12px 0 rgb(227 212 240 / 92%);
  }
  .lp-tools-header {
    padding: 34px 24px;
  }
  .lp-tools-header::before {
    background:
      linear-gradient(#2c232edc, #2c232eed),
      url("/assets/localpixel/editorial/working-together.webp") 60% center/cover;
  }
}

/* Full-width tools masthead, continuous behind the navigation. */
.tool-page .lp-tools-header {
  width: 100%;
  min-height: 680px;
  margin: 0 !important;
  border-radius: 0;
  padding: 180px max(var(--gutter, 24px), calc((100% - 1344px) / 2)) 88px;
  display: flex;
  align-items: center;
}
.tool-page .lp-tools-header h1 {
  font-size: var(--type-hero);
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin: 24px 0;
}
.tool-page .lp-tools-header .tool-deck {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.5;
}
.tool-page .tool-catalog-content {
  padding-top: 72px;
}
@media (min-width: 1025px) {
  .tool-page:has(.lp-tools-header)
    .site-header:not(.has-scrolled):not(.menu-open)
    .brand-mark {
    filter: brightness(0) invert(1);
  }
}
@media (max-width: 640px) {
  .tool-page .lp-tools-header {
    min-height: 600px;
    padding: 145px 24px 64px;
  }
  .tool-page .tool-catalog-content {
    padding-top: 40px;
  }
}
/* Uniform brand tint: no directional gradient. */
.tool-page .lp-tools-header::before {
  background:
    linear-gradient(#2a1e31d9, #2a1e31d9),
    url("/assets/localpixel/editorial/working-together.webp") 70% center / cover;
}
.tool-page .lp-tools-header::after {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(
    circle,
    var(--color-orchid) 1px,
    transparent 1px
  );
  background-size: 48px 48px;
}
@media (max-width: 640px) {
  .tool-page .lp-tools-header::before {
    background-position:
      center,
      60% center;
  }
}

/* Insights uses the same photographic opening with a quieter editorial crop. */
.blog-index-page .lp-editorial-header {
  isolation: isolate;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 180px 0 88px !important;
  background: var(--color-plum);
}
.blog-index-page .lp-editorial-header::before {
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  z-index: -2;
  background:
    linear-gradient(var(--color-plum-wash), var(--color-plum-wash)),
    url("/assets/localpixel/editorial/insights-notes.webp") center/cover;
}
.blog-index-page .lp-editorial-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.1;
  background-image: radial-gradient(circle, var(--color-orchid) 1px, transparent 1px);
  background-size: 64px 64px;
}
.blog-index-page .lp-editorial-header .post-container {
  width: 100%;
}
.blog-index-page .lp-editorial-header__intro {
  display: block;
}
.blog-index-page .lp-editorial-header__image {
  display: none;
}
.blog-index-page .lp-editorial-header h1 {
  max-width: 15ch;
  font-size: var(--type-hero);
  line-height: 1.04;
}
.blog-index-page .lp-editorial-header .section-label {
  background: transparent;
  color: var(--color-orchid);
  padding-left: 0;
}
.blog-index-page .lp-editorial-header h1 + p {
  line-height: 1.5;
  color: var(--color-on-plum);
}
@media (min-width: 1025px) {
  .blog-index-page .site-header:not(.has-scrolled):not(.menu-open) .brand-mark {
    filter: brightness(0) invert(1);
  }
}
@media (max-width: 640px) {
  .blog-index-page .lp-editorial-header {
    min-height: 590px;
    padding: 145px 0 64px !important;
  }
  .blog-index-page .lp-editorial-header::before {
    background-position:
      center,
      62% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-header-variant,
  .lp-header-variant * {
    transition: none !important;
    animation: none !important;
  }
}
