*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #062445;
  --blue: #1478df;
  --text: #0a294a;
  --muted: #707b88;
  --border: #e5e8ec;
  --page-width: 1280px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-shell {
  width: min(calc(100% - 48px), var(--page-width));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  display: block;
  width: 92px;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.main-nav {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  padding-left: 18px;
  white-space: nowrap;
}

.main-nav a,
.portfolio-btn {
  font-size: 11.025px;
  line-height: 1;
  font-weight: 500;
}

.main-nav a {
  color: #1f2730;
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.portfolio-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.portfolio-btn {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 16px;
}

.portfolio-btn:hover,
.primary-btn:hover {
  background: #0d66c2;
  transform: translateY(-1px);
}

.section {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
}

.about-section {
  padding: 72px 0 0;
}

.section-heading {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 11px;
  border: 1px solid #e4e7eb;
  border-radius: 999px;
  color: #5f6872;
  background: #fff;
  font-size: 13.2px;
  line-height: 1;
  letter-spacing: .1px;
}

.section-heading h1,
.section-heading h2 {
  margin: 9px 0 0;
  color: var(--navy);
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.5px;
}

.about-copy {
  max-width: 588px;
  margin: 12px auto 0;
  text-align: center;
}

.about-copy p,
.clients-copy p {
  margin: 0;
  color: #77808b;
  font-size: 13.5px;
  line-height: 1.55;
}

.about-text-wrap {
  max-height: calc(3 * 13.5px * 1.55);
  overflow: hidden;
  transition: max-height .9s ease;
}

.about-text-wrap.is-expanded {
  max-height: 2000px;
}

.text-toggle {
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f7780;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.hero-frame {
  margin: 30px auto 0;
  width: min(100%, 1150px);
  overflow: hidden;
  border-radius: 10px;
}

.hero-frame img {
  width: 100%;
  height: auto;
}

.partners-section {
  padding: 72px 0 0;
}

.partner-grid {
  width: min(100%, 1050px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  column-gap: 26px;
  row-gap: 26px;
}


.partner-7 img { transform: scale(1.15); }
.partner-8 img, .partner-10 img { transform: scale(1.15); }
.partner-9 img { transform: scale(0.9); }

.partner-8 { grid-column: 2; }
.partner-9 { grid-column: 3; }
.partner-10 { grid-column: 4; }
.partner-11 { grid-column: 5; }
.partner-12 { grid-column: 6; }

.partner {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner img {
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.clients-section {
  padding: 70px 0 0;
}

.clients-copy {
  max-width: 624px;
  margin: 12px auto 0;
  text-align: center;
}


.primary-btn {
  min-height: 29px;
  margin-top: 17px;
  padding: 0 17px;
  font-size: 10.5px;
}

.clients-card {
  width: min(100%, 800px);
  margin: 24px auto 0;
  padding: 9px 16px 25px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.clients-card > img {
  width: 90%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1118 / 257;
  object-fit: cover;
}

.locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 25px;
  margin-top: 13px;
  text-align: center;
}

.locations span {
  color: #303943;
  font-size: 13.2px;
  line-height: 1.35;
  font-weight: 500;
}

.site-footer {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 66px auto 0;
  padding-bottom: 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.25fr 1.35fr;
  gap: 28px;
  padding-bottom: 62px;
}

.footer-brand img {
  width: 65px;
  height: auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-column h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.footer-column a {
  color: #56616c;
  font-size: 12px;
  line-height: 1.2;
}

.connect a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.connect img,
.contact-item img {
  width: 10px;
  height: 10px;
  object-fit: contain;
  flex: 0 0 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-bottom {
  min-height: 45px;
  border-top: 1px solid #eceef1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  color: #6f7780;
  font-size: 10.5px;
}

@media (max-width: 900px) {
  .partner-8,
  .partner-9,
  .partner-10,
  .partner-11,
  .partner-12 {
    grid-column: auto;
  }

  .nav-shell {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .main-nav {
    gap: 18px;
    padding-left: 8px;
  }

  .partner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 74px;
  }

  .section,
  .site-footer,
  .nav-shell {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .nav-shell {
    min-height: 58px;
    gap: 10px;
  }

  .brand {
    width: 72px;
  }

  .main-nav {
    gap: 10px;
    padding-left: 0;
  }

  .main-nav a,
  .portfolio-btn {
    font-size: 8.4px;
  }

  .portfolio-btn {
    min-height: 25px;
    padding: 0 9px;
  }

  .primary-btn {
    font-size: 8px;
  }

  .about-section {
    padding-top: 46px;
  }

  .partners-section,
  .clients-section {
    padding-top: 52px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 21px;
  }

  .about-copy p,
  .clients-copy p {
    font-size: 13.5px;
    line-height: 1.55;
  }

  .hero-frame {
    margin-top: 24px;
    border-radius: 7px;
  }

  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 12px;
    margin-top: 23px;
  }

  .partner {
    height: 58px;
  }

  .partner img {
    max-height: 52px;
  }

  .clients-card {
    padding: 7px 8px 20px;
  }

  .locations {
    row-gap: 18px;
    margin-top: 11px;
  }

  .locations span {
    font-size: 10.5px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 18px;
    padding-bottom: 42px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    font-size: 10.5px;
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .main-nav {
    gap: 7px;
  }

  .main-nav a,
  .portfolio-btn {
    font-size: 7.35px;
  }

  .portfolio-btn {
    padding: 0 7px;
  }

  .primary-btn {
    font-size: 7px;
  }

  .brand {
    width: 65px;
  }

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