/*
 * Site header and footer, shared by every public page (home, portfolio,
 * project, service and solution pages). Self-contained: pages only need the
 * brand colour variables and the Inter and Sora fonts.
 */
:root {
  --header-height: 84px;
}

.site-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header .sr-only,
.new-footer .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header a,
.new-footer a {
  color: inherit;
  text-decoration: none;
}

.site-header img,
.new-footer img {
  display: block;
  max-width: 100%;
}

.site-header__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: var(--brand-dark) !important;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header__cta:hover {
  background: var(--brand-mint);
  border-color: var(--brand-mint);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(12, 12, 22, 0.92);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  gap: 34px;
  align-items: center;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.brand__crop {
  display: block;
  width: 105px;
  height: 34px;
}

.brand__crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
  align-items: center;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--brand-mint);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: #fff;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Footer */
.new-footer {
  padding: 75px 0 24px;
  color: #fff;
  background: #07070d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.new-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.new-footer__top p {
  margin: 0;
  color: var(--brand-periwinkle);
  font-family: "Sora", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: -0.03em;
}

.new-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  padding: 56px 0;
}

.new-footer__links > div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.new-footer h2 {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.36);
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.new-footer__links a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  transition: color 180ms ease;
}

.new-footer__links > div > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}

.new-footer__links a:hover {
  color: var(--brand-mint);
}

.new-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
}

.new-footer__bottom p {
  margin: 0;
}

.new-footer__bottom a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .site-header__cta {
    display: none;
  }

}

@media (max-width: 880px) {
  .site-shell {
    width: min(100% - 36px, 720px);
  }

  :root {
    --header-height: 74px;
  }

  .site-header__inner {
    height: var(--header-height);
    min-height: var(--header-height);
  }

  .js .nav-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  .js .site-nav {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding-top: 30px;
    padding-right: max(18px, calc((100vw - 720px) / 2));
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
    padding-left: max(18px, calc((100vw - 720px) / 2));
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--brand-dark);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    -webkit-overflow-scrolling: touch;
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .js .site-nav a {
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
  }

  .js .site-nav a::after {
    display: none;
  }

  html:not(.js) .site-header {
    position: relative;
    background: var(--brand-dark);
  }

  html:not(.js) .site-header__inner {
    height: auto;
    flex-wrap: wrap;
    padding-block: 14px;
  }

  html:not(.js) .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding-bottom: 8px;
  }

  html:not(.js) .site-nav a {
    padding-block: 5px;
  }

}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 28px, 560px);
  }

  .js .site-nav {
    padding-right: max(14px, calc((100vw - 560px) / 2));
    padding-left: max(14px, calc((100vw - 560px) / 2));
  }

  .new-footer__links {
    grid-template-columns: 1fr;
  }

  .new-footer__top,
  .new-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .new-footer__links {
    gap: 34px;
  }
}
