.compact-service-menu {
  display: none;
}

/* Let the whole dialog scroll when the services accordion is expanded. */
@media (max-width: 900px),
       (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .nav-dialog {
    box-sizing: border-box;
    inline-size: 100%;
    block-size: 100vh;
    block-size: 100dvh;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-text-size-adjust: 100%;
  }

  .nav-dialog > .nav-top,
  .nav-dialog > .nav-bottom {
    flex: none;
  }

  .nav-dialog > .nav-top {
    position: static;
  }

  .nav-dialog > .nav-layout {
    flex: 1 0 auto;
    display: block;
    min-inline-size: 0;
    padding: 0 0 24px;
  }

  .nav-dialog .nav-feature,
  .nav-dialog .nav-top .mini-label,
  .nav-dialog .main-nav > a.service-overview-link,
  .nav-dialog .main-nav .nav-number {
    display: none;
  }

  .nav-dialog .main-nav > a.nav-link:not(.service-overview-link) {
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 4px;
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    letter-spacing: -.035em;
    transform: none;
  }

  .nav-dialog .compact-service-menu {
    display: block;
    border-bottom: 1px solid #1e292326;
  }

  .nav-dialog .compact-service-menu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px 10px 4px;
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -.035em;
    list-style: none;
    cursor: pointer;
  }

  .nav-dialog .compact-service-menu summary::-webkit-details-marker {
    display: none;
  }

  .nav-dialog .compact-service-menu summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
  }

  .nav-dialog .compact-service-menu[open] summary::after {
    transform: translateY(2px) rotate(225deg);
  }

  .nav-dialog .compact-service-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr));
    gap: 0 12px;
    padding: 0 4px 12px;
  }

  .nav-dialog .main-nav .compact-service-links > a {
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 8px 0;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    transform: none;
  }

  .nav-dialog .main-nav .compact-service-links svg {
    flex: none;
    width: 20px;
    height: 20px;
  }
}

/* Safari can composite the video independently of the text blend layer. */
@supports (-webkit-touch-callout: none) or (font: -apple-system-body) {
  .hero-intro-flow.has-feather-hero .hero.hero-stage h1.hero-claim {
    color: #505969;
    -webkit-text-fill-color: currentColor;
    mix-blend-mode: normal;
  }
}

@media (max-width: 600px),
       (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .is-home .site-header {
    transition-property: background;
  }

  .hero-intro-flow .hero.hero-stage {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
  }

  .hero-intro-flow .hero-stage-inner {
    display: grid;
    place-items: center;
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 76px 10px;
  }

  .hero-intro-flow .hero.hero-stage h1.hero-claim {
    position: relative;
    z-index: 1;
    max-width: 100%;
    font-size: min(17vw, 9.5vh);
    font-size: min(17vw, 9.5svh);
    line-height: .99;
    text-align: center;
  }

  .hero-intro-flow.has-feather-hero .hero.hero-stage h1.hero-claim {
    color: #505969;
    -webkit-text-fill-color: currentColor;
    mix-blend-mode: normal;
  }

  .hero-stage .claim-line {
    transform: none;
  }

  .hero-stage .claim-brand-half {
    display: inline;
  }

  .hero-stage .hero-mobile-parrot {
    inset: auto auto max(12px, env(safe-area-inset-bottom)) 54%;
    z-index: 2;
    width: min(80vw, 400px);
    height: min(31vh, 300px);
    height: min(31svh, 300px);
  }

  .hero-intro-flow .hero-baseline {
    inset: auto 20px max(20px, env(safe-area-inset-bottom)) auto;
    z-index: 3;
    width: auto;
  }

  .hero-intro-flow .hero-baseline > .feather-motion-toggle,
  .hero-intro-flow .shared-backdrop-media > video {
    display: none;
  }

  .hero-intro-flow .shared-backdrop-media {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .is-home .site-header:not(.scrolled) :is(.header-brand, .header-logo-color) {
    width: 78px;
    height: 63px;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .hero-intro-flow .hero.hero-stage h1.hero-claim {
    inset-block-start: -36px;
    inset-block-start: clamp(-64px, -7svh, -32px);
  }
}

@media (max-width: 600px) and (min-height: 740px) and (orientation: portrait) {
  .hero-stage .hero-mobile-parrot {
    left: 52.5%;
    bottom: max(20px, env(safe-area-inset-bottom));
    width: min(88vw, 424px);
    height: min(34svh, 324px);
  }
}

@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .hero-intro-flow .hero-stage-inner {
    padding-block: 74px 64px;
  }

  .hero-intro-flow .hero.hero-stage h1.hero-claim {
    font-size: clamp(24px, calc((100vh - 144px) / 4.1), 68px);
    font-size: clamp(24px, calc((100svh - 144px) / 4.1), 68px);
  }

  .hero-stage .hero-mobile-parrot {
    display: none;
  }
}

@media (max-width: 650px) {
  .team-metrics {
    padding-block: 26px 34px;
  }

  .team-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    max-width: 480px;
  }

  .team-facts > div {
    grid-template-columns: 2.5rem 4.35rem minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e1e9e3;
    border-radius: 14px;
    background: #f5f8f4;
  }

  .team-facts > div:nth-child(2) { background: #f0f7f6; }
  .team-facts > div:nth-child(3) { background: #f5f7ec; }

  .team-fact-icon {
    width: 100%;
  }

  .team-fact-icon::before {
    background: conic-gradient(
      #289cc4,
      #34bdcb calc(var(--counter-sweep) * .24),
      #69c894 calc(var(--counter-sweep) * .52),
      #a9c934 var(--counter-sweep),
      #dce5d1 var(--counter-sweep)
    );
  }

  .team-facts strong {
    margin: 0;
    font-size: 2rem;
    color: #505969;
  }

  .team-facts .fact-caption {
    grid-column: 3;
    gap: 1px;
    line-height: 1.4;
  }

  .team-facts .fact-caption b { font-size: .875rem; }
  .team-facts .fact-caption small { font-size: .75rem; }
}

@media (max-width: 700px) {
  .footer-refresh .footer-inner {
    padding-block: 26px max(28px, env(safe-area-inset-bottom));
    text-align: center;
  }

  .footer-refresh :is(.footer-brand-row, .footer-brand-block) {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-refresh .footer-brand-row {
    gap: 14px;
    padding-bottom: 18px;
  }

  .footer-refresh .footer-brand-block p { font-size: .75rem; line-height: 1.5; }

  .footer-refresh .footer-info-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .footer-refresh .footer-info {
    padding: 18px 0;
    border-bottom: 1px solid #dce2df;
  }

  .footer-refresh .footer-info h3 {
    justify-content: center;
    margin: 0 0 8px;
    font-size: .9375rem;
  }

  .footer-refresh :is(.footer-location, .footer-contact) h3,
  .footer-refresh .footer-contact-links small,
  .footer-refresh .footer-explore {
    display: none;
  }

  .footer-refresh .footer-heading-icon {
    width: 30px;
    height: 30px;
  }

  .footer-refresh .footer-location p {
    line-height: 1.55;
  }

  .footer-refresh .footer-location p > span {
    display: inline;
  }

  .footer-refresh .footer-location p > span + span::before {
    content: " · ";
  }

  .footer-refresh .footer-route {
    min-height: 44px;
    margin-top: 2px;
  }

  .footer-refresh .footer-contact-links {
    width: min(100%, 22rem);
    margin-inline: auto;
    gap: 8px;
  }

  .footer-refresh .footer-contact-links > a {
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 8px 14px;
    border: 1px solid #c8d7ce;
    border-radius: 999px;
    background: #fff;
    color: #2f4246;
    font-size: .9375rem;
    font-weight: 650;
  }

  .footer-refresh .footer-contact-links > a[href^="tel:"] {
    background: var(--lime, #c5da44);
    border-color: transparent;
  }

  .footer-refresh .footer-contact-links > a:hover {
    border-color: #708840;
    color: #26363a;
  }

  .footer-refresh .footer-contact-links > a:focus-visible {
    outline: 2px solid #637f35;
    outline-offset: 3px;
  }

  .footer-refresh .footer-contact-icon {
    width: 20px;
    height: 20px;
    border: 0;
    background: none;
    color: currentColor;
  }

  .footer-refresh .footer-social {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 22rem);
    margin-inline: auto;
    gap: 6px;
  }

  .footer-refresh .footer-social > a {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 3px;
    min-height: 54px;
    font-size: .75rem;
  }

  .footer-refresh .footer-social > a > .arrow {
    display: none;
  }

  .footer-refresh .footer-base {
    align-items: center;
    gap: 3px;
    padding-top: 8px;
    border-top: 0;
  }

  .footer-refresh .footer-legal {
    justify-content: center;
    order: -1;
    gap: 0 12px;
  }

  .footer-refresh .footer-legal :is(a, button) {
    font-size: .75rem;
  }

  .scroll-top:not(.is-visible),
  .footer-in-view :is(.scroll-top, .chat-activate):not(:focus) {
    visibility: hidden;
    transition: none;
  }

  .footer-in-view [data-chatbot-host]:not(:focus-within) {
    display: none;
  }
}

@media (forced-colors: active) {
  .hero-intro-flow.has-feather-hero .hero.hero-stage h1.hero-claim {
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
    mix-blend-mode: normal;
  }
}
