/* A little movement, with every step readable before and after enhancement. */
.ace-process {
  --process-accent: #ffa167;
  --process-icon-size: 92px;
}
.ace-process .process-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  margin: 30px 0 12px;
  padding: 7px;
  border: 1px solid #90ac8b55;
  border-radius: 50px;
  background: #082c2266;
}
.ace-process .process-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 30px;
  background: transparent;
  color: #f8f3e6;
  font: 500 14px/1.3 Outfit, Arial, sans-serif;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease;
}
.ace-process .process-control > span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}
.ace-process .process-control[aria-pressed="true"] {
  color: #153e2e;
  background: #ffa167;
  box-shadow: 0 3px 17px #071f2340;
}
.ace-process .process-control:hover { background: #f9f2de20; }
.ace-process .process-control[aria-pressed="true"]:hover { background: #ffb481; }
.ace-process .process-control:focus-visible {
  outline: 3px solid #ffcf9a;
  outline-offset: 4px;
}
.ace-process.process-enhanced .steps-grid { margin-top: 38px; }
.ace-process.process-enhanced .steps-grid::before {
  height: 2px;
  background: #82a47755;
  transform-origin: left center;
}
.ace-process.process-enhanced .steps-grid::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 46px;
  left: 46px;
  right: calc(33.333% - 78px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c98151, #ffc59a);
  box-shadow: 0 0 16px #ff9a6655;
  transform: scaleX(var(--process-progress, 0));
  transform-origin: left center;
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
.ace-process.process-enhanced .step::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -7px;
  left: -7px;
  width: calc(var(--process-icon-size) + 14px);
  height: calc(var(--process-icon-size) + 14px);
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #173f31;
  opacity: .8;
  transition: border-color .3s ease, box-shadow .4s ease, background .4s ease;
}
.ace-process.process-enhanced .process-icon {
  position: relative;
  z-index: 1;
  transform-origin: center;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}
.ace-process.process-enhanced .step.is-process-active::before {
  border-color: #efa26c99;
  background: #274c38;
  box-shadow: 0 0 0 7px #f7a2660a, 0 0 35px #efa26c25;
}
.ace-process.process-enhanced .step.is-process-active .process-icon {
  transform: translateY(-4px) scale(1.055);
  filter: drop-shadow(0 5px 11px #fbb17033);
}
.ace-process.process-enhanced .step h3 { transition: color .3s ease; }
.ace-process.process-enhanced .step.is-process-active h3 { color: #ffba87; }
.ace-process.process-entered .steps-grid::before {
  animation: ace-process-draw 1.15s cubic-bezier(.16,.68,.2,1) both;
}
.ace-process.process-entered .process-icon {
  animation: ace-process-arrive .85s cubic-bezier(.16,.68,.2,1) both;
  animation-delay: calc(var(--process-index, 0) * 150ms);
}
@keyframes ace-process-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes ace-process-arrive {
  0% { transform: translateY(16px) scale(.92); filter: drop-shadow(0 0 0 #fbb17000); }
  65% { transform: translateY(-7px) scale(1.06); filter: drop-shadow(0 5px 16px #fbb17055); }
  100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 #fbb17000); }
}

/* Quiet ant trails live only at the edges of the header and footer. */
.ace-ant-interlude {
  position: absolute;
  pointer-events: none;
  user-select: none;
  width: 240px;
  height: 30px;
  overflow: hidden;
}
.ace-ant-header { bottom: 0; left: calc(50% - 40px); opacity: .68; }
.ace-ant-footer { top: 3px; left: 0; width: 100%; height: auto; aspect-ratio: 710 / 680; overflow: visible; opacity: .9; z-index: 2; }
.ace-ant-footer .ace-ant-stage,
.ace-ant-footer .ace-ant-stage > svg { overflow: visible; }
.ace-mascot-spray-path { fill: none; stroke: none; }
.ace-mascot-spray-particle { fill: #dce9cb; filter: drop-shadow(0 0 3px #f4e8bf66); }
.ace-ant-stage { width: 100%; height: 100%; overflow: hidden; }
.ace-ant-stage > svg {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.ace-ant-path { fill: none; stroke: none; }
.ace-ant-body { fill: #262c20; }
.ace-ant-legs,
.ace-ant-antennae {
  fill: none;
  stroke: #262c20;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ace-ant-highlight { fill: #5a6549; }
.ace-ant-footer .ace-ant-body { fill: #e6c38b; }
.ace-ant-footer .ace-ant-legs,
.ace-ant-footer .ace-ant-antennae { stroke: #e6c38b; }
.ace-ant-footer .ace-ant-highlight { fill: #ffdfa5; }
@media (max-width: 1080px) { .ace-ant-header, .ace-ant-footer { display: none; } }
@media (min-width: 1081px) {
  .ace-footer-mascot.ace-mascot-motion:hover img,
  .ace-footer-mascot.ace-mascot-motion:focus-visible img { animation: none; transform: none; }
}

/* The desktop menu has room for full sized, comfortable navigation labels. */
@media (min-width: 1081px) {
  .site-header .desktop-nav { gap: 28px; font-size: 18px; }
  .site-header .desktop-nav > a,
  .site-header .desktop-nav > .nav-dropdown > summary {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.025em;
  }
  .site-header .desktop-nav > .nav-dropdown > summary::after { font-size: 19px; }
  .site-header .nav-home { position: relative; }
  .site-header .nav-home[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--orange);
  }
  .site-header .mega-menu .menu-column > a,
  .site-header .mega-menu .menu-pest,
  .site-header .mega-menu .menu-bottom > a,
  .site-header .mega-menu .menu-feature > a {
    font-size: 15px;
    line-height: 1.4;
  }
  .site-header .mega-menu .menu-column > a { padding-block: 10px; }
  .site-header .menu-pest { gap: 10px; }
  .site-header .menu-bottom { font-size: 13px; }
  .site-header .header-actions .button { font-size: 14px; }
}
@media (min-width: 1081px) and (max-width: 1199px) {
  .site-header .header-inner { gap: 20px; }
  .site-header .desktop-nav { gap: 21px; }
  .site-header .mega-menu .menu-pest { font-size: 15px; }
}
@media (max-width: 900px) {
  .ace-process { --process-icon-size: 70px; }
  .ace-process .process-controls { border-radius: 20px; gap: 4px; padding: 5px; }
  .ace-process .process-control { padding-inline: 13px; font-size: 13px; }
  .ace-process.process-enhanced .steps-grid::after { content: none; }
  .ace-process.process-enhanced .step:not(:last-child)::after {
    transition: background .45s ease, box-shadow .45s ease;
  }
  .ace-process.process-enhanced .step.is-process-complete::after {
    background: #f0a46d;
    box-shadow: 0 0 10px #efaa6944;
  }
}
@media (max-width: 480px) {
  .ace-process { --process-icon-size: 58px; }
  .ace-process .process-controls { width: 100%; justify-content: space-between; border-radius: 15px; }
  .ace-process .process-control { flex: 1; padding: 10px 7px; gap: 5px; font-size: 12px; }
  .ace-process .process-control > span { width: 18px; height: 18px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ace-process .process-control,
  .ace-process.process-enhanced .steps-grid::after,
  .ace-process.process-enhanced .step::before,
  .ace-process.process-enhanced .process-icon,
  .ace-process.process-enhanced .step h3,
  .ace-process.process-enhanced .step::after { transition: none; }
  .ace-process.process-entered .steps-grid::before,
  .ace-process.process-entered .process-icon { animation: none; }
  .ace-process.process-enhanced .step.is-process-active .process-icon { transform: none; }
}

/* Give the original Ace logo and mascot a larger presence in the masthead. */
@media (min-width: 1081px) {
  html { scroll-padding-top: calc(214px + var(--header-offset)); }
  .site-header .header-inner { min-height: 180px; gap: 24px; padding-block: 10px; }
  .site-header .brand img { width: clamp(378px, 30vw, 420px); max-height: none; height: auto; }
  .site-header .desktop-nav { gap: 22px; }
}
@media (min-width: 1081px) and (max-width: 1200px) {
  .site-header .header-inner { gap: 18px; }
  .site-header .brand img { width: clamp(342px, 32vw, 380px); }
  .site-header .desktop-nav { gap: 18px; }
}
@media (min-width: 768px) and (max-width: 1080px) {
  html { scroll-padding-top: calc(148px + var(--header-offset)); }
  .site-header .header-inner { min-height: 132px; padding-block: 10px; }
  .site-header .brand img { width: 270px; max-height: none; height: auto; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: calc(118px + var(--header-offset)); }
  .site-header .header-inner { min-height: 104px; padding-block: 8px; }
  .site-header .brand img { width: clamp(190px, 53.5vw, 224px); max-height: none; height: auto; }
}

/* Larger desktop navigation balances the enlarged Ace masthead. */
@media (min-width: 1081px) {
  .site-header .header-inner { width: calc(100% - 64px); min-height: 146px; gap: 24px; }
  .site-header .brand img { width: clamp(283.5px, 22.5vw, 315px); }
  html { scroll-padding-top: calc(180px + var(--header-offset)); }
  .site-header .desktop-nav { gap: 26px; font-size: 28px; }
  .site-header .desktop-nav > a,
  .site-header .desktop-nav > .nav-dropdown > summary {
    min-height: 60px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.025em;
    gap: 10px;
  }
  .site-header .desktop-nav > .nav-dropdown > summary::after { font-size: 27px; }
  .site-header .nav-home[aria-current="page"]::after { bottom: 2px; height: 3px; }
  .site-header .header-actions .button { min-height: 64px; padding: 17px 27px; font-size: 20px; }
  .site-header .mega-menu { max-height: calc(100dvh - 186px - var(--header-offset)); overflow-y: auto; overscroll-behavior: contain; }
  .site-header .mega-menu .menu-column > a,
  .site-header .mega-menu .menu-pest,
  .site-header .mega-menu .menu-bottom > a,
  .site-header .mega-menu .menu-feature > a { font-size: 18px; }
}
@media (min-width: 1201px) and (max-width: 1399px) {
  .site-header .header-inner { width: calc(100% - 64px); gap: 20px; }
  .site-header .desktop-nav { gap: 20px; font-size: 24px; }
  .site-header .desktop-nav > a,
  .site-header .desktop-nav > .nav-dropdown > summary { font-size: 24px; gap: 8px; }
  .site-header .desktop-nav > .nav-dropdown > summary::after { font-size: 24px; }
  .site-header .header-actions .button { padding-inline: 22px; font-size: 18px; }
}
@media (min-width: 1081px) and (max-width: 1200px) {
  .site-header .header-inner { width: calc(100% - 32px); gap: 12px; }
  .site-header .brand img { width: clamp(256.5px, 24vw, 285px); }
  .site-header .desktop-nav { gap: 12px; font-size: 22px; }
  .site-header .desktop-nav > a,
  .site-header .desktop-nav > .nav-dropdown > summary { font-size: 22px; gap: 7px; }
  .site-header .desktop-nav > .nav-dropdown > summary::after { font-size: 22px; }
  .site-header .header-actions .button { min-height: 58px; padding-inline: 18px; font-size: 17px; }
}
