.stitched-menu-toggle,
.stitched-menu-toggle[hidden],
.stitched-highlights [hidden] {
  display: none;
}

#navigation li:focus-within > ul {
  visibility: visible;
}

#header img,
#content .entry img,
#content .entry video {
  max-width: 100%;
  height: auto;
}

#content .entry {
  overflow-wrap: break-word;
}

#content .entry pre {
  max-width: 100%;
  overflow: auto;
}

.stitched-home-services {
  --stitched-ink: #26363c;
  --stitched-blue: #225674;
  --stitched-line: #cbdce3;
  color: var(--stitched-ink);
  margin: 0 auto clamp(2.5rem, 6vw, 5rem);
}

.stitched-home-services h2 {
  color: var(--stitched-blue);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1.15rem;
}

.stitched-home-services a {
  color: var(--stitched-blue);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.stitched-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stitched-service-grid article {
  background: #f8faf9;
  border: 1px solid var(--stitched-line);
  border-top: 4px solid #81adbf;
  border-radius: .4rem;
  padding: clamp(1rem, 2.5vw, 1.65rem);
}

.stitched-service-grid h3 {
  font-size: 1.16rem;
  line-height: 1.3;
  margin: 0 0 .55rem;
}

.stitched-service-grid p {
  margin: 0;
}

.stitched-experience {
  border-top: 1px solid var(--stitched-line);
  margin: 2rem 0;
  padding-top: 1.5rem;
}

.stitched-experience p {
  margin-bottom: .85rem;
}

.stitched-highlights {
  background: #29383e;
  border-bottom: 4px solid #81adbf;
  border-radius: .4rem;
  color: #fff;
  padding: clamp(1rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
}

.stitched-highlights p {
  color: inherit;
  font: 700 clamp(1.05rem, 2.6vw, 1.45rem)/1.3 Montserrat, sans-serif;
  margin: .25rem 0;
}

.stitched-highlight-controls {
  display: flex;
  gap: .5rem;
}

.stitched-highlight-controls button,
#header .stitched-menu-toggle {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: .3rem;
  color: inherit;
  cursor: pointer;
  font: 700 .95rem/1 Montserrat, sans-serif;
  min-height: 44px;
  padding: .5rem .7rem;
}

.stitched-highlight-controls button:focus-visible,
.stitched-menu-toggle:focus-visible,
#navigation a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .stitched-highlights p:not([hidden]) {
    animation: stitched-highlight-in .35s ease-out;
  }
  @keyframes stitched-highlight-in {
    from { opacity: 0; transform: translateY(.3rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  #header .header-inner {
    position: relative;
  }

  #header .stitched-menu-toggle:not([hidden]) {
    display: block;
    position: absolute;
    inset: .5rem 0 auto auto;
    z-index: 2;
    color: #225674;
  }

  #header #logo {
    max-width: calc(100% - 5.5rem);
  }

  #header #navigation {
    position: relative;
    inset: auto;
    float: none;
    clear: both;
    width: 100%;
    margin: 0;
    padding: .5rem 0 0;
    background: transparent;
    transform: none;
  }

  #header .stitched-menu-toggle[aria-expanded="false"]:not([hidden]) ~ #navigation,
  #header #navigation .nav-home,
  #header #navigation .nav-close,
  #header #navigation .menus h3 {
    display: none;
  }

  #header #navigation ul.nav li {
    float: none;
  }

  #header #navigation ul.nav ul {
    position: static;
    visibility: visible;
    width: auto;
    margin: 0 0 0 .9rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #header #navigation ul.nav li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: .45rem .8rem;
    color: #225674;
    border: 0;
  }

  #header #navigation ul.nav > li > a::before,
  #header #navigation ul.nav li > a::after {
    display: none !important;
  }

  #content .introduction {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: -2.618em -1em 2.5rem;
    padding: clamp(1.6rem, 5vw, 3.2rem) 1.4rem;
    text-align: left;
  }

  #content .introduction img {
    position: static;
    flex: none;
    width: clamp(6rem, 21vw, 10rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0;
    box-shadow: 0 0 0 .55rem rgba(255,255,255,.07);
  }

  #content .introduction h1 {
    max-width: 31rem;
    margin: 0;
    font-size: clamp(1.3rem, 4vw, 2.1rem);
    overflow-wrap: anywhere;
  }

  #content .introduction h1 span {
    background: transparent;
    box-shadow: none;
    padding: 0;
    line-height: 1.4;
  }
}

@media (max-width: 650px) {
  #content .introduction {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .stitched-service-grid {
    grid-template-columns: 1fr;
  }

  #content .hentry .post-meta-author {
    max-width: 100%;
    margin-left: 0;
    box-sizing: border-box;
  }

  #content .hentry .post-meta-author::before,
  #content .hentry .post-meta-author::after {
    display: none;
  }
}
