:root {
  --grove-height: 19rem;
  --grove-shade: linear-gradient(rgb(var(--grove-rgb) / .88), rgb(var(--grove-rgb) / .58) 52px, transparent 106px),
    linear-gradient(90deg, var(--grove-tone) 20%, rgb(var(--grove-rgb) / .80) max(38%, 25rem),
      rgb(var(--grove-rgb) / .62) max(53%, 36rem), rgb(var(--grove-rgb) / .12) max(69%, 42rem),
      transparent max(82%, 46rem));
}
#first-screen { position: relative; }
.g-header { position: absolute; inset: 0 0 auto; background: transparent; border: 0; color: var(--cream); pointer-events: none; }
.g-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -72px;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgb(var(--grove-rgb) / .98), rgb(var(--grove-rgb) / .94) 20%,
    rgb(var(--grove-rgb) / .78) 39%, rgb(var(--grove-rgb) / .43) 60%,
    rgb(var(--grove-rgb) / .13) 82%, rgb(var(--grove-rgb) / 0));
}
.header-inner { justify-content: flex-end; min-height: 45px; }
.wp-site-blocks .g-header .header-inner { padding-top: 7px; }
.wp-site-blocks .g-header::before { content: none; }
.g-header nav, .g-mobile { pointer-events: auto; }
.g-header :focus-visible { outline-color: var(--gold); }
.hero-inner {
  min-height: var(--grove-height);
  padding-block: 56px 30px;
  text-shadow: 0 0 1px var(--forest), 0 1px 1px var(--forest), 0 0 4px var(--forest);
}
.hero::after { background: var(--grove-shade); }
.grove-picture {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 26%;
  display: block;
  pointer-events: none;
}
.grove-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.grove-picture--services { inset: 0; }
.grove-picture--services img { object-position: 68% 42%; }
.hero-copy {
  display: grid;
  grid-template-columns: clamp(225px, 21vw, 310px) minmax(0, 365px);
  column-gap: clamp(30px, 3.2vw, 52px);
  align-items: center;
  max-width: 100%;
}
.hero-copy h1 { grid-row: span 2; line-height: 0; }
.hero-copy h1 img { display: block; width: 100%; height: auto; }
.hero-logo { position: relative; }
.hero-logo::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 61%;
  background: url("assets/logo-on-forest.webp") center top / 100% auto no-repeat;
  filter: var(--grove-mark-glow);
  opacity: 0;
  pointer-events: none;
}
.hero-copy p { margin: 0; font-size: 1rem; align-self: end; }
.hero-actions { margin-top: 6px; align-self: start; gap: 0 20px; }
.hero-copy .hero-actions { gap: 8px; }
.hero-actions a:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  font-size: .9rem;
  text-decoration-color: rgb(251 248 234 / .55);
  text-underline-offset: .25em;
}
.hero-actions a:not(.button) span { color: var(--gold); }
.hero-actions a:not(.button):is(:hover, :focus-visible) { text-decoration-color: currentColor; }

.homepage-introduction .hero-intro { align-self: end; }
.homepage-introduction .hero-intro h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.homepage-introduction .hero-intro h2 span { white-space: nowrap; }
.homepage-introduction .hero-intro p { margin-top: .4rem; }
.homepage-introduction .hero-actions { margin-top: 12px; }
.hero .button.primary {
  background: #f5dfab;
  color: var(--forest);
  text-shadow: none;
}
.hero .button.primary:hover { background: #fff1c9; }
.grove-picture--hero { inset-inline-start: 21%; }
.grove-picture--hero img {
  object-position: center 71%;
  filter: saturate(1.08);
}
@media (width > 740px) {
  .grove-picture--hero {
    /* Feather the inset edge while keeping the trail and image framing. */
    mask-image: linear-gradient(to right, transparent, rgb(0 0 0 / .15) 7%,
      rgb(0 0 0 / .54) 14%, rgb(0 0 0 / .86) 21%, #000 28%);
  }
}

#people-title, .independent-heading { text-align: center; }
.services-catalog-link { text-decoration: none; }
.services-catalog-link:is(:hover, :focus-visible) { color: var(--gold); }
.services-copy a:is(:hover, :focus-visible, :active) { color: var(--gold); text-decoration-thickness: 2px; }
.service-list a[id] { scroll-margin-top: 1rem; }
.service-list a:is(:hover, :target) { background: rgb(251 248 234 / .065); }
.service-list a:is(:hover, :focus-visible) .service-label { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-logo:hover::after { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-logo::after { transition: opacity 180ms ease-out; }
  .services-catalog-link { transition: color 180ms ease-out; }
  .service-list a { transition: background-color 180ms ease-out; }
}
@media (max-width: 740px) {
  :root {
    --grove-shade: linear-gradient(rgb(var(--grove-rgb) / .90), rgb(var(--grove-rgb) / .58) 52px, transparent 104px),
      linear-gradient(90deg, rgb(var(--grove-rgb) / .97), rgb(var(--grove-rgb) / .91) 28%,
        rgb(var(--grove-rgb) / .64) 49%, rgb(var(--grove-rgb) / .18) 76%, rgb(var(--grove-rgb) / .08));
  }
  .header-inner { min-height: 44px; }
  .hero-inner { padding-block: 54px 15px; }
  .hero-copy { display: block; }
  .hero-logo { width: min(49vw, 204px); }
  .hero-copy p { max-width: 42ch; margin-top: 12px; font-size: .94rem; }
  .hero-actions { margin-top: 5px; gap: 0 10px; }
  .grove-picture { inset: 0; }
  .homepage-introduction .hero-intro { margin-top: 12px; }
  .homepage-introduction .hero-intro h2 { text-wrap: wrap; }
  .homepage-introduction .hero-intro p { margin-top: 5px; }
  .grove-picture--hero img { object-position: 7% center; }
}

@media (max-width: 350px) {
  .homepage-introduction .hero-intro h2 { max-width: 10em; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.home-page) { scroll-behavior: smooth; }
}
