header > a,
header > div:first-child {
  min-height: 44px;
}

@media (max-width: 1100px) {
  header.menu-open {
    max-height: 100dvh;
    overflow-y: auto;
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  section[style*="display:grid"],
  section[style*="display: grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 40px !important;
  }

  section[style*="padding"] {
    padding-right: 40px !important;
    padding-left: 40px !important;
  }

  section h1 {
    max-width: 720px;
    font-size: clamp(44px, 6.5vw, 52px) !important;
  }

  section h2 {
    font-size: clamp(34px, 5vw, 40px) !important;
  }
}

@media (max-width: 760px) {
  header > a,
  header > div:first-child {
    flex: 0 1 auto;
  }

  header > a {
    min-height: 44px;
  }

  header > a.site-brand span.site-brand__name {
    font-size: 24px !important;
    letter-spacing: 0.14em !important;
  }

  header > a.site-brand span.site-brand__descriptor {
    font-size: 8px !important;
    letter-spacing: 0.12em !important;
  }

  header .site-brand__mark {
    width: 36px;
    height: 36px;
  }

  header nav a {
    justify-content: flex-start;
  }

  section [style*="font-size:18px"],
  section [style*="font-size: 18px"],
  section [style*="font-size:17px"],
  section [style*="font-size: 17px"] {
    font-size: 16px !important;
  }

  section a[style*="letter-spacing"] {
    min-height: 48px;
    padding-right: 20px !important;
    padding-left: 20px !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .team-card {
    max-width: min(340px, 100%);
  }

  .team-portrait-role {
    right: 16px;
    left: 16px;
    font-size: 10px;
    letter-spacing: 2px;
  }
}

@media (max-width: 360px) {
  header {
    gap: 8px !important;
    padding: 12px 14px !important;
  }

  header > a,
  header > div:first-child {
    gap: 7px !important;
  }

  header > a span:first-child,
  header > div:first-child span:first-child {
    font-size: 22px !important;
    letter-spacing: 3px !important;
  }

  header > a span:last-child,
  header > div:first-child span:last-child {
    font-size: 8px !important;
    letter-spacing: 2px !important;
  }

  header > a.site-brand span.site-brand__name {
    font-size: 22px !important;
    letter-spacing: 0.14em !important;
  }

  header > a.site-brand span.site-brand__descriptor {
    font-size: 7px !important;
    letter-spacing: 0.1em !important;
  }

  header .site-brand__mark {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    flex: 0 0 auto;
    min-width: 68px;
    padding: 10px 11px;
    letter-spacing: 1.5px;
  }

  section,
  section[style] {
    padding: 56px 16px !important;
  }

  section h1 {
    font-size: clamp(30px, 10.5vw, 36px) !important;
    line-height: 1.12 !important;
  }

  section h2 {
    font-size: clamp(27px, 8.5vw, 32px) !important;
  }

  section [style*="letter-spacing: 3px"],
  section [style*="letter-spacing:3px"],
  section [style*="letter-spacing: 4px"],
  section [style*="letter-spacing:4px"],
  section [style*="letter-spacing: 5px"],
  section [style*="letter-spacing:5px"] {
    letter-spacing: 1.5px !important;
  }

  .team-card-summary {
    min-height: 104px;
    padding: 18px 16px 20px;
  }

  .team-card-summary h3 {
    font-size: 22px;
  }

  .team-card-details {
    padding-right: 16px;
    padding-left: 16px;
  }

  .team-bio {
    min-height: 0;
  }

  .team-specialties {
    gap: 6px;
    margin: 20px 0;
  }

  .team-specialties li {
    padding: 6px 9px;
    font-size: 11px;
  }

  footer {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

@media (max-width: 300px) {
  header > a span:first-child,
  header > div:first-child span:first-child {
    font-size: 20px !important;
  }

  header > a span:last-child,
  header > div:first-child span:last-child {
    font-size: 7px !important;
    letter-spacing: 1.5px !important;
  }

  header > a.site-brand span.site-brand__name {
    font-size: 20px !important;
    letter-spacing: 0.12em !important;
  }

  header > a.site-brand span.site-brand__descriptor {
    font-size: 6px !important;
    letter-spacing: 0.08em !important;
  }

  header .site-brand__mark {
    width: 32px;
    height: 32px;
  }

  .menu-toggle {
    min-width: 64px;
    padding-right: 9px;
    padding-left: 9px;
    font-size: 11px;
  }

  section,
  section[style] {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

@media (max-height: 520px) and (max-width: 1100px) {
  header.menu-open nav a {
    min-height: 40px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}
