.siteHeader .menu:focus-visible,
.siteHeader .nav a:focus-visible,
.contactGrid :is(input, select, textarea, button):focus-visible,
.matrixTable:focus-visible {
  outline: 2px solid #005fc8;
  outline-offset: 3px;
}

.productCategoryGrid article {
  min-inline-size: 0;
  overflow: clip;
}

.matrixBlock,
.matrixTable,
.aboutStatement + .culture > div,
.contactGrid > * {
  min-inline-size: 0;
}

.matrixTable {
  max-inline-size: 100%;
}

.contactGrid :is(input, select, textarea) {
  min-block-size: 44px;
  font-size: 1rem;
}

.contactGrid textarea {
  resize: vertical;
}

@media (min-width: 1121px) {
  .compactVisual::before {
    right: 2rem;
    font-size: clamp(1rem, 1.45vw, 1.35rem);
    line-height: 1.35;
    white-space: pre-line;
  }
}

@media (min-width: 1121px) and (max-width: 1280px) {
  .siteHeader .header {
    gap: 1.5rem;
  }

  .siteHeader .nav {
    gap: clamp(0.9rem, 1.5vw, 1.3rem);
  }

  .siteHeader .nav a {
    white-space: nowrap;
  }
}

@media (max-width: 1120px) {
  .siteHeader .utility {
    display: none;
  }

  .siteHeader .header {
    gap: 1rem;
    height: calc(4.25rem + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }

  .siteHeader .header .logoBrand img {
    width: clamp(9rem, 47vw, 13rem);
    height: auto;
  }

  .siteHeader .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd8e9;
    border-radius: 0.5rem;
    background: #fff;
    color: #13385e;
    font-size: 0.9375rem;
    white-space: nowrap;
    cursor: pointer;
  }

  .siteHeader .menu::before {
    content: "";
    width: 1rem;
    height: 0.75rem;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }

  .siteHeader .menu[aria-expanded="true"] {
    border-color: #9ebbe1;
    background: #edf5ff;
  }

  .siteHeader .nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 4.5rem - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 0.5rem max(4vw, 1rem) max(1rem, env(safe-area-inset-bottom, 0px));
    border-bottom: 1px solid #ccd9e8;
    background: #fff;
    box-shadow: 0 12px 24px rgb(18 50 88 / 12%);
  }

  .siteHeader .nav.open {
    display: flex;
  }

  .siteHeader .nav > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    flex: none;
    font-size: 0.9375rem;
  }

  .siteHeader .nav > a:not(.navCta) {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e8eef5;
  }

  .siteHeader .nav > a:not(.navCta)::after {
    content: none;
  }

  .siteHeader .nav .navCta {
    justify-content: center;
    margin-top: 0.75rem;
    box-shadow: none;
  }

  .siteHeader .nav .navCta:hover {
    color: #fff;
  }

  .aboutStatement + .culture {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .matrixTable :is(.matrixHead, .matrixRow) {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 1.15fr) minmax(0, 1.25fr);
    min-width: 0;
  }

  .matrixTable :is(.matrixHead, .matrixRow) > * {
    padding: 0.75rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .compactHero {
    min-height: 0;
    padding-block: clamp(2.75rem, 10vw, 4.5rem) 4.5rem;
  }

  .compactHero h1 {
    max-width: 15em;
    margin-block-end: 1rem;
    font-size: clamp(1.875rem, 7.4vw, 3.25rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .compactHero .heroCopy > p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .compactHero .actions {
    margin-block-start: 1.5rem;
  }

  .compactHero .actions > a {
    min-height: 48px;
    justify-content: center;
  }

  .compactHero::before {
    height: 108px;
  }

  .compactHero::after {
    height: 46px;
  }

  .dynamicInnerHero {
    padding-block: 2.75rem 3.5rem;
  }

  .dynamicInnerHero h1 {
    margin-block-end: 0.75rem;
    font-size: clamp(1.875rem, 7vw, 3rem);
    overflow-wrap: anywhere;
  }

  .dynamicInnerHero > p {
    font-size: 1rem;
  }

  .dynamicInnerHero::after {
    width: 190px;
    height: 55px;
  }

  body:has(.siteHeader) .innerMain {
    padding-block: 2.5rem 3.5rem;
  }

  .contactGrid {
    gap: 1.5rem;
  }

  .contactGrid h2 {
    margin-block: 0 0.75rem;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .contactGrid dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 0.625rem 0.875rem;
    margin-block: 1.25rem 0;
  }

  .contactGrid :is(dt, dd) {
    margin: 0;
    overflow-wrap: anywhere;
  }

  .contactGrid dd {
    font-size: 0.9375rem;
  }

  .contactGrid form {
    padding: clamp(1rem, 5vw, 1.5rem);
  }

  .contactGrid form label {
    min-inline-size: 0;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
  }

  .contactGrid :is(input, select, textarea) {
    border: 1px solid #a8bad2;
    border-radius: 0.375rem;
    padding: 0.65rem 0.75rem;
    background-color: #fff;
  }

  .contactGrid button[type="submit"] {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .matrixBlock {
    padding: clamp(0.875rem, 4vw, 1.5rem);
  }

  .matrixBlock h2 {
    margin-block-end: 1rem;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .matrixTable[data-responsive-labels] {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .matrixTable[data-responsive-labels] .matrixHead {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    min-width: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .matrixTable[data-responsive-labels] .matrixRow {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    margin-block-end: 0.75rem;
    padding: 1rem;
    border: 1px solid #d6e1ef;
    border-radius: 0.5rem;
    background: #fff;
  }

  .matrixTable[data-responsive-labels] .matrixRow > * {
    border: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }

  .matrixTable[data-responsive-labels] .matrixRow > [data-column-label]:not(:first-child) {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.75rem;
    margin-block-start: 0.625rem;
    padding-block-start: 0.625rem;
    border-top: 1px solid #e6edf6;
  }

  .matrixTable[data-responsive-labels] [data-column-label]:not(:first-child)::before {
    content: attr(data-column-label);
    font-size: 0.875rem;
    font-weight: 700;
    color: #254c78;
  }
}

@media (max-width: 600px) {
  .aboutStatement + .culture {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .aboutStatement + .culture > div {
    padding: 1.25rem;
    overflow-wrap: anywhere;
  }

  .aboutStatement h2 {
    font-size: clamp(1.625rem, 7vw, 2.25rem);
  }

  body:has(.siteHeader) :is(.homeBrief, .splitPanel, .homeProof, .compactCase, .compactSupport, .consult) {
    padding-block: 2.75rem;
  }

  body:has(.siteHeader) .consult h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  body:has(.siteHeader) .footerTop {
    gap: 1.5rem;
  }
}
